/* ============================================================
   HERO SLIDER
   height: 100svh, overflow: hidden
   Slides: position absolute inset:0, opacity 0/1
   Scrim: отдельный div z-index 2
   Hero copy: position absolute z-index 10
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink-2);
}

/* Каждый слайд — абсолютно позиционирован, занимает всё */
.slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* picture и img внутри слайда */
.slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide picture source { display: block; }

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient scrim — отдельный div, не ::after слайда */
.slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.00) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* Hero copy — поверх всего */
.hero-copy {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 72px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
}

.hero-text {
  flex: 1;
  max-width: 560px;
}

.hero-script {
  font-family: 'Italianno', cursive;
  font-size: 44px;
  line-height: 1;
  color: #E8D9B8;
  margin-bottom: 8px;
  display: block;
}

.hero-title {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

/* Правая часть hero-copy */
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Slider dots — z-index выше scrim (2), ниже hero-copy (10) */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.dot.active { background: #fff; width: 44px; }

/* Prev/next arrows */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.slider-prev { left: 24px; }
.slider-next { right: 24px; }
.slider-prev:hover,
.slider-next:hover { background: rgba(255, 255, 255, 0.22); }
/* ============================================================
   CATALOG SECTION
   background: var(--cream)
   ============================================================ */
.catalog-section {
  padding: 80px 0;
  background: var(--cream);
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.catalog-head-left { flex: 1; }

.catalog-sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

.catalog-lead {
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
  margin-top: 12px;
}

.catalog-foot {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   FEATURES SECTION
   background: var(--paper)
   ============================================================ */
.features-section {
  padding: 80px 0;
  background: var(--paper);
}

.features-head { margin-bottom: 40px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-item {
  background: var(--cream);
  padding: 40px 44px 44px;
  display: flex;
  flex-direction: column;
}

.feature-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

.feature-icon {
  color: var(--ink);
  flex-shrink: 0;
  width: 72px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.feature-icon svg { display: block; }

.feature-icon__img {
  max-width: 72px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.feature-item h3 {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
}

.feature-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
/* ============================================================
   CERTIFICATE SECTION
   ============================================================ */
.cert-section {
  padding: 100px 0;
  background: var(--ink-2);
  color: #fff;
}

.cert-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.cert-content { flex: 1; }

.cert-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  font-weight: 600;
}

.cert-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  margin: 14px 0 12px;
  line-height: 1.1;
}

.cert-text {
  color: var(--muted-2);
  margin-bottom: 28px;
  font-size: 15px;
}

.cert-image {
  flex: 1;
  max-width: 560px;
}

.cert-image img {
  border-radius: var(--r-lg);
  width: 100%;
}

/* ============================================================
   RESPONSIVE — home (tablet + mobile)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy {
    left: 40px;
    right: 40px;
    bottom: 56px;
  }
  .hero-title { font-size: clamp(40px, 5vw, 60px); }
}

@media (max-width: 768px) {
  /* ── Hero ── */
  .hero-slider { height: 100svh; }
  .hero-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    left: 24px;
    right: 24px;
    bottom: 48px;
  }
  .hero-script { font-size: 34px; }
  .hero-title { font-size: clamp(36px, 10vw, 52px); }
  .hero-side { align-items: flex-start; }
  .slider-prev,
  .slider-next { display: none; }

  /* ── Catalog section ── */
  .catalog-section { padding: 56px 0; }
  .catalog-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
  }

  /* ── Features ── */
  .features-section { padding: 56px 0; }
  .features-head { margin-bottom: 28px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-item { padding: 28px 26px 30px; }
  .feature-num { font-size: 44px; }
  .feature-icon svg { width: 52px; height: 52px; }

  /* ── Cert section ── */
  .cert-section { padding: 64px 0; }
  .cert-inner { flex-direction: column; gap: 32px; }
  .cert-image { max-width: 100%; }
}
