/* ═══════════════════════════════════════════
   ДОМ ЯНТЕ · GLOBAL STYLESHEET
   ═══════════════════════════════════════════ */

:root {
  --ink:    #14181F;
  --bone:   #F5F2ED;
  --warm:   #EAE4DA;
  --accent: #2B5F8E;
  --muted:  #6B7280;
  --border: #D4CFC8;
  --white:  #FFFFFF;
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,242,237,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a.nav-cta {
  background: var(--ink);
  color: var(--bone) !important;
  opacity: 1 !important;
  padding: 9px 20px;
  border-radius: 2px;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  transition: background 0.2s !important;
}
.nav-links a.nav-cta:hover { background: var(--accent) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
  display: flex;
  align-items: center;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ─── HERO (old split layout — superseded by .hero-fs) ─── */
.hero {
  display: none; /* replaced by .hero-fs on index.html */
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 48px 72px 64px;
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat { background: var(--bone); padding: 18px 12px; text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  display: block;
}
.stat-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(20,24,31,0.85);
  backdrop-filter: blur(8px);
  color: var(--bone);
  padding: 16px 20px;
  border-radius: 2px;
  border-left: 3px solid var(--accent);
}
.badge-line {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.8;
}
.badge-line strong { color: var(--bone); opacity: 1; }

/* ─── LAYOUT ─── */
.section { padding: 96px 0; }
.section-alt { background: var(--warm); }
.section-dark { background: var(--ink); color: var(--bone); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.section-dark .section-eyebrow { color: rgba(245,242,237,0.45); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.section-dark .section-title { color: var(--bone); }
.section-title em { font-style: italic; color: var(--accent); }
.section-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 48px;
}
.section-dark .section-lead { color: rgba(245,242,237,0.6); }
.section-cta-row { margin-top: 40px; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  min-height: 44px;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-white {
  background: var(--white);
  color: var(--accent);
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.9; }

/* ─── PRINCIPLES ─── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.principle {
  background: var(--bone);
  padding: 40px 32px;
}
.section-alt .principle { background: var(--warm); }
.principle-num {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
  display: block;
  text-transform: uppercase;
}
.principle-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.principle-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  letter-spacing: 0.01em;
}
/* Fix: карточка 05 закрывает пустую 6-ю ячейку сетки (5 карточек в 3-колоночной сетке) */
.principles-grid .principle:nth-child(5){
  grid-column: 2 / span 2;
}
@media (max-width: 1024px) and (min-width: 901px){
  .principles-grid .principle:nth-child(5){
    grid-column: 1 / span 2;
  }
}
@media (max-width: 900px){
  .principles-grid .principle:nth-child(5){
    grid-column: auto;
  }
}

/* ─── TECH FOUR GRID ─── */
.tech-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.tech-card {
  background: var(--warm);
  padding: 36px 28px;
}
.tech-card-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}
.tech-card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
}
.tech-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.tech-card-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ─── PROJECTS PREVIEW (HOME) ─── */
.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.project-preview-card {
  background: var(--bone);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.2s;
}
.project-preview-card:hover { background: var(--white); }
.ppc-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
.ppc-body { padding: 20px; }
.ppc-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--ink);
}
.ppc-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ppc-price { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ─── NUMBERS GRID ─── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
}
.number-card {
  background: rgba(255,255,255,0.05);
  padding: 40px 32px;
}
.number-val {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 8px;
}
.number-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.45);
  margin-bottom: 16px;
}
.number-desc {
  font-size: 14px;
  color: rgba(245,242,237,0.6);
  line-height: 1.7;
}

/* ─── HOME CTA / CONTACT GRID ─── */
.home-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.home-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.cdet-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.cdet-val {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1.5;
}
.cdet-val:hover { color: var(--accent); }
.tag-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 2px;
  transition: border-color 0.2s;
  display: inline-block;
}
.tag-link:hover { border-color: var(--ink); }

/* ─── FORM ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-consent { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* ─── PAGE HEADER ─── */
.page-header {
  padding-top: 64px;
  background: var(--ink);
  padding-bottom: 72px;
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
.page-header-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.38);
  margin-bottom: 14px;
  display: block;
}
.page-header-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  color: var(--bone);
  line-height: 1.04;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-header-title em { font-style: italic; color: rgba(245,242,237,0.55); }
.page-header-sub {
  font-size: 16px;
  color: rgba(245,242,237,0.6);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 300;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(245,242,237,0.35);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(245,242,237,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: rgba(245,242,237,0.7); }
.breadcrumb-sep { opacity: 0.25; }

/* ─── TABLE ─── */
.table-wrap { overflow-x: auto; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
thead th {
  text-align: left;
  padding: 13px 20px;
  background: var(--ink);
  color: var(--bone);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
tbody td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--warm); }
.check { color: var(--accent); font-weight: 700; font-size: 15px; }
.cross { color: var(--border); }
td.td-group {
  background: var(--warm);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 10px 20px;
}

/* ─── PROJECTS CATALOG ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.project-card {
  background: var(--bone);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.2s;
}
.project-card:hover { background: var(--white); }
.project-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 32px;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm), var(--border));
}
.project-card-img img { width:100%;height:100%;object-fit:cover;display:block; }
.project-card-body { padding: 24px 24px 28px; }
.project-card-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.project-card-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.project-card-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.project-card-price { font-size: 15px; font-weight: 600; color: var(--accent); }
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--sans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ─── PROJECT DETAIL ─── */
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  margin-top: 48px;
}
.project-main-img {
  width: 100%;
  border-radius: 2px;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--warm);
}
.sidebar-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.sidebar-block-title {
  padding: 14px 20px;
  background: var(--warm);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.sidebar-stat {
  display: flex;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--warm);
  font-size: 14px;
}
.sidebar-stat:last-child { border-bottom: none; }
.ssl { color: var(--muted); }
.ssv { font-weight: 600; color: var(--ink); }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--warm);
  font-size: 14px;
}
.price-row:last-child { border-bottom: none; }
.prl { color: var(--muted); }
.prv { font-weight: 600; color: var(--accent); }

/* ─── 3D VIEWER ─── */
.viewer-3d {
  background: #1A2030;
  border-radius: 2px;
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.viewer-3d-inner { text-align: center; color: var(--bone); }
.viewer-3d-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.2; }
.viewer-3d-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.35);
  margin-bottom: 8px;
}
.viewer-3d-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}
.viewer-3d-desc {
  font-size: 13px;
  color: rgba(245,242,237,0.45);
  max-width: 380px;
  line-height: 1.6;
  margin: 0 auto 20px;
}
.facade-selector { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.facade-btn {
  padding: 7px 18px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(245,242,237,0.07);
  color: rgba(245,242,237,0.6);
  border: 1px solid rgba(245,242,237,0.12);
  border-radius: 2px;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--sans);
}
.facade-btn:hover, .facade-btn.active {
  background: rgba(245,242,237,0.18);
  color: var(--bone);
  border-color: rgba(245,242,237,0.35);
}

/* ─── PACKAGES ─── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.package-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
}
.package-header {
  background: var(--ink);
  color: var(--bone);
  padding: 28px 28px 24px;
}
.package-header.featured { background: var(--accent); }
.pkg-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px;
  display: block;
}
.pkg-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
}
.pkg-desc { font-size: 13px; opacity: 0.6; line-height: 1.5; }
.package-body { padding: 24px 28px; }
.pkg-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--warm);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.pkg-item:last-child { border-bottom: none; }
.dot { width:6px;height:6px;border-radius:50%;background:var(--accent);margin-top:7px;flex-shrink:0; }
.dot-off { width:6px;height:6px;border-radius:50%;background:var(--border);margin-top:7px;flex-shrink:0; }
.pkg-item .dim { color: var(--muted); }

/* ─── PROCESS ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.process-step { background: var(--bone); padding: 40px 28px; }
.step-num {
  font-size: 48px;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
}
.step-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.72; letter-spacing: 0.01em; }

/* ─── TECH SPECS ─── */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.tech-specs-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bone);
  gap: 16px;
}
.spec-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec-value { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.tech-image img { width:100%;border-radius:2px;display:block; }

/* ─── TEAM ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.team-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.team-body { padding: 24px; }
.team-role {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.team-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.75; letter-spacing: 0.01em; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cert-tag {
  background: var(--warm);
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-radius: 2px;
}

/* ─── CONTACT PAGE ─── */
.contact-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-top: 48px;
}
.contact-full-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cib { }
.cib-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.cib-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1.5;
  transition: color 0.2s;
}
.cib-value:hover { color: var(--accent); }
.map-embed {
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: block;
  margin-top: 8px;
}
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.map-link:hover { text-decoration: underline; }
.notice-box {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px 24px;
}
.notice-box p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── FAQ ─── */
.faq { margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  gap: 16px;
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { font-size: 22px; color: var(--muted); flex-shrink: 0; transition: transform 0.25s; }
.faq-a { display: none; padding-bottom: 20px; font-size: 14px; color: var(--muted); line-height: 1.72; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

/* ─── ABOUT GRID ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.about-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 16px;
}
.about-image {
  background: var(--warm);
  aspect-ratio: 4/5;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  border: 1px solid var(--border);
}

/* ─── BANNER ─── */
.banner {
  background: var(--accent);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.banner h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400;
  margin-bottom: 12px;
}
.banner p { font-size: 16px; opacity: 0.75; margin-bottom: 32px; }

/* ─── FOOTER ─── */
footer { background: var(--ink); color: rgba(245,242,237,0.5); padding: 56px 0 32px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {}
.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 12px;
  display: block;
}
.footer-tagline { font-size: 13px; line-height: 1.7; max-width: 240px; color: rgba(245,242,237,0.55); }
.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.35);
  margin-bottom: 16px;
  display: block;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(245,242,237,0.5);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.footer-links a:hover { color: var(--bone); }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-legal {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(245,242,237,0.3);
  text-align: center;
}
@media (max-width: 640px) {
  footer { padding-bottom: 40px; }
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--ink);
  color: var(--bone);
  padding: 16px 24px;
  border-radius: 2px;
  font-size: 14px;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
  border-left: 3px solid var(--accent);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── ANIMATIONS ─── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — FULL MOBILE AUDIT
   Breakpoints: 1024 · 900 · 768 · 480 · 380
   ═══════════════════════════════════════════ */

/* ─── Tablet landscape ─── */
@media (max-width: 1024px) {
  .tech-four-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Tablet portrait / large phone ─── */
@media (max-width: 900px) {
  /* Nav */
  .nav-links { display: none; }
  .burger { display: flex; }

  /* Sections spacing */
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* Old split hero (hidden on mobile anyway) */
  .hero { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 56px 20px; max-width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  /* Grids → single column */
  .principles-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .tech-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-full-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-detail-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .numbers-grid { grid-template-columns: 1fr; }
  .two-tech { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }

  /* Buttons — bigger tap targets */
  .btn-primary,
  .btn-ghost { padding: 15px 24px; font-size: 12px; }

  /* Page header */
  .page-header-inner { padding-top: 40px; }
  .page-header-title { letter-spacing: -0.025em; }

  /* Number/stat cards */
  .number-val { font-size: 40px; }

  /* Sidebar in project detail */
  .sidebar-block { margin-bottom: 12px; }
}

/* ─── Small phone (≤ 768px) ─── */
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-preview-grid { grid-template-columns: 1fr; }
  .tech-four-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }

  /* Tables scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 520px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Banner */
  .banner { padding: 56px 0; }
  .banner h2 { font-size: clamp(22px, 5vw, 32px); }

  /* Section title mobile */
  .section-title { letter-spacing: -0.015em; }

  /* Form inputs — min height for tap */
  .form-input,
  .form-select,
  .form-textarea { min-height: 48px; font-size: 16px; /* prevent iOS zoom */ }

  /* Contact grid stacks */
  .home-form { gap: 12px; }

  /* Principle cards: padding reduce */
  .principle { padding: 32px 24px; }
  .process-step { padding: 32px 20px; }

  /* Package cards */
  .package-header { padding: 24px 20px 20px; }
  .package-body { padding: 20px 20px; }

  /* Spec rows in project detail */
  .sidebar-stat { font-size: 13px; }
  .price-row { font-size: 13px; }

  /* Tech specs */
  .spec-row { padding: 13px 16px; }
  .spec-label { font-size: 11px; }
  .spec-value { font-size: 13px; }
}

/* ─── Small phone (≤ 480px) ─── */
@media (max-width: 480px) {
  /* Nav */
  .nav-inner { padding: 0 16px; height: 60px; }
  .nav-logo { font-size: 16px; }

  /* Spacing */
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .page-header { padding-bottom: 48px; }

  /* Section eyebrow smaller */
  .section-eyebrow { font-size: 9px; letter-spacing: 0.2em; }

  /* Section title */
  .section-title { font-size: clamp(24px, 6.5vw, 32px); margin-bottom: 14px; }
  .section-lead { font-size: 15px; margin-bottom: 36px; }

  /* Buttons — full width on very small */
  .hero-actions { flex-direction: column; }
  .btn-primary,
  .btn-ghost { width: 100%; text-align: center; padding: 16px 20px; }

  /* Stats bar */
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 8px; }

  /* Principle number label */
  .principle-num { font-size: 9px; }
  .principle-title { font-size: 18px; }
  .principle-desc { font-size: 13px; }

  /* Project cards */
  .project-card-name { font-size: 20px; }
  .project-card-sub { font-size: 12px; }
  .project-card-body { padding: 18px 16px 22px; }

  /* Page header */
  .page-header-title { font-size: clamp(32px, 8.5vw, 48px); }
  .page-header-sub { font-size: 14px; }
  .page-header-inner { padding: 36px 16px 0; }
  .breadcrumb { font-size: 10px; }

  /* Tables: smaller font */
  table { font-size: 12px; min-width: 420px; }
  thead th { padding: 10px 12px; font-size: 9px; }
  tbody td { padding: 11px 12px; }

  /* Package cards */
  .pkg-name { font-size: 22px; }
  .pkg-item { font-size: 13px; padding: 8px 0; }

  /* Process */
  .step-num { font-size: 36px; }
  .step-title { font-size: 16px; }

  /* Team */
  .team-name { font-size: 18px; }

  /* Footer */
  .footer-logo { font-size: 18px; }
  .footer-links a { font-size: 12px; }
  .footer-col-title { font-size: 9px; }
  .footer-bottom { font-size: 11px; }

  /* Mobile nav links */
  .mobile-nav a { font-size: 13px; padding: 14px 0; }

  /* Forms */
  .form-label { font-size: 9px; }
  .form-group { gap: 5px; }

  /* Spec rows */
  .spec-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
  .spec-value { text-align: left; }

  /* Sidebar price rows */
  .price-row { flex-wrap: wrap; gap: 4px; }
  .prv { width: 100%; }

  /* Number cards */
  .number-val { font-size: 36px; }
  .number-card { padding: 28px 20px; }

  /* Material cards */
  .material-card { padding: 20px 16px; }
  .material-card-name { font-size: 15px; }
  .material-card-desc { font-size: 12px; }

  /* Banner */
  .banner p { font-size: 14px; }
  .btn-white { padding: 14px 24px; }

  /* Toast */
  .toast { left: 16px; right: 16px; bottom: 20px; }
}

/* ─── Very small phone (≤ 380px) ─── */
@media (max-width: 380px) {
  .section-title { font-size: clamp(22px, 7vw, 28px); }
  .page-header-title { font-size: clamp(28px, 9vw, 38px); }
  .btn-primary,
  .btn-ghost,
  .btn-white { font-size: 11px; letter-spacing: 0.08em; }
  .nav-logo { font-size: 15px; }
  .hero-fs-title { font-size: clamp(36px, 10vw, 48px); }
  .hfs-num { font-size: 18px; }
}

/* ═══════════════════════════════════════════
   FULLSCREEN HERO (index.html)
   ═══════════════════════════════════════════ */

/* Transparent nav on hero */
.nav-transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.nav-transparent .nav-logo { color: var(--bone); }
.nav-transparent .nav-logo span { color: rgba(255,255,255,0.6); }
.nav-transparent .nav-links a { color: var(--bone); opacity: 0.75; }
.nav-transparent .nav-links a:hover { opacity: 1; }
.nav-transparent .nav-links a.nav-cta {
  background: rgba(255,255,255,0.15);
  color: var(--bone) !important;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.nav-transparent .nav-links a.nav-cta:hover {
  background: var(--bone) !important;
  color: var(--ink) !important;
}
.nav-transparent .burger span { background: var(--bone); }
.nav-transparent.scrolled {
  background: rgba(245,242,237,0.96);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.nav-transparent.scrolled .nav-logo { color: var(--ink); }
.nav-transparent.scrolled .nav-logo span { color: var(--accent); }
.nav-transparent.scrolled .nav-links a { color: var(--ink); }
.nav-transparent.scrolled .nav-links a.nav-cta {
  background: var(--ink);
  color: var(--bone) !important;
  border-color: transparent;
}
.nav-transparent.scrolled .nav-links a.nav-cta:hover { background: var(--accent) !important; }
.nav-transparent.scrolled .burger span { background: var(--ink); }

/* Fullscreen Hero */
.hero-fs {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-fs-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fs-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-fs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,18,26,0.15) 0%,
    rgba(14,18,26,0.05) 30%,
    rgba(14,18,26,0.55) 65%,
    rgba(14,18,26,0.88) 100%
  );
}

.hero-fs-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 64px 0 64px;
  min-height: 100vh;
}

.hero-fs-inner {
  padding-top: 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 40px;
  max-width: 820px;
}

.hero-fs-eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}

.hero-fs-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-fs-title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-fs-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-fs-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-fs-btn-primary {
  background: var(--bone);
  color: var(--ink);
  padding: 15px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.hero-fs-btn-primary:hover {
  background: var(--white);
}

.hero-fs-btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--bone);
  padding: 15px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
  backdrop-filter: blur(4px);
}
.hero-fs-btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}

/* Stats bar */
.hero-fs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 0;
}

.hero-fs-stat {
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-fs-stat:last-child { border-right: none; }

.hfs-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--bone);
  line-height: 1;
}

.hfs-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* Badge (bottom-right price tag) */
.hero-fs-badge {
  position: absolute;
  bottom: 112px;
  right: 64px;
  z-index: 3;
  background: rgba(20,24,31,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  border-radius: 0 2px 2px 0;
  text-align: left;
}
.hfb-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 4px;
}
.hfb-price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--bone);
  display: block;
}

/* ─── Hero fullscreen mobile ─── */
@media (max-width: 900px) {
  .hero-fs-content { padding: 0 20px; }
  .hero-fs-inner { padding-bottom: 28px; padding-top: 80px; }
  .hero-fs-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-fs-badge { display: none; }
  .hero-fs-title { font-size: clamp(40px, 9vw, 64px); }
  .hero-fs-desc { font-size: 15px; max-width: 100%; }
  .hero-fs-eyebrow { font-size: 10px; margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .hero-fs-content { padding: 0 16px; }
  .hero-fs-title { font-size: clamp(36px, 10vw, 52px); }
  .hero-fs-desc { font-size: 14px; margin-bottom: 28px; }
  .hero-fs-stats { grid-template-columns: repeat(2, 1fr); }
  .hfs-num { font-size: 22px; }
  .hfs-label { font-size: 8px; }
  .hero-fs-stat { padding: 18px 14px; }
  .hero-fs-btn-primary,
  .hero-fs-btn-ghost { padding: 15px 20px; font-size: 11px; width: 100%; text-align: center; display: block; }
  .hero-fs-actions { flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .hero-fs-title { font-size: clamp(30px, 10.5vw, 42px); }
  .hero-fs-stats { grid-template-columns: repeat(4, 1fr); }
  .hfs-num { font-size: 18px; }
  .hero-fs-stat { padding: 14px 10px; }
}

/* ═══════════════════════════════════════════
   MOBILE UX POLISH
   ═══════════════════════════════════════════ */

/* Smooth scrolling & tap highlight */
html {
  -webkit-tap-highlight-color: transparent;
}

/* Better touch scrolling for tables */
.table-wrap {
  -webkit-overflow-scrolling: touch;
}

/* Prevent text size adjustment on orientation change */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Filter bar wraps cleanly on mobile */
@media (max-width: 640px) {
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 10px; }
}

/* Sidebar prices don't overflow on small screens */
@media (max-width: 480px) {
  .sidebar-block-title { font-size: 9px; }
  .ssl { font-size: 12px; }
  .ssv { font-size: 13px; }
  .prl { font-size: 12px; max-width: 60%; }
  .prv { font-size: 13px; }
}

/* Hero stats always readable */
@media (max-width: 360px) {
  .hero-fs-stats { grid-template-columns: repeat(2, 1fr); }
  .hfs-num { font-size: 20px; }
  .hfs-label { font-size: 8px; letter-spacing: 0.1em; }
}

/* Mobile nav always full-width overlay */
@media (max-width: 900px) {
  .mobile-nav {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Contact form on mobile: full-width button */
@media (max-width: 640px) {
  .contact-full-form .btn-primary,
  .home-form .btn-primary { width: 100%; }
  .hero-fs-actions .hero-fs-btn-primary,
  .hero-fs-actions .hero-fs-btn-ghost { width: 100%; }
}

/* Toast: always above mobile keyboard */
@media (max-width: 640px) {
  .toast {
    bottom: 80px;
    left: 16px;
    right: 16px;
    font-size: 13px;
  }
}

/* Package grid: single column below 640px */
@media (max-width: 640px) {
  .packages-grid { grid-template-columns: 1fr; }
}

/* Two-tech stacks on small screens */
@media (max-width: 640px) {
  .two-tech { grid-template-columns: 1fr; }
  .two-tech-card { padding: 28px 20px; }
}

/* Guarantee grid: always single on mobile */
@media (max-width: 640px) {
  .guarantee-grid { grid-template-columns: 1fr; }
  .guarantee-card { padding: 24px 20px; }
  .guarantee-num { font-size: 40px; }
}

/* Materials grid on mobile */
@media (max-width: 640px) {
  .materials-grid { grid-template-columns: 1fr; }
}

/* Breadcrumb truncates gracefully */
.breadcrumb { overflow: hidden; }
.breadcrumb span:last-child { 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  display: inline-block;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */

/* ─── Reveal base states ─── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-fade,
.reveal-scale,
.fade-up {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal          { transform: translateY(28px); }
.reveal-left     { transform: translateX(-36px); }
.reveal-right    { transform: translateX(36px); }
.reveal-fade     { transform: none; }
.reveal-scale    { transform: scale(0.96) translateY(12px); }

/* ─── Visible state ─── */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-fade.is-visible,
.reveal-scale.is-visible,
.fade-up.is-visible,
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── Stagger grid children ─── */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.stagger-grid > *.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Parallax containers ─── */
.parallax-bg,
.parallax-img {
  will-change: transform;
  backface-visibility: hidden;
}
.parallax-wrapper {
  overflow: hidden;
}

/* ─── Hero bg parallax ─── */
.hero-fs-bg img {
  will-change: transform;
  transform: scale(1.12);
  backface-visibility: hidden;
}

/* ─── Section eyebrow line reveal ─── */
.section-eyebrow,
.hero-fs-eyebrow,
.page-header-eyebrow {
  position: relative;
  overflow: hidden;
}

.section-eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--accent);
  opacity: 0.5;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.eyebrow-visible::after {
  width: 32px;
}

/* ─── Number cards: count-up ─── */
.stat-num,
.number-val,
.hfs-num,
.guarantee-num {
  display: inline-block;
  will-change: contents;
}

/* ─── Card hover transition base ─── */
.project-card,
.package-card,
.team-card {
  transition: background 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.principle {
  transition: background 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

/* ─── Image fade-in ─── */
img {
  transition: opacity 0.4s ease;
}

/* ─── Section transition: subtle bg shift ─── */
.section,
.section-alt,
.section-dark {
  transition: none; /* Let content animate, not section bg */
}

/* ─── Respect reduced motion: override everything ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-fade,
  .reveal-scale,
  .fade-up,
  .stagger-grid > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .section-eyebrow::after { display: none; }
  .hero-fs-bg img { transform: scale(1.12) !important; }
  img { transition: none; }
  .project-card,
  .package-card,
  .team-card,
  .principle { transition: background 0.2s; }
}

/* ═══════════════════════════════════════════
   3D VIEWER
   ═══════════════════════════════════════════ */

.viewer3d-wrap {
  width: 100%;
  aspect-ratio: 16/7;
  background: #87CEEB;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin: 40px 0;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Loader */
.v3d-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #87CEEB;
  gap: 16px;
  z-index: 5;
}
.v3d-spinner {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.v3d-loader-text {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Error */
.v3d-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.3);
  font-size: 14px;
  text-align: center;
  padding: 32px;
}

/* UI controls overlay */
.v3d-ui {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.v3d-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-width: 44px;
  min-height: 44px;
}
.v3d-btn:hover {
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  border-color: rgba(0,0,0,0.15);
}

.v3d-hint {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.28);
  text-transform: uppercase;
  margin-right: 4px;
  display: none;
}
@media (min-width: 768px) { .v3d-hint { display: block; } }

/* Project selector tabs */
.viewer3d-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-bottom: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.viewer3d-tabs::-webkit-scrollbar { display: none; }
.viewer3d-tab {
  background: var(--warm);
  border: none;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  min-height: 44px;
}
.viewer3d-tab:hover { background: var(--white); color: var(--ink); }
.viewer3d-tab.active { background: var(--ink); color: var(--bone); }

/* Mobile: viewer shorter */
@media (max-width: 640px) {
  .viewer3d-wrap { aspect-ratio: 4/3; }
}

/* ═══════════════════════════════════════════
   LOGO IMAGE
   ═══════════════════════════════════════════ */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 96px;
  width: auto;
  display: block;
}
/* By default show dark logo */
.logo-img--dark  { display: block; }
.logo-img--white { display: none; }

/* On transparent nav (hero) — show white logo */
.nav-transparent .logo-img--dark  { display: none; }
.nav-transparent .logo-img--white { display: block; }

/* After scroll (scrolled class) — back to dark */
.nav-transparent.scrolled .logo-img--dark  { display: block; }
.nav-transparent.scrolled .logo-img--white { display: none; }

/* Footer logo — keep text for now (image would need extra markup) */
.footer-logo { font-family: var(--serif); }

@media (max-width: 480px) {
  .logo-img { height: 64px; }
  /* Nav is 60px tall here — attach the mobile menu directly below it */
  .mobile-nav { top: 60px; max-height: calc(100vh - 60px); }
}

/* ── Согласие на обработку ПД ── */
.form-consent-row {
  margin: 16px 0 12px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s;
}
.consent-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}
.consent-link:hover { text-decoration-color: var(--accent); }

/* ── Cookie-баннер ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: rgba(245,242,237,0.85);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  font-size: 13px;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  flex-wrap: wrap;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 1px;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
/* Fix: секция "Внешний контур" — 4 карточки в 3-колоночной сетке оставляли
   пустые ячейки во 2-й строке. Переводим на flex-wrap; одиночная 4-я
   карточка растягивается на всю ширину строки — без пустых зазоров. */
/* Fix: секция "Внешний контур" — 4 карточки в 3-колоночной сетке всегда
   оставляли кривой остаток во 2-й строке (пустые ячейки, или растянутая
   4-я карточка с большим разрывом внутри). Простое и надёжное решение:
   сетка 2×2 — с ровно 4 карточками она всегда заполняется целиком. */
.envelope-grid{
  display:grid !important;
  grid-template-columns:repeat(2, 1fr) !important;
  gap:2px;
}
@media (max-width: 700px){
  .envelope-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Fix: секция "Две технологии" — .two-col-text (текстовая панель + сетка
   материалов) была жёстко задана inline как grid-template-columns:1fr 1fr
   без адаптива, из-за чего на мобильных и планшетах (≤860px) колонки
   сжимались бок о бок и контент вылезал за экран. */
@media (max-width: 860px){
  .two-col-text{
    grid-template-columns: 1fr !important;
  }
}

/* Fix: .wide-mat-grid — 4 инлайн-сетки на technology.html (Фасад и
   остекление · Чистовая отделка · Двери и фурнитура · Электрика) были
   жёстко заданы на 4-5 колонок inline, без адаптива вообще. */
@media (max-width: 860px){
  .wide-mat-grid{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 560px){
  .wide-mat-grid{
    grid-template-columns: 1fr !important;
  }
}