/* ============================================
   PRO INTERIOR — Design System
   Двери · Ламинат · Потолки Грильято/Армстронг
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --navy: #142E5C;
  --navy-light: #1F4080;
  --navy-pale: #DCE4F0;
  --red: #C8202F;
  --red-dark: #9C1722;
  --paper: #F6F4EF;
  --mist: #E8ECF2;
  --ink: #1B1B1B;
  --ink-soft: #5B6573;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1180px;
  --cut: 28px; /* signature diagonal cut size */
  --radius-sm: 4px;

  --shadow-sm: 0 2px 10px rgba(20,46,92,0.08);
  --shadow-md: 0 8px 30px rgba(20,46,92,0.14);
  --shadow-lg: 0 20px 60px rgba(20,46,92,0.20);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; line-height: 1.05; }
p { margin: 0; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--mist { background: var(--mist); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 14px;
  text-transform: uppercase;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
}
.section--navy .section-head p { color: #B9C5DC; }

/* ---------- Signature cut shape (roof-chevron motif) ---------- */
.cut-tr {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.cut-bl {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  clip-path: none;
  padding: 14px 26px;
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,244,239,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,46,92,0.1);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__logo img { height: 88px; width: auto; }

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--red); }

.header__contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
}
.header__phone a { font-weight: 700; font-size: 16px; color: var(--navy); }
.header__phone span { font-size: 11px; color: var(--ink-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: 0.2s; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF8B96;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero__eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); }

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero__lead {
  margin-top: 22px;
  font-size: 18px;
  color: #C7D2E6;
  max-width: 480px;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}
.hero__stat span {
  font-size: 13px;
  color: #9FB0CC;
}

.hero__art {
  position: relative;
  height: 480px;
}
.hero__panel {
  position: absolute;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__panel--1 { width: 56%; height: 280px; top: 0; left: 0; z-index: 3; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.hero__panel--2 { width: 50%; height: 230px; bottom: 0; right: 0; z-index: 2; clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.hero__panel--3 { width: 38%; height: 180px; top: 230px; left: 8%; z-index: 1; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }

.hero__bottom-band {
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
}
.hero__band-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #B9C5DC;
  text-transform: uppercase;
}
.hero__band-list span { color: var(--red); margin-right: 6px; }

/* ============================================
   FEATURES (Преимущества)
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(20,46,92,0.12);
  border: 1px solid rgba(20,46,92,0.12);
}
.feature {
  background: var(--paper);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature__icon {
  width: 48px; height: 48px;
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ============================================
   PRODUCTS GRID (Каталог)
   ============================================ */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.product-card {
  flex: 0 1 calc(33.333% - 22px);
  max-width: calc(33.333% - 22px);
  min-width: 280px;
}
}
.product-card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__media {
  height: 190px;
  background: var(--navy-pale);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card__media svg { width: 70%; height: 70%; }
.product-card__tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.product-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 {
  font-size: 21px;
  text-transform: uppercase;
  color: var(--navy);
}
.product-card p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.product-card__link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  text-transform: uppercase;
}
.product-card__link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.product-card:hover .product-card__link svg { transform: translateX(4px); }

/* ============================================
   ABOUT STRIP (О компании, preview)
   ============================================ */
.about-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-strip__art {
  position: relative;
  height: 380px;
}
.about-strip__art svg { width: 100%; height: 100%; }
.about-strip__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-strip__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}
.about-strip__list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--red); }

/* ============================================
   PROCESS (Как мы работаем)
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process__step {
  position: relative;
  padding: 0 24px 0 0;
}
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}
.process__step h3 { font-size: 18px; color: var(--navy); text-transform: uppercase; }
.process__step p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery__item {
  background: var(--mist);
  overflow: hidden;
  position: relative;
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item svg { width: 100%; height: 100%; }

/* ============================================
   CTA — Замер
   ============================================ */
.cta-measure {
  background: var(--red);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-measure__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.cta-measure h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  text-transform: uppercase;
}
.cta-measure p { margin-top: 14px; color: #FFD9DC; font-size: 16px; max-width: 460px; }
.cta-form {
  background: var(--white);
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.cta-form h3 { color: var(--navy); font-size: 18px; text-transform: uppercase; margin-bottom: 4px; }
.cta-form p.cta-form__sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--paper);
  transition: border-color 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  outline: none;
}
.field--error input { border-color: var(--red); }
.field__error {
  display: none;
  color: var(--red);
  font-size: 12px;
  margin-top: 5px;
}
.field--error .field__error { display: block; }
.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form-success.is-visible { display: block; }
.form-success svg { width: 48px; height: 48px; color: var(--navy); margin: 0 auto 12px; }
.form-success h4 { color: var(--navy); font-size: 18px; text-transform: uppercase; }
.form-success p { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.cta-form__consent { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

/* ============================================
   CLIENTS / TRUST STRIP
   ============================================ */
.trust-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid rgba(20,46,92,0.12);
  border-bottom: 1px solid rgba(20,46,92,0.12);
}
.trust-strip__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.trust-strip__items {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  color: var(--navy);
  opacity: 0.55;
}
.trust-strip__items svg { height: 26px; width: auto; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: #C7D2E6;
  padding: 72px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
}
.footer__logo { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__about { font-size: 14px; max-width: 280px; color: #9FB0CC; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a, .footer address { font-size: 14.5px; color: #9FB0CC; font-style: normal; }
.footer a:hover { color: var(--white); }
.footer address { display: flex; flex-direction: column; gap: 10px; }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #7E92B5;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.footer__social svg { width: 17px; height: 17px; }

/* ============================================
   RESPONSIVE
   ============================================ */
/* Make embedded map widgets (e.g. 2GIS) responsive instead of overflowing on narrow screens */
.about-strip__art { overflow: hidden; }
.about-strip__art iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { height: 360px; margin-top: 40px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .about-strip { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process__step:not(:last-child)::after { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header__logo img { height: 64px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__phone span { display: none; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .cta-measure__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .trust-strip { flex-direction: column; align-items: flex-start; }
  .header__logo img { height: 52px; }
  .header__bar { gap: 12px; }
  .header__contact { gap: 10px; }

  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(20,46,92,0.1);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .header__logo img { height: 44px; }
  .btn--dark { padding: 12px 16px; font-size: 12px; }
}

/* ============================================
   SCROLL REVEAL (fade-in-up on entering viewport)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside grids for a cascading effect */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================
   HOVER EFFECTS — cards, links, images
   ============================================ */
.feature {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  transition: transform 0.3s ease;
}
.feature:hover .feature__icon {
  transform: scale(1.1) rotate(-4deg);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-card__media img,
.product-card__media svg {
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__media img,
.product-card:hover .product-card__media svg {
  transform: scale(1.06);
}

.about-strip__list li {
  transition: transform 0.2s ease, color 0.2s ease;
}
.about-strip__list li:hover {
  transform: translateX(6px);
  color: var(--navy);
}
.about-strip__list li:hover svg {
  color: var(--red-dark);
}

.process__step {
  transition: transform 0.25s ease;
}
.process__step:hover {
  transform: translateY(-4px);
}
.process__step:hover .process__num {
  color: var(--red-dark);
}

.gallery__item {
  transition: transform 0.3s ease;
}
.gallery__item svg,
.gallery__item img {
  transition: transform 0.5s ease;
}
.gallery__item:hover svg,
.gallery__item:hover img {
  transform: scale(1.08);
}

.trust-strip__items svg {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.trust-strip__items svg:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero__stat {
  transition: transform 0.25s ease;
}
.hero__stat:hover {
  transform: translateY(-3px);
}

.footer__social a {
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer__social a:hover {
  background: var(--red);
  transform: translateY(-3px);
}
