/* =============================================
   INDEX PAGE STYLES
   ============================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(
      to right,
      rgba(20, 20, 20, 0.85) 45%,
      rgba(20, 20, 20, 0.35) 100%
    ),
    url('/assets/images/hero-kitchen.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 20px 80px;
  overflow: hidden;
}
.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 52px);
  color: var(--white);
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 6px;
}
.hero-title-bar {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 22px;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--darker-bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    transform var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 14px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    background var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- About Section (2-col) --- */
.about-section {
  padding: 80px 0;
  background: var(--white);
}
.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.about-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: var(--gold);
  color: var(--darker-bg);
  padding: 18px 22px;
  border-radius: 3px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.about-badge span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.about-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 18px;
}
.about-content p {
  font-size: 12px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--darker-bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  padding: 13px 26px;
  border-radius: var(--radius);
  margin-top: 8px;
  transition: background var(--transition);
}
.about-catalog-btn:hover {
  background: var(--gold-light);
}

/* Advantages row */
.advantages-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.adv-icon {
  width: 44px;
  height: 44px;
  background: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.adv-item-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.adv-item-text p {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

/* --- Catalog Section (New Layout) --- */
.catalog-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  position: relative;
  overflow: hidden;
}
.catalog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.catalog-section .container {
  position: relative;
}
.catalog-section .section-title {
  color: var(--white);
}
.catalog-section .section-subtitle {
  color: var(--gold);
}

/* Новая структура каталога: 1 слева (большая), 2 справа (друг над другом), 1 внизу на всю ширину */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px 240px;
  gap: 16px;
}

.catalog-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--mid-bg);
  text-decoration: none;
}
.catalog-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.catalog-card:hover img {
  transform: scale(1.06);
}
.catalog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px 20px;
  transition: background var(--transition);
}
.catalog-card:hover .catalog-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
}
.catalog-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.catalog-card--wide .catalog-card-title {
  font-size: 28px;
}

.catalog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.catalog-card:hover::after {
  transform: scaleX(1);
}

/* Позиционирование карточек в новой структуре:
   Карточка 1 (большая) - слева на 2 строки
   Карточка 2 - справа вверху
   Карточка 3 - справа внизу
   Карточка 4 - внизу на всю ширину */

/* Карточка 1: Кухни по форме (большая слева) */
.catalog-grid .catalog-card:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* Карточка 2: Шкафы-купе (справа вверху) */
.catalog-grid .catalog-card:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

/* Карточка 3: Тумбы и комоды (справа внизу) */
.catalog-grid .catalog-card:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* Карточка 4: Кровати (внизу на всю ширину) */
.catalog-grid .catalog-card:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}

/* --- How We Work --- */
.process-section {
  padding: 80px 0;
  background: var(--white);
}
.process-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.process-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 34px);
  color: var(--text-dark);
  margin-bottom: 10px;
}
.process-intro p {
  font-size: 14px;
  color: #666;
}
.process-intro .process-intro-links {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}
.process-intro .process-intro-links a {
  color: var(--gold-dark);
}
.process-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
}

.process-steps {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  text-align: center;
}
.process-step-img-wrap {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 3/4;
  background: #e0e0db;
}
.process-step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--darker-bg);
  font-weight: 800;
  font-size: 14px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-label {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  background: rgba(43, 43, 43, 0.82);
  color: var(--text-light);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 6px;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.process-step p {
  font-size: 12.5px;
  color: #777;
  line-height: 1.6;
}
.process-step p a {
  color: var(--gold-dark);
}

/* --- Text content --- */
.text-section {
  padding: 72px 0;
  background: var(--light-bg);
}
.text-section .container {
  max-width: 1280px;
}
.text-section h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--text-dark);
  margin: 32px 0 12px;
}
.text-section h2:first-child {
  margin-top: 0;
}
.text-section p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}
.text-section ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.text-section ul li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.6;
}
.text-section ul li a,
.text-section p a {
  color: var(--gold-dark);
}

/* --- Stats row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark-bg);
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-badge {
    right: 16px;
    bottom: 16px;
  }

  /* Адаптив для каталога: на планшетах делаем 2 колонки */
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 200px 200px;
    gap: 12px;
  }

  /* Карточка 1: на всю ширину вверху */
  .catalog-grid .catalog-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  /* Карточка 2: слева во второй строке */
  .catalog-grid .catalog-card:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  /* Карточка 3: справа во второй строке */
  .catalog-grid .catalog-card:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  /* Карточка 4: на всю ширину внизу */
  .catalog-grid .catalog-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-row {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 580px) {
  /* Мобильный адаптив: все карточки в одну колонку */
  .catalog-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 10px;
  }

  .catalog-grid .catalog-card:nth-child(n) {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
    height: 200px !important;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 420px;
    padding: 60px 20px;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
}
