/* ==========================================================
   AR Web Studio: основные стили
   ========================================================== */

:root {
  --bg: #fafaf7;
  --bg-tint: #f1f0ea;
  --surface: #ffffff;
  --ink: #0e0f13;
  --ink-2: #2a2c35;
  --muted: #6b6d78;
  --line: #e6e4dc;
  --accent: #6a5cff;
  --accent-deep: #4b3ee0;
  --accent-soft: #ecebff;
  --hot: #ff6b3d;
  --green: #1fbf75;

  --dark: #0e0f13;
  --dark-2: #171820;
  --dark-line: #262833;
  --dark-muted: #9a9cab;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", var(--font);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 15, 19, .04), 0 8px 24px -8px rgba(14, 15, 19, .08);
  --shadow-lg: 0 24px 60px -20px rgba(30, 20, 90, .25);
  --container: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.muted { color: var(--muted); font-weight: 500; }

.accent-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--hot) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  font: 700 15px/1.2 var(--font);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(106, 92, 255, .8);
}
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 14px 30px -10px rgba(106, 92, 255, .9); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(250, 250, 247, .75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.header.is-scrolled { border-color: var(--line); background: rgba(250, 250, 247, .9); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

/* Логотип: знак AR на плашке + название студии */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo__mark {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px; /* для тени: совпадает с rx плашки */
  box-shadow: 0 8px 18px -8px rgba(106, 92, 255, .7);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 12px 24px -8px rgba(255, 107, 61, .6); }
.logo__dot { transform-box: fill-box; transform-origin: center; }
.logo:hover .logo__dot { animation: dot-blink 1s steps(2, jump-none) infinite; }
@keyframes dot-blink { 50% { opacity: 0; } }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text b { font: 700 17px var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.logo__text small {
  margin-top: 4px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.logo--light { color: #fff; }
.logo--light .logo__text small { color: var(--dark-muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s ease;
}
.nav a:not(.btn):hover { background: rgba(14, 15, 19, .06); }
.nav__cta { display: none; }
.header__cta { margin-left: 8px; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Общие секции ---------- */
.section { padding: 110px 0; position: relative; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .section__lead, .section--dark p { color: var(--dark-muted); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head--left { text-align: left; margin: 0; }
.section__head h2, .about h2, .contact h2 {
  font: 600 clamp(28px, 4vw, 44px)/1.15 var(--font-display);
  letter-spacing: -.02em;
}
.section__lead { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section__lead a { color: var(--accent); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.section--dark .eyebrow { color: #a79fff; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31, 191, 117, .2); animation: pulse 2s infinite; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(31, 191, 117, 0); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 100px;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 40% at 75% 30%, rgba(106, 92, 255, .22), transparent 70%),
    radial-gradient(30% 30% at 90% 60%, rgba(255, 107, 61, .16), transparent 70%),
    radial-gradient(35% 35% at 10% 10%, rgba(31, 191, 117, .10), transparent 70%);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__title {
  font: 700 clamp(40px, 6.4vw, 80px)/1.02 var(--font-display);
  letter-spacing: -.035em;
}
.hero__lead { margin-top: 24px; max-width: 520px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font: 600 24px var(--font-display); letter-spacing: -.02em; }
.hero__facts span { font-size: 14px; color: var(--muted); }

/* Иллюстрация: макет сайта + плавающие карточки */
.hero__visual { position: relative; padding: 30px 20px 40px; }
.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform .6s ease;
}
.hero__visual:hover .mock { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #f4f3ee; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e0ded6; }
.mock__bar i:nth-child(1) { background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__bar span { margin-left: 12px; padding: 3px 14px; border-radius: 6px; background: #fff; font-size: 12px; color: var(--muted); }
.mock__body { padding: 20px; }
.mock__nav { display: flex; align-items: center; gap: 10px; }
.mock__nav b { width: 70px; height: 12px; border-radius: 6px; background: var(--ink); }
.mock__nav span { width: 38px; height: 8px; border-radius: 4px; background: #e8e6df; }
.mock__nav span:first-of-type { margin-left: auto; }
.mock__nav em { width: 64px; height: 24px; border-radius: 999px; background: var(--accent); }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 26px; }
.mock__lines { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.mock__lines b { height: 16px; border-radius: 6px; background: var(--ink); }
.mock__lines b:nth-child(2) { width: 75%; }
.mock__lines span { height: 8px; border-radius: 4px; background: #e8e6df; }
.mock__lines span:nth-of-type(2) { width: 85%; }
.mock__lines em { width: 110px; height: 30px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--hot)); }
.mock__img {
  aspect-ratio: 1 / .9; border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .5), transparent 40%),
    linear-gradient(135deg, #b9b1ff, #ff9f7f);
}
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.mock__cards div { height: 58px; border-radius: 10px; background: #f4f3ee; border: 1px solid var(--line); }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 14px; }
.float-card span { color: var(--muted); }
.float-card__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e6f8ef; color: var(--green); }
.float-card--lead { left: -12px; bottom: 34px; }
.float-card--stat { right: -6px; top: 0; flex-direction: column; align-items: stretch; gap: 8px; animation-delay: -2s; }
.float-card--speed { right: 18px; bottom: -4px; gap: 6px; animation-delay: -4s; }
.float-card--speed .icon { color: var(--hot); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.bars i { width: 12px; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--accent), #a79fff); }
.bars i:last-child { background: linear-gradient(to top, var(--hot), #ffb199); }

@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 32px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d6d2ff; }
.service__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.service__icon .icon { width: 24px; height: 24px; }
.service h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; }

/* ---------- Обо мне ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__photo { position: relative; }
.avatar {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(145deg, var(--accent) 0%, #8f5bff 45%, var(--hot) 100%);
  box-shadow: 0 40px 80px -30px rgba(106, 92, 255, .6);
}
/* Декоративные кольца за знаком */
.avatar::before, .avatar::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .22);
  transform: translate(-50%, -50%);
}
.avatar::before { width: 78%; aspect-ratio: 1; }
.avatar::after { width: 112%; aspect-ratio: 1; border-style: dashed; border-color: rgba(255, 255, 255, .16); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.glyph { position: relative; z-index: 1; width: 58%; height: auto; filter: drop-shadow(0 18px 30px rgba(40, 10, 90, .35)); }
/* Буквы «прорисовываются», когда блок появляется на экране */
.glyph path { stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .about__photo:not(.is-visible) .glyph path { stroke-dashoffset: 60; }
.js .about__photo .glyph path { transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) .3s; }
.js .about__photo .glyph path:nth-child(2) { transition-delay: .6s; }
.js .about__photo .glyph path:nth-child(3) { transition-delay: .9s; }
.glyph__dot { transform-box: fill-box; transform-origin: center; animation: dot-pulse 2.4s ease-in-out 2s infinite; }
@keyframes dot-pulse { 50% { transform: scale(1.6); } }
.about__badge {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(14, 15, 19, .7); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 700; color: #fff;
}
.about__role { margin: 8px 0 24px; font-weight: 700; color: #c9c4ff !important; }
.about__content > p + p { margin-top: 14px; }
.principles { display: grid; gap: 12px; margin: 28px 0; }
.principles li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.principles .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 3; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { padding: 6px 14px; border: 1px solid var(--dark-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: #d8d8e0; background: var(--dark-2); }

/* ---------- Работы ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work__cover {
  position: relative;
  display: grid; place-items: center;
  min-height: 220px;
  padding: 28px 24px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .28), transparent 42%),
    radial-gradient(circle at 90% 110%, rgba(0, 0, 0, .25), transparent 50%),
    linear-gradient(140deg, var(--from), var(--to));
}
.work__cover::before {
  /* лёгкая сетка поверх градиента */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}
.work__emblem {
  position: relative;
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 28px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .4);
  transition: transform .4s ease;
}
.work__emblem .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.work:hover .work__emblem { transform: scale(1.06) rotate(-4deg); }
/* Вариант со скриншотом: окно браузера на цветном фоне */
.work__cover--shot { display: block; padding: 28px 28px 0; }
.work__window {
  position: relative; z-index: 1;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 -4px 40px -8px rgba(0, 0, 0, .35);
  transition: transform .4s ease;
}
.work:hover .work__window { transform: translateY(-6px); }
.work__bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1f0ec; }
.work__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d6ce; }
.work__bar i:nth-child(1) { background: #ff5f57; }
.work__bar i:nth-child(2) { background: #febc2e; }
.work__bar i:nth-child(3) { background: #28c840; }
.work__window img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work__chips { margin-bottom: 14px; }
.work__stack { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.work__stack li { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .22); backdrop-filter: blur(4px); }

.work__info { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px 26px 28px; }
.work__info h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 12px 0 10px; }
.work__summary { color: var(--muted); font-size: 15.5px; }
.work__highlights { display: grid; gap: 8px; margin: 18px 0 22px; }
.work__highlights li { display: flex; gap: 10px; font-size: 15px; font-weight: 500; }
.work__highlights .icon { margin-top: 3px; color: var(--green); stroke-width: 3; }
.work__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.work__private { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.work--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; }
.work--wide .work__cover { min-height: 100%; }
.work--wide .work__emblem { width: 120px; height: 120px; border-radius: 34px; }
.work--wide .work__emblem .icon { width: 56px; height: 56px; }
.work--wide .work__info { padding: 36px 40px; }
.work--wide h3 { font-size: 26px; }

.badge {
  display: inline-block; padding: 4px 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--hot); background: #fff0ea; border-radius: 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-tint); border-radius: 999px; }

.work--cta {
  align-items: center; justify-content: center; text-align: center; gap: 14px;
  padding: 40px;
  border: 2px dashed #cfccf7;
  background: linear-gradient(160deg, #fbfaff, #f4f2ff);
  box-shadow: none;
}
.work--cta h3 { font: 600 22px var(--font-display); letter-spacing: -.01em; }
.work--cta p { max-width: 340px; color: var(--muted); }
.work--cta .btn { margin-top: 8px; }
.work--cta__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; }
.work--cta__icon .icon { width: 28px; height: 28px; }

/* ---------- Цены ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.plan h3 { font: 600 24px var(--font-display); }
.plan__text { margin-top: 10px; color: var(--muted); min-height: 54px; }
.plan__price { margin-top: 26px; font: 700 clamp(26px, 2.6vw, 36px) var(--font-display); white-space: nowrap; letter-spacing: -.03em; }
.plan__term { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { display: grid; gap: 12px; margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li .icon { margin-top: 3px; color: var(--green); stroke-width: 3; }
.plan--featured {
  background: var(--dark); color: #fff; border-color: var(--dark);
  box-shadow: 0 30px 60px -24px rgba(106, 92, 255, .55);
  transform: translateY(-12px);
}
.plan--featured .plan__text, .plan--featured .plan__term { color: var(--dark-muted); }
.plan--featured ul { border-color: var(--dark-line); }
.plan--featured li .icon { color: #8dffc6; }
.plan__tag {
  position: absolute; top: -13px; left: 32px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--hot));
}
.plans__note { margin-top: 32px; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- Процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::after {
  content: ""; position: absolute; top: 44px; right: -17px; z-index: 1;
  width: 18px; height: 2px; background: var(--line);
}
.step:last-child::after { display: none; }
.step__num { display: block; margin-bottom: 18px; font: 700 28px var(--font-display); color: var(--accent); letter-spacing: -.03em; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
.step__term { display: inline-block; margin-top: 16px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 30px; }
.review__stars { display: flex; gap: 2px; color: #ffb020; }
.review__stars .icon { fill: currentColor; }
.review blockquote { margin: 16px 0 20px; }
.review figcaption b { display: block; }
.review figcaption span { font-size: 14px; color: var(--muted); }

.first-client {
  display: flex; align-items: center; gap: 32px;
  max-width: 960px; margin: 0 auto;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.first-client__icon { display: grid; place-items: center; flex-shrink: 0; width: 72px; height: 72px; border-radius: 20px; background: #fff0ea; color: var(--hot); }
.first-client__icon .icon { width: 32px; height: 32px; }
.first-client h3 { font: 600 22px var(--font-display); margin-bottom: 8px; }
.first-client p { color: var(--muted); }
.first-client b { color: var(--ink); }
.first-client .btn { flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item[open] { border-color: #d6d2ff; box-shadow: var(--shadow); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px;
  font-size: 17px; font-weight: 700;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-tint); transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__answer { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Контакты и форма ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { display: grid; gap: 6px; margin-top: 36px; }
.contact__list a, .contact__list span {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 0;
  font-size: 18px; font-weight: 600; color: #fff;
  transition: color .2s ease;
}
.contact__list a:hover { color: #a79fff; }
.contact__list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--dark-2); border: 1px solid var(--dark-line); }

.form {
  display: grid; gap: 16px;
  padding: 36px;
  background: var(--surface); color: var(--ink);
  border-radius: 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: 500 16px var(--font);
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6d78' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(106, 92, 255, .15);
}
.field.is-invalid input { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.form .section--dark p, .form p { color: var(--muted); }
.form__status { min-height: 1.4em; font-size: 15px; font-weight: 600; text-align: center; }
.form__status.is-ok { color: var(--green) !important; }
.form__status.is-error { color: #e5484d !important; }
.form__note { font-size: 13px; text-align: center; }
.form button[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал ---------- */
.footer { padding: 36px 0; background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-line); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--dark-2); color: #fff; transition: background-color .2s ease; }
.footer__social a:hover { background: var(--accent); }

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .25s ease;
}
.fab:hover { transform: scale(1.08); }
.fab .icon { width: 28px; height: 28px; }

/* ---------- 404 ---------- */
.notfound { position: relative; min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; overflow: hidden; }
.notfound__logo { margin-bottom: 24px; }
.notfound .notfound__code { color: transparent; background: linear-gradient(100deg, var(--accent), #9b5cf6 50%, var(--hot)); -webkit-background-clip: text; background-clip: text; }
.notfound__code { font: 700 clamp(100px, 20vw, 200px)/1 var(--font-display); letter-spacing: -.05em; }
.notfound h1 { font: 600 28px var(--font-display); }
.notfound p { color: var(--muted); max-width: 420px; margin-bottom: 12px; }

/* ---------- Анимация появления ---------- */
/* Прячем элементы только если JS точно работает (класс .js ставится в <head>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .header__cta { display: none; }
}

@media (max-width: 960px) {
  .section { padding: 84px 0; }
  .hero__inner, .about, .contact, .faq-wrap { grid-template-columns: 1fr; }
  .hero__inner { gap: 40px; }
  .hero__visual { max-width: 560px; }
  .services, .plans, .reviews { grid-template-columns: 1fr 1fr; }
  .plan--featured { transform: none; }
  .about { gap: 40px; }
  .about__photo { max-width: 360px; }
  .faq-wrap { gap: 32px; }
  .faq-wrap .section__head { position: static; }

  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .2);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .nav__cta { display: inline-flex; margin-top: 12px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section__head { margin-bottom: 40px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { gap: 16px 28px; }
  .hero__visual { padding: 20px 4px 30px; }
  .float-card--lead { left: -4px; }
  .float-card--stat { display: none; }
  .services, .plans, .reviews, .works, .steps { grid-template-columns: 1fr; }
  .work--wide { grid-template-columns: 1fr; }
  .work--wide .work__cover { min-height: 220px; }
  .work--wide .work__info, .work__info { padding: 22px 20px 24px; }
  .service, .plan { padding: 28px 24px; }
  .form { padding: 24px 20px; border-radius: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .first-client { flex-direction: column; text-align: center; padding: 32px 24px; }
  .contact__list a, .contact__list span { font-size: 16px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
