/* ALFIMOV.KZ — светлый интерфейс в духе Facebook/Instagram: серый фон ленты,
   белые карточки, синий из логотипа, градиент Instagram для «сторис». */
:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --hover: #f2f3f5;
  --ink: #0c1011;
  --ink-2: #4b4f56;
  --muted: #65676b;
  --line: #e4e6eb;
  --blue: #1769ff;
  --blue-hover: #0f57e0;
  --blue-soft: #e7efff;
  --green: #42b72a;
  --green-hover: #36a420;
  --ig: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .1);
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 820px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

.ic { width: 24px; height: 24px; flex: none; }
.ic-sm { width: 18px; height: 18px; }

.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
@media (min-width: 720px) { .panel { padding: 32px; } }

/* logo */
.logo { display: inline-flex; align-items: center; color: #0c1011; text-decoration: none; }
.logo svg { height: 20px; width: auto; }
@media (min-width: 720px) { .logo svg { height: 22px; } }
.logo-mark { width: auto; height: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 0;
  background: var(--blue); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--hover); }
.btn-block { width: 100%; padding: 13px; font-size: 18px; }
.btn-green { background: var(--green); padding: 12px 18px; font-size: 16px; }
.btn-green:hover { background: var(--green-hover); }
.btn-green .ic { width: 20px; height: 20px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav > a, .dd > a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.nav > a:hover, .dd > a:hover { background: var(--hover); color: var(--ink); }
.nav .btn { color: #fff; margin-left: 8px; padding: 8px 14px; }
.nav .btn:hover { background: var(--blue-hover); color: #fff; }
.nav > .lang { background: var(--hover); color: var(--ink); font-weight: 600; }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: 100%; left: 0; margin: 0; padding: 8px; list-style: none;
  min-width: 320px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translateY(8px); }
.dd-menu a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.dd-menu a:hover { background: var(--hover); }
.dd-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); flex: none; }
.burger { display: none; background: var(--hover); border: 0; border-radius: 50%; width: 40px; height: 40px; place-items: center; color: var(--ink); cursor: pointer; }

@media (max-width: 980px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); box-shadow: 0 8px 16px rgba(0, 0, 0, .1); padding: 8px 12px 16px;
    max-height: calc(100vh - 60px); overflow-y: auto; display: none;
  }
  .nav.open { display: flex; }
  .nav > a, .dd > a { font-size: 17px; padding: 12px; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 4px; min-width: 0; }
  .dd:hover .dd-menu, .dd:focus-within .dd-menu { transform: none; }
  .nav > .lang { align-self: flex-start; margin: 8px 0 0 0; }
  .nav .btn { margin: 12px 0 0; padding: 13px; font-size: 16px; }
}

/* hero */
.hero { background: var(--surface); padding: 48px 0 56px; }
@media (min-width: 720px) { .hero { padding: 72px 0; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.kicker {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 600; margin-bottom: 20px;
}
.hero-lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-2); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .btn-light { box-shadow: none; background: var(--hover); }
.hero .btn-light:hover { background: var(--line); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .ic { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }

/* instagram post mock */
.post {
  width: 100%; max-width: 400px; justify-self: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(1.5deg);
}
.post-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ig); padding: 2px; flex: none; }
.avatar > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 2px solid #fff; color: var(--ink); }
.avatar .logo-mark { height: 15px; }
.post-who { display: grid; line-height: 1.25; font-size: 14px; }
.post-who small { color: var(--muted); font-size: 12px; }
.post-dots { margin-left: auto; color: var(--ink); letter-spacing: 1px; font-size: 12px; }
.post-media {
  aspect-ratio: 1 / 1; padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .35), transparent 40%),
    linear-gradient(150deg, #1769ff 0%, #6a4df5 45%, #d62976 80%, #fa7e1e 100%);
  color: #fff;
}
.post-title { font-size: clamp(26px, 3.2vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(4px); font-size: 13px; font-weight: 600; }
.post-cta { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.post-actions { display: flex; align-items: center; gap: 14px; padding: 12px 14px 4px; }
.post-actions .sp { flex: 1; }
.post-actions .ic:first-child { color: #ed4956; fill: #ed4956; }
.post-cap { font-size: 14px; padding: 4px 14px 16px; margin: 0; }

/* stories */
.stories-sec { background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.stories {
  display: flex; gap: 20px; overflow-x: auto; padding: 20px 0 16px; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.stories::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .stories { justify-content: space-between; } }
.story { display: grid; justify-items: center; align-content: start; gap: 8px; width: 84px; flex: none; text-decoration: none; scroll-snap-align: start; }
.ring { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ig); padding: 3px; transition: transform .2s ease; }
.story:hover .ring { transform: scale(1.06); }
.story-ic { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); border: 3px solid var(--surface); color: var(--ink); }
.story-ic .ic { width: 28px; height: 28px; }
.story.is-current .ring { background: var(--line); }
.story-name { font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.25; }
.ring-lg { width: 96px; height: 96px; flex: none; }
.ring-lg .story-ic { background: var(--blue-soft); color: var(--blue); border-color: #fff; }
.ring-lg .ic { width: 38px; height: 38px; }

/* sections */
.sec { padding: 48px 0; }
@media (min-width: 720px) { .sec { padding: 64px 0; } }
.sec + .sec { padding-top: 8px; }
@media (min-width: 720px) { .sec + .sec { padding-top: 16px; } }
.sec-lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin-bottom: 28px; }
.prose p { font-size: 17px; color: var(--ink-2); }
.prose p:first-child { font-size: 19px; color: var(--ink); font-weight: 500; }
.prose p:last-child { margin: 0; }

/* cards */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blue); }

/* why */
.whys { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.why { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.why-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ig); color: #fff; margin-bottom: 16px; }
.why p { color: var(--muted); font-size: 15px; margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { position: relative; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.steps .num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px;
}
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* includes */
.includes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .includes { grid-template-columns: 1fr; } }
.includes li { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.inc-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; }
.includes h3 { margin-bottom: 4px; }
.includes p { color: var(--muted); font-size: 15px; margin: 0; }

.pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font-weight: 500;
}
.pills .ic { color: var(--green); flex: none; }

/* service head */
.svc-head { display: grid; gap: 24px; align-items: start; }
@media (min-width: 720px) { .svc-head { grid-template-columns: auto 1fr; gap: 32px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* faq */
.faq { padding: 8px; margin-top: 20px; }
@media (min-width: 720px) { .faq { padding: 8px; } }
.qa { border-radius: 8px; }
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 600; border-radius: 8px;
}
.qa summary:hover { background: var(--hover); }
.qa summary::-webkit-details-marker { display: none; }
.qa-ic { transition: transform .2s ease; color: var(--muted); transform: rotate(90deg); }
.qa[open] .qa-ic { transform: rotate(-90deg); }
.qa p { color: var(--ink-2); margin: 0; padding: 0 16px 18px; max-width: 70ch; }

/* lead: форма в стиле окна входа Facebook */
.lead { padding: 56px 0; }
@media (min-width: 720px) { .lead { padding: 80px 0; } }
.lead-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .lead-in { grid-template-columns: 1fr 400px; gap: 64px; } }
.lead-copy h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--blue); letter-spacing: -0.02em; }
.lead-copy p { font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.lead-copy .muted { font-size: 15px; margin: 24px 0 12px; color: var(--muted); }
.login-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; display: grid; }
.form { display: grid; gap: 12px; }
.inp {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--surface); border: 1px solid #dddfe2;
  border-radius: 6px; padding: 14px 16px; width: 100%; resize: vertical;
}
.inp::placeholder { color: #8a8d91; }
.inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.consent { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }
.form-status { margin: 0; font-weight: 500; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green-hover); }
.form-status.err { color: #e41e3f; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-box .btn-green { justify-self: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-weight: 500; font-size: 15px;
}
.chip:hover { background: var(--hover); }
.chip .ic { width: 18px; height: 18px; color: var(--blue); }
.chips-lg { margin-top: 28px; }
.hero .chip { background: var(--hover); box-shadow: none; }
.hero .chip:hover { background: var(--line); }

/* footer */
.ftr { background: var(--surface); padding: 48px 0 24px; font-size: 14px; color: var(--ink-2); }
.ftr-in { display: grid; gap: 32px; }
@media (min-width: 800px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr ul a:hover { text-decoration: underline; }
.ftr .logo { margin-bottom: 16px; }
.ftr p { max-width: 40ch; }
.ftr-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .post { transform: none; }
}
