/* Daisy Teams — landing, desktop 1440 (Figma 652:29399) */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --text-main: #202020;
  --text-warm: #34312d;
  --text-sec: #6a6a6a;
  --text-sec-warm: #75726d;
  --text-invert: #f8f8f8;
  --text-invert-warm: #f8f7f3;
  --text-disable: #a7a7a7;
  --text-disable-warm: #b0aca3;
  --bg-main: #f8f8f8;
  --bg-left: #f2f2f2;
  --bg-white: #ffffff;
  --line: #e3e3e3;
  --line-dark: #585858;
  --field-border: #939393;
  --divider: #e8e8e8;
  --dark: #313131;
  --btn: #202020;
  --btn-hover: #393939;
  --btn-secondary: #ededed;
  --btn-secondary-hover: #e3e3e3;
  --core: #fe7d31;
  --core-hover: #ff922f;
  --hero: #ffc549;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: #ffffff;
  color: var(--text-main);
  font-family: "Inter", system-ui, sans-serif;
  /* design uses "Inter 24pt" (opsz 24); nav & header buttons use plain Inter (opsz 14) */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 24;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

/* fluid page: above 1440px the 1440 layout stays centred and white side margins grow; smaller layouts in media queries at the end */
.page { width: 100%; max-width: 1440px; margin: 0 auto; background: #fff; overflow: hidden; }
.wrap { margin: 0 48px; }

/* ---------- type ---------- */
.h1 { font-size: 44px; line-height: 1.2; font-weight: 600; letter-spacing: -0.44px; color: var(--text-main); }
.h1.warm { color: var(--text-warm); letter-spacing: -0.88px; }
.h1.nowrap { white-space: nowrap; }
.h2 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.24px; color: var(--text-warm); }
.lead { font-size: 24px; line-height: 32px; font-weight: 400; letter-spacing: -0.24px; }
.body { font-size: 18px; line-height: 26px; font-weight: 400; letter-spacing: -0.18px; color: var(--text-sec-warm); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 8px 24px; border-radius: 999px;
  background: var(--btn); color: var(--text-invert);
  font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: -0.14px; white-space: nowrap;
  transition: background-color .15s;
}
.btn:hover { background: var(--btn-hover); }
.btn.white { background: #fff; color: var(--text-main); }
.btn.white:hover { background: rgba(255, 255, 255, 0.6); }
.btn.core { background: var(--core); color: var(--text-invert-warm); }
.btn.core:hover { background: var(--core-hover); }
.btn-wide {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: 64px; padding: 0 24px; /* no taller than the sticky header */
  border-radius: 16px; background: var(--core); color: var(--text-invert-warm);
  font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.24px;
  transition: background-color .15s;
}
.btn-wide:hover { background: var(--core-hover); }

/* ---------- separator ---------- */
.sep { height: 144px; display: flex; align-items: center; }
.sep::before { content: ""; width: 100%; height: 1px; background: var(--line); }

/* ---------- header ---------- */
/* header is fixed; top padding reserves its 12px offset + 64px height + 12px gap */
.top { padding-top: 88px; display: flex; flex-direction: column; }
.nav {
  position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1344px, calc(100% - 96px)); height: 64px; border: 1px solid var(--line); border-radius: 64px;
  background: rgba(248, 248, 248, 0.7);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 20.5px;
}
.nav-logo { width: 139.75px; height: 30.216px; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-menu { display: flex; align-items: center; gap: 28px; font-size: 14px; line-height: 16px; letter-spacing: -0.14px; }
.nav-menu a:hover { opacity: .6; }
.nav-menu .strong { font-weight: 600; }
.nav .btn { height: 36px; border-radius: 18px; }
.nav, .hero-cta .btn { font-variation-settings: "opsz" 14; }

/* ---------- hero ---------- */
/* min-height, not height: the hero grows if its copy wraps to more lines */
.hero { position: relative; min-height: 594px; border-radius: 32px; background: var(--hero); overflow: hidden; }
/* always covers the hero (scales by width or height, whichever is larger); anchor follows each mockup */
.hero-bg { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; object-position: left top; }
/* centred in the free space right of the text: left = text edge + half of what is left over,
   but never closer than 24px to the hero's right edge (text edge per layout: 756 / 565 / 541px) */
.hero-3d { position: absolute; left: min(calc(756px + (100% - 756px - 519px) / 2), calc(100% - 519px - 24px)); top: 50%; transform: translateY(-50%); margin-top: -0.5px; width: 519px; height: 481px; object-fit: cover; }
.hero-content { position: relative; z-index: 1; width: 821px; padding: 56px; display: flex; flex-direction: column; gap: 36px; color: #fff; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; line-height: 1.2; letter-spacing: -0.14px; white-space: nowrap; }
.hero h1 { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.64px; text-box: trim-both cap alphabetic; }
.hero-list { list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 24px; line-height: 1.4; letter-spacing: -1px; white-space: nowrap; }
.hero-list li { display: flex; gap: 8px; }
.hero-list li::before { content: "→"; }
.hero-cta { display: flex; gap: 12px; }
.hero-cta .btn { height: 40px; }

/* ---------- about ---------- */
.about { padding-top: 72px; display: flex; flex-direction: column; gap: 72px; }
.about-text { font-size: 44px; line-height: 1.2; letter-spacing: -1px; font-weight: 400; color: var(--text-main); }
.about-text b { font-weight: 600; }
.clients { display: flex; flex-direction: column; gap: 24px; }
.clients-label { font-size: 18px; line-height: 26px; letter-spacing: -0.18px; color: var(--text-sec); }
.logos { display: flex; align-items: center; justify-content: space-between; }
.logo-box { position: relative; flex-shrink: 0; }
.logo-box > img { width: 100%; height: 100%; }
.logo-sber .m {
  position: absolute; inset: 0 1.23% 0 0;
  -webkit-mask: url(assets/c-sber-mask.svg) -0.004px 0 / 134px 36.035px no-repeat; mask: url(assets/c-sber-mask.svg) -0.004px 0 / 134px 36.035px no-repeat luminance;
}
.logo-sber .m img { width: 100%; height: 100%; }
.logo-w .m {
  position: absolute; inset: 11.07% 8.91% 11.57% 13.74%; background: #fff; border-radius: 23.188px;
  -webkit-mask: url(assets/c-w-mask.svg) 8.41px 7.873px / 20.664px 21.535px no-repeat; mask: url(assets/c-w-mask.svg) 8.41px 7.873px / 20.664px 21.535px no-repeat alpha;
}

/* ---------- generic icon helpers ---------- */
.ico { position: relative; overflow: hidden; flex-shrink: 0; }
.ico .b { position: absolute; }
.ico .b > img, .ico .b > span > img { width: 100%; height: 100%; }
.ico .pad { position: absolute; display: block; }
.ico .pad img { width: 100%; height: 100%; }
.rot { position: absolute; display: flex; align-items: center; justify-content: center; }
.rot > span { flex: none; position: relative; display: block; }
.badge { position: relative; width: 44px; height: 44px; border-radius: 22px; background: var(--btn); overflow: hidden; flex-shrink: 0; }
.badge.core { background: var(--core); }

.list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list li { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; line-height: 26px; letter-spacing: -0.18px; }
.list li > span:last-child { flex: 1; }
.i-check { width: 24px; height: 24px; }
.i-check .pad { left: 6px; top: 8px; width: 12px; height: 8px; }
.i-check .pad img { position: absolute; inset: -10% -6.67% -3.09% -6.67%; width: auto; height: auto; }
.i-cross { width: 24px; height: 24px; }

/* ---------- compare ---------- */
.compare { display: flex; flex-direction: column; gap: 48px; }
.compare .h1 { max-width: 1002px; }
.compare-grid { display: flex; flex-direction: column; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: flex; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card.grey { background: var(--bg-left); align-self: start; }
.card.grey .list li { color: var(--text-sec-warm); }
.card.dark { background: var(--dark); border-color: var(--dark); height: 374px; }
.card.dark .h2, .card.dark .list li { color: var(--text-invert-warm); }
.row3 .card { flex: 1; min-width: 0; height: 292px; }
.row3 .card .h2.fixed { width: 390px; }

/* ---------- tasks ---------- */
.tasks { display: flex; flex-direction: column; gap: 48px; }
.tasks-head { display: flex; flex-direction: column; gap: 24px; max-width: 1340px; }
.tasks-head .lead { color: var(--text-main); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tcard { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.tcard-top { position: relative; height: 120px; background: var(--bg-main); overflow: hidden; flex-shrink: 0; }
.blob { position: absolute; width: 720.413px; height: 638.048px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.blob > span { flex: none; position: relative; width: 402.795px; height: 601.776px; rotate: 62.02deg; }
.blob > span > img { position: absolute; inset: -32.53% -48.61%; width: auto; height: auto; }
.tcard-ico { position: absolute; left: 0; top: 0; height: 120px; padding: 0 24px; display: flex; align-items: center; }
.tcard-ico .ico { width: 76px; height: 76px; }
.tcard-body { flex: 1; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tcard-text { display: flex; flex-direction: column; gap: 12px; }
.pills { display: flex; gap: 6px; }
.pill {
  /* both pills share one height: 24px clock + 2px padding + 1px border on each side */
  display: flex; align-items: center; height: 30px; border-radius: 999px; padding: 2px 10px;
  font-size: 14px; line-height: 20px; letter-spacing: -0.14px; white-space: nowrap;
  background: rgba(255,255,255,.1); border: 1px solid var(--line);
}
.pill.now { border-color: var(--line-dark); padding-left: 2px; gap: 5px; color: var(--text-main); }
.pill.now b { font-weight: 600; }
.pill.was { gap: 3px; color: var(--text-disable); }
.pill.was b { font-weight: 600; }
.pill.was b.warm { color: var(--text-disable-warm); line-height: 1.2; }
.i-clock { width: 24px; height: 24px; }
.i-clock .pad { left: 3px; top: 3px; width: 18px; height: 18px; }
.i-clock .pad img { position: absolute; inset: -4.44%; width: auto; height: auto; }
.tcard.more { background: var(--bg-main); padding: 24px; justify-content: space-between; }
.tcard.more .t { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.44px; color: var(--text-main); }
.tcard.more .lead { color: var(--text-sec); margin-top: 16px; }
.tcard.more .btn { align-self: flex-start; }

/* ---------- video ---------- */
.video { display: flex; flex-direction: column; gap: 48px; }
.video .h1 { line-height: normal; }
.video-box { display: flex; flex-direction: column; gap: 12px; }
.player { background: var(--dark); border-radius: 16px; overflow: hidden; display: flex; justify-content: center; }
.player-inner { position: relative; width: 1200px; height: 677px; overflow: hidden; }
/* dark like the player frame, so no light hairline shows around the video */
.player-screen { position: absolute; inset: 0; background: var(--dark); }
/* the recording is 1668×1080 (≈3:2): the frame keeps its aspect, dark side bars match the player */
.player-screen { display: flex; justify-content: center; }
.vframe { position: relative; height: 100%; max-width: 100%; aspect-ratio: 1668 / 1080; overflow: hidden; }
.vframe video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.play[hidden] { display: none; }
.play {
  position: absolute; left: 50%; top: calc(50% + 1.5px); transform: translate(-50%, -50%);
  height: 124px; padding: 8px 24px; border-radius: 999px; background: rgba(255,255,255,.9);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  display: flex; align-items: center; transition: background .15s, transform .15s;
}
.play:hover { background: #fff; }
.play .ico { width: 76px; height: 76px; }
.play .ico .b { left: -23.75px; top: -9.5px; width: 95px; height: 95px; }

/* ---------- agent ---------- */
.agent { display: flex; flex-direction: column; gap: 48px; }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.agent-grid > .lead { color: var(--text-warm); }
.chat { background: var(--bg-main); border: 1px solid var(--divider); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.msg-user { align-self: flex-end; width: 465px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.msg-user .bubble { width: 100%; background: #fff; padding: 8px 16px; border-radius: 16px 16px 0 16px; font-size: 16px; line-height: 24px; letter-spacing: -0.16px; }
.msg-actions { height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; }
.pager { display: flex; align-items: center; font-size: 16px; line-height: 24px; letter-spacing: -0.16px; color: var(--text-sec); }
.pager img, .msg-actions > .ico { width: 24px; height: 24px; }
.i-copy .pad { left: 5px; top: 4.2px; width: 14.8px; height: 14.8px; }
.i-copy .pad img { position: absolute; inset: 0 0 -5.41% -5.41%; width: auto; height: auto; }
.msg-llm { display: flex; flex-direction: column; gap: 24px; }
.status { align-self: flex-start; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.status-head { display: flex; flex-direction: column; gap: 8px; }
.status-head p { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; color: var(--text-sec); }
/* «shimmer-line» from the mockup: a highlight runs along the divider while the model is being picked */
.shimmer {
  border: 0; height: 1px;
  background: linear-gradient(90deg, var(--divider) 35%, var(--core) 50%, var(--divider) 65%) 100% 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
.shimmer.done { animation: none; background: var(--divider); }
@keyframes shimmer { to { background-position: 0 0; } }
.spin { position: relative; display: block; width: 20px; height: 20px; animation: spin 1s linear infinite; }
.spin img { position: absolute; left: 0; top: 0; width: 68.91%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .shimmer, .spin { animation: none; } }
.msg-llm .answer { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; }
.msg-llm .answer b { font-weight: 600; }
/* typewriter: caret while typing, spinner stops once the answer is done */
.msg-llm .answer.typing::after {
  content: ""; display: inline-block; width: 1.5px; height: 18px; margin-left: 2px; vertical-align: -3px;
  background: var(--core); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.spin.done { animation-play-state: paused; opacity: .4; transition: opacity .3s; }
.models { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.model {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 8px 24px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden;
}
.model .ico { width: 24px; height: 24px; }

/* ---------- press ---------- */
.press { display: flex; flex-direction: column; gap: 48px; }
.press-card { background: var(--bg-main); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 32px; align-self: start; }
.press-card .q { font-size: 44px; font-weight: 500; line-height: normal; color: var(--core); }
.press-card .inner { display: flex; flex-direction: column; gap: 16px; }
.press-card .meta { display: flex; gap: 8px; align-items: center; font-size: 16px; line-height: 24px; letter-spacing: -0.16px; color: var(--text-sec); }
.press-card .lead { color: var(--text-warm); }
.press-card .btn { align-self: flex-start; }

/* ---------- security ---------- */
.sec { display: flex; flex-direction: column; gap: 48px; }
.sec .row2 .tcard:first-child { align-self: stretch; }
.sec .row2 .tcard:last-child { align-self: start; }
.sec .tcard-text { gap: 16px; }
.sec .tcard-body .btn { align-self: flex-start; }

/* ---------- pricing ---------- */
.price { display: flex; flex-direction: column; gap: 48px; }
.price-box { display: flex; flex-direction: column; gap: 12px; }
.price-row { display: flex; gap: 12px; align-items: flex-start; }
.price-main { width: 440px; flex-shrink: 0; align-self: stretch; background: var(--dark); border-radius: 16px; padding: 24px 24px 32px; display: flex; flex-direction: column; gap: 24px; }
.price-main .val { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.price-main .num { font-size: 44px; line-height: 32px; font-weight: 600; letter-spacing: -0.44px; color: var(--text-invert-warm); }
.price-main .per { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; color: var(--text-disable); }
.price-main .list li { color: var(--text-invert-warm); }
.price-alt { flex: 1; min-width: 0; align-self: stretch; background: var(--bg-main); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-alt .col { display: flex; flex-direction: column; gap: 16px; }
.price-alt .list li { color: var(--text-warm); }
.plans { display: contents; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.plan > div { display: flex; flex-direction: column; gap: 16px; }
.plan a { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.18px; color: var(--text-warm); text-decoration: underline; text-decoration-skip-ink: none; white-space: nowrap; }

/* ---------- request form ---------- */
.req { background: var(--dark); border-radius: 16px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.req-text { display: flex; flex-direction: column; gap: 32px; }
.req-text .t { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.44px; color: var(--text-invert); }
.req-text .ps { width: 554px; display: flex; flex-direction: column; gap: 12px; font-size: 24px; line-height: 32px; letter-spacing: -0.24px; color: var(--text-disable); }
.req-form { padding-bottom: 12px; display: flex; flex-direction: column; gap: 28px; }
.req-fields { display: flex; flex-direction: column; gap: 20px; }
.fields-pair { display: flex; gap: 8px; }
.field { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.field label { height: 24px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; line-height: 16px; letter-spacing: -0.12px; color: var(--text-disable); }
.field input {
  height: 36px; width: 100%; padding: 0 8px 0 12px; border: 1px solid var(--field-border); border-radius: 4px; background: #fff;
  font: inherit; font-size: 14px; line-height: 20px; letter-spacing: -0.14px; color: var(--text-main); caret-color: var(--core); outline: none;
}
.field input::placeholder { color: var(--text-disable); }
.field input:focus { border-color: var(--core); }
/* validation: the field, its hint and an unticked required checkbox turn orange */
.field input.is-invalid { border-color: var(--core); }
.field .hint { padding: 4px 10px 0; font-size: 12px; line-height: 16px; letter-spacing: -0.12px; color: var(--core); }
.check input.is-invalid { border-color: var(--core); box-shadow: 0 0 0 1px var(--core); }
.field .hint { height: 24px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 12px; line-height: 16px; letter-spacing: -0.12px; color: var(--text-disable); cursor: pointer; white-space: nowrap; }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--field-border); border-radius: 4px; flex-shrink: 0; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--core); border-color: var(--core); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 1.5px 1.5px; rotate: -45deg; margin-top: -2px; }
.check a { text-decoration: underline; text-underline-position: from-font; }
.req-form .btn { font-size: 13.083px; letter-spacing: -0.13px; }
.req-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; } /* same as the gap above the button */
.req-alt { font-size: 14px; line-height: 20px; letter-spacing: -0.14px; color: var(--text-disable); }
.req-alt a { color: var(--text-invert); text-decoration: underline; text-underline-position: from-font; }
.req-alt a:hover { color: var(--core); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 48px; padding-bottom: 72px; }
.faq-box { background: var(--bg-main); border: 1px solid var(--line); border-radius: 16px; padding: 56px; }
.qa { border-bottom: 1px solid var(--line); padding: 16px 8px 20px; }
.qa:last-child { border-bottom: 0; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.24px; color: var(--text-warm); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "→"; flex-shrink: 0; }
.qa[open] summary { align-items: center; }
.qa[open] summary::after { content: "↓"; }
.qa .ans { margin-top: 12px; padding-right: 27px; display: flex; flex-direction: column; gap: 10px; }
.qa .ans b { font-weight: 600; }
.limits { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; letter-spacing: -0.14px; white-space: nowrap; color: var(--text-main); }
.limits th { font-weight: 600; padding: 8px; text-align: left; }
.limits caption { caption-side: top; text-align: left; white-space: normal; font-weight: 600; padding: 8px 8px 4px; }
.limits + .limits { margin-top: 16px; }
.limits td { padding: 4px 8px; }
.limits th:last-child, .limits td:last-child { text-align: right; }
.limits tbody tr:nth-child(odd) { background: var(--bg-left); }
.limits tbody tr:nth-child(even) { background: #fff; }

/* ---------- footer ---------- */
/* the footer spans the full window; above 1440px its content stays on the 1440 grid */
.footer { background: var(--dark); border-radius: 32px 32px 0 0; padding: 50px max(50px, calc((100% - 1440px) / 2 + 50px)); display: flex; flex-direction: column; }
.footer-top { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact { width: 551px; height: 214px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 24px; font-weight: 400; line-height: normal; }
.footer-contact a { color: var(--core); transition: color .15s; }
.footer-contact a:hover { color: var(--core-hover); } /* same hover colour as the orange buttons */
.footer-col { width: 214px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.3; color: var(--text-sec); }
.footer-col:last-child { flex: 1; width: auto; }
.footer-col .h { color: var(--text-invert); }
.footer-col a:hover { color: var(--text-invert); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: flex-end; }
.footer-legal { width: 431px; font-size: 16px; line-height: 1.4; color: var(--text-sec); }
.footer-sk { width: 141px; height: 41.7px; }

/* ---------- «Заявка отправлена» dialog ---------- */
.ok-modal {
  position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(134, 134, 134, .5); opacity: 0; transition: opacity .25s ease;
}
.ok-modal[hidden] { display: none; }
.ok-modal.in { opacity: 1; }
html.modal-open { overflow: hidden; }
.ok-card {
  position: relative; width: 326px; max-width: 100%; padding: 47px 23px 31px; /* 24/48/32 in Figma, minus the 1px border that Figma draws inside */
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(26, 26, 26, .08);
  transform: translateY(8px) scale(.98); transition: transform .25s ease;
}
.ok-modal.in .ok-card { transform: none; }
.ok-close {
  position: absolute; top: 23px; right: 23px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--btn-secondary); display: grid; place-items: center; transition: background-color .15s;
}
.ok-close:hover { background: var(--btn-secondary-hover); }
.ok-close:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.ok-close img { width: 11.6px; height: 11.6px; rotate: 45deg; }
.ok-badge { width: 44px; height: 44px; border-radius: 22px; background: var(--btn); display: grid; place-items: center; margin-bottom: 12px; }
.ok-badge img { width: 13.6px; height: 9.05px; }
.ok-title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.18px; color: #000; }
.ok-text { margin-top: 8px; font-size: 14px; line-height: 20px; letter-spacing: -0.14px; color: var(--text-sec); }
@media (prefers-reduced-motion: reduce) { .ok-modal, .ok-card { transition: none; } }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; z-index: 900; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 440px; max-width: calc(100% - 32px);
  display: flex; flex-direction: column; gap: 24px; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(26, 26, 26, .08);
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease;
}
.cookie.in { opacity: 1; transform: none; }
.cookie[hidden] { display: none; }
.cookie-text { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; letter-spacing: -0.14px; color: var(--text-sec); }
.cookie-title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.18px; color: #000; }
.cookie-text a { color: var(--core); text-decoration: underline; text-decoration-skip-ink: none; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-btn { height: 36px; border-radius: 18px; line-height: 16px; font-variation-settings: "opsz" 14; }
/* the same × as the «Заявка отправлена» dialog, in the corner of the 24px padding (minus the 1px border) */
.cookie-close { top: 23px; right: 23px; }
.cookie-title { padding-right: 32px; }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* ================= Desktop 1200 (Figma 652:29958) ================= */
@media (max-width: 1439px) {
  .wrap { margin: 0 32px; }
  .nav { width: calc(100% - 64px); }

  .hero { min-height: 619px; }
  .hero-content { width: 646px; }
  .hero .br-1440 { display: none; }
  .hero-3d { left: min(calc(565px + (100% - 565px - 484px) / 2), calc(100% - 484px - 24px)); width: 484px; height: 449px; margin-top: -1px; }

  .row3 .card { height: auto; }
  .row3 .h2 { min-height: 64px; }
  .row3 .card .h2.fixed { width: auto; }

  .price-main { align-self: stretch; }
  .price-alt { align-self: auto; grid-template-columns: 1fr; gap: 24px 12px; }
  .plans { display: flex; gap: 12px; align-items: center; }
  .plan { flex: 1; min-width: 0; justify-content: flex-start; gap: 16px; }

  .req-text .ps { width: min(554px, calc(100% - 80px)); } /* keep clear of the form next to it */
  .req-form .btn { font-size: 14px; line-height: 16px; letter-spacing: -0.14px; }

  .footer { padding: 48px 32px; }
  .footer-top { display: grid; grid-template-columns: 465px 181px 179px 1fr; }
  .footer-contact, .footer-col, .footer-col:last-child { width: auto; }
}

/* ================= Tablet 960 (Figma 652:32183) ================= */
@media (max-width: 1199px) {
  .h1, .about-text, .tcard.more .t, .req-text .t { font-size: 40px; line-height: 48px; }

  .nav-menu { display: none; }

  .hero { min-height: 550px; }
  .hero-bg { object-position: center top; }
  .hero-3d { left: min(calc(541px + (100% - 541px - 418px) / 2), calc(100% - 418px - 24px)); width: 418px; height: 387px; margin-top: 0.5px; }
  .hero-content { width: 555px; padding: 32px 0 32px 32px; }
  /* 424px in Figma; 376px reproduces its 4-line break with the web Inter metrics */
  .hero h1 { width: 376px; font-size: 50px; letter-spacing: -0.5px; }
  .hero-list { font-size: 18px; line-height: 26px; letter-spacing: -0.18px; }

  /* 960 mockup: 5 logos across, Сбер and А101 under the first two columns */
  .logos { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; align-items: center; gap: 32px 0; }

  .card.grey { align-self: stretch; }
  .card.dark { height: auto; }
  .row3 { display: grid; grid-template-columns: repeat(3, 1fr); }
  .row3 .h2 { min-height: 0; }

  .grid3 { grid-template-columns: repeat(2, 1fr); }

  /* no side ears below 1200: the player takes the video's own proportions (1668×1080) */
  .player-inner { width: 100%; height: auto; aspect-ratio: 1668 / 1080; }

  .press-card { align-self: stretch; justify-content: space-between; }

  .price-row { flex-direction: column; align-items: stretch; }
  .price-main { width: auto; flex-direction: row; gap: 12px; }
  .price-main .val { width: 191px; flex-shrink: 0; padding-top: 0; }
  .price-main .num { font-size: 40px; line-height: 48px; }
  .price-main .list { flex: 1; }

  .req-text .ps { width: min(396px, calc(100% - 64px)); font-size: 18px; line-height: 26px; letter-spacing: -0.18px; }

  .footer-top { grid-template-columns: repeat(4, 1fr); }
  .footer-contact { font-size: 18px; line-height: 24px; }
}

/* ================= Tablet 680 (Figma 652:31074) ================= */
@media (max-width: 959px) {
  /* 680 mockup: every heading uses -1% tracking */
  .h1, .h1.warm, .about-text, .tcard.more .t, .req-text .t { letter-spacing: -0.01em; }
  .h1.nowrap { white-space: normal; }
  .agent-grid { row-gap: 24px; }
  .req { row-gap: 24px; }
  .qa summary { gap: 0; }

  .hero { min-height: 667px; }
  .hero-bg { object-position: 14% top; }
  .hero-3d { left: calc(50% - 231px); top: 366px; width: 462px; height: 428px; transform: none; margin-top: 0; }
  .hero-content { width: 100%; padding: 32px; }
  .hero h1 { width: auto; }

  /* 680 mockup: two justified rows, 3 + 4 logos. The ::before is a zero-height line break,
     so the row gap is halved (it applies above and below the break). */
  .logos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 25.5px 0; }
  .logos::before { content: ""; flex-basis: 100%; order: 2; }
  .logos > :nth-child(-n+3) { order: 1; }
  .logos > :nth-child(n+4) { order: 3; }

  .row2, .row3 { grid-template-columns: 1fr; }
  .row3 .card { height: auto; }

  .tcard-body { justify-content: flex-start; }
  .tasks .tcard-body { justify-content: space-between; }
  .pills { flex-direction: column; align-items: flex-start; }


  .agent-grid { grid-template-columns: 1fr; }

  .plans { align-items: stretch; }
  .plan { justify-content: space-between; }

  .req { grid-template-columns: 1fr; }
  .req-text .ps { width: auto; }

  .footer-top { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px 12px; }
  .footer-contact { grid-column: 1 / -1; height: auto; font-size: 24px; line-height: 32px; }
  .footer-bottom { padding-top: 32px; }
}

/* ================= Mobile 360 (Figma 652:31628) ================= */
@media (max-width: 679px) {
  .hide-m { display: none; }
  .wrap { margin: 0 12px; }
  .nav { width: calc(100% - 24px); }
  .sep { height: 112px; }
  .compare + .sep { height: 96px; }

  /* type scale */
  .h1, .h1.warm, .tcard.more .t, .req-text .t { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
  .h2 { font-size: 18px; line-height: 24px; letter-spacing: -0.18px; }
  .lead { font-size: 18px; line-height: 26px; letter-spacing: -0.18px; }
  .body, .list li { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; }
  .list { gap: 8px; }
  .list li { gap: 12px; }
  /* same height as the sticky header */
  .btn-wide { height: 64px; padding: 0 24px; border-radius: 999px; font-size: 16px; line-height: 20px; letter-spacing: -0.16px; }

  /* hero: image moves into the flow between tags and heading */
  .hero { min-height: 676px; border-radius: 24px; display: flex; flex-direction: column; gap: 18px; padding: 24px 18px; }
  .hero-content { display: contents; }
  .hero-content > *, .hero-3d { position: relative; }
  .hero-tags { order: 0; gap: 4px 6px; font-size: 12px; line-height: 16px; letter-spacing: -0.12px; }
  .hero-3d { order: 1; align-self: center; left: auto; top: auto; width: 300px; height: 278px; transform: none; margin: 0; }
  .hero h1, .hero-list, .hero-cta { order: 2; }
  .hero h1 { width: auto; font-size: 24px; line-height: 32px; letter-spacing: -0.24px; }
  .hero-list { font-size: 14px; line-height: 20px; letter-spacing: -0.14px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }

  /* about + clients */
  .about { padding-top: 48px; gap: 32px; }
  .about-text { font-size: 24px; line-height: 32px; letter-spacing: -0.24px; }
  .clients-label { font-size: 14px; line-height: 20px; letter-spacing: -0.14px; }
  /* 360 mockup: rows of 2 + 2 + 3; ::before / ::after are the line breaks */
  .logos { gap: 24px 0; }
  .logos::before { order: 3; }
  .logos::after { content: ""; flex-basis: 100%; order: 6; }
  .logos > :nth-child(1) { order: 1; }
  .logos > :nth-child(3) { order: 2; zoom: 0.878; }
  .logos > :nth-child(2) { order: 4; zoom: 0.922; }
  .logos > :nth-child(6) { order: 5; zoom: 0.925; }
  .logos > :nth-child(4) { order: 7; }
  .logos > :nth-child(7) { order: 8; }
  .logos > :nth-child(5) { order: 9; }

  /* compare */
  .compare { gap: 24px; }
  .card { padding: 18px; }

  /* tasks + security cards */
  .tasks, .sec, .agent, .press, .price, .video, .faq { gap: 24px; }
  .tasks-head { gap: 12px; }
  .grid3 { grid-template-columns: 1fr; gap: 10px; }
  .tcard-top { height: 80px; }
  .tcard-ico { height: 80px; padding: 0 16px; }
  .tcard-ico .ico, .tcard-ico .rot { zoom: 0.658; }
  .tcard-body { padding: 18px; }
  .tcard-text { gap: 8px; }
  .sec .tcard-text { gap: 12px; }
  .pills { flex-direction: row; }
  .pill { font-size: 12px; line-height: 20px; letter-spacing: -0.12px; }
  .tcard.more { justify-content: flex-start; gap: 24px; }
  .tcard.more .lead { margin-top: 8px; }

  /* video */
  .play { transform: translate(-50%, -50%) scale(0.645); }

  /* agent */
  .agent-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .chat { padding: 18px; }
  .msg-user { width: 100%; max-width: 465px; }

  /* press */
  .press-card { padding: 18px; gap: 24px; }
  .press-card .q { font-size: 40px; line-height: 48px; }
  .press-card .meta { font-size: 12px; line-height: 16px; letter-spacing: -0.12px; }
  .press-card .lead { font-size: 18px; line-height: 26px; }
  .br-desk { display: none; }
  .row2 { gap: 12px; }

  /* pricing */
  .price-main { flex-direction: column; gap: 24px; padding: 18px; }
  .price-main .val { width: auto; gap: 0; }
  .price-main .per { font-size: 12px; line-height: 24px; letter-spacing: -0.12px; }
  .price-alt { padding: 18px; }
  .plans { flex-direction: column; }
  .plan { width: 100%; padding: 18px; gap: 24px; justify-content: flex-start; }
  .plan > div { gap: 8px; }
  .plan a { font-size: 14px; line-height: 16px; letter-spacing: -0.14px; }

  /* request form */
  .req { padding: 18px; gap: 24px; }
  .req-text { gap: 12px; }
  .req-text .ps { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; }
  .fields-pair { flex-direction: column; gap: 0; }
  .check { white-space: normal; align-items: flex-start; }

  /* faq */
  .faq { padding-bottom: 56px; }
  .faq-box { padding: 18px; }
  .qa summary { font-size: 18px; line-height: 24px; letter-spacing: -0.18px; }
  .qa .ans .body { font-size: 16px; line-height: 24px; }
  .limits { font-size: 12px; line-height: 16px; letter-spacing: -0.12px; }
  .limits th { white-space: normal; }

  /* footer */
  .footer { padding: 50px; }
  .footer-top { display: flex; flex-direction: column; gap: 24px; }
  .footer-contact { font-size: 18px; line-height: 24px; }
  .footer-col { width: auto; gap: 8px; font-size: 12px; line-height: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 48px; }
  .footer-legal { width: auto; font-size: 12px; line-height: 16px; }
}

/* ================= Mobile 480 (Figma 652:39070), on top of the 360 rules ================= */
@media (min-width: 480px) and (max-width: 679px) {
  .hero { min-height: 607px; }
  .hero h1 { order: 1; }
  .hero-3d { order: 2; align-self: center; width: 282px; height: 261px; }
  .hero-list, .hero-cta { order: 3; }
  .hero-cta { flex-direction: row; }


  /* logos: 2 + 4 + 1 (ОТП, Билайн / Сбер, Райффайзен, А101, W / ФСК) */
  .logos > :nth-child(1) { order: 1; }
  .logos > :nth-child(2) { order: 2; }
  .logos::before { order: 3; }
  .logos > :nth-child(6) { order: 4; }
  .logos > :nth-child(4) { order: 5; }
  .logos > :nth-child(7) { order: 6; }
  .logos > :nth-child(5) { order: 7; }
  .logos::after { order: 8; }
  .logos > :nth-child(3) { order: 9; }
}

/* cookie banner on mobile (Figma 675:45327): full width with 12px gutters, smaller copy */
@media (max-width: 679px) {
  .cookie { left: 12px; right: 12px; width: auto; max-width: none; }
  .cookie-text { font-size: 12px; line-height: 16px; letter-spacing: -0.12px; }
}
