/* Токены — бриф §7а, вариант C2: тёмный вход, светлое тело */
:root {
  --bg: #F5F7F7;
  --card: #FFFFFF;
  --ink: #0F171E;
  --ink-2: #4A5660;
  --line: #DDE3E6;
  --dark: #121A21;
  --dark-2: #1B252E;
  --dark-ink: #E8EEF0;
  --dark-ink-2: #A9B6BE;
  --mint: #7DD3C0;
  --teal: #1F7A70;      /* глубокий бирюзовый для светлого фона: #2A9D8F не дотягивает до 4.5:1 на тексте */
  --teal-ui: #2A9D8F;
  --r: 10px;
  --r-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 30, .08), 0 6px 20px rgba(15, 23, 30, .05);
  --head: "Unbounded", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: 17px; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 620px; text-wrap: pretty; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  border: 0; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--mint:hover { background: #92DCCB; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: #18665E; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--wide { width: 100%; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* Шапка */
.top { position: absolute; inset: 0 0 auto; z-index: 5; color: #fff; }
.top__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font-family: var(--head); font-weight: 700; letter-spacing: .06em; font-size: 15px; text-decoration: none; }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; opacity: .85; }
.top__nav a:hover { opacity: 1; }
.top__tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Первый экран */
.hero {
  position: relative; min-height: min(92vh, 760px); display: flex; align-items: flex-end;
  color: #fff; background: var(--dark) url(img/hero.jpg) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 30, .88) 0%, rgba(15, 23, 30, .62) 50%, rgba(15, 23, 30, .15) 100%);
}
.hero__in { position: relative; width: 100%; padding-top: 120px; padding-bottom: 64px; }
.hero__geo { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 60px); max-width: 760px; }
.hero__lead { margin-top: 18px; font-size: 18px; max-width: 520px; color: rgba(255, 255, 255, .85); }
.facts { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.fact { border-left: 2px solid var(--mint); padding-left: 14px; }
.fact b { display: block; font-family: var(--head); font-size: 24px; font-weight: 500; }
.fact span { font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero__cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Полоса с ценой и сроком */
.strip { background: var(--card); border-bottom: 1px solid var(--line); }
.strip__in { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 16px 48px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.strip__item span { display: block; font-size: 13px; color: var(--ink-2); }
.strip__item b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.strip__note { font-size: 14px; color: var(--ink-2); max-width: 380px; justify-self: end; }

/* Секции */
.sec { padding: 96px 0; }
.sec--tint { background: #EAEFF0; }
.sec--dark { background: var(--dark); color: var(--dark-ink); }
.sec--dark .lead { color: var(--dark-ink-2); }
.sec__head { display: grid; gap: 14px; margin-bottom: 40px; }

/* О компании */
.company-section { padding-bottom: 0; }
.company-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 52px; align-items: end; padding: 44px 48px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.company-intro__copy { display: grid; gap: 18px; }
.company-intro__copy p { max-width: 760px; color: var(--ink-2); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.company-intro__facts { display: grid; gap: 20px; }
.company-intro__facts div { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--mint); }
.company-intro__facts b { font-family: var(--head); font-size: 17px; }
.company-intro__facts span { color: var(--ink-2); font-size: 13px; }

/* Работы */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work {
  display: flex; flex-direction: column; padding: 0; border: 0; text-align: left; cursor: pointer;
  background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.work:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(15, 23, 30, .1), 0 14px 30px rgba(15, 23, 30, .1); }
.work__ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--line); }
.work__cap { padding: 14px 16px 16px; display: grid; gap: 4px; }
.work__cap b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.work__cap span { font-size: 14px; color: var(--ink-2); }
.work--big { grid-column: span 2; grid-row: span 2; }
.work--big .work__ph { aspect-ratio: auto; flex: 1; min-height: 280px; }
.work--big .work__cap b { font-size: 19px; }
/* Последняя плитка во всю ширину двух колонок — сетка 4×3 без дыр */
.work:last-child { grid-column: span 2; }
.work:last-child .work__ph { aspect-ratio: auto; height: 100%; min-height: 0; flex: 1; }

/* Отзывы */
.reviews { columns: 3 320px; column-gap: 16px; }
.rev {
  break-inside: avoid; margin: 0 0 16px; padding: 22px; background: var(--card);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.rev blockquote { margin: 0; font-size: 15px; line-height: 1.6; }
.rev.is-clamped blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rev__more { margin-top: 8px; padding: 6px 0; min-height: 44px; border: 0; background: none; color: var(--teal); font-weight: 600; cursor: pointer; }
.rev footer { margin-top: 14px; display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.rev footer b { color: var(--ink); font-weight: 600; }
.rev__obj { margin-top: 2px; font-size: 13px; color: var(--teal); }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--dark-2); border-radius: var(--r); padding: 24px; display: grid; gap: 8px; align-content: start; }
.step b { font-family: var(--head); color: var(--mint); font-size: 14px; font-weight: 500; }
.step h3 { font-size: 19px; color: #fff; }
.step p { color: var(--dark-ink-2); font-size: 15px; }

/* Подбор */
.podbor { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.podbor__text { display: grid; gap: 18px; justify-items: start; }
.podbor__how { display: grid; gap: 12px; }
.podbor__how div { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); font-weight: 500; }
.podbor__how b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #DDF3EE; color: var(--teal); font-family: var(--head); font-size: 14px; }
.decors { margin-top: 72px; }
.decors__head { margin-bottom: 20px; }
.material-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; padding: 20px 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.material-brands__group { min-width: 0; }
.material-brands h4 { margin-bottom: 8px; color: var(--ink-2); font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.material-brands ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.material-brands li { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 13px; border: 1px solid #C9D4D7; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.seg { display: inline-flex; margin-bottom: 20px; background: #E3E9EB; border-radius: var(--r); padding: 4px; }
.seg__btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.seg__btn.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 30, .12); }
.decor-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.decor { margin: 0; }
.decor img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--line); }
.decor figcaption { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }

/* Телевизионный проект */
.video-feature { padding-top: 64px; }
.video-card { max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.video-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); }
.video-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 26, 33, .04), rgba(18, 26, 33, .58)); }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 82px; height: 82px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: var(--mint); box-shadow: 0 10px 32px rgba(15, 23, 30, .36); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.video-card__play:hover { transform: translate(-50%, -50%) scale(1.06); background: #92DCCB; }
.video-card__play span { width: 0; height: 0; margin-left: 6px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 19px solid var(--dark); }
.video-card__watch { position: absolute; z-index: 2; left: 22px; bottom: 18px; color: #fff; font-size: 13px; font-weight: 600; }
.video-card__body { display: grid; gap: 12px; padding: 28px 30px 32px; }
.video-card__body h2 { max-width: 760px; font-size: clamp(22px, 3vw, 32px); }
.video-card__body p { max-width: 680px; color: var(--ink-2); font-size: 17px; }
.video-card__badge { justify-self: start; display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #DDF3EE; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.qa { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 600; font-size: 17px; min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg);
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa__a { padding: 0 22px 22px; color: var(--ink-2); }
.qa__a ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Заявка */
.zayavka { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.zayavka__text { display: grid; gap: 18px; justify-items: start; }
.form { background: var(--dark-2); border-radius: var(--r); padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: 14px; color: var(--dark-ink-2); padding: 0; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid #33424E; background: var(--dark); color: #fff; font: inherit;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7D8C96; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); }
.field__err { display: none; font-size: 13px; color: #FF9B8A; }
.field.is-bad input { border-color: #FF9B8A; }
.field.is-bad .field__err { display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #33424E; cursor: pointer; }
.chip input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.form-done { background: var(--dark-2); border-radius: var(--r); padding: 40px 28px; display: grid; gap: 8px; }
.form-done h3 { font-size: 24px; color: var(--mint); }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts > div:first-child { display: grid; gap: 14px; }
.contacts__details { display: grid; gap: 12px; }
.contacts__main, .contacts__card { display: grid; gap: 3px; padding: 18px 20px; border-radius: var(--r); text-decoration: none; }
.contacts__main { padding: 22px 24px; background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.contacts__main span { color: var(--dark-ink-2); font-size: 13px; }
.contacts__main b { color: #fff; font-size: clamp(22px, 2.3vw, 30px); font-weight: 650; }
.contacts__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contacts__card, .contacts__address { background: var(--card); box-shadow: var(--shadow); }
.contacts__card:hover, .contacts__main:hover { box-shadow: 0 2px 6px rgba(15, 23, 30, .1), 0 10px 24px rgba(15, 23, 30, .1); }
.contacts__card span, .contacts__address span { color: var(--ink-2); font-size: 13px; }
.contacts__card b, .contacts__address b { font-weight: 600; }
.contacts__address { display: grid; gap: 3px; padding: 18px 20px; border-radius: var(--r); }
.contacts__messengers { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.contacts__messengers a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.contacts__messengers a:hover { border-color: var(--teal); color: var(--teal); }

.foot { background: var(--dark); color: var(--dark-ink-2); font-size: 14px; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.foot .logo { color: #fff; }

/* Плавающая кнопка */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; justify-items: end; gap: 10px; transition: opacity .2s ease, transform .2s ease; }
.fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.fab__btn {
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--mint); color: var(--ink); font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 30, .28);
}
.fab__menu { display: grid; background: var(--card); border-radius: var(--r); box-shadow: 0 12px 32px rgba(15, 23, 30, .22); overflow: hidden; min-width: 200px; }
.fab__menu[hidden] { display: none; }
/* Меню, открытое кнопкой на странице, встаёт рядом с ней */
.fab__menu.is-anchored { position: fixed; z-index: 21; }
.fab__menu a { display: flex; align-items: center; min-height: 48px; padding: 0 18px; text-decoration: none; font-weight: 500; }
.fab__menu a + a { border-top: 1px solid var(--line); }
.fab__menu a:hover { background: var(--bg); }

/* Карточка объекта */
.sheet { border: 0; padding: 0; border-radius: var(--r); width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--card); color: var(--ink); }
.sheet::backdrop { background: rgba(15, 23, 30, .7); }
.sheet__in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; }
.sheet__photo { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.sheet__body { padding: 32px 28px; display: grid; gap: 14px; align-content: start; justify-items: start; }
.sheet__body h2 { font-size: 24px; padding-right: 40px; }
.sheet__mat { color: var(--teal); font-weight: 500; }
.sheet__rev { margin: 4px 0 8px; }
.sheet__rev blockquote { margin: 0; font-size: 15px; line-height: 1.6; }
.sheet__rev figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 30, .15);
}
body.is-locked { overflow: hidden; }

/* Адаптив */
@media (max-width: 1024px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .work--big { grid-row: auto; }
  .decor-grid { grid-template-columns: repeat(4, 1fr); }
  .work--big .work__ph { aspect-ratio: 16 / 9; min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip__in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
  .strip__item b { white-space: normal; }
  .strip__note { grid-column: 1 / -1; justify-self: start; max-width: none; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  .top { position: fixed; inset: 0 0 auto; background: rgba(18, 26, 33, .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .top__nav { display: none; }
  .top__tel { margin-left: auto; }
  .podbor, .zayavka, .contacts { grid-template-columns: 1fr; gap: 32px; }
  .company-intro { grid-template-columns: 1fr; gap: 30px; padding: 36px; }
  .company-intro__facts { grid-template-columns: 1fr 1fr; }
  .sheet__in { grid-template-columns: 1fr; }
  .sheet__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .sec { padding: 72px 0; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 60px; }
  body { font-size: 15px; }
  .material-brands { grid-template-columns: 1fr; gap: 16px; }
  .video-feature { padding-top: 40px; }
  .video-card__play { width: 64px; height: 64px; }
  .video-card__play span { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 15px; }
  .video-card__watch { left: 14px; bottom: 12px; }
  .video-card__body { padding: 22px 20px 24px; }
  .video-card__body p { font-size: 15px; }
  .company-intro { padding: 26px 22px; }
  .company-intro__copy p { font-size: 16px; }
  .company-intro__facts { grid-template-columns: 1fr; }
  .top__in { height: 60px; }
  .top__tel { font-size: 14px; }
  .top__in { gap: 12px; }
  .logo { font-size: 13px; letter-spacing: .04em; }
  .hero { min-height: 0; }
  .hero__in { padding-top: 92px; padding-bottom: 40px; }
  .hero__lead { font-size: 16px; margin-top: 14px; }
  .facts { gap: 20px; margin-top: 22px; }
  .fact b { font-size: 20px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1; padding: 0 12px; white-space: nowrap; }
  .strip__in { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .strip__item:nth-child(3) { grid-column: 1 / -1; }
  .works { grid-template-columns: 1fr; }
  .work--big, .work:last-child { grid-column: auto; }
  .work:last-child .work__ph { aspect-ratio: 4 / 3; height: auto; }
  .steps { grid-template-columns: 1fr; }
  .contacts__secondary { grid-template-columns: 1fr; }
  .decor-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sec { padding: 56px 0; }
  .sec__head { margin-bottom: 28px; }
  .form { padding: 20px; }
  .fab { right: 14px; bottom: 14px; }
  .sheet__body { padding: 24px 20px; }
}

/* Узкие телефоны: цены строками, подпись слева, цена справа */
@media (max-width: 420px) {
  .strip__in { grid-template-columns: 1fr; gap: 10px; }
  .strip__item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .strip__item b { white-space: nowrap; font-size: 17px; }
}

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