/* ===== ОБЩИЕ СТИЛИ ВНУТРЕННИХ СТРАНИЦ ===== */
.page-content {
  padding-top: 130px;
  padding-bottom: 80px;
  min-height: 60vh;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-muted);
  transition: var(--transition);
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--gold); }

/* ===== КАТАЛОГ (СЕТКА) ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.catalog-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, .12);
}
.catalog-card__img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #222;
}
.catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.catalog-card:hover .catalog-card__img { transform: scale(1.06); }
.catalog-card__info {
  padding: 20px;
}
.catalog-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}
.catalog-card__abv {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ===== СТРАНИЦА СОРТА — ДЕТАЛЬНАЯ ===== */
.beer-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

/* Слайдер фото */
.beer-detail__gallery { position: relative; }
.beer-detail__main-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 16px;
  cursor: zoom-in;
}
.beer-detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
}
.beer-detail__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.beer-detail__thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.beer-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.beer-detail__thumb--active,
.beer-detail__thumb:hover {
  border-color: var(--gold);
}

/* Характеристики */
.beer-detail__info { padding-top: 8px; }
.beer-detail__props {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.beer-detail__prop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.beer-detail__prop:first-child { padding-top: 0; }
.beer-detail__prop-label {
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 140px;
}
.beer-detail__prop-value {
  font-size: 15px;
  color: var(--white);
  text-align: right;
}
.beer-detail__pack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.beer-detail__pack-item {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(201, 168, 76, .12);
  color: var(--gold);
  font-weight: 600;
}
.beer-detail__actions {
  margin-top: 32px;
}
.beer-detail__actions .btn {
  min-width: 200px;
}

/* Другие сорта */
.other-beers {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.other-beers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.lightbox__close:hover { color: var(--gold); }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: rgba(255,255,255,.6);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--gold); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ===== ШАПКА СТРАНИЦЫ (заголовок + подзаголовок) ===== */
.page-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.page-head .section-title { margin-bottom: 16px; }
.page-head__lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ТЕКСТОВЫЙ КОНТЕНТ (О заводе, Доставка) ===== */
.prose {
  max-width: 820px;
  margin: 0 auto;
}
.prose p {
  font-size: 16px;
  color: rgba(245, 240, 232, .85);
  line-height: 1.8;
  margin-bottom: 20px;
}
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  margin: 40px 0 16px;
}
.prose ul.prose-list {
  margin: 0 0 24px;
  padding: 0;
}
.prose-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  color: rgba(245, 240, 232, .85);
  line-height: 1.7;
}
.prose-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== ИНФО-КАРТОЧКИ (фичи) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.feature-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(201, 168, 76, .1);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(201, 168, 76, .3);
  transform: translateY(-4px);
}
.feature-card__icon {
  color: var(--gold);
  margin-bottom: 16px;
}
.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.feature-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ЦИФРЫ / СТАТИСТИКА ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 56px 0;
  text-align: center;
}
.stats__item {
  padding: 24px;
  border: 1px solid rgba(201, 168, 76, .15);
  border-radius: var(--radius);
}
.stats__num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stats__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contacts-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}
.contacts-page__info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contacts-page__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacts-page__info-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 4px;
}
.contacts-page__info-item p,
.contacts-page__info-item a {
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition);
}
.contacts-page__info-item a:hover { color: var(--gold); }
.contacts-page__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.contacts-page__social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, .25);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.contacts-page__social:hover {
  background: var(--gold);
  color: var(--dark);
}
.contacts-page__map {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, .15);
  background: var(--dark-card);
}
.contacts-page__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contacts-page__map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ===== CTA-БЛОК ===== */
.cta {
  text-align: center;
  background: var(--dark-card);
  border: 1px solid rgba(201, 168, 76, .15);
  border-radius: var(--radius);
  padding: 56px 32px;
  margin-top: 24px;
}
.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta__title span { color: var(--gold); }
.cta__text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ===== 404 ===== */
.error-page {
  text-align: center;
  padding: 80px 20px 100px;
}
.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page__text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .page-content { padding-top: 100px; padding-bottom: 48px; }
  .beer-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .beer-detail__main-img-wrap { aspect-ratio: 1; }
  .beer-detail__prop { flex-direction: column; gap: 4px; }
  .beer-detail__prop-value { text-align: left; }
  .beer-detail__pack-list { justify-content: flex-start; }
  .other-beers__grid { grid-template-columns: repeat(2, 1fr); }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contacts-page__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .other-beers__grid { grid-template-columns: 1fr; }
  .beer-detail__thumb { flex: 0 0 56px; height: 56px; }
  .stats { grid-template-columns: 1fr; }
}
