/* ===================================================
   КЕРАМАРК — Design System (из DESIGN.md)
   =================================================== */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== DESIGN TOKENS ===== */
:root {
  --color-bg:          #0a0a0a;
  --color-surface:     #111110;
  --color-stone:       #1c1c1a;
  --color-stone-hover: #222220;
  --color-text:        #f5f0ea;
  --color-muted:       rgba(245,240,234,0.45);
  --color-subtle:      rgba(245,240,234,0.25);
  --color-sand:        #c8b89a;
  --color-copper:      #a07850;
  --color-warm:        #e8ddd0;
  --color-cream:       #f5f0ea;
  --color-white:       #fafaf8;
  --border-soft:       rgba(255,255,255,0.06);
  --border-medium:     rgba(255,255,255,0.1);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== BASE ===== */
html { scroll-behavior: auto; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;   /* CP2: нет горизонтального скролла */
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== UTILITY ===== */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 16px;
}

/* fade-in: начальное состояние — GSAP управляет финальным */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; }
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__cta, .hero__cta-group,
  .hero__scroll { animation: none !important; opacity: 1 !important; transform: none !important; }
  .gallery__reveal { clip-path: none !important; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
  background: transparent;
}
.btn--light { color: var(--color-white); border-color: rgba(255,255,255,0.4); }
.btn--light:hover { background: var(--color-white); color: var(--color-bg); border-color: var(--color-white); }
.btn--dark { color: var(--color-bg); background: var(--color-cream); border-color: var(--color-cream); }
.btn--dark:hover { background: var(--color-white); border-color: var(--color-white); }
.btn--outline { color: var(--color-sand); border-color: rgba(200,184,154,0.4); }
.btn--outline:hover { background: rgba(200,184,154,0.12); border-color: var(--color-sand); }
.btn:focus-visible { outline: 2px solid var(--color-sand); outline-offset: 4px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 48px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.25s;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--color-white); }
.nav__catalog {
  padding: 9px 22px !important;
  border: 1px solid rgba(200,184,154,0.35) !important;
  color: var(--color-sand) !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav__catalog:hover { background: rgba(200,184,154,0.1) !important; color: var(--color-sand) !important; }
.nav__cta {
  padding: 9px 22px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  color: var(--color-white) !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav__cta:hover { background: var(--color-white) !important; color: var(--color-bg) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-white);
  transition: transform 0.3s var(--ease-out);
  transform-origin: center;
}

/* ===== HERO — CP1: 100dvh, текст по центру, CTA видна ===== */
.hero {
  position: relative;
  min-height: 100dvh;       /* dvh — лучше для мобильных */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -12%;
  background: linear-gradient(160deg, #1a1410 0%, #0d0c0a 40%, #101018 100%);
  will-change: transform;
  z-index: 0;
}
.hero__texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.013) 2px, rgba(255,255,255,0.013) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.013) 2px, rgba(255,255,255,0.013) 4px);
  background-size: 60px 60px;
}
.hero__texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 65%, rgba(160,120,80,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(200,184,154,0.07) 0%, transparent 50%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3); /* CP1: текст читаем на любом фоне */
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  will-change: transform;
}
.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s 0.3s var(--ease-out) forwards;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 1s 0.5s var(--ease-out) forwards;
}
.hero__line { display: block; }
.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.4);
}
.hero__subtitle {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 44px;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.7s var(--ease-out) forwards;
}
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.9s var(--ease-out) forwards;
}
.hero__cta { opacity: 1; animation: none; }
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-subtle);
  opacity: 0;
  animation: heroFadeIn 1s 1.4s forwards;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  animation: scrollBlink 2.5s 1.4s infinite;
}
/* Средний parallax-слой 0.6x */
.hero__mid {
  position: absolute;
  inset: -8%;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}
.hero__mid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(200,184,154,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,184,154,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 80%);
}

/* Grain — имитация фактуры керамогранита поверх hero */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Split-text — слова обёрнуты в clip-контейнер */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.1;
}
.split-char {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  to { opacity: 1; }
}
@keyframes scrollBlink {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.1; transform: scaleY(0.55); }
}

/* ===== INTRO ===== */
.intro {
  padding: 120px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--border-soft);
}
.intro__grid {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 64px;
  align-items: start;
}
.intro__num {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 300;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  padding-top: 6px;
}
.intro__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-cream);
  margin-bottom: 20px;
}
.intro__text p {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 500px;
}
.intro__stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: var(--color-sand);
  line-height: 1;
  display: inline;
}
.stat__suffix {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--color-sand);
  line-height: 1;
}
.stat__num--letter { font-size: 42px; }
.stat__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-subtle);
  margin-top: 4px;
}

/* ===== COLLECTIONS — горизонтальный скролл (CP3) ===== */
.collections {
  height: 550vh;
  position: relative;
}
.collections__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-stone);
}
.collections__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 60px 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.collections__header .section-label { margin: 0; }
.collections__hint {
  font-size: 11px;
  color: var(--color-subtle);
  letter-spacing: 0.1em;
}
.collections__track {
  display: flex;
  will-change: transform;
  height: 100%;
  align-items: stretch;
  padding-top: 90px;
}
.col-card {
  flex-shrink: 0;
  width: 42vw;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-soft);
  overflow: hidden;
}
.col-card:first-child { margin-left: 60px; }
.col-card__img-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.col-card__img {
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.9s var(--ease-out);
}
.col-card:hover .col-card__img { transform: scale(1); }

.col-card__img--peterhof      { background-image: url(../img/col/peterhof.jpg); background-size: cover; background-position: center; }
.col-card__img--pavlovsk      { background-image: url(../img/col/pavlovsk.jpg); background-size: cover; background-position: center; }
.col-card__img--kronstadt     { background-image: url(../img/col/kronstadt.jpg); background-size: cover; background-position: center; }
.col-card__img--vyborg        { background-image: url(../img/col/vyborg.jpg);   background-size: cover; background-position: center; }
.col-card__img--falsh-oktagon { background-image: url(../img/col/falsh.jpg);    background-size: cover; background-position: center; }

.col-card__body {
  flex-shrink: 0;
  padding: 28px 36px 36px;
  background: var(--color-stone);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-card__num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-sand);
}
.col-card__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--color-cream);
  letter-spacing: 0.04em;
}
.col-card__desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}
.col-card__link {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-sand);
  margin-top: 6px;
  align-self: flex-start;
  transition: color 0.25s;
}
.col-card__link:hover { color: var(--color-cream); }
.col-card__link:focus-visible { outline: 1px solid var(--color-sand); }

.collections__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.07);
}
.collections__bar {
  height: 100%;
  width: 0%;
  background: var(--color-sand);
}

/* ===== GALLERY — clip-path reveal (CP3) ===== */
.gallery {
  padding: 120px 0;
  background: var(--color-surface);
}
.gallery__header {
  margin-bottom: 56px;
}
.gallery__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  color: var(--color-cream);
  line-height: 1;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery__cell--tall { grid-row: span 2; }
.gallery__reveal {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 100% 0 0); /* стартовое состояние — GSAP раскроет */
}
.gallery__img {
  width: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 5s var(--ease-out);
}
.gallery__cell--tall .gallery__img  { aspect-ratio: 3/4; }
.gallery__cell:not(.gallery__cell--tall):not(.gallery__cell--wide) .gallery__img { aspect-ratio: 4/3; }
.gallery__cell--wide .gallery__img  { aspect-ratio: 16/7; }

.gallery__img--1 { background-image: url(../img/gallery/gallery-1.jpg); background-size: cover; background-position: center top; }
.gallery__img--2 { background-image: url(../img/gallery/gallery-2.jpg); background-size: cover; background-position: center; }
.gallery__img--3 { background-image: url(../img/gallery/gallery-3.jpg); background-size: cover; background-position: center top; }
.gallery__img--4 { background-image: url(../img/gallery/gallery-4.jpg); background-size: cover; background-position: center; }

.gallery__img.revealed { transform: scale(1); }

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.gallery__reveal:hover .gallery__caption,
.gallery__reveal:focus-within .gallery__caption { transform: translateY(0); }

/* ===== PROFESSIONALS ===== */
.pros {
  padding: 120px 0;
  background: var(--color-bg);
}
.pros__header {
  margin-bottom: 64px;
}
.pros__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 300;
  color: var(--color-cream);
  line-height: 1.15;
  max-width: 560px;
}
.pros__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.pro-card {
  background: var(--color-stone);
  padding: 44px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border-soft);
  transition: background 0.3s;
}
.pro-card:hover { background: var(--color-stone-hover); }
.pro-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-sand);
  margin-bottom: 6px;
}
.pro-card__icon svg { width: 100%; height: 100%; }
.pro-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-cream);
}
.pro-card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}
.pro-card ul {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}
.pro-card li {
  font-size: 12px;
  color: var(--color-sand);
  padding-left: 14px;
  position: relative;
}
.pro-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-copper);
}

/* ===== ABOUT ===== */
.about {
  position: relative;
  padding: 140px 0;
  background: var(--color-surface);
  overflow: hidden;
  isolation: isolate;
}
.about__parallax-bg {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 60% 50% at 75% 50%, rgba(160,120,80,0.08) 0%, transparent 60%);
  will-change: transform;
  z-index: 0;
}
.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about__text .section-label { margin-bottom: 12px; }
.about__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 50px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-cream);
  margin-bottom: 24px;
}
.about__text p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.about__text .btn { margin-top: 8px; }
.about__specs {
  border-top: 1px solid var(--border-soft);
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--color-muted);
  transition: color 0.25s;
}
.spec-item:hover { color: var(--color-cream); }
.spec-item__dash {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-sand);
  flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--border-soft);
}
.contact__header {
  margin-bottom: 56px;
}
.contact__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  color: var(--color-cream);
  margin: 8px 0 16px;
}
.contact__header p {
  max-width: 500px;
  font-size: 15px;
  color: var(--color-muted);
}
.contact__form {
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-subtle);
}
.form-group label span { color: var(--color-sand); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-medium);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.18); }
.form-group select option { background: var(--color-surface); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-sand);
  background: rgba(255,255,255,0.06);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220,80,80,0.6);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}
.form-privacy {
  font-size: 12px;
  color: var(--color-subtle);
}
.form-privacy a {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.25s;
}
.form-privacy a:hover { color: var(--color-cream); }
.form-message {
  padding: 14px 16px;
  font-size: 13px;
  border: 1px solid;
}
.form-message--ok {
  color: #7abf7a;
  border-color: rgba(122,191,122,0.3);
  background: rgba(122,191,122,0.06);
}
.form-message--err {
  color: #e07070;
  border-color: rgba(220,100,100,0.3);
  background: rgba(220,100,100,0.06);
}
.contact__details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border-soft);
}
.contact__detail { display: flex; flex-direction: column; gap: 8px; }
.contact__detail-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand);
}
.contact__detail span,
.contact__detail a {
  font-size: 14px;
  color: var(--color-muted);
  transition: color 0.25s;
}
.contact__detail a:hover { color: var(--color-cream); }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 36px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.footer__nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer__nav a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-subtle);
  transition: color 0.25s;
}
.footer__nav a:hover { color: var(--color-muted); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.footer__bottom a {
  color: rgba(255,255,255,0.2);
  transition: color 0.25s;
}
.footer__bottom a:hover { color: var(--color-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .pros__grid { grid-template-columns: repeat(2, 1fr); }
  .intro__grid { grid-template-columns: 40px 1fr; }
  .intro__stats { flex-direction: row; gap: 40px; grid-column: 2; }
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .contact__details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* CP2: одна колонка, всё читаемо, нет горизонтального скролла */
  .container { padding: 0 20px; }
  .nav { padding: 18px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { min-height: 100dvh; }

  /* Коллекции — вертикальный layout на мобильных */
  .collections { height: auto; }
  .collections__sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .collections__header { position: relative; padding: 40px 20px 20px; flex-direction: column; gap: 4px; }
  .collections__hint { display: none; }
  .collections__track {
    flex-direction: column;
    padding: 0 20px 40px;
    gap: 20px;
    height: auto;
  }
  .col-card { width: 100%; min-width: unset; }
  .col-card:first-child { margin-left: 0; }
  .col-card__img-wrap { aspect-ratio: 4/3; }
  .col-card__img { height: 100%; }
  .collections__progress { display: none; }

  /* Gallery */
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__cell--tall { grid-row: auto; }
  .gallery__cell--tall .gallery__img { aspect-ratio: 4/3; }
  .gallery__cell--wide .gallery__img  { aspect-ratio: 4/3; }

  /* Sections */
  .intro { padding: 80px 0; }
  .intro__grid { grid-template-columns: 1fr; gap: 28px; }
  .intro__num { display: none; }
  .intro__stats { flex-direction: row; flex-wrap: wrap; grid-column: 1; gap: 24px; }

  .pros__grid { grid-template-columns: 1fr; }
  .pros { padding: 80px 0; }
  .pros__header { margin-bottom: 40px; }

  .about { padding: 80px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  .gallery { padding: 80px 0; }
  .contact { padding: 80px 0; }

  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; gap: 16px; }

  .contact__details { grid-template-columns: 1fr 1fr; gap: 24px; }

  .footer__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__nav { gap: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .contact__details { grid-template-columns: 1fr; }
  .intro__stats { flex-direction: column; }
}
