/* ==========================================================================
   Тимофей — плиточник и мастер по санузлам. Оформление сайта.
   Порядок: токены -> база -> утилиты -> хедер -> секции -> адаптив
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --ink: #1c1c1e;
  --ink-2: #2b2c2f;
  --ink-3: #4a4a4e;
  --muted: #78736c;
  --paper: #f6f5f2;
  --paper-2: #efece6;
  --card: #ffffff;
  --line: #e5e0d8;

  --accent: #b0603c;
  --accent-dark: #964c2c;
  --accent-soft: #f6e9e1;
  --accent-ink: #8d4526;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px -8px rgba(28, 28, 30, .22);
  --shadow: 0 20px 45px -26px rgba(28, 28, 30, .38);
  --shadow-lg: 0 40px 80px -40px rgba(28, 28, 30, .5);

  --container: 1180px;
  --gap: clamp(20px, 4vw, 40px);
  --section-y: clamp(44px, 5.4vw, 76px);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.14; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
blockquote { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

section[id] { scroll-margin-top: 96px; }

/* ---------- 3. Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}
.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); }

.section__head { max-width: 720px; margin-bottom: clamp(22px, 3vw, 38px); }
.section__title { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: .35em; }
.section__lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow--light { color: #e7bd9f; }
.eyebrow--light::before { background: #e7bd9f; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 16px; line-height: 1;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 14px 26px -16px rgba(176, 96, 60, .95); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { border-color: rgba(28, 28, 30, .22); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .6); color: var(--ink); }

.btn--sm { padding: 12px 22px; font-size: 15.5px; }
.btn--block { width: 100%; }

.narrow-only { display: none; }

.btn--telegram { margin-top: 26px; background: #fff; color: var(--ink); border-color: rgba(255, 255, 255, .45); }
.btn--telegram:hover { background: #229ed9; border-color: #229ed9; color: #fff; }

/* ---------- 5. Хедер ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(246, 245, 242, .84);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 12px 30px -26px rgba(28, 28, 30, .6); }

.header__inner { display: flex; align-items: center; gap: 24px; min-height: 74px; padding-block: 14px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo:hover { color: inherit; }
.logo__mark { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo__sub { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 15px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 700; color: var(--ink-3);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--ink); background: rgba(28, 28, 30, .06); }

.nav__cta { display: none; }

body.nav-open { overflow: hidden; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1.1; margin-right: 12px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; white-space: nowrap; letter-spacing: -.01em; }
.header__phone-icon { display: none; width: 22px; height: 22px; flex: none; }
.burger {
  display: none; width: 44px; height: 44px; padding: 0; position: relative;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.burger span {
  position: absolute; left: 12px; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(28px, 4.4vw, 56px) clamp(34px, 5vw, 68px);
  background:
    radial-gradient(1100px 520px at 88% -10%, #fbe6d6 0%, rgba(251, 230, 214, 0) 60%),
    radial-gradient(900px 460px at -10% 20%, #eceae4 0%, rgba(236, 234, 228, 0) 65%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__title { font-size: clamp(34px, 5.6vw, 62px); margin-bottom: .35em; }
.hero__lead { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--ink-3); max-width: 54ch; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 30px; }
.hero__badges li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15.5px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__note { font-size: 14.5px; color: var(--muted); margin: 0; }

.hero__media { position: relative; }
.hero__photo {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.hero__photo img { width: 100%; height: clamp(360px, 52vw, 620px); object-fit: cover; }

.hero__card {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__card strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-ink); }
.hero__card span { font-size: 13.5px; color: var(--muted); }
.hero__card--1 { left: clamp(-8px, -1vw, 0px); top: 24px; }
.hero__card--2 { right: clamp(-8px, -1vw, 0px); bottom: 34px; }

/* ---------- 7. Карточки ---------- */
.cards { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcd5ca; }

.card__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.card__icon svg { width: 25px; height: 25px; }

.card__title { font-size: clamp(18px, 1.9vw, 21px); margin-bottom: .45em; }
.card__text { margin: 0; color: var(--muted); font-size: 16px; }

.advantages { background: var(--paper); }
.services { background: linear-gradient(180deg, var(--paper-2), var(--paper) 70%); }
.card--service .card__icon { background: var(--ink); color: #fff; border-radius: 50%; }

/* ---------- 8. Портфолио ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }

.js .gallery.is-collapsed .work.is-extra { display: none; }

.gallery__more { display: none; }
.js .gallery__more {
  display: flex; justify-content: center;
  margin-top: clamp(20px, 3vw, 32px);
}
.gallery__more .btn { min-width: 250px; }

.work { margin: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); }

.work__btn {
  position: relative;
  display: block; width: 100%; padding: 0;
  border: 0; background: var(--paper-2); cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.work__btn img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform .55s var(--ease), filter .35s var(--ease);
}
.work__btn::after {
  content: "Увеличить";
  position: absolute; inset: auto 12px 12px 12px;
  display: grid; place-items: center;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 22, .72);
  color: #fff; font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.work__btn:hover img { transform: scale(1.05); filter: saturate(1.06); }
.work__btn:hover::after { opacity: 1; transform: translateY(0); }

.work figcaption { padding: 12px 4px 0; }
.work__desc { font-size: 14.5px; color: var(--muted); }

/* ---------- 9. Лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none;
  align-items: center; justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(16px, 4vw, 48px);
  background: rgba(14, 14, 16, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); max-height: 90vh; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 78vh; width: auto; margin-inline: auto;
  object-fit: contain; border-radius: var(--radius); background: #111;
}
.lightbox__caption { margin-top: 14px; color: #e9e5df; font-size: 15px; }

.lightbox__close, .lightbox__nav {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff; cursor: pointer;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.lightbox__nav { width: 54px; height: 54px; font-size: 34px; line-height: 1; flex: none; padding-bottom: 6px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); transform: scale(1.06); }

/* ---------- 10. Цены ---------- */
.prices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.pricelist {
  padding: clamp(18px, 2.6vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.price-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row__name { font-size: 16px; flex: 0 1 auto; }
.price-row__dots { flex: 1 1 auto; border-bottom: 1px dotted #cfc8bc; transform: translateY(-4px); min-width: 18px; }
.price-row__val { font-weight: 700; white-space: nowrap; font-size: 16px; }
.price-row--total { margin-top: 6px; padding-top: 18px; border-top: 1.5px solid var(--ink); border-bottom: 0; }
.price-row--total .price-row__name, .price-row--total .price-row__val { font-size: 18px; font-weight: 800; }
.price-row--total .price-row__val { color: var(--accent-ink); }

.price-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--ink);
  color: #f2efe9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky; top: 96px;
}
.price-card__title { font-size: 22px; color: #fff; }
.price-card__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.price-card__foot p { font-size: 14.5px; color: #bdb8b0; }
.price-card__foot .btn--primary { box-shadow: none; }

.ticks { display: grid; gap: 12px; margin: 0 0 6px; }
.ticks li { position: relative; padding-left: 32px; font-size: 15.5px; color: #e6e2db; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.ticks--light li { color: #e6e2db; }

.prices__note { margin: 26px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- 11. Этапы ---------- */
.steps { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.steps__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.step {
  position: relative;
  padding: 26px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  display: block;
  font-size: 32px; font-weight: 800; letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(176, 96, 60, .55);
  margin-bottom: 12px;
}
.step__title { font-size: 18px; margin-bottom: .4em; }
.step__text { margin: 0; font-size: 15px; color: var(--muted); }
.step::after {
  content: "";
  position: absolute; top: 46px; right: -12px;
  width: 12px; height: 2px;
  background: var(--line);
}
.step:last-child::after { display: none; }

/* ---------- 12. Отзывы ---------- */
.reviews { background: var(--paper-2); }

/* 12.1. Плашка «доверие»: профиль мастера на Авито */
.trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 28px);
  margin-bottom: clamp(20px, 2.8vw, 30px);
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust__person { display: flex; align-items: center; gap: 14px; }
.trust__ava {
  width: 62px; height: 62px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.trust__who { display: flex; flex-direction: column; line-height: 1.3; }
.trust__who strong { font-size: 18px; }
.trust__who span { font-size: 14px; color: var(--muted); }
.trust__rating { display: flex; flex-direction: column; gap: 2px; padding-left: clamp(0px, 2vw, 26px); border-left: 1px solid var(--line); }
.trust__stars { color: #d99a3f; letter-spacing: .14em; font-size: 17px; }
.trust__score { font-size: 14.5px; color: var(--muted); }
.trust__score strong { font-size: 17px; color: var(--ink); }
.trust__facts { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--muted); }
.trust__facts li { display: flex; align-items: center; gap: 9px; }
.trust__facts .dot { background: var(--accent); opacity: .5; }
.trust__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }

/* 12.2. Карточки отзывов */
.review {
  display: flex; flex-direction: column;
  margin: 0;
  padding: clamp(22px, 2.6vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review__ava {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 800; font-size: 17px;
}
.review__ava--pink { background: #fde5ef; color: #b0246a; }
.review__ava--green { background: #dff3e6; color: #1f7a4d; }
.review__ava--violet { background: #ece3fb; color: #6b3fbf; }
.review__ava--amber { background: #fdeed2; color: #9a6212; }
.review__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.review__meta strong { font-size: 16px; }
.review__meta span { font-size: 13.5px; color: var(--muted); }
.review__stars { color: #d99a3f; font-size: 17px; letter-spacing: .12em; margin-bottom: 12px; }
.review__text { flex: 1; margin: 0 0 18px; font-size: 16px; color: var(--ink-2); }
.review__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.review__tag { font-size: 13.5px; color: var(--muted); }
.review__proof {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink-3);
  font-size: 13.5px; font-weight: 700; cursor: zoom-in;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.review__proof svg { width: 16px; height: 16px; flex: none; }
.review__proof:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.review--cta {
  grid-column: 1 / -1;
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px;
  background: var(--accent-soft); border-color: #ecd9cd;
}
.review--cta__text { flex: 1 1 320px; }
.review--cta .review__ctaTitle { margin: 0 0 6px; font-size: 22px; color: var(--accent-ink); }
.review--cta .review__text { flex: 0 1 auto; margin: 0; color: #7a5540; max-width: 62ch; }
.review--cta .btn { flex: none; }

/* 12.3. Скрины отзывов (раскрывающийся блок) */
.proof { margin-top: clamp(20px, 2.8vw, 30px); }
.proof__body { padding: 2px 24px 26px; }
.proof__note { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.proof__grid { display: grid; gap: 18px; }
.proof__item { margin: 0; }
.proof__btn {
  display: inline-block; max-width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: zoom-in;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.proof__btn img { width: auto; max-width: 100%; height: auto; border-radius: 8px; }
.proof__btn:hover { border-color: #dcd5ca; box-shadow: var(--shadow); transform: translateY(-2px); }
.proof__cap { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ---------- 13. FAQ ---------- */
.faq { background: var(--paper); }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq__item[open] { border-color: #dcd5ca; box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-size: 17px; font-weight: 700;
  cursor: pointer; list-style: none;
  transition: color .22s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-ink); }
.faq__q::after {
  content: ""; flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__a { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }
.faq__a p { margin: 0; }
.faq__item[open] .faq__a { animation: faqIn .32s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 14. Контакты ---------- */
.contact {
  background:
    radial-gradient(900px 420px at 92% 0%, rgba(176, 96, 60, .3) 0%, rgba(176, 96, 60, 0) 62%),
    var(--ink);
  color: #ece8e1;
}
.contact .section__title { color: #fff; }
.contact .section__lead { color: #b6b1a9; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.contact__list { display: grid; gap: 18px; margin: 28px 0 0; }
.contact__list li { display: flex; align-items: flex-start; gap: 14px; }
.contact__list li > span:not(.contact__ico) { display: flex; flex-direction: column; }
.contact__ico {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: #e7bd9f;
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__list a { font-weight: 700; font-size: 18px; color: #fff; }
.contact__list a:hover { color: var(--accent); }
.contact__list strong { font-size: 16.5px; }
.contact__list small { font-size: 14px; color: #9c968e; }

.contact__callback {
  padding: 0; border: 0; background: none; text-align: left;
  font: inherit; font-weight: 700; font-size: 18px; color: #fff;
  cursor: pointer; transition: color .22s var(--ease);
}
.contact__callback:hover { color: var(--accent); }

/* ---------- 15. Форма ---------- */
.form {
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form__title { font-size: 22px; margin-bottom: 20px; }

.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit; font-size: 15.5px; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(176, 96, 60, .15);
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #c0392b; background: #fdf4f3; }
.checkbox input.is-invalid { outline: 2px solid #c0392b; outline-offset: 2px; border-radius: 4px; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 18px; font-size: 14px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }

.form__hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
/* Ловушка для ботов (honeypot): поле есть в разметке, но людям не видно и не доступно с клавиатуры */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 10px 0 0; font-size: 14.5px; font-weight: 700; }
.form__status.is-ok { color: #1f7a4d; }
.form__status.is-error { color: #c0392b; }

/* ---------- 16. Подвал ---------- */
.site-footer { background: #141416; color: #b3aea6; padding-top: clamp(40px, 5vw, 68px); }
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.footer__brand .logo__mark { color: var(--accent); }
.footer__brand strong { color: #fff; font-size: 20px; letter-spacing: -.02em; }
/* Описание — отдельной строкой во всю ширину, выровнено по левому краю, как остальной подвал. */
.footer__brand p { flex: 1 1 100%; margin: 0; font-size: 14.5px; max-width: 46ch; }

.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 15.5px; font-weight: 600; color: #d9d4cc; }
.footer__nav a:hover { color: var(--accent); }

.footer__contacts { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__contacts a:first-child { color: #fff; font-weight: 700; font-size: 18px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 22px 26px;
  font-size: 13.5px;
}
.footer__bottom p { margin: 0; }
.footer__note { color: #7d7871; }

/* Правовые ссылки — отдельной подсвеченной строкой, чтобы не растягивать столбец меню */
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 12px; padding-block: 20px 4px; }
.footer__legal a {
  display: inline-flex; align-items: center;
  padding: 7px 15px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  color: var(--accent); font-weight: 700; font-size: 13.5px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.footer__legal a:hover { background: var(--accent); color: #fff; }
@media print { .footer__legal a { background: none; padding: 0; } }

/* ---------- 17. Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 80;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 18. Появление при скролле ---------- */
.js [data-reveal],
.js .work {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-in,
.js .work.is-in { opacity: 1; transform: none; }

/* ---------- 19. Модальное окно (заказать звонок / расчёт) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 130;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}
.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 14, 16, .66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.modal.is-visible .modal__backdrop { opacity: 1; }

.modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - clamp(28px, 6vw, 68px));
  overflow-y: auto;
  padding: clamp(24px, 3.4vw, 38px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.modal.is-visible .modal__box { opacity: 1; transform: none; }

.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--paper); color: var(--ink-3);
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.modal__close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.modal .eyebrow { margin-bottom: 10px; }
.modal__title { font-size: clamp(24px, 3vw, 30px); margin-bottom: .3em; padding-right: 48px; }
.modal__sub { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }

.modal__form .field { margin-bottom: 14px; }
.modal__form textarea { min-height: 74px; }
.modal__form .checkbox { margin: 4px 0 16px; }
/* Поля «Что нужно сделать» и «Детали» показываем только в окне «Рассчитать стоимость». */
.modal__calc-fields[hidden] { display: none; }
.modal__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

body.modal-open { overflow: hidden; }

/* ---------- 20. Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  /* Хиро-фото — во всю ширину блока, без скруглений: края смыкаются с экраном. */
  .hero__media { margin-inline: calc(-1 * clamp(18px, 4vw, 32px)); }
  .hero__photo { box-shadow: none; }
  .hero__photo img { height: clamp(320px, 56vw, 520px); }
  .hero__card--1 { left: clamp(16px, 4vw, 26px); top: 18px; }
  .hero__card--2 { right: clamp(16px, 4vw, 26px); bottom: 18px; }

  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step::after { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices__grid { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .header__phone { display: none; }
  .header__contact { gap: 0; line-height: 1; }
}

@media (max-width: 1080px) {
  .burger { display: block; }

  /* Мобильная шапка: телефон — компактная кнопка-иконка «Позвонить» того же размера,
     что и бургер (кнопка звонка дублируется в меню ниже). */
  .header__actions { gap: 10px; }
  .header__contact { flex-direction: row-reverse; align-items: center; gap: 8px; margin-right: 0; line-height: 1; }
  .header__call { display: none; }
  .header__phone--icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--accent);
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  }
  .header__phone--icon .header__phone-icon { display: block; }
  .header__phone--icon .header__phone-num { display: none; }
  .header__phone--icon:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px clamp(18px, 4vw, 32px) 20px;
    background: rgba(246, 245, 242, .98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px; font-size: 17.5px; border-radius: var(--radius-sm); }
  .nav__cta { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 560px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .header__inner { gap: 12px; }
  .btn--sm { padding: 11px 18px; font-size: 15px; }
}

@media (max-width: 430px) {
  .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: 17px; }
  /* Подпись логотипа показываем и на мобиле, как на десктопе, — чуть компактнее, чтобы влезла. */
  .logo__sub { font-size: 10px; letter-spacing: .08em; }
}

@media (max-width: 400px) {
  .price-row { flex-wrap: wrap; row-gap: 2px; }
  .price-row__dots { display: none; }
  .price-row__val { margin-left: auto; }
  /* Очень узкие экраны: компактнее кнопки-иконки в шапке, чтобы она не выезжала по ширине. */
  .header__inner { gap: 8px; }
  .header__actions { gap: 8px; }
  .header__contact { gap: 6px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .cards--3 { grid-template-columns: 1fr; }
  /* Карточки на телефоне компактнее: плотнее межстрочные и отступы. */
  .cards { gap: 11px; }
  .card { padding: 15px 14px; }
  .card__title { font-size: 17px; margin-bottom: .22em; }
  .card__text { font-size: 14.5px; line-height: 1.44; }
  .steps__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__card { padding: 13px 16px; }
  .hero__card strong { font-size: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .footer__bottom { flex-direction: column; }
  .to-top { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- 20b. Отзывы и скрины: адаптив ---------- */
@media (max-width: 900px) {
  .trust__rating { padding-left: 0; border-left: 0; }
  .trust__actions { margin-left: 0; width: 100%; }
}

@media (max-width: 680px) {
  .trust { gap: 16px; }
  .trust__actions .btn { flex: 1 1 auto; }
  .review--cta { flex-direction: column; align-items: stretch; }
  .review--cta__text { flex: 0 0 auto; }
  .review--cta .btn { width: 100%; }
  .proof__body { padding-inline: 16px; }
  .proof__grid { gap: 14px; }
}

/* ---------- 20c. Компактные контакты и модальное окно на мобиле ---------- */
@media (max-width: 680px) {
  /* Контакты: строки с иконками плотнее — блок «Рассчитаю стоимость» легче проскроливается. */
  .contact__list { gap: 10px; margin-top: 16px; }
  .contact__list li { gap: 11px; }
  .contact__ico { width: 38px; height: 38px; border-radius: 11px; }
  .contact__ico svg { width: 18px; height: 18px; }
  .contact__list a { font-size: 16.5px; }
  .contact__list strong { font-size: 15.5px; }
  .contact__list small { font-size: 12.5px; line-height: 1.25; }

  /* Формы компактнее: меньше отступы полей и межстрочные. */
  .form { padding: 18px 16px; }
  .form__title { font-size: 20px; margin-bottom: 16px; }
  .field { gap: 5px; margin-bottom: 12px; }
  .field label { font-size: 13px; }
  .field input, .field select, .field textarea { padding: 11px 13px; font-size: 15px; }
  .checkbox { gap: 9px; margin: 4px 0 14px; font-size: 13px; line-height: 1.35; }

  /* Окно «Рассчитать стоимость»: меньше внутренних отступов и межстрочных,
     заголовок — в одну строку, чтобы окно помещалось почти без прокрутки. */
  .modal { padding: 10px; }
  .modal__box { padding: 18px 16px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .modal__close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 21px; }
  .modal .eyebrow { margin-bottom: 6px; }
  .modal__title { font-size: 20px; padding-right: 40px; margin-bottom: .25em; }
  .modal__sub { margin: 0 0 14px; font-size: 14px; line-height: 1.35; }
  .modal__form .field { margin-bottom: 10px; }
  .modal__form textarea { min-height: 58px; }
  .modal__form .checkbox { margin: 2px 0 12px; font-size: 13px; line-height: 1.35; }
}

/* ---------- 21. Доступность и печать ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal], .js .work { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .lightbox, .modal, .gallery__more, .btn { display: none !important; }
  body { background: #fff; }
  .contact { background: #fff; color: #000; }
  .price-card, .site-footer { background: #fff; color: #000; }
}

/* ---------- 22. Страница «Спасибо» ---------- */
.thanks { padding-block: clamp(38px, 5.5vw, 78px) clamp(52px, 7vw, 96px); }
.thanks__wrap { max-width: 780px; }

.thanks__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.thanks__ico {
  width: 88px; height: 88px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.thanks__ico svg { width: 46px; height: 46px; }

.thanks__title { font-size: clamp(27px, 4.6vw, 42px); margin-bottom: .3em; }
.thanks__text { color: var(--ink-3); font-size: clamp(16px, 1.7vw, 18.5px); max-width: 52ch; margin: 0 auto 1em; }
.thanks__timer { color: var(--accent-ink); font-weight: 700; font-size: 15px; min-height: 1.2em; margin: 14px 0 0; }

.thanks__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* ---------- 23. Правовые страницы (политика) ---------- */
.legal { padding-block: clamp(30px, 4.6vw, 60px) clamp(46px, 6vw, 84px); }
.legal__wrap { max-width: 840px; }

.legal__doc h1 { font-size: clamp(25px, 4vw, 38px); }
.legal__doc h2 { font-size: clamp(19px, 2.5vw, 25px); margin: 1.7em 0 .45em; }
.legal__doc p { color: var(--ink-2); }
.legal__doc li { color: var(--ink-2); }
.legal__updated { color: var(--muted); font-size: 14.5px; margin-bottom: 1.8em; }

.legal__doc ul { display: grid; gap: 8px; margin: 0 0 1em; }
.legal__doc ul li { position: relative; padding-left: 22px; }
.legal__doc ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.legal__doc a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__doc a:hover { color: var(--accent-dark); }
.legal__doc em { color: var(--accent-ink); font-style: normal; font-weight: 700; }

.legal__back { margin-top: 2.4em; font-weight: 700; }

/* Ссылка на политику в строке согласия и в подвале */
.checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.checkbox a:hover { color: var(--accent-dark); }
.contact .checkbox a { color: #e7bd9f; }
.contact .checkbox a:hover { color: #fff; }
.footer__bottom a { color: var(--accent); }
.footer__bottom a:hover { color: #fff; }

/* ---------- 24. Навигация по правовым документам ---------- */
.legal__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.7em; }
.legal__tabs a {
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font-weight: 700; font-size: 15px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.legal__tabs a:hover { color: var(--accent-ink); border-color: var(--accent); }
.legal__tabs a.is-current { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }

.legal__doc h3 { font-size: clamp(16px, 2vw, 19px); margin: 1.25em 0 .4em; }
.legal__doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: .9em; background: var(--paper-2); color: var(--ink-2);
  padding: 1px 6px; border-radius: 6px;
}

/* ---------- 25. Уведомление о cookie ----------
   Карточка-«плашка» по мотивам проекта ProviderPro: не во всю ширину экрана, а с отступами
   от краёв и приподнята над низом, поэтому не растягивает страницу по горизонтали, а кнопка
   «OK» видна сразу. Цвета — наши (акцент, белая карточка, тёплая рамка). */
.cookie-banner {
  position: fixed; z-index: 150;
  left: clamp(12px, 3vw, 20px);
  right: clamp(12px, 3vw, 20px);
  bottom: calc(clamp(14px, 3vw, 20px) + env(safe-area-inset-bottom, 0px));
  width: auto; max-width: 720px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 16px clamp(16px, 3vw, 22px);
  background: var(--card); color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  visibility: hidden; opacity: 0; transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
}
.cookie-banner.is-shown { visibility: visible; opacity: 1; transform: none; }
.cookie-banner p { flex: 1 1 260px; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.5; max-width: 880px; color: var(--ink-3); }
.cookie-banner a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: var(--accent-dark); }
.cookie-banner .btn { flex: 0 0 auto; }

@media (max-width: 720px) {
  .cookie-banner { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); gap: 12px; padding: 14px 16px; }
  .cookie-banner p { flex-basis: 100%; font-size: 12.5px; line-height: 1.5; }
  .cookie-banner .btn { width: 100%; min-height: 42px; }
}
@media print {
  .cookie-banner { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

