/* AUTO-START — стили лендинга. Цвета и размеры вынесены в переменные, чтобы правка бренда была в одном месте. */
/* Шрифты лежат рядом с сайтом (папка fonts): страница не зависит от сторонних серверов. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/montserrat-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/montserrat-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-latin.woff2") format("woff2"); 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 {
  --navy: #0f1c33;
  --navy-2: #16284a;
  --orange: #ff6a1a;
  --orange-2: #ff8a3d;
  --green: #22b35e;
  --blue: #2f7df6;
  --purple: #7b4dff;
  --text: #1b2333;
  --muted: #6b7486;
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #e3e8f0;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 28, 51, .08);
  --shadow-hover: 0 14px 34px rgba(15, 28, 51, .16);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }
.c-orange { color: var(--orange); }
.c-navy { color: var(--navy); }
.c-blue { color: var(--blue); }
.c-purple { color: var(--purple); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; color: #fff; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--orange { background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 8px 22px rgba(255, 106, 26, .35); }
.btn--green { background: var(--green); box-shadow: 0 8px 22px rgba(34, 179, 94, .3); }
.btn--lg { padding: 14px 30px 14px 22px; font-size: 1.05rem; }
.btn--lg .ico { width: 30px; height: 30px; padding: 6px; background: rgba(255, 255, 255, .2); border-radius: 50%; }
.btn span { display: flex; flex-direction: column; line-height: 1.2; }
.btn small { font-weight: 500; font-size: .75rem; opacity: .85; }

.hand { font-family: var(--hand); font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--navy); transform: rotate(-6deg); display: inline-block; }
.hand--light { color: #fff; }
.badge { display: inline-block; background: var(--orange); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 8px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .2); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__icon { width: 52px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 1.35rem; font-weight: 900; letter-spacing: .01em; }
.logo__text b span { color: var(--orange); }
.logo__text small { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .88rem; font-weight: 600; }
.nav a { position: relative; padding: 6px 0; opacity: .9; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.nav__phone { display: none; }
.header__info, .header__phone { display: flex; align-items: center; gap: 10px; }
.header__info span, .header__phone span { display: flex; flex-direction: column; line-height: 1.15; }
.header__info b, .header__phone b { font-size: 1.05rem; }
.header__info small, .header__phone small { font-size: .7rem; opacity: .75; }
.header__info .ico { width: 30px; height: 30px; }
.header__phone .ico { width: 36px; height: 36px; padding: 8px; color: #fff; background: var(--orange); border-radius: 50%; }
.burger { display: none; width: 44px; height: 44px; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }

/* Первый экран */
.hero { position: relative; overflow: hidden; background: #eef3fa; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(244, 247, 251, .97) 0%, rgba(244, 247, 251, .9) 38%, rgba(244, 247, 251, 0) 65%); }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 600px; padding: 48px 0 56px; }
.hero__content { max-width: 720px; align-self: center; }
.hero__title, .hero__sub { max-width: 620px; }
.hero__title { margin: 16px 0 12px; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; color: var(--navy); }
.hero__title span { display: block; color: var(--orange); font-size: .82em; margin-top: 6px; }
.hero__sub { font-size: 1.15rem; font-weight: 600; margin-bottom: 24px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 28px; }
.hero__features li { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.hero__features .ico { color: var(--orange); width: 26px; height: 26px; }
.hero__features span { display: flex; flex-direction: column; line-height: 1.2; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-bottom: 40px; }
.price-tag { position: relative; display: flex; flex-direction: column; padding: 10px 20px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 8px 22px rgba(255, 106, 26, .35); line-height: 1.1; }
.price-tag small { font-weight: 700; text-transform: uppercase; font-size: .72rem; }
.price-tag b { font-size: 1.9rem; font-weight: 900; }
.price-tag .hand { position: absolute; left: 10px; top: calc(100% + 10px); white-space: nowrap; font-size: 1.15rem; }
.hero__card { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: .8rem; max-width: 280px; }
.hero__card span { display: flex; flex-direction: column; }
.hero__card b { color: var(--navy); font-size: .95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 179, 94, .6); } 100% { box-shadow: 0 0 0 12px rgba(34, 179, 94, 0); } }

/* Секции и карточки */
.section { padding: 64px 0 24px; }
.section--tight { padding: 28px 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__sub { color: var(--muted); margin: 8px 0 24px; font-size: .92rem; }
.hand--note { margin-bottom: 20px; font-size: 1.2rem; text-align: right; }
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card--problem:hover, .card--service:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(255, 106, 26, .4); }
.card__ico { width: 36px; height: 36px; flex: none; }
.card--problem h3 { margin: 16px 0 6px; }
.card--problem p, .card--service p, .step p { color: var(--muted); font-size: .82rem; }
.card--service { display: flex; gap: 14px; align-items: flex-start; }
.card--service h3 { font-size: .92rem; margin-bottom: 6px; }

/* Тёмный блок */
.dark-block { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: var(--shadow-hover); }
.dark-block__text { padding: 40px; }
.dark-block__text h2 { color: #fff; margin-bottom: 10px; }
.dark-block__text > p { opacity: .85; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 18px 0; }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist .ico, .price-block__list .ico { color: var(--orange); }
.dark-block__strong { font-weight: 700; margin-bottom: 22px; }
.dark-block__img { position: relative; min-height: 280px; }
.dark-block__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dark-block__img .hand { position: absolute; top: 24px; right: 28px; font-size: 1.6rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }

/* Шаги */
.steps { counter-reset: none; }
.step { position: relative; }
.step__num { position: absolute; top: 18px; left: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: .8rem; }
.step .card__ico { margin-left: 46px; }
.step h3 { margin: 14px 0 6px; }
.step__arrow { position: absolute; top: 26px; right: 18px; width: 18px; height: 18px; color: var(--muted); }

/* Цена */
.price-block { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; padding: 36px 40px; border-radius: 20px; background: linear-gradient(120deg, #e7f0fd 0%, #d6e6fb 100%); border: 1px solid #cfe0f7; overflow: hidden; }
.price-block::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 360px; height: 140px; background: linear-gradient(160deg, transparent 40%, rgba(47, 125, 246, .18) 40%), linear-gradient(200deg, transparent 45%, rgba(47, 125, 246, .12) 45%); pointer-events: none; }
.price-block__label { font-weight: 800; text-transform: uppercase; color: var(--navy); font-size: 1.1rem; }
.price-block__price { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; color: var(--navy); text-transform: uppercase; line-height: 1.1; }
.price-block__area { font-weight: 700; margin: 6px 0 14px; }
.price-block__note { color: var(--muted); font-size: .85rem; max-width: 320px; }
.price-block__list { display: grid; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.price-block__list li { display: flex; align-items: center; gap: 10px; }
.price-block__hand { position: absolute; top: 24px; right: 32px; z-index: 1; }

/* Преимущества */
.why { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.why__item { display: flex; align-items: center; gap: 10px; padding: 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: .74rem; color: var(--muted); transition: transform .25s, box-shadow .25s; }
.why__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why__item span { display: flex; flex-direction: column; line-height: 1.25; }
.why__item b { color: var(--navy); font-size: .88rem; }

/* Работы */
.works { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.work { margin: 0; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: transform .35s, box-shadow .35s; }
.work:hover img { transform: scale(1.04); box-shadow: var(--shadow-hover); }
.work figcaption { margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* Отзывы и FAQ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.slider { position: relative; padding: 28px 64px 44px 28px; min-height: 230px; }
.review { display: none; gap: 16px; align-items: flex-start; }
.review.is-active { display: flex; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.review__avatar { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 800; font-size: 1.3rem; }
.review p { font-size: .9rem; margin: 8px 0; }
.review time { font-size: .78rem; color: var(--muted); }
.stars { display: flex; gap: 2px; margin-top: 4px; color: #ffb400; }
.stars svg { width: 16px; height: 16px; }
.slider__btn { position: absolute; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.slider__btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.slider__btn svg { width: 16px; height: 16px; }
.slider__btn--prev { top: 28px; }
.slider__btn--prev svg { transform: rotate(180deg); }
.slider__btn--next { bottom: 44px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #c7cfdc; cursor: pointer; transition: width .25s, background .25s; }
.slider__dots button[aria-current="true"] { width: 22px; border-radius: 6px; background: var(--orange); }

.faq { display: grid; gap: 8px; margin-top: 24px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 600; font-size: .9rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--orange); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: .88rem; }

/* Финальный призыв */
.cta { position: relative; overflow: hidden; margin-top: 40px; color: #fff; background: var(--navy); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 28, 51, .92) 0%, rgba(15, 28, 51, .65) 50%, rgba(15, 28, 51, .25) 100%); }
.cta__inner { position: relative; z-index: 2; padding: 64px 0; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; }
.cta h2 span { display: block; color: var(--orange); }
.cta__sub { margin: 8px 0 32px; font-weight: 600; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta__features { display: flex; flex-wrap: wrap; gap: 24px; font-size: .85rem; }
.cta__features li { display: flex; align-items: center; gap: 8px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Подвал */
.footer { background: #0a1426; color: #cfd6e3; padding: 36px 0 20px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.logo--light { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: .88rem; }
.footer__nav a:hover { color: var(--orange); }
.header__phone--light { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; font-size: .78rem; opacity: .85; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); transition: background .2s; }
.footer__social a:hover { background: var(--orange); border-color: var(--orange); }
.footer__social svg { width: 18px; height: 18px; color: #fff; }

/* Плавающая кнопка звонка (только телефон) */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 10px 26px rgba(255, 106, 26, .5); animation: ring 2.4s infinite; }
.fab svg { width: 26px; height: 26px; }
@keyframes ring { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.1) rotate(-8deg); } 20% { transform: scale(1.1) rotate(8deg); } 30% { transform: scale(1); } }

/* Появление при прокрутке: класс добавляет js/main.js, без JS всё видно сразу */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Адаптив: ноутбук */
@media (max-width: 1100px) {
  .header__info { display: none; }
  .why { grid-template-columns: repeat(3, 1fr); }
  .works { grid-template-columns: repeat(3, 1fr); }
  /* Рукописная надпись встаёт в поток под списком: поверх текста ей уже не хватает места */
  .price-block { row-gap: 12px; }
  .price-block__hand { position: static; grid-column: -2 / -1; justify-self: end; margin-right: 8px; }
}

/* Планшет: меню прячется под бургер */
@media (max-width: 900px) {
  .burger { display: block; margin-left: auto; }
  .header__phone { display: none; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px; background: var(--navy); box-shadow: 0 14px 24px rgba(0, 0, 0, .25); transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav__phone { display: block; color: var(--orange); font-weight: 800; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero::before { background: linear-gradient(180deg, rgba(244, 247, 251, .96) 0%, rgba(244, 247, 251, .9) 60%, rgba(244, 247, 251, .55) 100%); }
  .hero__inner { flex-direction: column; align-items: flex-start; min-height: 0; }
  .hero__content { align-self: flex-start; }
  .dark-block, .price-block, .two-col { grid-template-columns: 1fr; }
  .dark-block__img { min-height: 260px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hand--note { text-align: left; }
}

/* Телефон */
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .logo__icon { width: 42px; height: 28px; }
  .logo__text b { font-size: 1.15rem; }
  .section { padding: 44px 0 16px; }
  .grid { gap: 12px; }
  .card { padding: 16px; }
  .card--problem h3 { font-size: .9rem; }
  .hero__inner { padding: 32px 0 40px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__actions { padding-bottom: 44px; }
  .grid--4.steps { grid-template-columns: 1fr; }
  .step__arrow { display: none; }
  .card--service { flex-direction: column; }
  .dark-block__text, .price-block { padding: 26px 20px; }
  .checklist { grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .88rem; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .slider { padding: 22px 20px 64px; }
  .slider__btn--prev { top: auto; bottom: 14px; left: 16px; right: auto; }
  .slider__btn--next { bottom: 14px; }
  .slider__dots { bottom: 26px; }
  .cta__inner { padding: 48px 0 96px; }
  .cta__actions .btn { flex: 1; justify-content: center; }
  .footer__nav { gap: 14px; }
  .footer__bottom { padding-bottom: 64px; }
  .fab { display: grid; }
}

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
