/* ГравМос — прототип главной. Палитра и приёмы — со старого сайта old.gravmos.ru */

:root {
  --graphite-900: #25272c;
  --graphite-800: #2b2d32;
  --graphite-700: #3a3d44;
  --graphite-600: #4e5058;
  --slate-500: #5c616c;
  --slate-400: #6c7280;
  --steel-400: #8a8c95;
  --steel-300: #9da3b1;
  --steel-200: #c3c9d5;
  --steel-150: #d6dae4;
  --steel-100: #e6e9ef;
  --steel-50: #f2f4f7;
  --ice-300: #bcdefe;
  --ice-200: #cde6ff;
  --ice-600: #6383a0;
  --ice-700: #4b6884;
  --ice-rgb: 188, 222, 254;
  --accent-btn: linear-gradient(180deg, #e3f1ff 0%, var(--ice-300) 55%, #a4cdf3 100%);
  /* акцентная часть логотипа «Мос»: на светлой шапке и на тёмном подвале */
  --logo-accent: linear-gradient(180deg, #86acd0 0%, #4b6884 52%, #6f97bd 100%);
  --logo-accent-light: linear-gradient(180deg, #eef6ff 0%, #a9cff3 55%, #cfe6fd 100%);
  --text: #2b2d32;
  --text-soft: #4e5058;
  --text-on-dark: #eef1f6;
  --text-on-dark-soft: #c3c9d5;

  --wrap: 1200px;
  --radius: 10px;
  --font: "PT Sans", "Segoe UI", Arial, sans-serif;
  --font-logo: "PT Serif", Georgia, serif;

  /* растровые текстуры шлифованного металла — плитки со старого сайта (cont-tail, body-tail) и их осветлённые версии */
  --tex-light: #e4e7ec url(../img/tex-light.png);
  --tex-steel: #d0d4db url(../img/tex-steel.png);
  --tex-slate: #70757f url(../img/tex-slate.png);
  --tex-dark: #4b4e58 url(../img/tex-dark.png);
  --tex-deep: #26282d url(../img/tex-deep.png);

  /* волнистый край, как у старой шапки: заливка снизу (--wave) и сверху (--wave-down) */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C180 6 330 6 520 18 S860 36 1040 22 S1320 4 1440 16 V40 H0Z' fill='black'/%3E%3C/svg%3E");
  --wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C200 34 420 34 640 22 S1000 4 1200 18 S1380 30 1440 24 V0 H0Z' fill='black'/%3E%3C/svg%3E");
  --wave-h: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 var(--font);
  color: var(--text);
  background: var(--tex-light);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice-700); }
a:hover { color: var(--graphite-800); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* второй вариант акцента — золото с отблесками (как в макете из design/) */
:root[data-accent="gold"] {
  --ice-200: #ecd49c;
  --ice-300: #d0af6c;
  --ice-600: #93733a;
  --ice-700: #7d5f27;
  --ice-rgb: 208, 175, 108;
  --accent-btn: linear-gradient(115deg, #a87f3e 0%, #e9d399 22%, #c69f58 40%, #f5e6b8 58%, #bb9149 76%, #dcc184 100%);
  --logo-accent: linear-gradient(115deg, #8a6526 0%, #d4b064 28%, #9b7430 48%, #e2c47e 68%, #8c6727 100%);
  --logo-accent-light: linear-gradient(115deg, #c9a35c 0%, #f5e6b8 38%, #d0af6c 58%, #f0dca6 80%, #c39a52 100%);
}
:root[data-accent="gold"] .btn--accent { box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 -1px 0 rgba(90,60,10,.35) inset, 0 4px 14px rgba(0,0,0,.4); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--accent {
  color: var(--graphite-800);
  background: var(--accent-btn);
  box-shadow: 0 2px 0 rgba(255,255,255,.5) inset, 0 4px 14px rgba(0,0,0,.35);
}
.btn--accent:hover { color: var(--graphite-900); box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 6px 20px rgba(0,0,0,.4); }
.btn--steel {
  color: var(--graphite-800);
  background: linear-gradient(180deg, #ffffff 0%, #e6e9ee 60%, #d3d7df 100%);
  box-shadow: 0 1px 0 #fff inset, 0 2px 8px rgba(0,0,0,.18);
}
.btn--dark { color: #fff; background: var(--graphite-800); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.btn--dark:hover { color: #fff; background: var(--graphite-600); }
.btn--ghost { color: var(--text-on-dark); border: 1px solid rgba(255,255,255,.45); background: transparent; }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn--wide { width: 100%; }

/* ---------- шапка ---------- */
/* фон шапки — оригинальный header-bg.png старого сайта: шлифовка и волна уже в картинке;
   шапка заходит на первый экран на высоту волны, сквозь прозрачную волну виден графит */
.header {
  position: relative; z-index: 20;
  min-height: 132px; margin-bottom: -30px;
  padding: 16px 0 42px;
  background: url(../img/header-bg.png) center bottom / auto 175px no-repeat;
}
.header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav contacts";
  align-items: center; column-gap: 28px;
}
.logo { grid-area: logo; text-decoration: none; color: var(--graphite-700); display: inline-grid; justify-self: start; }
.logo__name {
  display: block;
  font: 700 46px/1 var(--font-logo); letter-spacing: -.3px;
  color: #4a4d55;
  text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(0,0,0,.15);
}
.logo__name span {
  background: var(--logo-accent); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.85));
}
/* слоган растянут ровно по ширине названия: ширину блока задаёт логотип, а не слоган */
.logo__slogan {
  display: block; width: 0; min-width: 100%; margin-top: 5px; padding: 0 1px;
  font: italic 400 13px/1.15 var(--font-logo); color: var(--graphite-600);
  white-space: nowrap; text-align: justify; text-align-last: justify;
}

.nav { grid-area: nav; justify-self: center; text-align: center; display: flex; flex-direction: column; align-items: center; }
.nav__addr { display: none; }
.nav__pill {
  display: flex; gap: 2px; margin: 0; padding: 5px; list-style: none;
  background: linear-gradient(180deg, #ffffff, #f0f2f5);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 18px rgba(40,44,52,.14), 0 0 0 1px rgba(0,0,0,.04);
}
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 9px 16px; border-radius: 999px;
  color: var(--graphite-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(78,80,88,.4);
  font-size: 16px; white-space: nowrap;
}
.nav__link:hover { color: var(--graphite-900); text-decoration-color: currentColor; }
.nav__item--drop > .nav__link { background: linear-gradient(180deg, #4e5058, #2b2d32); color: #fff; text-decoration: none; }
.nav__item--drop > .nav__link::after { content: ""; display: inline-block; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }

.drop {
  position: absolute; top: calc(100% + 10px); left: -12px;
  display: none; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 8px 28px;
  padding: 22px 26px; width: max-content; max-width: min(860px, 92vw);
  text-align: left;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 48px rgba(20,22,28,.28), 0 0 0 1px rgba(0,0,0,.05);
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item--drop:hover .drop, .nav__item--drop:focus-within .drop { display: grid; }
.drop__col { display: flex; flex-direction: column; gap: 4px; }
.drop a { color: var(--text-soft); text-decoration: none; font-size: 15px; padding: 2px 0; }
.drop a:hover { color: var(--ice-700); }
.drop a.drop__head { color: var(--graphite-800); font-weight: 700; margin-top: 8px; }
.drop a.drop__head:first-child { margin-top: 0; }

.header__contacts { grid-area: contacts; justify-self: end; text-align: right; display: flex; flex-direction: column; gap: 0; }
.phone {
  font: 700 23px/1.2 var(--font); color: #44474f; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 0 #fff;
}
.phone small { font-size: 17px; font-weight: 400; color: var(--steel-400); }
.phone:hover { color: var(--graphite-900); }
.mail { font-size: 14px; color: var(--graphite-600); }
.header__cta { display: none; }

.burger { display: none; }

/* ---------- первый экран ---------- */
/* первый экран: графитовая плитка + мягкий блик; нижний край — волна, вырезанная маской,
   сквозь неё видна светлая текстура страницы */
.hero {
  position: relative; isolation: isolate;
  background: var(--tex-dark);
  color: var(--text-on-dark);
  padding: 72px 0 calc(36px + var(--wave-h));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h) + 1px) no-repeat, var(--wave-down) bottom / 100% var(--wave-h) no-repeat;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h) + 1px) no-repeat, var(--wave-down) bottom / 100% var(--wave-h) no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../img/glare.jpg) center / cover no-repeat;
  mix-blend-mode: soft-light; opacity: .55;
}
.hero__text { max-width: none; }
.hero h1 {
  font: 700 clamp(28px, 3.3vw, 42px)/1.15 var(--font);
  color: #fff; letter-spacing: -.3px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero__lead { font-size: 19px; color: var(--text-on-dark-soft); }
.facts {
  list-style: none; padding: 0; margin: 28px 0 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
}
.facts li { background: rgba(37,39,44,.86); padding: 14px 16px; }
.facts b { display: block; font-size: 21px; color: var(--ice-200); }
.facts span { font-size: 14px; color: var(--text-on-dark-soft); }

/* карусель: в ряд всегда целое число плиток (--per), зазор --gap; число плиток зависит от ширины экрана */
.carousel { --per: 6; --gap: 22px; position: relative; max-width: var(--wrap); margin: 44px auto 0; padding: 0 24px; }
.carousel__track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 0 18px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .tile { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #f4f5f7, #b9bec8); box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.carousel__arrow::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px;
  border: solid var(--graphite-700); border-width: 0 3px 3px 0;
}
.carousel__arrow--prev { left: 2px; z-index: 2; }
.carousel__arrow--prev::before { transform: translateX(2px) rotate(135deg); }
.carousel__arrow--next { right: 2px; z-index: 2; }
.carousel__arrow--next::before { transform: translateX(-2px) rotate(-45deg); }

/* фото в толстой стальной рамке со скруглением — единый приём для карусели, каталога, галереи
   (развитие круглых ободков старого сайта) */
.tile {
  display: block; margin: 0; border-radius: 18px; padding: 7px; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(150deg, #ffffff 0%, #b4bac5 35%, #eef0f4 55%, #7c828d 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.9);
}
.tile { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.tile__in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
/* наведение: рамка чуть приподнимается, фото внутри плавно увеличивается */
@media (hover: hover) {
  .tile:hover, .js .tile.rv.is-in:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2), inset 0 1px 0 #fff; }
  .tile:hover img { transform: scale(1.08); }
}
/* на светлом фоне тень мягче, чем на графите */
.layout .tile, .section--steel .tile { box-shadow: 0 6px 16px rgba(30,34,42,.28), 0 0 0 1px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.9); }

/* ---------- секции ---------- */
.section { position: relative; padding: 72px 0; }
.section--light { background: none; }
.section--steel { background: var(--tex-steel); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.06); }
/* тёмная секция: старая плитка cont-tail, сверху волна маской */
.section--dark {
  background: var(--tex-slate); color: var(--text-on-dark);
  margin-top: calc(-1 * var(--wave-h)); padding-top: calc(72px + var(--wave-h));
  -webkit-mask: var(--wave) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
          mask: var(--wave) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
}
.section--dark .h2 { color: #fff; }
.h2 { font-size: clamp(26px, 3vw, 36px); color: var(--graphite-800); }
.section__lead { max-width: 760px; color: var(--text-soft); font-size: 18px; margin-bottom: 36px; }
.section--dark .section__lead { color: var(--text-on-dark-soft); }
.eyebrow { margin: 0 0 6px; font: italic 400 18px var(--font-logo); color: var(--ice-600); }




/* цены */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(43,45,50,.14); }
.price__name { flex: 1; }
.price__name::after { content: ""; }
.price__val { font-weight: 700; white-space: nowrap; color: var(--graphite-800); }
.prices__note { font-size: 15px; color: var(--text-soft); max-width: 820px; margin-bottom: 24px; }




/* ---------- две колонки, как на старом сайте ---------- */
.hero__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__contact p { margin: 0; font-size: 18px; color: var(--text-on-dark-soft); }
.hero__contact a:not(.btn) { color: var(--ice-200); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero__contact a:not(.btn):hover { text-decoration: underline; }

.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; padding-top: 44px; padding-bottom: 64px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 22px; }
.side__title { font-size: 19px; margin: 0 0 10px; color: var(--graphite-800); }
.side__nav, .side__box {
  padding: 20px 20px 18px; border-radius: 14px;
  background: rgba(255,255,255,.62); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 18px rgba(30,34,42,.08);
}
.side__head { display: block; margin-top: 10px; font-weight: 700; font-size: 15.5px; color: var(--graphite-800); text-decoration: none; }
.side__head:first-of-type { margin-top: 0; }
.side__head:hover { color: var(--ice-700); }
.side__head--plain { font-weight: 400; color: var(--text-soft); }
.side__nav ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--steel-150); }
.side__nav li a { display: block; padding: 2px 0; font-size: 14.5px; color: var(--ice-700); text-decoration: none; }
.side__nav li a:hover { text-decoration: underline; }
.side__box p { font-size: 15px; color: var(--text-soft); margin-bottom: 10px; }
.side__phone { display: block; font: 700 19px/1.35 var(--font); color: var(--graphite-800); text-decoration: none; }
.side__mail { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--ice-700); }
/* облако клиентов — как на старом сайте: вращающийся шар из имён (js/main.js);
   без скрипта или при «уменьшении движения» — статичное облако из 20 имён разного размера */
.cloud__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px; text-align: center; color: var(--slate-500); line-height: 1.35; }
.cloud__list li:nth-child(n+21) { display: none; }
.cloud__w-l { font-size: 16px; font-weight: 700; color: var(--graphite-700); }
.cloud__w-m { font-size: 14px; }
.cloud__w-s { font-size: 12px; opacity: .8; }
.cloud.is-3d { position: relative; height: 220px; overflow: hidden; cursor: default; }
.cloud.is-3d .cloud__list { display: block; position: absolute; inset: 0; }
.cloud.is-3d li { display: block !important; position: absolute; left: 50%; top: 50%; white-space: nowrap; will-change: transform, opacity; transition: color .2s; }
.cloud.is-3d li.is-off { display: none !important; }
.cloud.is-3d .cloud__w-l { font-size: 14px; }
.cloud.is-3d .cloud__w-m { font-size: 12.5px; }
.cloud.is-3d .cloud__w-s { font-size: 11px; opacity: 1; }
.cloud.is-3d li:hover { color: var(--ice-700); }

.block { margin-bottom: 48px; }
.block:last-child { margin-bottom: 0; }
.dir { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; padding: 22px 0; border-top: 1px solid rgba(43,45,50,.12); }
.dir:first-of-type { border-top: 0; padding-top: 4px; }
.dir__img { width: 150px; }
.dir__title { font-size: 21px; margin-bottom: 6px; }
.dir__title a { color: var(--graphite-800); text-decoration: none; }
.dir__title a:hover { color: var(--ice-700); }
.dir__body p { margin: 0 0 8px; color: var(--text-soft); }
.dir__links { font-size: 15px; }
.dir__links a { color: var(--ice-700); }
.dir__price { font-weight: 700; color: var(--graphite-800) !important; }

.konek {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: center;
  margin: 10px 0; padding: 22px; border-radius: 16px;
  background: var(--tex-dark); color: var(--text-on-dark);
}
.konek h3 { font-size: 21px; color: #fff; margin-bottom: 8px; }
.konek p { margin: 0; color: var(--text-on-dark-soft); }
.konek .eyebrow { color: var(--ice-200); margin-bottom: 4px; }
.konek__img { width: 190px; }

.why { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.why li { position: relative; padding-left: 20px; color: var(--text-soft); }
.why li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--ice-300); box-shadow: 0 0 0 3px rgba(var(--ice-rgb), .25); }
.how { padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.about p { color: var(--text-soft); }

/* ---------- внутренние страницы ---------- */
.hero--page { padding: 64px 0 calc(28px + var(--wave-h)); }
.hero--page h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.hero--page .hero__lead { max-width: 900px; margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px; font-size: 14px; color: var(--text-on-dark-soft); }
.crumbs a { color: var(--ice-200); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .5; }
.side__head.is-current { color: var(--ice-700); }
.side__head.is-current::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px -14px; border-radius: 2px; background: var(--ice-300); vertical-align: middle; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.intro__text p { color: var(--text-soft); }
.intro__img { width: 260px; }

.subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.sub { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text-soft); }
.sub__img { width: 100%; margin-bottom: 8px; }
.sub__title { font-weight: 700; font-size: 17px; color: var(--graphite-800); }
.sub:hover .sub__title { color: var(--ice-700); }
.sub__text { font-size: 14.5px; line-height: 1.45; }
@media (hover: hover) { .sub:hover .tile { transform: translateY(-4px); } .sub:hover .tile img { transform: scale(1.08); } }

.text h3 { margin: 22px 0 8px; font-size: 20px; color: var(--graphite-800); }
.text p, .text li { color: var(--text-soft); }
.text ul { margin: 0 0 12px; padding-left: 22px; }
.text li::marker { color: var(--ice-600); }

.works { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.works .tile { padding: 6px; border-radius: 16px; }
.works .tile .tile__in { border-radius: 11px; }

/* страница услуги */
.side__head.is-parent { color: var(--ice-700); }
.side__nav li a.is-current { font-weight: 700; color: var(--graphite-800); }
.side__nav li a.is-current::before { content: "→ "; color: var(--ice-600); }
.cols2 { columns: 2; column-gap: 32px; }
.cols2 li { break-inside: avoid; margin-bottom: 4px; }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.use { padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.use h3 { font-size: 17px; margin-bottom: 6px; color: var(--graphite-800); }
.use p { margin: 0; font-size: 15px; color: var(--text-soft); }
.mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.12); }
.mat { padding: 16px 18px; background: var(--tex-dark); color: var(--text-on-dark-soft); }
.mat b { display: block; font-size: 17px; color: var(--ice-200); }
.mat span { font-size: 14px; }
.muted { color: var(--text-soft); }
.related a { color: var(--ice-700); font-weight: 700; }
.works--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* форма и контакты */
.contact__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-on-dark-soft); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.94);
  font: 16px/1.4 var(--font); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(var(--ice-rgb), .55); outline-offset: 0; }
/* прикрепление файлов — как на Бештеле: пунктирная зона + список выбранных с удалением */
.upl__zone {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1.5px dashed rgba(255,255,255,.4); border-radius: var(--radius);
  background: rgba(255,255,255,.07); color: var(--text-on-dark); cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.upl__zone:hover, .upl__zone.is-drag { border-color: var(--ice-300); background: rgba(var(--ice-rgb), .12); }
.upl__zone:focus-within { outline: 3px solid rgba(var(--ice-rgb), .55); outline-offset: 2px; }
.upl__zone.is-full { opacity: .55; pointer-events: none; }
.upl__ic { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--ice-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upl__zone b { display: block; font-size: 16px; }
.upl__zone small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-on-dark-soft); }
.upl__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upl__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.upl__list[hidden] { display: none; }
.upl__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 7px 7px 7px 12px; border-radius: 8px; background: rgba(255,255,255,.94); color: var(--text); font-size: 14px;
  animation: upl-in .25s ease;
}
@keyframes upl-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.upl__item svg { width: 18px; height: 18px; fill: none; stroke: var(--slate-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upl__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl__size { color: var(--steel-400); white-space: nowrap; }
.upl__del { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.upl__del:hover { background: #fbe9e6; }
.upl__del:hover svg { stroke: #b3392a; }
.form__err { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: rgba(179,57,42,.22); color: #fff; font-size: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: var(--text-on-dark-soft); }
.consent input { margin-top: 3px; width: 18px; height: 18px; }
.consent a { color: var(--ice-200); }
.form__ok { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: rgba(var(--ice-rgb), .15); color: #fff; }

.cinfo { list-style: none; padding: 0; margin: 0 0 22px; }
.cinfo li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--text-on-dark); }
.cinfo span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-300); }
.cinfo a { color: var(--ice-200); text-decoration: none; font-weight: 700; }
.map { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--graphite-700); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* подвал */
.footer { background: var(--tex-deep); color: var(--text-on-dark-soft); padding: 48px 0 24px; font-size: 15px; }
.footer__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.footer .logo__name { color: var(--steel-300); text-shadow: none; font-size: 32px; }
.footer .logo__name span { background-image: var(--logo-accent-light); filter: none; }
.footer__brand p { margin-top: 10px; }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--text-on-dark-soft); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__contacts a { color: #fff; font-weight: 700; }
.footer__copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: var(--steel-400); }

.mbar { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .carousel { --per: 5; }
  .header__row { grid-template-columns: auto 1fr auto; column-gap: 20px; }
  .nav__link { padding: 9px 11px; font-size: 15px; }
  .phone { font-size: 22px; }
}

@media (max-width: 960px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .header { min-height: 104px; padding: 12px 0 36px; background-size: auto 150px; }
  .hero { padding-top: 64px; }
  .header__row { grid-template-columns: 1fr auto; grid-template-areas: "logo burger"; }
  .logo__name { font-size: 36px; }
  .logo__slogan { font-size: 10px; margin-top: 4px; }
  .header__contacts, .header__cta { display: none; }
  .burger {
    grid-area: burger; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: linear-gradient(180deg, #4e5058, #2b2d32); box-shadow: 0 3px 10px rgba(0,0,0,.25);
  }
  .burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 50; width: min(380px, 88vw);
    align-items: stretch; text-align: left; overflow-y: auto;
    padding: 76px 20px 100px; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.3);
    transform: translateX(105%); transition: transform .25s;
  }
  .nav.is-open { transform: none; }
  .nav__addr { order: 2; margin: 18px 0 0; text-align: left; }
  .nav__pill { flex-direction: column; background: none; box-shadow: none; padding: 0; border-radius: 0; gap: 0; }
  .nav__link { padding: 12px 4px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--steel-150); border-radius: 0; }
  .nav__item--drop > .nav__link { background: none; color: var(--graphite-800); font-weight: 700; }
  .nav__item--drop > .nav__link::after { display: none; }
  .drop { position: static; display: flex; flex-direction: column; gap: 2px; padding: 8px 0 12px 12px; width: auto; max-width: none; box-shadow: none; border-radius: 0; }
  .drop__col { gap: 2px; }
  .drop a { padding: 6px 0; font-size: 16px; }
  .burger { position: relative; z-index: 60; }
  body.nav-open { overflow: hidden; }

  .hero { padding: 40px 0 70px; }
  .hero__lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .carousel { --per: 4; --gap: 16px; margin-top: 34px; }
  .carousel__arrow { width: 32px; height: 32px; }

  .section { padding: 56px 0; }
  /* на телефоне и планшете — одна колонка: навигация живёт в меню, «Как заказать» и клиенты — под текстом */
  .layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .intro { grid-template-columns: 1fr; }
  .intro__img { width: 100%; max-width: 360px; }
  .subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .works--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { order: 2; }
  .side__nav { display: none; }
  .content { order: 1; }
  .prices { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; gap: 36px; }
  .footer__row { grid-template-columns: 1fr 1fr; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(37,39,44,.96); box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  }
  .mbar a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .mbar__call { color: #fff; border: 1px solid rgba(255,255,255,.35); }
  .mbar__lead { color: var(--graphite-800); background: var(--accent-btn); }
}

@media (max-width: 700px) {
  .carousel { --per: 3; --gap: 12px; padding: 0 16px; }
}

@media (max-width: 560px) {
  .cols2 { columns: 1; }
  .uses { grid-template-columns: 1fr; }
  .mats { grid-template-columns: 1fr; }
  .hero--page { padding-top: 52px; }
  .subs { gap: 20px 12px; }
  .sub__title { font-size: 15.5px; }
  .sub__text { font-size: 13.5px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dir { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .dir__img { width: 96px; }
  .dir__img.tile { padding: 5px; border-radius: 14px; }
  .dir__img .tile__in { border-radius: 10px; }
  .dir__title { font-size: 18px; }
  .konek { grid-template-columns: 1fr; padding: 18px; }
  .konek__img { width: 100%; max-width: 260px; }
  .why { grid-template-columns: 1fr; }
  .hero__contact .btn { width: 100%; }
  .wrap { padding: 0 16px; }
  .facts b { font-size: 18px; }
  .facts li { padding: 12px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .carousel { --per: 2; }
}

/* ---------- фото во всплывающем окне ---------- */
a.tile { cursor: zoom-in; }
.dir__img, .konek__img, .sub__img { cursor: pointer; }
.lb {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 72px 40px;
  background: rgba(20,22,26,.9); opacity: 0; transition: opacity .2s ease;
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb__img {
  max-width: min(1200px, 100%); max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain;
  border-radius: 14px; padding: 8px;
  background: linear-gradient(150deg, #ffffff 0%, #b4bac5 35%, #eef0f4 55%, #7c828d 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.97); transition: transform .25s ease, opacity .2s ease;
}
.lb.is-open .lb__img { transform: none; }
.lb.is-loading .lb__img { opacity: .4; }
.lb__cap { max-width: 760px; text-align: center; color: #fff; font-size: 17px; line-height: 1.4; }
.lb__count { position: absolute; top: 18px; left: 24px; color: var(--text-on-dark-soft); font-size: 14px; letter-spacing: .05em; }
.lb__btn {
  position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, #f4f5f7, #b9bec8); box-shadow: 0 3px 10px rgba(0,0,0,.5);
}
.lb__btn::before, .lb__btn::after { content: ""; position: absolute; inset: 0; margin: auto; }
.lb__close { top: 12px; right: 14px; }
.lb__close::before, .lb__close::after { width: 18px; height: 2.5px; border-radius: 2px; background: var(--graphite-700); }
.lb__close::before { transform: rotate(45deg); }
.lb__close::after { transform: rotate(-45deg); }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); }
.lb__prev { left: 14px; }
.lb__next { right: 14px; }
.lb__prev::before, .lb__next::before { width: 11px; height: 11px; border: solid var(--graphite-700); border-width: 0 3px 3px 0; }
.lb__prev::before { transform: translateX(2px) rotate(135deg); }
.lb__next::before { transform: translateX(-2px) rotate(-45deg); }
.lb.is-single .lb__prev, .lb.is-single .lb__next { display: none; }
.lb__btn:focus-visible { outline: 3px solid var(--ice-300); outline-offset: 3px; }
body.lb-open { overflow: hidden; }
@media (max-width: 700px) {
  .lb { padding: 56px 10px 24px; }
  .lb__img { max-height: calc(100vh - 190px); padding: 5px; border-radius: 10px; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; width: 42px; height: 42px; }
  .lb__cap { font-size: 15px; padding: 0 50px; }
}

/* ---------- отблеск на металлических кнопках ---------- */
.btn--accent, .btn--steel, .mbar__lead { position: relative; }
.btn--accent, .btn--steel, .carousel__arrow, .mbar__lead { overflow: hidden; isolation: isolate; }
.btn--accent::after, .btn--steel::after, .carousel__arrow::after, .mbar__lead::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.0) 20%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: skewX(-18deg) translateX(0); opacity: 0;
}
@media (hover: hover) {
  .btn--accent:hover::after, .btn--steel:hover::after, .carousel__arrow:hover::after { animation: glint .8s ease-out; }
}
/* главная кнопка первого экрана изредка ловит блик сама */
.hero .btn--accent::after { animation: glint 1.1s ease-out 2.2s 1, glint-idle 7s ease-out 4s infinite; }
@keyframes glint { 0% { opacity: 0; left: -60%; } 15% { opacity: 1; } 100% { opacity: 0; left: 130%; } }
@keyframes glint-idle { 0%, 84% { opacity: 0; left: -60%; } 87% { opacity: .9; } 100% { opacity: 0; left: 130%; } }

/* ---------- появление блоков при прокрутке ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
/* у плиток после появления — своя быстрая анимация наведения */
.js .tile.rv.is-in { transition: opacity .7s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; transition-delay: var(--d, 0s), 0s, 0s; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn--accent::after, .btn--steel::after, .carousel__arrow::after, .mbar__lead::after { display: none; }
  .tile:hover, .tile:hover img { transform: none; }
  html, .carousel__track { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- примечания к прототипу (не часть дизайна) ---------- */
.proto-notes {
  position: fixed; right: 16px; bottom: 16px; z-index: 100; max-width: 420px;
  font: 14px/1.45 system-ui, sans-serif; color: #1a1a1a;
}
.proto-notes__toggle {
  display: block; margin-left: auto; padding: 10px 16px; border: 2px dashed #c2410c; border-radius: 8px;
  background: #fff7ed; color: #9a3412; font: 700 14px system-ui, sans-serif; cursor: pointer;
}
.proto-notes__body {
  display: none; margin-top: 8px; padding: 16px 18px; max-height: 60vh; overflow: auto;
  background: #fff7ed; border: 2px dashed #c2410c; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.proto-notes.is-open .proto-notes__body { display: block; }
.proto-notes ol { margin: 0; padding-left: 20px; }
.proto-notes li { margin-bottom: 6px; }
@media (max-width: 960px) { .proto-notes { bottom: 76px; right: 10px; left: 10px; max-width: none; } }
