/* Зъбчо — landing page. Calm clinic: warm off-white, one confident teal, generous space. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f6f8f7;
  --bg-tint: #eef4f2;
  --surface: #ffffff;
  --ink: #0f1f1c;
  --muted: #4e5f5b;
  --subtle: #7b8a87;
  --line: #e2e9e7;
  --brand: #0e9f8e;
  --brand-deep: #087466;
  --brand-ink: #05534a;
  --brand-soft: #e2f4f0;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --success: #1fa971;
  --success-soft: #e3f6ec;
  --amber: #e59a12;
  --violet: #8b5cf6;
  --blue: #4c8df6;
  --shadow-sm: 0 1px 2px rgba(15, 31, 28, .06), 0 1px 1px rgba(15, 31, 28, .04);
  --shadow-lg: 0 30px 60px -20px rgba(8, 64, 56, .28), 0 12px 24px -12px rgba(8, 64, 56, .18);
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 128px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1312;
    --bg-tint: #101a19;
    --surface: #131d1c;
    --ink: #e8f0ee;
    --muted: #a3b4b0;
    --subtle: #7d8f8b;
    --line: #22302e;
    --brand: #5fd4c2;
    --brand-deep: #3fbfab;
    --brand-ink: #9be8dc;
    --brand-soft: #123430;
    --danger-soft: #3a1c1e;
    --success-soft: #133325;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
p { margin: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.display { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.display em { display: block; font-style: normal; color: var(--brand-deep); }
.h2 { font-size: clamp(2rem, 1.4rem + 2.1vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.h3 { font-size: 1.3125rem; font-weight: 750; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: inherit; font-weight: 750; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: 0 10px 24px -10px rgba(8, 116, 102, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(8, 116, 102, .75); background: #076b5e; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-1px); border-color: var(--brand); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: .9375rem; border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--brand); color: #04211d; }
  .btn-primary:hover { background: #7de0d1; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 28px; margin-left: 12px; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9688rem; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { text-decoration: none; font-weight: 700; font-size: .875rem; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.lang:hover { color: var(--ink); background: var(--bg-tint); }
@media (max-width: 860px) { .nav-links { display: none; } .nav { gap: 12px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, #f08c3c 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: .9688rem; font-weight: 600; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; color: var(--success); flex: none; }
.hero-visual { position: relative; padding-bottom: 48px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
}

/* Device frames */
.browser {
  border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f1665b; }
.browser-bar i:nth-child(2) { background: #f5b83d; }
.browser-bar i:nth-child(3) { background: #34c38f; }
.browser-url {
  margin-left: 14px; flex: 1; max-width: 320px; height: 24px; border-radius: 8px; background: var(--surface);
  display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: .75rem; font-weight: 600; color: var(--subtle);
}
.browser-url svg { width: 12px; height: 12px; }
.phone {
  position: absolute; right: -28px; bottom: 0; width: clamp(130px, 28%, 200px);
  border-radius: 34px; padding: 8px; background: #0f1f1c; box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 27px; }
@media (max-width: 980px) { .phone { right: -4px; } }
@media (max-width: 560px) { .phone { width: 120px; border-radius: 24px; padding: 5px; } .phone img { border-radius: 20px; } }

/* Fact strip */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin-block: 0; padding: 0; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 26px 24px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 1rem; line-height: 1.3; }
.facts span { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.chip-icon {
  width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep);
}
.chip-icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .facts ul { grid-template-columns: 1fr; } .facts li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* Sections */
.section { padding-block: var(--section); }
.section.tint { background: var(--bg-tint); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.card p { color: var(--muted); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.card-shot { margin: 8px calc(-1 * clamp(24px, 3vw, 32px)) calc(-1 * clamp(24px, 3vw, 32px)); margin-top: auto; padding: 0 0 0 clamp(24px, 3vw, 32px); }
.card-shot img { border-radius: 14px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: var(--shadow-sm); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .span-2, .span-3, .span-4, .span-6 { grid-column: span 2; } .bento .half { grid-column: span 1; } }
@media (max-width: 620px) { .bento .half { grid-column: span 2; } }

/* Mini UI replicas inside cards */
.mini { margin-top: auto; display: grid; gap: 10px; min-width: 0; }
.mini-search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px;
  background: var(--bg-tint); border: 1px solid var(--line); font-weight: 600;
}
.mini-search svg { width: 18px; height: 18px; color: var(--subtle); }
.mini-search .caret { width: 2px; height: 20px; background: var(--brand); animation: blink 1.1s steps(2) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }
.mini-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-tint); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: .8125rem; font-weight: 800; }
.avatar.teal { background: #dff3ef; color: #0b7c6e; }
.avatar.amber { background: #fdeedf; color: #b8651c; }
.avatar.violet { background: #efe9fd; color: #6d45d1; }
@media (prefers-color-scheme: dark) {
  .avatar.teal { background: #17403a; color: #8fe3d6; }
  .avatar.amber { background: #46301c; color: #f5c08e; }
  .avatar.violet { background: #2e2550; color: #c8b5fb; }
}
.mini-result b { display: block; font-size: .9375rem; line-height: 1.25; }
.mini-result small { color: var(--subtle); font-size: .8125rem; }
.same { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 750; background: var(--brand-soft); color: var(--brand-ink); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.success { background: var(--success-soft); color: var(--success); }
.same .eq { color: var(--subtle); font-weight: 700; }
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px;
  background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}
.alert svg { width: 22px; height: 22px; color: var(--danger); flex: none; margin-top: 1px; }
.alert small { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--danger); }
.alert b { font-size: 1.0625rem; }
.money-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-tint); }
.money-row b { flex: 1 1 auto; font-size: .9375rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.money-row span { font-weight: 800; font-size: .9375rem; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 9px 14px; border-radius: 12px;
  background: var(--success-soft); color: var(--success); font-weight: 750; font-size: .875rem;
}
.mini-btn svg { width: 16px; height: 16px; }
.catalog-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-tint); font-size: .9375rem; }
.code { font-size: .75rem; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.catalog-row b { font-weight: 700; }

/* Spotlight (alternating text + visual) */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.spotlight.reverse .spot-copy { order: 2; }
.spot-copy { display: grid; gap: 20px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks li > span:first-child { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); }
.checks svg { width: 16px; height: 16px; }
.checks b { display: block; }
.checks p { color: var(--muted); font-size: 1rem; }
@media (max-width: 980px) { .spotlight { grid-template-columns: 1fr; } .spotlight.reverse .spot-copy { order: 0; } }

/* Everywhere band (always dark) */
.band {
  position: relative; overflow: hidden; color: #e8f0ee;
  background: radial-gradient(1000px 500px at 85% 0%, rgba(25, 183, 162, .28), transparent 60%), linear-gradient(160deg, #0b2a26, #071715 70%);
}
.band .eyebrow { color: #7de0d1; }
.band .lead, .band .muted { color: #a9c2bd; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.band-visual { position: relative; padding: 0 0 40px 60px; }
.band-visual .browser { border-color: #22302e; background: #131d1c; }
.band-visual .browser-bar { background: #101a19; border-color: #22302e; }
.band-visual .browser-url { background: #131d1c; color: #7d8f8b; }
.band-visual .phone { left: 0; right: auto; background: #000; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 8px 0 0; }
.pill-list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-weight: 650; font-size: .9375rem;
}
.pill-list svg { width: 18px; height: 18px; color: #7de0d1; }
@media (max-width: 980px) { .band-grid { grid-template-columns: 1fr; } .band-visual { padding-left: 40px; } }

/* Security */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.feature p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* Migration callout */
.callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  margin-top: 40px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line);
}
.callout .chip-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); }
.callout .chip-icon svg { width: 28px; height: 28px; }
.callout p { color: var(--muted); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-weight: 750; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--subtle); border-bottom: 2.5px solid var(--subtle);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* Final CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(135deg, #16b3a0, #087466 55%, #05534a); color: #fff;
  display: grid; gap: 20px; justify-items: center; text-align: center;
}
.cta .h2 { max-width: 780px; }
.cta p { color: rgba(255, 255, 255, .86); max-width: 620px; }
.cta .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.cta .btn-primary:hover { background: #f1fbf9; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.cta .btn-ghost:hover { border-color: #fff; }
.cta-motif { position: absolute; width: 420px; right: -80px; bottom: -120px; opacity: .08; pointer-events: none; }

/* Footer */
.site-footer { padding: 56px 0 40px; color: var(--muted); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-grid h2 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
