/* =========================================================
   НЕБО — натяжные потолки. Общие стили.
   ========================================================= */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #0f1c2a;
  --ink-2: #33475c;
  --muted: #5e6b7a;
  --navy: #102a43;
  --navy-2: #163b5c;
  --accent: #c69656;
  --accent-2: #e4c08a;
  --accent-ink: #8a5e26;
  --accent-soft: #f3e6d2;
  --line: #e6e0d5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -34px rgba(16, 42, 67, 0.5);
  --shadow-sm: 0 10px 30px -18px rgba(16, 42, 67, 0.45);
  --font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

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

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

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

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #b88541);
  color: #1a1206;
  box-shadow: 0 14px 30px -16px rgba(198, 150, 86, 0.9);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #d3a566, #c08c48);
  box-shadow: 0 18px 38px -18px rgba(198, 150, 86, 1);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

/* ---------- Общие элементы ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.eyebrow--light {
  color: var(--accent-2);
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--navy {
  background: radial-gradient(120% 140% at 15% 0%, #1b4467 0%, var(--navy) 55%, #0a1d30 100%);
  color: #dfe8f1;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--muted);
}

.section--navy .section__head p {
  color: #a9bdcd;
}

.section__foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
  color: var(--accent-ink);
  gap: 12px;
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(16, 42, 67, 0.6);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--navy);
}

.logo__text small {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
}

.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--ink);
}

.header__side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__phone {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--accent-ink);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.burger span:nth-child(1) {
  top: 15px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 27px;
}

.burger.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 150% at 12% 0%, #1d486c 0%, var(--navy) 52%, #0a1c2e 100%);
  color: #e7eef5;
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 78% 30%, rgba(198, 150, 86, 0.22), transparent 70%),
    radial-gradient(40% 40% at 5% 90%, rgba(73, 140, 190, 0.18), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  max-width: 15ch;
}

.hero h1 span {
  color: var(--accent-2);
}

.hero__lead {
  max-width: 52ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: #b9cadb;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 22px;
  padding: 14px 18px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(228, 192, 138, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}
.hero__price-note strong { color: var(--accent-2); font-size: 1.18rem; white-space: nowrap; }
.hero__price-note span { color: #dbe6f0; font-size: .88rem; }
.hero__price-note small { width: 100%; color: #9fb3c7; font-size: .78rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #dbe6f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.hero__badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 150, 86, 0.18);
}

.hero__visual {
  position: relative;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(circle at 50% 45%, rgba(228, 192, 138, 0.28), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}

.hero__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

/* ---------- Полоса цифр ---------- */

.stats {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
}

.stat {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.1;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Преимущества ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  position: relative;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(198, 150, 86, 0.5);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #8f6430;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Виды потолков ---------- */

.types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.type-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.type-card__swatch {
  height: 96px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.type-card__swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 55%);
}

.swatch-matte {
  background: #efece5;
}

.swatch-gloss {
  background: linear-gradient(115deg, #d8d2c7 0%, #fdfcf9 28%, #cfc8bb 46%, #f4f1ea 62%, #c9c2b5 100%);
}

.swatch-satin {
  background: linear-gradient(115deg, #e8e1d5, #f6f2ea 45%, #ddd4c6 55%, #f1ece3 80%);
}

.swatch-shadow {
  background: #f2efe8;
  box-shadow: inset 0 -6px 0 -4px #102a43, inset 0 -18px 24px -20px rgba(198, 150, 86, 0.9);
}

.swatch-multi {
  background: linear-gradient(180deg, #f4f1ea 0 44%, #ded7ca 44% 52%, #f7f4ee 52% 74%, #d5cdbf 74% 80%, #efece5 80%);
}

.swatch-light {
  background: linear-gradient(180deg, #f6f3ed 0 58%, rgba(228, 192, 138, 0.95) 58% 62%, #efebe3 62%);
}

.swatch-print {
  background: linear-gradient(120deg, #17263a, #2c4a6b 55%, #132234);
}

.swatch-star {
  background: radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 65% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 35% 70%, #fff, transparent),
    linear-gradient(120deg, #17263a, #2c4a6b 60%, #132234);
}

.type-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.type-card h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.type-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.type-card__price {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.type-card__price small {
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #a9bdcd;
}

/* ---------- Таблицы цен ---------- */

.price-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.price-table th {
  text-align: left;
  padding: 16px 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.price-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: middle;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table tbody tr:hover {
  background: #fcfaf6;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
  color: var(--navy);
}

.price-table .muted {
  color: var(--muted);
  font-size: 13px;
  display: block;
  font-weight: 500;
}

.note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Калькулятор ---------- */

.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calc__form {
  padding: clamp(24px, 3.5vw, 40px);
}

.calc__result {
  padding: clamp(24px, 3.5vw, 40px);
  background: radial-gradient(130% 130% at 20% 0%, #1c4467, var(--navy) 60%, #0a1c2e);
  color: #dbe6f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc__result .eyebrow {
  color: var(--accent-2);
}

.calc__sum {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin: 4px 0 10px;
}

.calc__hint {
  font-size: 13.5px;
  color: #a9bdcd;
  margin: 0;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.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' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23102a43' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 150, 86, 0.16);
  background: #fff;
}

.field--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.form-note a {
  color: var(--navy);
  text-decoration: underline;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #eaf5ee;
  border: 1px solid #bfe3cb;
  color: #1f6a3c;
  font-size: 14px;
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fdeeee;
  border: 1px solid #f0c2c2;
  color: #8f2222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.form-error.is-visible {
  display: block;
}

.form-error a {
  color: #8f2222;
  text-decoration: underline;
}

.field--trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Галерея ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
}

.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(9, 22, 35, 0.86));
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.gallery-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
}

.gallery-item span {
  display: block;
  font-size: 12.5px;
  color: #b9cadb;
}

.gallery-item em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-2);
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid rgba(228, 192, 138, 0.4);
  border-radius: 999px;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.gallery-item__link:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: -3px;
}

.gallery-item__link::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover .gallery-item__link::after,
.gallery-item__link:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Лайтбокс ---------- */

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  max-width: none;
  max-height: none;
}

.lightbox[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.lightbox::backdrop {
  background: rgba(9, 22, 35, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox__figure {
  margin: 0;
  padding: 0 72px;
  max-width: 100%;
  text-align: center;
}

.lightbox__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1120px, calc(100vw - 48px));
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.lightbox__figure figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: #b9cadb;
}

.lightbox__figure strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
  color: #fff;
}

.lightbox__figure span {
  display: block;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.lightbox__close {
  top: 20px;
  right: 24px;
  font-size: 30px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

body.lightbox-open {
  overflow: hidden;
}

/* ---------- Отзывы ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review__stars {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 15px;
  margin-bottom: 12px;
}

.review__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.review__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  background: var(--accent-soft);
  flex-shrink: 0;
}

.review__author b {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.review__author b + span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.review__author > span:last-child {
  min-width: 0;
}

.reviews--duo {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- CTA-полоса ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(110% 160% at 85% 10%, #1d486c 0%, var(--navy) 55%, #0a1c2e 100%);
  color: #e7eef5;
  padding: clamp(44px, 6vw, 72px) 0;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 65% at 12% 100%, rgba(198, 150, 86, 0.2), transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  color: #fff;
  margin: 0 0 8px;
}

.cta p {
  margin: 0;
  color: #b9cadb;
  font-size: 15px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Подвал ---------- */

.footer {
  background: #0a1a29;
  color: #93a8ba;
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo__text strong {
  color: #fff;
}

.footer .logo__text small {
  color: #7d93a6;
}

.footer__about {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8fa5b8;
}

.footer h3 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfdae4;
  font-weight: 800;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer a {
  color: #93a8ba;
  transition: color 0.2s ease;
  font-size: 14px;
}

.footer a:hover {
  color: var(--accent-2);
}

.footer address,
.footer__service-area {
  font-style: normal;
  line-height: 1.7;
  font-size: 13.5px;
}

.footer__phone {
  display: inline-block;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #748a9d;
}

/* ---------- Внутренний hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 150% at 10% 0%, #1d486c 0%, var(--navy) 55%, #0a1c2e 100%);
  color: #dbe6f0;
  padding: clamp(40px, 5vw, 64px) 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 70% at 88% 0%, rgba(198, 150, 86, 0.22), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #8ea6ba;
}

.breadcrumbs a:hover {
  color: var(--accent-2);
}

.breadcrumbs span {
  opacity: 0.5;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.page-hero p {
  max-width: 62ch;
  margin: 0;
  color: #b9cadb;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

/* ---------- Контент-страницы ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.split--media-right .split__media {
  order: 2;
}

.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.5L4 7.5L10 1' fill='none' stroke='%238f6430' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 9px no-repeat;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.15rem;
}

.detail h3 span {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-ink);
  white-space: nowrap;
}

.detail p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.detail ul {
  display: grid;
  gap: 7px;
}

.detail li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.detail__gallery {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.shot {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e8e1d5;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.shot:hover img {
  transform: scale(1.06);
}

.shot::after {
  content: "+";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shot:hover::after,
.shot:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.shot:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Схема монтажа ---------- */

.montazh {
  margin: 0 0 24px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.montazh img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}

.montazh figcaption {
  padding: 12px 8px 4px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.montage-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: montage;
}

.montage-steps li {
  padding: 18px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.montage-steps li::before {
  counter-increment: montage;
  content: counter(montage, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--navy);
  color: #f3d9ae;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.montage-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.35;
}

.montage-steps span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
  border-color: rgba(198, 150, 86, 0.55);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Контакты ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: #8f6430;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-item b,
.contact-item a {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
}

.contact-item a:hover {
  color: var(--accent-ink);
}

.contact-item p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.contact-form {
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-bottom: 6px;
}

.contact-form > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.city {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.city h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.city p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.city b {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent-ink);
}

/* ---------- Страница "О компании" ---------- */

.quote-block {
  padding: clamp(24px, 3.5vw, 36px);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.quote-block p:last-child {
  margin: 0;
}

/* ---------- Текстовые страницы ---------- */

.prose {
  max-width: 820px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.prose h2 {
  margin-top: 34px;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
}

.prose ul {
  display: grid;
  gap: 6px;
  padding-left: 22px;
  margin: 0 0 1em;
  list-style: disc;
}

.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
}

.prose a:hover {
  color: var(--accent-ink);
}

/* ---------- Промо-блок «Современная гостиная» ---------- */

.promo {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) 0;
  background:
    radial-gradient(90% 130% at 92% 0%, rgba(198, 150, 86, 0.24) 0%, transparent 55%),
    linear-gradient(135deg, #0b1e31 0%, var(--navy) 55%, #163b5c 100%);
  color: #dfe8f1;
}

.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 0% 100%, rgba(27, 68, 103, 0.55), transparent 70%);
  pointer-events: none;
}

.promo__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.promo__media {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(228, 192, 138, 0.34);
  box-shadow: 0 48px 90px -46px rgba(0, 0, 0, 0.85);
}

.promo__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1051 / 874;
  object-fit: cover;
}

.promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 22, 36, 0.55) 100%);
  pointer-events: none;
}

.promo__caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(228, 192, 138, 0.4);
  background: rgba(9, 22, 36, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f3e6d2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo h2 {
  color: #fff;
  margin-bottom: 14px;
}

.promo__lead {
  color: rgba(223, 232, 241, 0.8);
  max-width: 46ch;
}

.promo__list {
  display: grid;
  gap: 16px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.promo__list li {
  position: relative;
  padding-left: 26px;
}

.promo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(198, 150, 86, 0.16);
}

.promo__list strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 15.5px;
}

.promo__list span {
  display: block;
  color: rgba(223, 232, 241, 0.72);
  font-size: 14.5px;
  line-height: 1.5;
}

.promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Доступность ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Анимация появления ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .feature:hover,
  .type-card:hover {
    transform: none;
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1190px) {
  .header__cta {
    display: none;
  }

  .header__inner {
    gap: 10px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 13px;
  }

  .logo__text strong {
    font-size: 19px;
    letter-spacing: 0.12em;
  }

  .header__phone {
    font-size: 13px;
  }

  .montage-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .types {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer__grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(16, 42, 67, 0.55);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a::after {
    display: none;
  }

  .nav a.is-active {
    color: var(--accent-ink);
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__visual {
    max-width: 560px;
    order: 2;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .calc {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--media-right .split__media {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .promo__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .promo__media {
    max-width: 600px;
  }

  .cities {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .header__inner {
    gap: 12px;
  }

  .logo__mark {
    width: 38px;
    height: 38px;
  }

  .logo__text strong {
    font-size: 17px;
  }

  .logo__text small {
    font-size: 9px;
  }

  .types,
  .features,
  .reviews,
  .reviews--duo,
  .detail-grid,
  .gallery,
  .steps {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 3 / 2;
  }

  .montage-steps {
    grid-template-columns: 1fr;
  }

  .lightbox__figure {
    padding: 0 16px;
  }

  .lightbox__figure img {
    max-height: 68vh;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox__nav--prev {
    left: 6px;
  }

  .lightbox__nav--next {
    right: 6px;
  }

  .field--half {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field--half .field {
    margin-bottom: 18px;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-right: 0;
    text-align: left;
    padding: 0;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    flex: 1 1 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .price-table th,
  .price-table td {
    padding: 13px 16px;
  }

  .section__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo__media {
    max-width: none;
  }

  .promo__caption {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }

  .promo__actions .btn {
    flex: 1 1 100%;
  }
}


/* ---------- Реальные фотографии объектов НЕБО ---------- */
.gallery--user { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--user .gallery-item { min-height: 260px; background: #102a43; }
.gallery--user .gallery-item img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.gallery--user .gallery-item figcaption { background: linear-gradient(180deg, transparent 0%, rgba(8, 25, 42, .88) 100%); }
.gallery--user .gallery-item figcaption em { color: #e4c08a; border-color: rgba(228,192,138,.45); }
.hero__visual img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) {
  .gallery--user { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--user .gallery-item, .gallery--user .gallery-item img { min-height: 210px; }
}
@media (max-width: 480px) {
  .gallery--user { grid-template-columns: 1fr; }
}

/* ---------- Плавающая кнопка Telegram ---------- */

.tg-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #229ed9;
  box-shadow: 0 12px 26px -10px rgba(17, 116, 163, 0.85), 0 2px 6px rgba(9, 22, 35, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 30px -10px rgba(17, 116, 163, 0.95), 0 3px 8px rgba(9, 22, 35, 0.22);
}

.tg-float:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tg-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@media (max-width: 600px) {
  .tg-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .tg-float svg {
    width: 27px;
    height: 27px;
  }
}

@media print {
  .tg-float {
    display: none;
  }
}

/* ---------- Плавающая кнопка MAX ---------- */

.max-float {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #44ccff 0%, #286bff 48%, #9500ff 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 26px -10px rgba(16, 42, 67, 0.55), 0 2px 6px rgba(9, 22, 35, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

 .max-float .max-icon { display: grid; place-items: center; width: 78%; height: 78%; }
.max-float .max-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.max-float .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.max-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 30px -10px rgba(16, 42, 67, 0.95), 0 3px 8px rgba(9, 22, 35, 0.22);
}

.max-float:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .max-float {
    right: 14px;
    bottom: 80px;
    width: 52px;
    height: 52px;
  }
}

@media print {
  .max-float {
    display: none;
  }
}

.cities a.city {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cities a.city:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Бегущая строка ---------- */

.marquee {
  overflow: hidden;
  background: var(--navy);
  border-top: 1px solid rgba(228, 192, 138, 0.18);
  border-bottom: 1px solid rgba(228, 192, 138, 0.18);
  padding: 14px 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee__group span {
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4c08a;
}

.marquee__group i {
  font-style: normal;
  color: rgba(228, 192, 138, 0.45);
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Параллакс главного фото ---------- */

.hero__visual img[data-parallax] {
  will-change: transform;
}

/* ---------- 3D-карусель работ ---------- */

.orbit {
  position: relative;
  height: 760px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.orbit__scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-6deg) rotateY(0deg);
  will-change: transform;
}

.orbit__item {
  position: absolute;
  width: 220px;
  height: 150px;
  margin: -75px 0 0 -110px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(228, 192, 138, 0.28);
  box-shadow: 0 22px 46px -22px rgba(6, 18, 30, 0.85);
  background: #0d1c2b;
  transform: var(--t, rotateY(0deg) translateZ(440px));
  backface-visibility: hidden;
}

.orbit__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.orbit__item a {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
}

.orbit__item a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.orbit__hint {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(228, 192, 138, 0.65);
  pointer-events: none;
}

@media (max-width: 860px) {
  .orbit {
    height: auto;
    perspective: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 16px 8px;
  }

  .orbit__scene,
  .orbit__ring {
    display: flex;
    gap: 12px;
    width: max-content;
    height: auto;
    position: static;
    transform: none !important;
  }

  .orbit__item {
    position: relative;
    flex: 0 0 78vw;
    width: 78vw;
    height: 52vw;
    margin: 0;
    transform: none !important;
    scroll-snap-align: center;
  }

  .orbit__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit__ring {
    transform: rotateX(-6deg) rotateY(-14deg) !important;
  }
}

.orbit.is-grabbing {
  cursor: grabbing;
}

.orbit__item a {
  cursor: pointer;
}

.orbit__item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Доступность ---------- */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Таблицы на телефоне ---------- */

@media (max-width: 680px) {
  .price-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .price-table {
    display: block;
    min-width: 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tr {
    margin-bottom: 12px;
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .price-table tr:last-child {
    margin-bottom: 0;
  }

  .price-table td {
    border: 0;
    padding: 6px 18px;
    font-size: 14.5px;
  }

  .price-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .price-table td:first-child {
    padding-top: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
  }

  .price-table td:last-child {
    padding-bottom: 14px;
    font-size: 17px;
    font-weight: 800;
    color: var(--accent-ink);
  }
}

/* ---------- Фото в блоке «Виды потолков» ---------- */

.type-card__media {
  display: block;
  position: relative;
  height: 172px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ece7dd;
}

.type-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.type-card:hover .type-card__media img {
  transform: scale(1.045);
}

.type-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 45%);
  pointer-events: none;
}

.type-card__media:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* ---------- Premium homepage refinements ---------- */
.service-ribbon { background: #0c2034; color: #dce7f1; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.service-ribbon__inner { min-height: 54px; display:flex; align-items:center; justify-content:center; gap: clamp(12px,2.2vw,28px); flex-wrap:wrap; padding: 12px 0; font-size: 12px; font-weight:700; letter-spacing:.04em; }
.service-ribbon__inner i { color: var(--accent-2); font-style:normal; }
.type-card { min-height: 245px; }
.type-card__body { padding: 24px; }
.type-card__eyebrow { margin: 0 0 14px; color: var(--accent-ink); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.type-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.type-card p { line-height:1.62; }
.type-card__price { border-top: 1px solid var(--line); padding-top: 14px; }
.light-solutions { position:relative; overflow:hidden; }
.light-solutions::after { content:""; position:absolute; width:42vw; height:42vw; max-width:620px; max-height:620px; right:-15vw; top:-18vw; border:1px solid rgba(228,192,138,.12); border-radius:50%; pointer-events:none; }
.light-solutions__grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.light-solution { min-height:245px; padding:24px; border:1px solid rgba(255,255,255,.13); border-radius:var(--radius); background:rgba(255,255,255,.045); display:flex; flex-direction:column; transition:transform .22s ease,background .22s ease,border-color .22s ease; }
.light-solution:hover { transform:translateY(-3px); background:rgba(255,255,255,.075); border-color:rgba(228,192,138,.38); }
.light-solution__number { display:block; margin-bottom:24px; color:var(--accent-2); font-size:12px; font-weight:800; letter-spacing:.12em; }
.light-solution h3 { margin:0 0 10px; font-size:1.08rem; }
.light-solution p { margin:0 0 20px; color:#b6c8d8; font-size:14px; line-height:1.58; }
.light-solution a { margin-top:auto; color:#e4c08a; font-size:13px; font-weight:800; text-decoration:none; }
.light-solution a:hover { color:#fff; }
.light-solutions .section__foot { position:relative; z-index:1; }
@media (max-width: 1050px) { .light-solutions__grid { grid-template-columns:repeat(2,1fr); } .types { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 680px) { .service-ribbon__inner { gap:8px 12px; font-size:10px; } .service-ribbon__inner i { display:none; } .types { grid-template-columns:repeat(2,1fr); gap:12px; } .type-card { min-height:0; } .type-card__body { padding:16px; } .type-card__eyebrow { font-size:9px; margin-bottom:10px; letter-spacing:.08em; } .type-card h3 { font-size:1rem; } .type-card p { font-size:13px; } .type-card__price { font-size:13px; } .light-solutions__grid { grid-template-columns:1fr; gap:12px; } .light-solution { min-height:0; padding:20px; } .light-solution__number { margin-bottom:16px; } }

/* ---------- SEO / price transparency examples ---------- */
.room-examples { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:0 0 20px; }
.room-example { padding:22px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.room-example .eyebrow { margin:0 0 10px; }
.room-example h3 { margin:0 0 10px; font-size:1.05rem; }
.room-example__details { margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.55; }
.room-example strong { display:block; font-size:clamp(1.35rem,2.4vw,1.8rem); letter-spacing:-.03em; }
.room-example--featured { border-color:rgba(196,157,99,.58); box-shadow:inset 0 0 0 1px rgba(196,157,99,.16); }
.room-examples__note { margin:0 0 24px; }
.room-examples--home .room-example { padding:18px; }
.room-examples--home .room-example h3 { margin-bottom:12px; }
.price-exclusions { margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.price-exclusions h3 { margin:0 0 8px; font-size:1rem; }
.price-exclusions p { margin:0; color:var(--muted); line-height:1.65; }
@media (max-width:680px) { .room-examples { grid-template-columns:1fr; gap:10px; } .room-example { padding:18px; } .room-examples--home .room-example { padding:16px; } }


/* Дополнительные поля заявки */
.lead-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lead-extras label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; cursor: pointer; }
.lead-extras input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
@media (max-width: 560px) { .lead-extras { grid-template-columns: 1fr; } }

/* ---------- Mobile usability pass v16 ---------- */
.mobile-action-bar { display:none; }
@media (max-width: 640px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(16,42,67,.12);
    box-shadow: 0 -8px 26px rgba(16,42,67,.09);
  }
  .mobile-action-bar .btn { min-height: 48px; padding: 11px 12px; font-size: 14px; white-space: normal; }
  .tg-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .header__inner { min-width: 0; }
  .header__side { gap: 8px; }
  .header__phone { font-size: 12px; letter-spacing: -.02em; }
  .field input, .field select, .field textarea, input, select, textarea { font-size: 16px; }
  .calc__form, .contact-form { padding: 20px 16px; }
  .calc__form .btn, .contact-form .btn, .form-actions .btn { width: 100%; min-height: 48px; white-space: normal; }
  .calc__result { padding: 22px 18px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .price-table td { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .logo__text strong { font-size: 15px; }
  .header__phone { font-size: 11px; }
  .burger { width: 40px; height: 40px; }
  .mobile-action-bar { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .mobile-action-bar .btn { font-size: 13px; }
}


/* ---------- Доверие и реальные объекты ---------- */
.why-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why-proof__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.why-proof__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.why-proof__item > div { padding: 22px 24px 25px; }
.why-proof__label {
  display: inline-block;
  margin-bottom: 9px;
  color: #8f6430;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.why-proof__item h3 { margin-bottom: 9px; font-size: 1.12rem; }
.why-proof__item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.why-proof__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 960px) { .why-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .why-proof__grid { grid-template-columns: 1fr; gap: 15px; } .why-proof__item > div { padding: 19px 20px 22px; } .why-proof__cta { flex-direction: column; } .why-proof__cta .btn { width: 100%; } }

