@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&family=Inter+Tight:wght@400..700&family=IBM+Plex+Mono:wght@400;500&family=Unbounded:wght@700&display=swap');

/* =========================================================
   Reset & Base
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Фон блоков — песочный тон под видео первого экрана */
:root {
  --bg-main: #ddd6ca;
  --bg-accent: #c9d3c0;
  --ink: #111;
  --muted: #7a7a7a;
  --rule: #cfc8bb;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f5f5f5;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--ink);
}

img,
video,
svg {
  display: block;
}

/* Wordmark SAFAR — широкий жирный Unbounded */
.wordmark {
  font-family: "Unbounded", "Inter Tight", sans-serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* =========================================================
   Header
========================================================= */
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  z-index: 1111;
  display: flex;
  align-items: center;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header.hide {
  transform: translateY(-100%);
}

/* Brand */
.brand {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  z-index: 3;
}

.brand .wordmark {
  font-size: 24px;
  letter-spacing: 0.04em;
}

/* Navigation */
.direction {
  position: absolute;
  top: 0;
  left: 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.direction a {
  position: relative;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #555;
  transition: color 0.35s ease;
}

.direction a:hover,
.direction a.active {
  color: #000;
}

.direction a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: #000;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.direction a:hover::after,
.direction a.active::after {
  width: 70%;
}

/* Icons area */
.icons {
  position: absolute;
  right: 20px;
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease, color 0.35s ease;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.burger {
  display: none;
}

/* Кнопка «Заявка» в шапке */
.hd-cta {
  margin-left: 6px;
  padding: 13px 20px;
  border: none;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.hd-cta:hover {
  background: #333;
}

/* =========================================================
   Language Dropdown
========================================================= */
.lang-btn {
  height: 42px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  font: inherit;
  transition: background 0.2s ease;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.lang-btn__flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-btn__code {
  color: #333;
  font-size: 12px;
  font-weight: 500;
}

.lang-btn__arrow {
  color: #333;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn.active .lang-btn__arrow {
  transform: rotate(180deg);
}

.lang-btn__line {
  width: 1px;
  height: 20px;
  margin-left: 4px;
  background-color: #ccc;
}

.lang-dropdown {
  position: absolute;
  right: 230px;
  top: 70px;
  width: 200px;
  border: 1px solid #c0bdbd;
  background-color: #f5f5f5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 9;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang {
  width: 100%;
  height: 36px;
  margin-bottom: 4px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang:hover {
  background: rgba(0, 0, 0, 0.04);
}

.lang img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* =========================================================
   Slide Panels (Заявка, мобильное меню)
========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1150;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #fafafa;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}

.panel.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.panel--left {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.panel-hd__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.panel-close {
  width: 34px;
  height: 34px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.2s;
}

.panel-close:hover {
  background: #e4e4e4;
  color: #111;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.panel-lead {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Мобильное меню */
.mnav {
  display: flex;
  flex-direction: column;
}

.mnav a {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-family: "Inter Tight", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.mnav-contacts {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.mnav-contacts a {
  color: var(--ink);
}

/* =========================================================
   Forms (панель заявки и блок заявки)
========================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
}

.input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #e2e2e2;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.input:focus {
  border-color: var(--ink);
}

textarea.input {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip input {
  display: none;
}

.chip span {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
}

.chip span:hover {
  border-color: #aaa;
}

.chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 22px 30px;
  border: none;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #333;
}

.btn--ghost {
  background: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--full {
  width: 100%;
}

.form-note {
  font-size: 12px;
  line-height: 1.5;
  color: #999;
}

.form-success {
  display: none;
  padding: 18px;
  background: #fff;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.form.sent .form-success {
  display: block;
}

/* =========================================================
   Hero — текст слева, видео справа
========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  min-height: 600px;
  max-height: 960px;
  padding-top: 80px;
  background: var(--bg-main);
}

.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 48px 80px 85px;
}

.hero-title {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(40px, 5.2vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: pre-line;
  margin: 28px 0 32px;
}

.hero-lead {
  max-width: 480px;
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  position: absolute;
  left: 85px;
  bottom: 36px;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

/* =========================================================
   Stats
========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.stat {
  padding: 56px 24px 48px 0;
  border-bottom: 1px solid #ddd;
}

.stat + .stat {
  padding-left: 32px;
  border-left: 1px solid #ddd;
}

.stat-num {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.stat .eyebrow {
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   Section Header (Title + View All)
========================================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 90px 44px 40px;
}

.section-title {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.view-all-btn {
  padding: 14px 36px;
  border: 1.5px solid #000;
  background: none;
  color: #000;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #000;
  color: #fff;
}

/* =========================================================
   Directions — два направления
========================================================= */
.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 40px;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  background: var(--bg-main);
}

.dir-card--alt {
  background: var(--bg-accent);
}

.dir-card__num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.dir-card__art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.dir-card__art {
  margin: 24px -40px;
  overflow: hidden;
}

.dir-card__art img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dir-card__art--contain img {
  object-fit: contain;
}

.dir-card:hover .dir-card__art img {
  transform: scale(1.04);
}

.dir-card__title {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.dir-card__text {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.dir-card__arrow {
  position: absolute;
  right: 40px;
  bottom: 40px;
  transition: transform 0.3s ease;
}

.dir-card:hover .dir-card__arrow {
  transform: translate(4px, -4px);
}

/* =========================================================
   Catalog — модели в ряд (как watch-line)
========================================================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px 40px;
}

.tab {
  padding: 10px 20px;
  border: 1.5px solid #ddd;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  border-color: #999;
  color: #000;
}

.tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.model-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.model-line--2 {
  grid-template-columns: repeat(2, 1fr);
}

.model-line--2 .model-card__img {
  height: 440px;
}

.model-card {
  position: relative;
  cursor: pointer;
}

.model-card[hidden] {
  display: none;
}

.model-card__name {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-card__meta {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.model-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  margin-top: 20px;
  background: #ebe7df;
}

.model-card__img {
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

/* Фото на всю карточку; второе фото появляется при наведении */
.model-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.model-card__img--contain img {
  object-fit: contain;
  padding: 12px;
}

.model-card__img img.is-contain {
  object-fit: contain;
  padding: 12px;
  background: #ebe7df;
}

.model-card__img img + img {
  opacity: 0;
}

.model-card:hover .model-card__img img + img {
  opacity: 1;
}

.model-card:hover .model-card__img img {
  transform: scale(1.04);
}

.model-card__series {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.model-card__old-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.model-card__old {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
}

.model-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 6px 4px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.model-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.model-card__price {
  font-size: 15px;
  font-weight: 600;
}

.model-card__atc {
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s, color 0.2s;
}

.model-card:hover .model-card__atc {
  opacity: 1;
}

.model-card__atc:hover {
  color: var(--ink);
}

/* =========================================================
   Story — медиа слева, текст справа
========================================================= */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 720px;
  margin-top: 110px;
}

.story-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-main);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story:hover .story-media img {
  transform: scale(1.03);
}

/* Генплан показываем целиком */
.story-media--contain img {
  object-fit: contain;
  padding: 32px;
}

.story-media__tag {
  position: absolute;
  left: 32px;
  bottom: 28px;
  font-size: 12px;
}

.story-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 48px 40px 130px;
  background: var(--bg-accent);
}

.story-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  margin: 0 0 36px;
}

.story-facts b {
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.story-facts span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}

/* =========================================================
   POV — левый заголовок, правый текст (процесс, преимущества, FAQ)
========================================================= */
.pov {
  background: var(--bg-main);
  padding: 0 100px;
}

.pov--light {
  background: #f5f5f5;
}

.pov-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 110px 96px 100px;
}

.pov-row + .pov-row {
  border-top: 1px solid var(--rule);
}

.pov-row--faq {
  scroll-margin-top: 80px;
  padding-bottom: 60px;
}

.pov-title {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(40px, 4.4vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: pre-line;
  margin-top: 28px;
}

.pov-title--sm {
  font-size: clamp(30px, 2.6vw, 46px);
  margin-top: 22px;
}

.pov-right {
  padding-top: 24px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.7;
}

.pov-right p {
  margin-bottom: 32px;
}

.pov-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.pov-link:hover {
  opacity: 0.6;
}

/* Нумерованные строки — этапы и преимущества */
.steps {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.step-num {
  grid-row: span 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 500;
}

.step-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* Аккордеон на <details> — без JS */
.hfaq {
  border-top: 1px solid var(--rule);
}

.hfaq-item {
  border-bottom: 1px solid var(--rule);
}

.hfaq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.hfaq-item summary::-webkit-details-marker {
  display: none;
}

.hfaq-plus {
  position: relative;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.hfaq-plus::before,
.hfaq-plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.hfaq-plus::after {
  transform: rotate(90deg);
}

.hfaq-item[open] .hfaq-plus::after {
  transform: rotate(0deg);
}

.hfaq-item p {
  padding: 0 40px 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* =========================================================
   Projects — сетка карточек
========================================================= */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.project {
  color: var(--ink);
  text-decoration: none;
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-main);
}

.project:nth-child(2) .project-media {
  background: var(--bg-accent);
}

.project:nth-child(3) .project-media {
  background: #e6e1d6;
}

.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project:hover .project-media img {
  transform: scale(1.04);
}

.project-media--contain {
  background: #ebe7df !important;
}

.project-media--contain img {
  object-fit: contain;
}

.project-media .eyebrow {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.project-name {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Calculator
========================================================= */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 48px 48px 0;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}

.calc-field__val {
  font-family: "Inter Tight", sans-serif;
  font-size: 22px;
  font-weight: 500;
}

.calc input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: var(--ink);
  color: #f2f2f2;
}

.calc-result .eyebrow {
  color: #a8a8a8;
  font-size: 12px;
}

.calc-big {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 12px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.calc-grid b {
  display: block;
  margin-top: 6px;
  font-family: "Inter Tight", sans-serif;
  font-size: 24px;
  font-weight: 500;
}

.calc-hint {
  font-size: 12px;
  line-height: 1.5;
  color: #8a8a8a;
}

/* =========================================================
   Request — блок заявки
========================================================= */
.request {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1600px;
  margin: 110px auto 0;
  padding: 0 44px;
}

.request .form {
  padding: 40px;
  background: #fff;
}

.request-contacts {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.request-contacts a {
  color: var(--ink);
}

/* =========================================================
   Footer — тёмная карточка с большим логотипом
========================================================= */
.ft {
  padding: 110px clamp(16px, 10vw, 194px) 0;
}

.ft-card {
  max-width: 1500px;
  margin: 0 auto;
  padding: 80px clamp(24px, 5vw, 95px) 40px;
  background: #121212;
  color: #f2f2f2;
}

.ft-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.ft-eyebrow {
  margin-bottom: 22px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ft-title {
  margin-bottom: 24px;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

.ft-text {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.55;
  color: #a8a8a8;
}

.ft-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ft-col .ft-eyebrow {
  margin-bottom: 8px;
}

.ft-col a,
.ft-col button {
  padding: 0;
  border: 0;
  background: none;
  color: #f2f2f2;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ft-col a:hover,
.ft-col button:hover {
  opacity: 0.6;
}

.ft-mark {
  display: block;
  margin: 150px 0;
  font-size: clamp(48px, 13vw, 230px);
  letter-spacing: 0.04em;
  text-align: center;
  color: #ececec;
}

.ft-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid #333;
  font-size: 11px;
}

.ft-motto {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.ft-social {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.ft-social a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.ft-social a:hover {
  opacity: 0.6;
}

/* =========================================================
   Project page — Balkhash Lake
========================================================= */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.buy-grid > div {
  padding: 28px 24px 32px;
  background: var(--bg-main);
}

.buy-grid h3 {
  margin: 28px 0 10px;
  font-family: "Inter Tight", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.buy-grid p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.wide-figure {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.wide-figure img {
  width: 100%;
  height: auto;
}

.wide-figure figcaption {
  margin-top: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  max-width: 1600px;
  margin: 24px auto 0;
  padding: 0 44px;
  font-size: 14px;
}

.legend b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}

@media (max-width: 900px) {
  .buy-grid { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .wide-figure, .legend { padding: 0 16px; }
  .legend { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .buy-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Services / Contacts / Articles
========================================================= */
.service-row {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px 40px;
  align-items: start;
}

.service-row .pov-right {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1600px;
  margin: 72px auto 0;
  padding: 0 44px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.contact-card b {
  font-family: "Inter Tight", sans-serif;
  font-size: 22px;
  font-weight: 500;
  word-break: break-word;
}

.contact-card span {
  font-size: 13px;
  color: var(--muted);
}

.contact-card:hover {
  background: var(--ink);
  color: #fff;
}

.contact-card:hover .eyebrow,
.contact-card:hover span {
  color: #bbb;
}

.legal h3 {
  margin: 32px 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.legal h3:first-child {
  margin-top: 0;
}

.legal p {
  margin-bottom: 0;
  font-size: 16px;
}

.legal a,
.form-note a {
  color: inherit;
}

@media (max-width: 900px) {
  .service-row { padding: 0 16px 24px; }
  .contact-grid { grid-template-columns: 1fr 1fr; padding: 0 16px; margin-top: 40px; }
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Shares — целиком или по частям
========================================================= */
.shares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.share {
  padding: 24px 20px 22px 0;
}

.share + .share {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.share-frac {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 500;
  line-height: 1;
}

.shares--sm .share-frac {
  font-size: clamp(28px, 2.6vw, 40px);
  white-space: nowrap;
}

.share .eyebrow {
  margin: 10px 0 14px;
  font-size: 11px;
}

.share-price {
  font-size: 15px;
  font-weight: 600;
}

.terms {
  list-style: none;
  margin-bottom: 32px;
}

.terms li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
}

.terms li b {
  font-weight: 600;
}

/* =========================================================
   Catalog page
========================================================= */
.page-hero {
  padding: 160px 44px 72px;
  background: var(--bg-main);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: 1600px;
  margin: 0 auto;
}

.page-hero .hero-title {
  margin-bottom: 0;
}

.page-hero .hero-lead {
  margin: 0;
}

.anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.anchors a {
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.anchors a:hover {
  background: var(--ink);
  color: #fff;
}

.cat-section {
  scroll-margin-top: 40px;
}

.cat-intro {
  max-width: 1600px;
  margin: -16px auto 40px;
  padding: 0 44px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.cat-intro p {
  max-width: 760px;
}

/* Модель: галерея слева, данные справа */
.model-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 56px 44px;
  border-top: 1px solid #ddd;
}

.model-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}

.model-gallery figure {
  position: relative;
  background: #ebe7df;
  overflow: hidden;
}

.model-gallery figure:first-child,
.model-gallery figure:first-child:nth-last-child(2) ~ figure {
  grid-column: 1 / -1;
}

.model-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.model-gallery--contain img,
.model-gallery .fig--contain img {
  object-fit: contain;
  padding: 10px;
}

/* Планировка — на всю ширину, без обрезки */
.model-gallery .fig--plan {
  grid-column: 1 / -1;
}

.model-gallery .fig--plan img {
  aspect-ratio: auto;
  object-fit: contain;
}

.model-gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-info .eyebrow {
  font-size: 12px;
  color: var(--muted);
}

.model-info__title {
  margin: 14px 0 12px;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.model-info__lead {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

.block-label {
  display: block;
  margin: 28px 0 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #e2e2e2;
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.spec-table tbody th {
  font-weight: 400;
  color: var(--muted);
}

/* Цена: весь дом / ½ / ¼ */
.price-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
}

.price-box > div {
  padding: 18px;
}

.price-box > div + div {
  border-left: 1px solid #eee;
}

.price-box .eyebrow {
  font-size: 11px;
  color: var(--muted);
}

.price-box b {
  display: block;
  margin-top: 8px;
  font-family: "Inter Tight", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.price-box s {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Цена только дома — без участка */
.house-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 18px;
  background: var(--ink);
  color: #f2f2f2;
}

.house-price b {
  font-family: "Inter Tight", sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.house-price span {
  font-size: 12px;
  color: #a8a8a8;
}

.price-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 14px;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1.5px;
  background: var(--ink);
}

.checklist li.off {
  color: #b5b5b5;
  text-decoration: line-through;
}

.model-info .btn {
  margin-top: 32px;
}

/* Комплектация */
.spec-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
}

.spec-groups h3 {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.spec-groups ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #444;
}

.spec-groups b {
  color: var(--ink);
  font-weight: 600;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 1600px;
  margin: 40px auto 0;
  padding: 0 44px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-strip--3 {
  grid-template-columns: repeat(3, 1fr);
}

.photo-strip--4 {
  grid-template-columns: repeat(4, 1fr);
}

.photo-strip--4 img {
  aspect-ratio: 3 / 4;
}

/* Сравнение цен */
.table-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 44px;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom-color: var(--ink);
}

.price-table td b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.price-table td s {
  font-size: 12px;
  color: var(--muted);
}

.price-table .t-model {
  font-weight: 600;
}

.price-table .t-model span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.table-note {
  max-width: 1600px;
  margin: 16px auto 0;
  padding: 0 44px;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   Catalog views — список / каскад (как в U-Shop)
========================================================= */
.pl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 44px;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pl-count b {
  font-weight: 600;
}

.pl-views {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pl-view {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pl-view:hover,
.pl-view.is-active {
  opacity: 1;
}

.pl-sep {
  width: 1px;
  height: 22px;
  background: #cfcfcf;
}

.catalog-view[hidden] {
  display: none;
}

.model-row,
.model-card {
  scroll-margin-top: 90px;
}

.pc-root {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 80px);
  min-height: 560px;
  max-height: 900px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  outline: none;
  --pc-s: clamp(170px, min(40vmin, 26vw), 360px);
  --pc-pad: clamp(16px, 3vw, 44px);
}

.pc-root[data-dragging],
.pc-root[data-dragging] .pc-slide {
  cursor: grabbing;
}

.pc-frame {
  position: absolute;
  inset: calc(var(--pc-pad) * 0.45);
  border: 1px solid rgba(17, 17, 17, 0.12);
  pointer-events: none;
}

.pc-stage {
  position: absolute;
  left: 52%;
  top: 54%;
  width: var(--pc-s);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  perspective: calc(var(--pc-s) * 3.2);
}

.pc-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  will-change: transform;
  transform-style: preserve-3d;
  outline: none;
}

.pc-tilt {
  position: absolute;
  inset: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pc-slide[data-active] .pc-tilt {
  transform: translateZ(var(--pc-lift, 0px))
             rotateX(calc(var(--pc-py, 0) * -12deg))
             rotateY(calc(var(--pc-px, 0) * 12deg));
}

.pc-slide[data-active]:hover {
  --pc-lift: calc(var(--pc-s) * 0.05);
}

/* Фото квадратом — у моделей нет вырезанных PNG, как у часов в U-Shop */
.pc-tilt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.pc-slide:focus-visible .pc-tilt {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.pc-head {
  position: absolute;
  top: var(--pc-pad);
  left: var(--pc-pad);
  z-index: 300;
  width: clamp(200px, 24vw, 320px);
  pointer-events: none;
}

.pc-tag {
  margin-bottom: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pc-title {
  margin-bottom: 14px;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.pc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.5);
}

.pc-row dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.pc-row dd {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.pc-in {
  animation: pc-in 0.8s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes pc-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(5px); }
}

.pc-ctl {
  position: absolute;
  right: var(--pc-pad);
  bottom: var(--pc-pad);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}

.pc-btn:hover:not(:disabled) { background: rgba(17, 17, 17, 0.08); }
.pc-btn:active:not(:disabled) { transform: scale(0.9); }
.pc-btn:disabled { opacity: 0.28; cursor: default; }

.pc-count {
  min-width: 58px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pc-count b { font-weight: 600; }

.pc-hint {
  position: absolute;
  left: var(--pc-pad);
  bottom: var(--pc-pad);
  z-index: 300;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 38px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 900px) {
  .pl-bar { padding: 20px 16px; font-size: 12px; }
  .pl-view span { display: none; }
}

@media (max-width: 720px) {
  .pc-root { height: 620px; min-height: 0; }
  .pc-head { width: calc(100% - var(--pc-pad) * 2); }
  .pc-stage { top: 62%; left: 50%; }
  .pc-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-in { animation: none; }
  .pc-tilt, .pc-btn { transition: none; }
}

/* =========================================================
   Tab bar — нижняя навигация на телефоне
========================================================= */
.tabbar {
  display: none;
}

@media (max-width: 900px) {
  .tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    display: flex;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }

  .tabbar__pill {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.3, 0.8, 0.2, 1), width 0.5s cubic-bezier(0.3, 0.8, 0.2, 1);
    pointer-events: none;
  }

  .tabbar__pill.no-anim {
    transition: none;
  }

  .tabbar__item {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 56px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar__item span {
    white-space: nowrap;
  }

  .tabbar__item.is-active {
    font-weight: 700;
  }

  .tabbar__item.is-active svg {
    stroke-width: 2;
  }

  /* Место под панель внизу страницы */
  body {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  /* WhatsApp есть в шапке, плавающая кнопка мешала бы панели */
  body .wa-float {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar__pill { transition: none; }
}

/* Плавающая кнопка WhatsApp */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.06);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1200px) {
  .direction a { padding: 10px 6px; font-size: 11px; }
  .pov { padding: 0 40px; }
  .pov-row { padding: 90px 40px 80px; }
  .story-text { padding: 40px 48px; }
  .ft-top { grid-template-columns: 1fr 1fr 1fr; }
  .ft-intro { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .direction { display: none; }
  .burger { display: flex; }
  .brand { left: 70px; transform: none; }
  .icons { right: 12px; }
  .lang-dropdown { right: 12px; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-text { padding: 48px 24px 80px; }
  .hero-note { left: 24px; bottom: 28px; }
  .hero-media { height: min(60vh, 520px); }

  .stats { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .stat, .stat + .stat { padding: 32px 16px; border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid #ddd; }

  .section-header { padding: 64px 16px 28px; }
  .tabs { padding: 0 16px 28px; }

  .directions,
  .projects,
  .calc,
  .request {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .dir-card { min-height: 440px; padding: 28px; }
  .dir-card__arrow { right: 28px; bottom: 28px; }

  .model-line { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .model-line--2 .model-card__img { height: 260px; }
  .model-card__img { height: 240px; }
  .model-card__atc { opacity: 1; }

  .dir-card__art { margin: 20px -28px; }
  .dir-card__art img { height: 240px; }

  .page-hero { padding: 120px 16px 48px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .cat-intro { padding: 0 16px; }
  .model-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px; }
  .spec-groups { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .photo-strip { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .table-wrap, .table-note { padding: 0 16px; }
  .terms li { grid-template-columns: 1fr; gap: 4px; }

  .story { grid-template-columns: 1fr; height: auto; margin-top: 64px; }
  .story-media { height: min(60vh, 520px); }
  .story-text { padding: 48px 24px 56px; }

  .pov { padding: 0; }
  .pov-row { grid-template-columns: 1fr; gap: 24px; padding: 64px 24px; }
  .pov-right { padding-top: 0; font-size: 16px; }

  .calc-inputs { padding: 32px 0; }
  .calc-result { padding: 32px 24px; }

  .request { margin-top: 64px; }
  .request .form { padding: 24px; }

  .ft { padding: 64px 0 0; }
  .ft-card { padding: 56px 24px 28px; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-mark { margin: 80px auto; }
  .ft-bottom { grid-template-columns: 1fr; justify-items: start; }
  .ft-social { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .hd-cta,
  .lang-btn__code,
  .lang-btn__line,
  .icon-btn--tel { display: none; }
  .brand { left: 58px; }
  .brand .wordmark { font-size: 20px; }
  .model-line { grid-template-columns: 1fr; }
  .story-facts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .spec-groups { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .price-box b { font-size: 17px; }
  .price-box > div { padding: 14px 10px; }
  .share + .share { padding-left: 12px; }
  .share-price { font-size: 13px; }
  .hero-actions .btn { width: 100%; }
}

/* =========================================================
   Mobile polish — телефон
   Длинные сетки становятся лентами со свайпом: следующая
   карточка выглядывает справа, страница короче.
========================================================= */
@media (max-width: 900px) {
  /* Первый экран не ограничиваем по высоте, иначе фото наезжает на следующий блок */
  .hero { max-height: none; min-height: 0; }

  /* Заголовок раздела и кнопка — в одну строку */
  .section-header { flex-wrap: nowrap; align-items: flex-end; gap: 12px; }
  .section-title {
    white-space: normal;
    font-size: clamp(24px, 6.6vw, 32px);
    letter-spacing: 1px;
    line-height: 1.1;
  }
  .view-all-btn { flex-shrink: 0; padding: 10px 14px; font-size: 10px; letter-spacing: 1px; }

  /* Фильтры и якоря — горизонтальная прокрутка вместо переноса */
  .tabs,
  .anchors {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar,
  .anchors::-webkit-scrollbar { display: none; }
  .tab,
  .anchors a { flex-shrink: 0; }

  /* Ленты карточек */
  .model-line,
  .projects,
  .directions,
  .buy-grid,
  .photo-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    padding: 0 16px 8px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .model-line::-webkit-scrollbar,
  .projects::-webkit-scrollbar,
  .directions::-webkit-scrollbar,
  .buy-grid::-webkit-scrollbar,
  .photo-strip::-webkit-scrollbar { display: none; }

  .model-line > *,
  .projects > *,
  .directions > * {
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .buy-grid > * { flex: 0 0 72%; scroll-snap-align: start; }
  .photo-strip > * { flex: 0 0 72%; scroll-snap-align: start; }
  .model-card__img { height: 260px; }
  .dir-card { min-height: 0; }

  /* Галерея модели — одна лента вместо столбика из 4–6 фото */
  .model-gallery {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .model-gallery::-webkit-scrollbar { display: none; }
  .model-gallery figure {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .model-gallery .fig--plan img { aspect-ratio: 16 / 10; }
  .model-row { gap: 20px; padding: 32px 16px 40px; }

  /* Крупные блоки — компактнее */
  .pov-row { padding: 56px 20px; }
  .pov-title { font-size: clamp(34px, 9vw, 44px); }
  .story-media { height: 300px; }
  .story-text { padding: 40px 20px 48px; }
  .story-text .hero-title { font-size: clamp(34px, 9vw, 44px); margin: 18px 0 20px; }
  .story { margin-top: 48px; }
  .page-hero { padding: 112px 16px 40px; }
  .page-hero .hero-title { font-size: clamp(34px, 9.5vw, 46px); }
  .hero-text { padding: 40px 20px 72px; }
  .hero-title { font-size: clamp(36px, 10vw, 48px); margin: 20px 0 22px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { width: 100%; }

  /* Узкие таблицы помещаются в экран, широкие листаются — с подсказкой */
  .price-table--short { min-width: 0; font-size: 13px; }
  .price-table--short th,
  .price-table--short td { padding: 12px 10px 12px 0; }
  .table-wrap:has(.price-table:not(.price-table--short))::before {
    content: "Листайте таблицу →";
    display: block;
    margin-bottom: 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    position: sticky;
    left: 0;
  }
}

@media (max-width: 600px) {
  .hero-actions .btn { padding: 18px 22px; }
  .btn { padding: 18px 22px; gap: 24px; }
  .stat-num { font-size: 36px; }
  .stat .eyebrow { font-size: 10px; }
  .calc-big { font-size: 40px; }
  .ft-mark { margin: 56px auto; }
}

/* Колонки не растягиваются шире экрана из-за лент без переноса */
.page-hero__inner > *,
.hero-text,
.story-text,
.pov-row > *,
.model-row > * {
  min-width: 0;
}

/* =========================================================
   Главная: три формата в карточке «Продажа» и ссылки на страницы
========================================================= */
.dir-card__art--trio {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 340px;
}

.trio {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.3, 0.8, 0.2, 1);
}

.dir-card__art--trio .trio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trio b {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.92);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Полоса под курсором раскрывается */
.trio:hover {
  flex: 2.2;
}

.dir-card:hover .dir-card__art--trio .trio img {
  transform: none;
}

.pov-note {
  max-width: 420px;
  margin: 28px 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: #444;
}

.pov-link--after {
  grid-column: 2;
  justify-self: start;
  margin-top: -24px;
}

.request .pov-link--after {
  margin-top: 28px;
}

.pov-link--light {
  align-self: flex-start;
  color: #f2f2f2;
  border-bottom-color: #f2f2f2;
}

@media (max-width: 900px) {
  .dir-card__art--trio { height: 240px; }
  .trio b { left: 6px; bottom: 6px; padding: 4px 6px; font-size: 9px; }
  .pov-link--after { grid-column: auto; margin-top: 0; }
}

/* =========================================================
   Языковые версии
========================================================= */
/* Китайский: у Inter нет иероглифов — берём системные CJK-шрифты */
html[lang="zh"] body,
html[lang="zh"] .btn,
html[lang="zh"] .input {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}

/* Сжатый трекинг латинских заголовков слепляет иероглифы */
html[lang="zh"] .hero-title,
html[lang="zh"] .pov-title,
html[lang="zh"] .section-title,
html[lang="zh"] .dir-card__title,
html[lang="zh"] .model-info__title,
html[lang="zh"] .ft-title,
html[lang="zh"] .eyebrow {
  letter-spacing: 0.02em;
}

/* Переключатель языка — ссылки */
.lang {
  text-decoration: none;
}

.lang.is-current {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* Ошибка отправки формы */
.form-error {
  font-size: 13px;
  line-height: 1.5;
  color: #b3261e;
}

.form-error:empty {
  display: none;
}

.form [type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Поле-ловушка для ботов: людям не видно, боты заполняют */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
