/* === ПАЛИТРА И ПЕРЕМЕННЫЕ (Тёплый светлый минимализм) === */
:root {
  --bg: #faf7f2;
  --bg-tinted: #f2ece3;
  --surface: #ffffff;
  --text: #2a2520;
  --text-muted: #6c6258;
  --accent: #5c6f5b;
  --accent-hover: #495948;
  --border: #e4ddd2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(42, 37, 32, 0.06);

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* === БАЗОВЫЙ СБРОС === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- ОСНОВНАЯ НАСТРОЙКА ШАПКИ --- */
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- НАСТРОЙКА МЕНЮ --- */
.header__nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header__nav--left {
  justify-content: flex-start;
}

.header__nav--right {
  justify-content: flex-end;
}

/* --- СТИЛИ ССЫЛОК --- */
.header__link {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.header__link:hover {
  color: #495948;
}

.header__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #495948;
  transition: width 0.3s ease;
}

.header__link:hover::after {
  width: 100%;
}

/* === КОНТЕЙНЕРЫ И СЕКЦИИ === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

.section--compact {
  padding: 44px 0 84px;
}

.section--tinted {
  background-color: var(--bg-tinted);
}

.section__head {
  margin-bottom: 36px;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

/* === КНОПКИ === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn--outline:hover {
  background-color: var(--text);
  color: #ffffff;
}

.btn--full {
  width: 100%;
}

/* === ШАПКА (ЦЕНТРИРОВАННЫЙ ЛОГОТИП) === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85px;
  gap: 50px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 15px;
}

.logo__mark img {
  width: 45px;
  height: auto;
}

/* === НАВИГАЦИЯ НАЗАД === */
.page-nav {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text);
}

/* === 1. HERO === */
.hero {
  padding: 64px 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.hero__status {
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.photo-frame {
  padding: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.photo-frame__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* === ЗАГЛУШКИ ПОД ФОТО === */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  border: 1.5px dashed #cfc5b6;
  background: linear-gradient(145deg, #f5efe6 0%, #ebe2d5 100%);
  color: var(--text-muted);
  width: 100%;
  height: 100%;
}

.photo-placeholder--review {
  aspect-ratio: 3 / 4;
}

.photo-placeholder--product {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: none;
}

.photo-placeholder__title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}

.photo-placeholder__hint {
  font-size: 13px;
}

/* === 2. СЛАЙДЕР ОТЗЫВОВ === */
.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.slider-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: #ffffff;
}

.reviews-slider {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}

.review-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
  background-color: #f0f0f0;
}

/* === 3. КОНТАКТЫ === */
.contact-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-box__text {
  margin: 16px 0 28px;
  color: var(--text-muted);
  max-width: 460px;
}

.contact-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background-color: var(--bg);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-btn:hover {
  border-color: var(--accent);
  background-color: var(--bg-tinted);
}

.legal-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* === КАТАЛОГ (ВИТРИНА) === */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--bg-tinted);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.03);
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.product-card__weight {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.product-card__price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}



.mess_icons {
  width: 30px;
  height: auto;
}

/* === СТРАНИЦА ТОВАРА (СЛАЙДЕР + ИНФО) === */
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.product-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

.product-slider__viewport {
  aspect-ratio: 4 / 5;
  position: relative;
}

.product-slider__slide {
  display: none;
  width: 100%;
  height: 100%;
}

.product-slider__slide.is-active {
  display: block;
}

.product-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-slider__arrow:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.product-slider__arrow--prev {
  left: 14px;
}

.product-slider__arrow--next {
  right: 14px;
}

.product-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.product-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: #d6cdc0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-slider__dot.is-active {
  background-color: var(--accent);
  transform: scale(1.15);
}

.product-info__title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.15;
}

.product-info__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.product-info__price {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}

.product-info__weight {
  font-size: 15px;
  color: var(--text-muted);
}

.product-info__block {
  margin-bottom: 22px;
}

.product-info__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.product-info__text {
  margin: 0;
  color: var(--text);
}

.product-info__actions {
  margin-top: 32px;
}

/* === МОДАЛЬНОЕ ОКНО === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(42, 37, 32, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 36px 32px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(42, 37, 32, 0.22);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--text);
}

.modal__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
}

.modal__summary {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text-muted);
}

.modal__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === ТОСТ-УВЕДОМЛЕНИЕ === */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 22px;
  border-radius: 999px;
  background-color: var(--text);
  color: #ffffff;
  font-size: 14px;
  box-shadow: var(--shadow);
}

/* === ПОДВАЛ === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  font-size: 14px;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a:hover {
  color: var(--text);
}

/* === ПЛАВНОЕ ПОЯВЛЕНИЕ === */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* === АДАПТИВ === */
@media (max-width: 900px) {
  .hero__grid,
  .contact-box,
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__content,
  .contact-box__info {
    text-align: center;
  }

  .hero__status,
  .contact-box__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__media {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
  
  .header__inner {
    flex-direction: row; 
    height: auto;
    padding: 10px 15px;
    gap: 15px;
  }

  .header__nav {
    gap: 15px; 
  }

  .header__link {
    font-size: 14px;
  }

  .logo__mark {
    width: 50px;
    height: 50px;
  }
  .logo__mark img {
    width: 30px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .section--compact {
    padding: 28px 0 56px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .hero__actions .btn,
  .contact-box__cta {
    width: 100%;
  }

  .section__head--row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .contact-box,
  .modal__dialog {
    padding: 28px 20px;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
  
   .header__link {
    font-size: 14px;
  }

  .logo__mark {
    width: 50px;
    height: 50px;
  }
  .logo__mark img {
    width: 30px;
  }
}
