/* =========================================================
   CreativeLabs — общие стили (шапка, подвал, кнопки, форма)
   Mobile-first. Десктоп — от 1100px.
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #0d0d1a;
  --muted: #5a5a7a;
  --subtle: #9494b0;
  --faint: #c4c4d6;
  --line: #e0e0e0;
  --violet: #6c4eff;
  --blue: #4b7bff;
  --violet-soft: #f0eeff;
  --violet-line: #ddd7ff;
  --violet-light: #a78bff;
  --dark: #0d0d1a;
  --dark-2: #13102a;
  --dark-3: #0b0919;
  --green: #16a34a;
  --green-soft: #eaf6ee;
  --green-bright: #4ade80;
  --amber: #e8922b;
  --amber-soft: #fcf1e6;
  --grad: linear-gradient(90deg, #6c4eff 0%, #4b7bff 100%);
  --grad-135: linear-gradient(135deg, #6c4eff 0%, #4b7bff 100%);

  --shadow-sm: 0 1px 2px rgba(13, 13, 26, .04), 0 4px 12px rgba(13, 13, 26, .04);
  --shadow-card: 0 1px 2px rgba(13, 13, 26, .04), 0 12px 32px rgba(13, 13, 26, .06);
  --shadow-btn: 0 8px 32px rgba(108, 78, 255, .35);
  --shadow-icon: 0 6px 16px rgba(108, 78, 255, .35);

  --container: 1120px;
  --container-wide: 1548px;
  --gutter: 20px;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--container-wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1em; height: 1em; flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-violet { color: var(--violet); }
.text-violet-light { color: var(--violet-light); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 22px;
  border: 0; border-radius: 999px;
  font-size: 13px; line-height: 17px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  text-align: center; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn .icon { font-size: 16px; }
.btn-lg { min-height: 60px; padding: 18px 32px; font-size: 15px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(108, 78, 255, .45); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--violet-line); }
.btn-upper { text-transform: uppercase; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 12px 24px; font-size: 13px; letter-spacing: .8px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff;
  background: var(--grad-135); box-shadow: var(--shadow-icon);
}
.logo-mark .icon { font-size: 22px; }
.logo b { font-weight: 800; color: var(--violet); }

.nav { display: none; }
.header-phone { display: none; }

.burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.burger .icon { font-size: 22px; }

/* Мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: #0a0a14; color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: var(--gutter); flex: none; }
.menu-top .logo { color: #fff; }
.menu-top .logo b { color: var(--violet-light); }
.menu-close {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.menu-close .icon { font-size: 22px; }
.menu-links { display: flex; flex-direction: column; gap: 4px; padding: 24px var(--gutter) 8px; }
.menu-links a { display: block; padding: 10px 0; font-size: 28px; font-weight: 500; letter-spacing: -.3px; }
.menu-links a[aria-current="page"] { color: var(--violet-light); }
.menu-contact { margin-top: auto; padding: 24px var(--gutter) 32px; color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.55; }
.menu-contact p { max-width: 340px; }
.menu-contact .menu-phone { display: inline-block; margin-top: 16px; color: var(--violet-light); font-weight: 700; font-size: 16px; }
.menu-contact .btn { margin-top: 20px; }

/* ---------- Общие блоки секций ---------- */
.section { padding-block: 56px; }
.section-head { text-align: center; max-width: 1000px; margin-inline: auto; }
.section-head .lead { margin: 20px auto 0; max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--violet-line); background: var(--violet-soft); color: var(--violet);
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.eyebrow .icon { font-size: 14px; }
.eyebrow-dark { background: rgba(108, 78, 255, .18); border-color: rgba(167, 139, 255, .28); color: var(--violet-light); }

.h2 {
  margin-top: 20px; font-size: 30px; line-height: 34px; font-weight: 900; letter-spacing: -1.1px; text-wrap: balance;
}
.d { display: none; }
.lead { font-size: 15px; line-height: 24px; color: var(--muted); text-wrap: pretty; }

.icon-badge {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: #fff;
  background: var(--grad-135); box-shadow: var(--shadow-icon);
}
.icon-badge .icon { font-size: 22px; }

/* ---------- Финален призив и центрирана кнопка (общие) ---------- */
.center { display: flex; justify-content: center; margin-top: 28px; }
.final-wrap { padding-block: 24px 0; }
.final { padding: 40px 20px; text-align: center; color: #fff; background: var(--dark); border-radius: 28px; }
.final h2 { max-width: 880px; margin: 22px auto 0; font-size: 30px; line-height: 35px; font-weight: 900; letter-spacing: -.9px; text-wrap: balance; }
.final p { max-width: 640px; margin: 20px auto 0; font-size: 15px; line-height: 24px; color: rgba(205, 200, 235, .62); }
.final .btn { margin-top: 28px; width: 100%; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--dark); color: #fff; margin-top: 64px; }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 40px 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-top .logo { font-size: 22px; }
.footer-top .logo b { color: var(--violet-light); }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-col h3 { font-size: 14px; line-height: 20px; font-weight: 700; margin-bottom: 18px; }
.footer-col li + li { margin-top: 14px; }
.footer-col a, .footer-col span { color: rgba(255, 255, 255, .62); font-size: 15px; line-height: 20px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-links a::before { content: "›"; display: inline-block; margin-right: 6px; color: var(--violet-light); font-weight: 600; }
.footer-contacts li { display: flex; align-items: center; gap: 10px; }
.footer-contacts .icon { font-size: 16px; color: var(--violet-light); }
.footer-contacts strong { color: rgba(255, 255, 255, .78); font-weight: 700; }
.footer-contacts .link-accent { color: var(--violet-light); font-weight: 500; }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; padding-block: 28px 36px; font-size: 14px; color: rgba(255, 255, 255, .45); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Модальное окно с формой ---------- */
.modal {
  width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; margin: auto;
  border: 0; border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(13, 13, 26, .45);
}
.modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal::backdrop { background: rgba(13, 13, 26, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-body { position: relative; padding: 44px 20px 24px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); transition: background-color .2s, color .2s;
}
.modal-close:hover { background: var(--violet-soft); color: var(--violet); }
.modal-close .icon { font-size: 18px; }
.modal h2 { font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: -.5px; text-align: center; text-wrap: balance; }
.form { margin-top: 26px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field input {
  width: 100%; height: 58px; padding: 0 24px; border: 1px solid #d4d4dc; border-radius: 999px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #9a9aac; opacity: 1; }
.field input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108, 78, 255, .14); }
.field input[aria-invalid="true"] { border-color: #d64545; }
.field-error { padding-left: 24px; font-size: 13px; line-height: 18px; color: #d64545; }
.phone { position: relative; }
.phone-prefix {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px;
  font-size: 16px; color: var(--ink); pointer-events: none;
}
.phone input { padding-left: 98px; }
.flag-bg {
  width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(13, 13, 26, .12);
  background: linear-gradient(#fff 0 33.4%, #00966e 33.4% 66.7%, #d62612 66.7%);
}
.form .btn { margin-top: 6px; }
.form-note { font-size: 12.5px; line-height: 18px; color: var(--subtle); text-align: center; }
.form-note a { color: var(--violet); text-decoration: underline; }
.form-status { font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; color: #d64545; }
.form-status a { text-decoration: underline; }
.form.is-sending .btn { opacity: .7; pointer-events: none; }
.modal-done { text-align: center; padding: 8px 0 4px; outline: 0; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.done-icon .icon { font-size: 32px; }
.modal-done h2 { margin-top: 18px; }
.modal-done p { margin: 12px auto 0; max-width: 380px; font-size: 15px; line-height: 23px; color: var(--muted); }
.modal-done p a { color: var(--violet); font-weight: 600; white-space: nowrap; }
.modal-done .btn { margin-top: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Виджет WhatsApp ---------- */
.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px;
  transition: transform .2s ease;
}
.wa:hover { transform: translateY(-2px); }
.wa-label {
  display: none; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink);
  font-size: 12px; line-height: 15px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; text-align: right;
  box-shadow: 0 8px 28px rgba(13, 13, 26, .14);
}
.wa-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff;
  background: #25d366; box-shadow: 0 10px 28px rgba(37, 211, 102, .42);
}
.wa-icon .icon { font-size: 28px; }
body.menu-open .wa, body.modal-open .wa { display: none; }

/* ---------- Анимация появления ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Планшет ---------- */
@media (min-width: 700px) {
  .center { margin-top: 32px; }
  .final .btn { width: auto; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .btn { padding-inline: 28px; font-size: 14px; line-height: 18px; letter-spacing: .9px; }
  .btn-sm { padding-inline: 24px; font-size: 13px; letter-spacing: .8px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .modal-body { padding: 56px 56px 40px; }
  .modal h2 { font-size: 32px; line-height: 40px; letter-spacing: -.8px; }
  .form { margin-top: 32px; gap: 16px; }
  .field input { height: 62px; }
  .wa { right: 24px; bottom: 24px; }
  .wa-label { display: block; }
  .wa-icon { width: 64px; height: 64px; border-radius: 18px; }
  .wa-icon .icon { font-size: 32px; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 1100px) {
  :root { --header-h: 76px; --gutter: 24px; }
  .burger, .menu { display: none; }
  .nav { display: flex; align-items: center; gap: 32px; margin-inline: auto; font-size: 15px; font-weight: 500; color: var(--muted); }
  .nav a { position: relative; padding: 6px 0; transition: color .2s; }
  .nav a:hover { color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--violet); font-weight: 600; }
  .header-phone {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: 14px; font-weight: 700; letter-spacing: .2px;
  }
  .header-phone .icon { font-size: 15px; color: var(--violet); }
  .logo { font-size: 22px; }
  .logo-mark { width: 40px; height: 40px; }

  .section { padding-block: 72px; }
  .h2 { font-size: 52px; line-height: 56px; letter-spacing: -1.4px; text-wrap: initial; }
  .d { display: inline; }
  .lead { font-size: 16px; line-height: 24px; }

  .center { margin-top: 40px; }
  .final-wrap { padding-block: 40px 0; }
  .final { padding: 72px 48px 76px; border-radius: 32px; }
  .final h2 { margin-top: 28px; font-size: 48px; line-height: 58px; letter-spacing: -1.3px; }
  .final p { margin-top: 26px; font-size: 16px; }
  .final .btn { margin-top: 36px; min-height: 60px; padding-inline: 40px; }

  .site-footer { margin-top: 80px; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 40px; }
  .footer-cols { grid-template-columns: 1fr 1.2fr 1fr 1fr; padding-block: 36px 40px; }
}

/* ---------- Страница 404 ---------- */
.nf { padding-block: 96px 40px; text-align: center; }
.nf-code { font-size: 96px; line-height: 1; font-weight: 900; letter-spacing: -3px; }
.nf h1 { margin-top: 16px; font-size: 30px; line-height: 38px; font-weight: 900; letter-spacing: -.8px; }
.nf .lead { max-width: 520px; margin: 16px auto 0; }
.nf-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 360px; margin: 32px auto 0; }
@media (min-width: 768px) { .nf-actions { flex-direction: row; justify-content: center; max-width: none; } }
