/* ==========================================================================
   Сайт аренды спецтехники и рабочих бригад.
   Оформление повторяет демо-версию, согласованную с заказчиком:
   те же цвета, шрифты, отступы и размеры. Отличие одно — здесь это
   обычный CSS с классами, а не стили внутри тегов.
   ========================================================================== */

/* ---------- Темы. Значения перенесены из демо один в один ---------- */
:root,
html[data-theme="grafit"] {
  --surf:#121416; --onSurf:#F5F3EF; --onSurfRgb:245,243,239;
  --page:#F5F3EF; --card:#ffffff; --ink:#121416; --inkRgb:18,20,22;
  --deep:#0d0f10; --panel:#1A1D20; --ph:#e9e6e0;
  --field:#121416; --onField:#F5F3EF; --onFieldRgb:245,243,239;
  --onAccent:#121416; --accent:#F47B20; --accentHi:#ff8f3d; --err:#E4553F;
}
html[data-theme="svetlaya"] {
  --surf:#E8E3DA; --onSurf:#121416; --onSurfRgb:18,20,22;
  --page:#F7F5F1; --card:#ffffff; --ink:#121416; --inkRgb:18,20,22;
  --deep:#DED8CD; --panel:#ffffff; --ph:#E4DED4;
  --field:#ffffff; --onField:#121416; --onFieldRgb:18,20,22;
  --onAccent:#121416;
}
html[data-theme="temnaya"] {
  --surf:#0E1113; --onSurf:#F1EEE8; --onSurfRgb:241,238,232;
  --page:#181B1D; --card:#1E2225; --ink:#F1EEE8; --inkRgb:241,238,232;
  --deep:#090B0C; --panel:#22262A; --ph:#24282B;
  --field:#0E1113; --onField:#F1EEE8; --onFieldRgb:241,238,232;
  --onAccent:#0E1113;
}
html[data-theme="korporativnaya"] {
  --surf:#16202B; --onSurf:#EEF2F6; --onSurfRgb:238,242,246;
  --page:#F4F6F8; --card:#ffffff; --ink:#16202B; --inkRgb:22,32,43;
  --deep:#0F1720; --panel:#1E2A38; --ph:#E3E8ED;
  --field:#ffffff; --onField:#16202B; --onFieldRgb:22,32,43;
  --onAccent:#16202B;
}

/* ---------- Основа ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Golos Text', system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accentHi); }
input, textarea, button, select { font-family: inherit; }
::placeholder { color: rgba(var(--onFieldRgb), .38); }
::selection { background: var(--accent); color: var(--onAccent); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
.ac { color: var(--accent); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.sec { padding: clamp(56px, 7vw, 110px) clamp(16px, 3vw, 40px); }
.sec--tight { padding: clamp(44px, 5vw, 86px) clamp(16px, 3vw, 40px); }
.sec--page { background: var(--page); }
.sec--card { background: var(--card); }
.sec--surf { background: var(--surf); color: var(--onSurf); }
.sec--line-ink { border-top: 1px solid rgba(var(--inkRgb), .1); }
.sec--line-card { border-top: 1px solid rgba(var(--inkRgb), .08); }

/* ---------- Типографика ---------- */
.eyebrow {
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 14px; text-transform: uppercase;
}
.h1 {
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -.01em;
  margin: 0 0 16px; text-wrap: balance;
}
.h2 {
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.05; margin: 0;
}
.h2--sm { font-size: clamp(24px, 2.8vw, 38px); }
.h3 {
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.12; margin: 0 0 10px;
}
.lead {
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6;
  color: rgba(var(--inkRgb), .68); max-width: 60ch; text-wrap: pretty;
}
.sec--surf .lead { color: rgba(var(--onSurfRgb), .72); }
.txt { font-size: 16px; line-height: 1.65; color: rgba(var(--inkRgb), .7); }
.sec--surf .txt { color: rgba(var(--onSurfRgb), .7); }
.txt p + p { margin-top: 16px; }
.muted { font-size: 13px; color: rgba(var(--inkRgb), .45); }
.sec--surf .muted { color: rgba(var(--onSurfRgb), .45); }

.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(28px, 3vw, 48px);
}
.sec-head p { font-size: 15px; line-height: 1.6; color: rgba(var(--inkRgb), .6); max-width: 38ch; }

/* ---------- Кнопки ---------- */
.btn {
  font-family: 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; border: 1px solid transparent; background: none; text-align: center;
}
.btn--lg { font-size: 16px; padding: 17px 30px; min-height: 52px; }
.btn--md { font-size: 14px; padding: 14px 20px; min-height: 48px; }
.btn--wide { width: 100%; font-size: 17px; padding: 19px 28px; min-height: 56px; }
.btn--accent { background: var(--accent); color: var(--onAccent); }
.btn--accent:hover { background: var(--accentHi); color: var(--onAccent); }
.btn--dark { background: var(--surf); color: var(--onSurf); }
.btn--dark:hover { background: var(--accent); color: var(--onAccent); }
.btn--ghost-light { border-color: rgba(var(--onSurfRgb), .35); color: var(--onSurf); }
.btn--ghost-light:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost-dark { border-color: rgba(var(--inkRgb), .2); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn--price { background: var(--accent); color: var(--onAccent); }
.btn--price:hover { background: var(--surf); color: var(--onSurf); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--surf);
  border-bottom: 1px solid rgba(var(--onSurfRgb), .12);
  transition: box-shadow .3s ease;
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.header__in {
  max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px);
  height: 64px; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px);
}
.brand {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: .14em; color: var(--onSurf); white-space: nowrap; flex-shrink: 0;
}
.brand:hover { color: var(--onSurf); }
.nav { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); flex: 1 1 auto; min-width: 0; }
.nav__item { position: relative; flex: 0 0 auto; }
.nav__link {
  display: block; font-size: 13.5px; font-weight: 500; color: rgba(var(--onSurfRgb), .72);
  white-space: nowrap; padding: 21px 0; border-bottom: 2px solid transparent;
  transition: color .24s ease, border-color .24s ease;
}
.nav__item:hover > .nav__link,
.nav__link.is-active { color: var(--onSurf); border-bottom-color: var(--accent); }
.nav__link.is-active { color: var(--onSurf); }
.nav__link .caret { display: inline-block; margin-left: 6px; vertical-align: 1px; }
.nav__drop {
  position: absolute; top: 100%; left: -14px; min-width: 254px; background: var(--surf);
  border: 1px solid rgba(var(--onSurfRgb), .14); border-top: 2px solid var(--accent);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop {
  opacity: 1; visibility: visible; transform: none;
}
.nav__drop a {
  display: block; padding: 11px 18px; font-size: 14px; color: rgba(var(--onSurfRgb), .78);
  white-space: nowrap;
}
.nav__drop a:hover { background: rgba(var(--onSurfRgb), .07); color: var(--accent); }
.header__side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.header__phone {
  font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: .02em;
  color: var(--onSurf); white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }
/* Кнопка и значок темы стоят в одной строке — высота у них строго одинаковая */
.header__cta, .header .theme__btn { height: 40px; }
.header__cta { font-weight: 600; font-size: 14px; padding: 0 18px; white-space: nowrap;
  font-family: 'Golos Text', system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.burger {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--onSurfRgb), .28); color: var(--onSurf); background: none;
  cursor: pointer; flex-shrink: 0;
}
.burger:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Крошки и заголовок раздела ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(var(--onSurfRgb), .55); margin-bottom: clamp(18px, 2.4vw, 30px);
}
.crumbs a { color: rgba(var(--onSurfRgb), .55); }
.crumbs a:hover { color: var(--accent); }
.crumbs span.sep { color: rgba(var(--onSurfRgb), .3); }
.pagehead { background: var(--surf); color: var(--onSurf);
  padding: clamp(22px, 3vw, 40px) clamp(16px, 3vw, 40px) clamp(34px, 4.4vw, 62px); }
.pagehead__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(20px, 3vw, 48px); align-items: end;
}

/* ---------- Главная: первый экран ---------- */
.hero { background: var(--surf); color: var(--onSurf); position: relative; }
.hero__in {
  max-width: 1360px; margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(16px, 3vw, 40px) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 3vw, 48px); align-items: end;
}
.hero__text { padding-bottom: clamp(24px, 4vw, 64px); min-width: 0; }
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vw, 32px); }
.hero__kicker i { width: 44px; height: 2px; background: var(--accent); display: block; }
.hero__kicker span {
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .22em;
  color: rgba(var(--onSurfRgb), .6); text-transform: uppercase;
}
.hero h1 {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.04; letter-spacing: -.01em; margin: 0 0 clamp(18px, 2vw, 28px);
  text-transform: uppercase; text-wrap: balance;
}
.hero p {
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; color: rgba(var(--onSurfRgb), .72);
  max-width: 46ch; margin: 0 0 clamp(26px, 3vw, 38px); text-wrap: pretty;
}
.hero__pics {
  position: relative; min-width: 0; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
}
.hero__pic { position: relative; min-width: 0; background: var(--deep); overflow: hidden; }
.hero__pic--big { grid-column: span 2; aspect-ratio: 16 / 11; }
.hero__pic--sm { aspect-ratio: 4 / 3; }
.hero__tag {
  position: absolute; left: 0; bottom: 0; background: var(--accent); color: var(--onAccent);
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .16em;
  padding: 8px 14px; pointer-events: none;
}
.stripe { border-top: 1px solid rgba(var(--onSurfRgb), .12); margin-top: clamp(32px, 4vw, 56px); }
.stripe__in {
  max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stripe__cell { padding: 22px; border-right: 1px solid rgba(var(--onSurfRgb), .1); }
.stripe__cell:first-child { padding-left: 0; }
.stripe__cell:last-child { border-right: 0; }
.stripe__num { font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.stripe__txt { font-size: 15px; font-weight: 500; }

/* ---------- Плитка изображения ---------- */
.pic { position: relative; min-width: 0; background: var(--ph); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.pic__num {
  position: absolute; top: 0; left: 0; background: var(--surf); color: var(--onSurf);
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .14em;
  padding: 7px 11px; pointer-events: none;
}

/* ---------- Направления ---------- */
.dirs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.5vw, 36px); align-items: stretch;
}
.dir-big {
  grid-column: span 2; min-width: 0; background: var(--surf); color: var(--onSurf);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  min-height: 340px;
}
.dir-big__text {
  padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column;
  justify-content: space-between; gap: 24px; min-width: 0;
}
.dir-big__text p { font-size: 16px; line-height: 1.6; color: rgba(var(--onSurfRgb), .7); max-width: 34ch; }
.dir-big__pic { position: relative; min-width: 0; min-height: 240px; background: var(--deep); overflow: hidden; }
.dir-big__pic img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.dir-card {
  background: var(--card); border: 1px solid rgba(var(--inkRgb), .1);
  display: flex; flex-direction: column; min-height: 340px; min-width: 0; color: var(--ink);
}
.dir-card__pic { position: relative; min-width: 0; height: 190px; background: var(--ph); overflow: hidden; }
.dir-card__pic img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.dir-card__text {
  padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column;
  justify-content: space-between; flex: 1; gap: 20px;
}
.dir-card__text p { font-size: 15px; line-height: 1.6; color: rgba(var(--inkRgb), .62); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px; font-family: 'Oswald', sans-serif;
  letter-spacing: .06em; text-transform: uppercase; font-size: 15px; color: var(--accent);
}
.arrow-link--ink { color: var(--ink); }
.arrow-link--ink span { color: var(--accent); }
.arrow-link span { font-size: 20px; line-height: 1; }

/* ---------- Карточки каталога ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card {
  min-width: 0; background: var(--page); border: 1px solid rgba(var(--inkRgb), .09);
  display: flex; flex-direction: column; min-height: 300px; color: var(--ink);
  transition: border-color .24s ease, transform .28s cubic-bezier(.22, .72, .28, 1), box-shadow .28s ease;
}
.sec--card .card { background: var(--page); }
.sec--page .card { background: var(--card); }
.card:hover { border-color: rgba(var(--inkRgb), .28); }
.card--wide { grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
.card__pic { position: relative; min-width: 0; min-height: 200px; background: var(--ph); overflow: hidden; }
.card--wide .card__pic { flex: 1 1 46%; }
.card__pic img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.card__body {
  flex: 1 1 240px; min-width: 0; padding: clamp(20px, 2vw, 30px);
  display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
}
.card__title { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.12; margin: 0 0 10px; color: var(--ink); }
.card--wide .card__title { font-size: clamp(24px, 2.6vw, 36px); }
.card__desc { font-size: 15px; line-height: 1.6; color: rgba(var(--inkRgb), .64); margin: 0 0 14px; text-wrap: pretty; }
.tagline {
  display: inline-block; border: 1px solid rgba(var(--inkRgb), .18);
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(var(--inkRgb), .7); padding: 6px 10px;
}
.tagline--light { border-color: rgba(var(--onSurfRgb), .28); color: var(--onSurf); font-size: 12px; padding: 8px 12px; }
.price-note { font-size: 13px; color: rgba(var(--inkRgb), .5); margin-bottom: 12px; }

/* ---------- Сетка бригад ---------- */
.grid-cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: rgba(var(--inkRgb), .12); border: 1px solid rgba(var(--inkRgb), .12);
}
.cell {
  background: var(--card); padding: 20px 18px; min-height: 112px; display: flex;
  flex-direction: column; justify-content: space-between; gap: 8px; color: var(--ink);
  transition: background-color .24s ease, color .24s ease;
}
.cell:hover { background: var(--surf); color: var(--onSurf); }
.cell__t { font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase; font-size: 17px; letter-spacing: .02em; }
.cell__d { font-size: 13px; line-height: 1.45; opacity: .62; }

/* ---------- Как работаем ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: rgba(var(--onSurfRgb), .14); }
.step { background: var(--surf); padding: clamp(22px, 2.4vw, 34px) clamp(18px, 2vw, 28px); min-width: 0; }
.step__n { font-family: 'Oswald', sans-serif; font-size: clamp(30px, 3vw, 44px); color: var(--accent); line-height: 1; margin-bottom: 16px; }
.step__t { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 18px; margin-bottom: 8px; }
.step__d { font-size: 14px; line-height: 1.55; color: rgba(var(--onSurfRgb), .6); }

/* ---------- Задачи и работы ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.tile {
  grid-column: span 1; min-width: 0; position: relative; min-height: 260px; background: var(--ph);
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(var(--inkRgb), .09); overflow: hidden;
}
.tile--wide { grid-column: span 2; }
.tile__bg { position: absolute; inset: 0; }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.tile__cap {
  position: relative; background: var(--surf); color: var(--onSurf); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tile__cap div:first-child { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 17px; letter-spacing: .02em; }
.tile__cap .arr { color: var(--accent); font-size: 18px; line-height: 1; }

.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.work { background: var(--card); border: 1px solid rgba(var(--inkRgb), .1); display: flex; flex-direction: column; min-width: 0; }
.work__pic { height: 220px; background: var(--ph); overflow: hidden; }
.work__pic img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.work__body { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work__place { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.work__t { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 20px; line-height: 1.15; }
.work__d { font-size: 15px; line-height: 1.6; color: rgba(var(--inkRgb), .64); }
.work__term { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(var(--inkRgb), .1); font-size: 14px; color: rgba(var(--inkRgb), .55); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.gallery figure { margin: 0; background: var(--ph); border: 1px solid rgba(var(--inkRgb), .09); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; touch-action: pan-y; }
.gallery figcaption { padding: 12px 14px; font-size: 13px; color: rgba(var(--inkRgb), .6); background: var(--card); }

/* ---------- Списки, таблицы ---------- */
.numlist { display: flex; flex-direction: column; border-top: 1px solid rgba(var(--inkRgb), .14); }
.numlist__i { padding: 16px 0; border-bottom: 1px solid rgba(var(--inkRgb), .12); display: flex; gap: 14px; align-items: baseline; }
.numlist__n { color: var(--accent); font-family: 'Oswald', sans-serif; font-size: 13px; }
.numlist__t { font-size: 16px; line-height: 1.5; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 14px 0; border-bottom: 1px solid rgba(var(--inkRgb), .12); font-size: 15px; vertical-align: top; }
.specs td:first-child { color: rgba(var(--inkRgb), .6); width: 55%; }
.specs td:last-child { text-align: right; font-weight: 500; }
.minicards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.minicard { background: var(--page); border: 1px solid rgba(var(--inkRgb), .1); display: flex; flex-direction: column; color: var(--ink); }
.sec--page .minicard { background: var(--card); }
.minicard:hover { border-color: var(--ink); }
.minicard__pic { position: relative; min-width: 0; height: 120px; background: var(--ph); overflow: hidden; }
.minicard__pic img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.minicard__t { padding: 14px; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 15px; line-height: 1.2; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 56px); align-items: start; }
.split--wide { gap: clamp(24px, 3vw, 48px); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.panel { background: var(--card); border: 1px solid rgba(var(--inkRgb), .1); padding: clamp(22px, 2.4vw, 32px); min-width: 0; }
.sec--card .panel { background: var(--page); }
.panel__t { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 19px; line-height: 1.15; margin-bottom: 12px; }
.panel__d { font-size: 15px; line-height: 1.6; color: rgba(var(--inkRgb), .64); }
.notes { display: flex; flex-direction: column; gap: 12px; }
.notes li { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: rgba(var(--inkRgb), .7); }
.notes li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 8px; background: var(--accent); }
.quote { background: var(--card); border: 1px solid rgba(var(--inkRgb), .1); border-left: 3px solid var(--accent); padding: clamp(20px, 2.2vw, 30px); min-width: 0; }
.sec--card .quote { background: var(--page); }
.quote__txt { font-size: 16px; line-height: 1.65; color: rgba(var(--inkRgb), .75); }
.quote__who { margin-top: 16px; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 15px; }
.quote__role { font-size: 13px; color: rgba(var(--inkRgb), .5); margin-top: 4px; }
.vac { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid rgba(var(--inkRgb), .12); }
.vac:first-of-type { border-top: 1px solid rgba(var(--inkRgb), .12); }
.vac__t { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 19px; margin-bottom: 6px; }
.vac__m { font-size: 14px; color: rgba(var(--inkRgb), .55); }
.vac__r { font-size: 15px; color: rgba(var(--inkRgb), .7); max-width: 46ch; }

/* ---------- Форма заявки ---------- */
.formsec {
  background: var(--surf); color: var(--onSurf);
  padding: clamp(56px, 7vw, 110px) clamp(16px, 3vw, 40px);
  border-top: 3px solid var(--accent);
}
.formsec__in {
  max-width: 1360px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 72px); align-items: start;
}
.formsec h2 {
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 54px); line-height: 1.05; margin: 0 0 18px;
}
.formsec__lead { font-size: 17px; line-height: 1.6; color: rgba(var(--onSurfRgb), .7); margin: 0 0 28px; max-width: 40ch; }
.formsec__contacts {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid rgba(var(--onSurfRgb), .14); padding-top: 24px;
}
.formsec__phone { font-family: 'Oswald', sans-serif; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .02em; color: var(--onSurf); }
.formsec__phone:hover { color: var(--accent); }
.formsec__sub { font-size: 15px; color: rgba(var(--onSurfRgb), .6); }
.formbox { background: var(--panel); padding: clamp(22px, 2.6vw, 40px); border: 1px solid rgba(var(--onSurfRgb), .1); min-width: 0; }
.field { display: block; margin-bottom: 18px; }
.field__label {
  display: block; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .16em;
  color: rgba(var(--onSurfRgb), .55); margin-bottom: 8px; text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%; background: var(--field); border: 1px solid rgba(var(--onSurfRgb), .18);
  color: var(--onField); font-size: 16px; padding: 15px 16px; outline: none; border-radius: 0;
}
.field textarea { resize: vertical; line-height: 1.5; min-height: 132px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--err); }
.field__err { display: none; color: var(--err); font-size: 13px; margin-top: 7px; }
.field.is-bad .field__err { display: block; }
.form__note { font-size: 12px; line-height: 1.55; color: rgba(var(--onSurfRgb), .45); margin-top: 14px; }
.form__note a { color: rgba(var(--onSurfRgb), .7); text-decoration: underline; }
.form__fail { color: var(--err); font-size: 14px; margin-top: 14px; display: none; }
.consent { display:flex; gap:10px; align-items:flex-start; margin:4px 0 16px; font-size:12px; line-height:1.5; color:rgba(var(--onSurfRgb),.65); cursor:pointer; }
.consent input { width:18px; height:18px; margin:1px 0 0; flex:0 0 auto; accent-color:var(--accent); }
.consent a { color:inherit; text-decoration:underline; }
.consent.is-bad { color:var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: flex; flex-direction: column; gap: 16px; min-height: 300px; justify-content: center; }
.done__mark {
  width: 52px; height: 52px; background: var(--accent); color: var(--onAccent);
  display: flex; align-items: center; justify-content: center;
}
.done__t { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.done__p { font-size: 16px; line-height: 1.6; color: rgba(var(--onSurfRgb), .7); margin: 0; }
.done__q {
  background: rgba(var(--onSurfRgb), .06); border-left: 2px solid var(--accent);
  padding: 12px 14px; font-size: 15px; line-height: 1.55; color: rgba(var(--onSurfRgb), .75);
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- Подвал ---------- */
.footer { background: var(--deep); color: var(--onSurf); padding: clamp(40px, 5vw, 72px) clamp(16px, 3vw, 40px) 28px; }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 3vw, 40px); padding-bottom: 32px;
  border-bottom: 1px solid rgba(var(--onSurfRgb), .12);
}
.footer__brand { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .14em; margin-bottom: 14px; }
.footer__about { font-size: 14px; line-height: 1.6; color: rgba(var(--onSurfRgb), .55); max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer__h { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .18em; color: rgba(var(--onSurfRgb), .4); margin-bottom: 4px; text-transform: uppercase; }
.footer__col a { font-size: 14px; color: rgba(var(--onSurfRgb), .75); }
.footer__col a:hover { color: var(--accent); }
.footer__phone { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--onSurf) !important; }
.footer__phone:hover { color: var(--accent) !important; }
.footer__txt { font-size: 14px; color: rgba(var(--onSurfRgb), .55); }
.footer__bot {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  padding-top: 20px; font-size: 13px; color: rgba(var(--onSurfRgb), .4);
}
.footer__bot a { color: rgba(var(--onSurfRgb), .4); }
.footer__bot a:hover { color: var(--accent); }

/* ---------- Кнопки быстрой связи ---------- */
.fab { position: fixed; right: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 22px); z-index: 60;
  display: flex; flex-direction: column; gap: 10px; }
.fab a {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--surf); color: var(--onSurf); border: 1px solid rgba(var(--onSurfRgb), .18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: background-color .22s ease, color .22s ease;
}
.fab a:hover { background: var(--accent); color: var(--onAccent); border-color: var(--accent); }
.fab a.fab--accent { background: var(--accent); color: var(--onAccent); border-color: var(--accent); }
.fab a.fab--accent:hover { background: var(--accentHi); }
.fab svg { width: 24px; height: 24px; display: block; }

/* ---------- Появление блоков при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(20px); }
  .js .rise.on {
    opacity: 1; transform: none;
    transition: opacity .62s cubic-bezier(.22, .72, .28, 1), transform .62s cubic-bezier(.22, .72, .28, 1);
    transition-delay: var(--d, 0ms);
  }
  .card:hover, .work:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .10); }
  .btn:active { transform: translateY(1px); }
}

/* ---------- Планшет и телефон ---------- */
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--surf); border-bottom: 1px solid rgba(var(--onSurfRgb), .14);
    padding: 6px clamp(16px, 3vw, 40px) 16px; max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .header { position: sticky; }
  .header__in { position: relative; }
  .nav.is-open { display: flex; }
  .nav__item { width: 100%; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(var(--onSurfRgb), .1); font-size: 16px; }
  .nav__item:hover > .nav__link { border-bottom-color: rgba(var(--onSurfRgb), .1); }
  .nav__link.is-active { border-bottom-color: var(--accent); }
  .nav__drop {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-top: 0; padding: 0 0 6px; min-width: 0; display: none; background: none;
  }
  .nav__item.is-open .nav__drop { display: block; }
  .nav__drop a { padding: 11px 0 11px 18px; border-bottom: 1px solid rgba(var(--onSurfRgb), .07); }
  .dir-big { grid-column: auto; }
  .card--wide { grid-column: auto; }
  .tile--wide { grid-column: auto; }
  .header__cta { display: none; }
}
@media (max-width: 720px) {
  .card--wide { flex-direction: column; }
  .card--wide .card__pic { flex: 0 0 auto; }
  .cards, .tiles, .works, .panels, .gallery { grid-template-columns: minmax(0, 1fr); }
  .stripe__cell { padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(var(--onSurfRgb), .1); }
  .stripe__cell:last-child { border-bottom: 0; }
  .fab a { width: 48px; height: 48px; }
  .vac { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .grid-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__pics { grid-template-columns: minmax(0, 1fr); }
  .hero__pic--big { grid-column: auto; }
}
/* Ничего не должно вылезать за край экрана */
.wrap > *, .sec > *, .cards > *, .tiles > *, .works > * { min-width: 0; }


/* Якорь формы не должен уезжать под шапку */
#form { scroll-margin-top: 72px; }

/* Меню на телефоне: контакты и тема внутри выпадающей панели */
.nav__contacts { display: none; }
@media (max-width: 960px) {
  .nav__contacts {
    display: flex; flex-direction: column; gap: 10px; padding-top: 16px;
    border-top: 1px solid rgba(var(--onSurfRgb), .12); margin-top: 10px;
  }
  .nav__contacts a { color: var(--onSurf); font-size: 15px; }
  .nav__contacts .btn { margin-top: 6px; }
}

/* Номер позиции на карточке (тот же вид, что в демо) */
.card__num {
  position: absolute; top: 0; left: 0; background: var(--surf); color: var(--onSurf);
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .14em;
  padding: 7px 11px; pointer-events: none;
}
a.card__pic, a.minicard__pic { display: block; }
a.card__pic:hover img, a.minicard__pic:hover img, .work__pic:hover img { transform: scale(1.03); }
.card__pic img, .minicard__pic img, .work__pic img { transition: transform .5s cubic-bezier(.22,.72,.28,1); }
.card__title a:hover { color: var(--accent); }

/* Подменю у правых пунктов раскрывается влево, чтобы не уезжать за экран */
.nav__drop--right { left: auto; right: -14px; }
@media (max-width: 960px) { .nav__drop--right { right: auto; } }

/* Название компании не должно распирать шапку на узком экране */
@media (max-width: 420px) {
  .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Кадрирование фотографий ----------
   Фотографии приходят с разными пропорциями. Без этого блока карточки в ряду
   получаются разной высоты, а заголовки не встают на одну линию. */
.hero__pic, .pic, .card__pic, .dir-big__pic, .dir-card__pic, .work__pic, .minicard__pic { position: relative; }
.hero__pic > img, .pic > img, .card__pic > img, .dir-big__pic > img,
.dir-card__pic > img, .work__pic > img, .minicard__pic > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.card__pic { aspect-ratio: 4 / 3; min-height: 200px; }
.card--wide .card__pic { aspect-ratio: auto; }
@media (max-width: 720px) { .card--wide .card__pic { aspect-ratio: 4 / 3; } }

/* Пока открыто меню, плавающие кнопки не закрывают его пункты */
body.menu-open .fab { display: none; }

/* ---------- Переключатель оформления ----------
   Раньше это был белый выпадающий список. Он выбивался из тёмной шапки,
   поэтому здесь своя кнопка в цветах сайта. */
.theme { position: relative; flex-shrink: 0; }
.theme__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 11px;
  background: rgba(var(--onSurfRgb), .07);
  border: 1px solid rgba(var(--onSurfRgb), .2);
  color: rgba(var(--onSurfRgb), .85);
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: border-color .22s ease, color .22s ease, background-color .22s ease;
}
.theme__btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
/* в шапке — только значок: подпись и стрелка нужны в меню на телефоне */
.header__side .theme__btn { width: 40px; padding: 0; }
.header__side .theme__btn .theme__now, .header__side .theme__btn .caret { display: none; }
.theme__btn .caret { font-size: 10px; opacity: .65; }
.theme__btn:hover, .theme.is-open .theme__btn { border-color: var(--accent); color: var(--onSurf); }
.theme__list {
  position: absolute; top: calc(100% + 7px); right: 0; min-width: 176px; z-index: 60;
  background: var(--surf); border: 1px solid rgba(var(--onSurfRgb), .16);
  border-top: 2px solid var(--accent); box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  padding: 5px 0; display: none;
}
.theme.is-open .theme__list { display: block; }
.theme__cap {
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(var(--onSurfRgb), .45); padding: 9px 16px 8px;
  border-bottom: 1px solid rgba(var(--onSurfRgb), .12); margin-bottom: 4px;
}
.theme__list button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-left: 2px solid transparent; padding: 11px 16px; cursor: pointer;
  font-family: 'Golos Text', system-ui, sans-serif; font-size: 14px;
  color: rgba(var(--onSurfRgb), .78);
}
.theme__list button:hover { background: rgba(var(--onSurfRgb), .07); color: var(--onSurf); }
.theme__list button.is-current { color: var(--accent); border-left-color: var(--accent); }
.nav__hours { font-size: 13px; color: rgba(var(--onSurfRgb), .5); line-height: 1.5; }

/* Шапка ужимается по ширине экрана: сначала уходит телефон, потом кнопка.
   Телефон и почта при этом остаются в подвале, в блоке заявки и на кнопке звонка. */
@media (max-width: 1259px) { .header__phone { display: none; } }
@media (max-width: 1119px) { .header__cta { display: none; } }
@media (max-width: 960px) {
  /* на телефоне значок оформления остаётся в углу, рядом с кнопкой меню */
  .header__side .theme__btn { width: 46px; height: 46px; }
  .theme__list { top: calc(100% + 9px); }
}

/* На средних экранах пункты меню чуть плотнее, чтобы не наезжать на кнопки */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav { gap: 11px; }
  .nav__link { font-size: 13px; }
}
@media (min-width: 1201px) and (max-width: 1340px) { .nav { gap: 13px; } }

/* Номер сборки в подвале. Нужен, пока идёт показ и правки: по нему видно,
   свежая ли страница открыта. Перед сдачей заказчику убирается. */
.build { opacity: .55; }

/* Мелкая ссылка входа в панель управления */
.header__login {
  font-size: 12px; color: rgba(var(--onSurfRgb), .4); white-space: nowrap;
  align-self: center; padding: 4px 2px;
}
.header__login:hover { color: var(--accent); }
@media (max-width: 1119px) { .header__login { display: none; } }

/* ---------- Логотип ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
@media (max-width: 420px) { .brand__logo { width: 34px; height: 34px; } }

/* ---------- Длинный текст из материалов заказчика ---------- */
.longread { font-size: 16px; line-height: 1.7; color: rgba(var(--inkRgb), .78); }
.longread p { margin: 0 0 14px; text-wrap: pretty; }
.longread__h {
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.2; color: var(--ink);
  margin: 30px 0 12px;
}
.longread__list { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.longread__list li { display: flex; gap: 12px; align-items: flex-start; }
.longread__list li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 10px; background: var(--accent);
}
