/* =================================================================
   RegStone — landing page styles
   Brand: Pantone 3125C #00AEC7 (teal) · 151C #FF8200 (amber, CTA only)
          7547C #131E29 (ink) · 6220C #768280 (stone) · white
   Type: Manrope (display) / Inter (body) / JetBrains Mono (data)
   ================================================================= */

:root {
  --ink: #131e29;
  --ink-soft: #1e2f3d;
  --teal: #00aec7;
  --teal-dark: #00aec7;
  --teal-tint: #eaf7f9;
  --amber: #ff8200;
  --amber-dark: #e07400;
  --stone: #768280;
  --stone-text: #77828e;
  --paper: #f8f9f9;
  --white: #ffffff;
  --line: rgba(19, 30, 41, 0.1);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Inter", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- eyebrow / heading system ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "-";
  color: var(--amber);
  font-weight: 700;
  flex: none;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--stone-text);
  font-size: 1.02rem;
  max-width: 560px;
}

.section-head--light h2 {
  color: var(--white);
}
.section-head--light p {
  color: rgba(255, 255, 255, 0.72);
}

/* used inside a two-column intro where the grid already provides spacing */
.section-head--flush {
  margin-bottom: 0;
}

section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--amber {
  background: var(--amber);
  color: var(--white);
}
.btn--amber:hover {
  background: var(--amber-dark);
}

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost-light {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost-light:hover {
  border-color: var(--ink);
}

.btn--block {
  width: 100%;
}

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled {
  background: rgba(248, 249, 249, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}

.logo-link {
  display: block;
  flex: none;
  position: relative;
  z-index: 2;
}

.logo-link img {
  height: 34px;
  width: auto;
}

.logo-light {
  display: block;
}
.logo-dark {
  display: none;
}
.site-header.is-scrolled .logo-light {
  display: none;
}
.site-header.is-scrolled .logo-dark {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.25s var(--ease);
  position: relative;
}

.site-header.is-scrolled .main-nav a {
  color: var(--ink);
}

.main-nav a:hover {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 2;
}

/* phone shown inside the open mobile menu, where the header one is hidden */
.nav-cta {
  display: none;
}

.header-phone {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.25s var(--ease);
}
.site-header.is-scrolled .header-phone {
  color: var(--ink);
}
.header-phone svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

/* language switch RU | UZ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-switch a,
.lang-switch span {
  padding: 5px 7px;
  border-radius: 6px;
  line-height: 1;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-switch a:hover {
  color: var(--white);
}
.lang-switch .is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}
/* scrolled (white header) and open mobile menu (light panel) -> dark marks */
.site-header.is-scrolled .lang-switch a,
.site-header.is-scrolled .lang-switch span,
.site-header.nav-open .lang-switch a,
.site-header.nav-open .lang-switch span {
  color: var(--stone-text);
}
.site-header.is-scrolled .lang-switch a:hover,
.site-header.nav-open .lang-switch a:hover {
  color: var(--ink);
}
.site-header.is-scrolled .lang-switch .is-active,
.site-header.nav-open .lang-switch .is-active {
  color: var(--ink);
  background: rgba(19, 30, 41, 0.08);
}
@media (max-width: 420px) {
  .lang-switch {
    font-size: 0.78rem;
  }
  .lang-switch a,
  .lang-switch span {
    padding: 4px 5px;
  }
}

.nav-toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  position: relative;
}
.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s var(--ease);
}

/* the bars are drawn inside the middle one, so they inherit its width */
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after {
  background: var(--ink);
}
.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span::before {
  content: "";
  top: -6px;
}
.nav-toggle span::after {
  content: "";
  top: 6px;
}
.nav-toggle[aria-expanded="true"] span,
.site-header.is-scrolled .nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--ink);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--ink);
}

@media (max-width: 1024px) {
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 1;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    pointer-events: none;
  }

  .main-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--teal-dark);
  }
  .main-nav .nav-cta svg {
    width: 20px;
    height: 20px;
  }

  /* menu panel is light, so the header switches to its dark-ink marks */
  .site-header.nav-open .logo-light {
    display: none;
  }
  .site-header.nav-open .logo-dark {
    display: block;
  }
  .site-header.nav-open .nav-toggle {
    border-color: var(--line);
  }
  /* backdrop-filter на прилипшей шапке делает её containing block для
     fixed-потомков и схлопывает панель меню до высоты шапки. Пока меню
     открыто — убираем фильтр, чтобы панель разворачивалась на весь экран. */
  .site-header.nav-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
  }
  .header-phone {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .header-actions {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .header-actions .btn {
    padding: 11px 18px;
    font-size: 0.88rem;
  }
  .logo-link img {
    height: 28px;
  }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(19, 30, 41, 0.72) 0%,
      rgba(19, 30, 41, 0.3) 34%,
      rgba(19, 30, 41, 0.62) 70%,
      rgba(19, 30, 41, 0.95) 100%
    ),
    linear-gradient(100deg, rgba(19, 30, 41, 0.72) 0%, rgba(19, 30, 41, 0.12) 46%, transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 96px;
  width: 100%;
}

.hero .eyebrow {
  color: var(--teal);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);
  line-height: 1.06;
  max-width: 780px;
  margin-top: 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 22px;
  max-width: 500px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 760px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta div {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .hero-meta div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 100px;
  }
  .hero-inner {
    padding-bottom: 56px;
  }
}

/* =================================================================
   ARCH LATTICE DIVIDER (brand pattern, redrawn as SVG)
   ================================================================= */
.lattice-strip {
  height: 72px;
  background-color: transparent;
  background-image: url("../img/pattern.svg");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;
}

/* =================================================================
   MANIFESTO
   ================================================================= */
.about {
  background: var(--paper);
  overflow: hidden;
}

.about-top {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
}

.arch-frame {
  aspect-ratio: 455 / 633;
  overflow: hidden;
  background: var(--ink);
  -webkit-mask: url("../img/arch-mask.svg") center / 100% 100% no-repeat;
  mask: url("../img/arch-mask.svg") center / 100% 100% no-repeat;
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 14px;
}

.about-lead {
  margin-top: 20px;
  color: var(--stone-text);
  font-size: 1.05rem;
  max-width: 560px;
}

.about-stats {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.3rem);
  color: var(--teal-dark);
  line-height: 1.1;
}
.about-stats span {
  display: block;
  margin-top: 6px;
  color: var(--stone-text);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .arch-frame {
    max-width: 340px;
    margin: 0 auto;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =================================================================
   PRODUCT
   ================================================================= */
.product-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.product-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}
.product-photo-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(19, 30, 41, 0.82);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 100px;
  text-transform: uppercase;
}

.density-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.density-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.density-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.density-card .code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--teal-dark);
}
.density-card .label {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--stone-text);
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}

.spec-table th,
.spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--stone-text);
  background: var(--paper);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-table td {
  font-family: var(--font-mono);
  color: var(--ink);
}

.spec-table td:first-child,
.spec-table th:first-child {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 500;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.sizes-block {
  margin-top: 56px;
}
.sizes-head {
  max-width: 640px;
  margin-bottom: 28px;
}
.sizes-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  color: var(--ink);
  margin-top: 12px;
}
.sizes-head p {
  margin-top: 14px;
  color: var(--stone-text);
  font-size: 1rem;
  max-width: 620px;
}

.product-cta {
  margin-top: 40px;
  text-align: center;
}

.sizes-section {
  background: var(--white);
}
.sizes-section .sizes-block {
  margin-top: 0;
}

.spec-foot {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--stone-text);
  font-family: var(--font-mono);
}

.cert-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  background: var(--teal-tint);
  border-radius: var(--radius);
}

.cert-card svg {
  width: 26px;
  height: 26px;
  color: var(--teal-dark);
  flex: none;
  margin-top: 2px;
}

.cert-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.cert-card span {
  font-size: 0.85rem;
  color: var(--stone-text);
}

.order-callout {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}
.order-callout svg {
  width: 30px;
  height: 30px;
  color: var(--amber);
  flex: none;
}
.order-callout p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.order-callout strong {
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 860px) {
  .product-intro {
    grid-template-columns: 1fr;
  }
  .product-photo {
    max-width: 420px;
  }
  .order-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* the density and certificate cards hold their row well past the point
   where the two-column intro has to stack */
@media (max-width: 620px) {
  .density-row,
  .cert-row {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   BENEFIT GRIDS (building + home)
   ================================================================= */
.benefits {
  background: var(--white);
}

.benefits-dark {
  background: var(--ink);
  color: var(--white);
}

/* Editorial split: the section heading holds the left rail while the
   claims read as a list — the same rhythm as the printed booklet. */
.benefit-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.benefit-layout .section-head {
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}

.benefit-list {
  display: flex;
  flex-direction: column;
}

.benefit-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.benefit-card:first-child {
  padding-top: 0;
}
.benefit-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.benefits-dark .benefit-card {
  border-color: var(--line-on-dark);
}

.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--teal-dark);
}

.benefits-dark .benefit-card h3 {
  color: var(--teal);
}

.benefit-card p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--stone-text);
  line-height: 1.6;
}

.benefits-dark .benefit-card p {
  color: rgba(255, 255, 255, 0.7);
}

.benefits-media {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 340px;
}
.benefits-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 90%;
}

@media (max-width: 900px) {
  .benefit-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .benefit-layout .section-head {
    position: static;
  }
}

@media (max-width: 480px) {
  .benefit-card {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }
  .benefit-icon {
    width: 44px;
    height: 44px;
  }
  .benefit-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* =================================================================
   ORDER STEPS
   ================================================================= */
.steps {
  background: var(--white);
}
.steps .spec-table-wrap {
  margin-bottom: 56px;
}
.steps .steps-grid {
  margin-top: 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  position: relative;
  padding-top: 8px;
}

.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber);
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.step-card svg {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--teal-dark);
  margin: 22px 0 18px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}

.step-card p {
  margin-top: 10px;
  color: var(--stone-text);
  font-size: 0.94rem;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =================================================================
   CONTACTS
   ================================================================= */
.contacts {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-phone-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem);
  color: var(--white);
  transition: color 0.25s var(--ease);
}
.contact-phone-link:hover {
  color: var(--teal);
}
.contact-phone-link svg {
  width: 24px;
  height: 24px;
  color: var(--amber);
  flex: none;
}

.contact-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}
.contact-list dd {
  margin: 4px 0 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.contact-list a:hover {
  color: var(--teal);
}

.map-card {
  margin-top: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line-on-dark);
  background: var(--ink-soft);
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.map-card .pin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-card .pin svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.map-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
}

.map-card a {
  align-self: flex-start;
}

/* form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
}

.form-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 174, 199, 0.15);
  color: var(--teal);
  font-size: 0.9rem;
}
.form-success.is-visible {
  display: flex;
}
.form-success svg {
  width: 18px;
  height: 18px;
  flex: none;
}

@media (max-width: 860px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* на телефоне форма идёт первой, контакты и карта — под ней */
  .contacts-grid > :last-child {
    order: -1;
  }
}
@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line-on-dark);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-top img {
  height: 30px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-nav a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.82rem;
}

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */
/* Only hide content when JS is running to un-hide it — without JS the page
   must still render fully. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =================================================================
   CINEMATIC SCROLL — progress bar, parallax, staggered reveals
   ================================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  will-change: transform;
  pointer-events: none;
}

.hero-media img,
.arch-frame img {
  will-change: transform;
}

/* staggered reveal for card groups (children animate in sequence) */
.js .reveal.stagger {
  opacity: 1;
  transform: none;
  transition: none;
}
.js .reveal.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.js .reveal.stagger.is-visible > *:nth-child(1) {
  transition-delay: 0s;
}
.js .reveal.stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.09s;
}
.js .reveal.stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.18s;
}
.js .reveal.stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.27s;
}
.js .reveal.stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.36s;
}
.js .reveal.stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal.stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
