/* ============================================================
   3D MOUNTAIN PEAK — «Горы на ладони»
   Стили по дизайн-системе: 6 цветов, Oswald + Arial,
   острые углы, тонкие линии, контурные линии, без эмодзи
   ============================================================ */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Oswald-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Oswald-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Oswald-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Oswald-700.ttf') format('truetype');
}

:root {
  /* Токены дизайн-системы (tokens/colors.css) */
  --color-ink-900: #102020;
  --color-ink-800: #2D4C4F;
  --color-teal-500: #78B4B7;
  --color-stone-100: #D9E9E9;
  --color-terracotta-600: #83241E;
  --color-black: #000000;
  --color-white: #FFFFFF;

  --surface-page: var(--color-stone-100);
  --surface-paper: var(--color-white);
  --surface-card: var(--color-white);
  --surface-inverse: var(--color-ink-900);
  --surface-warm: var(--color-stone-100);

  --text-primary: var(--color-black);
  --text-secondary: var(--color-ink-800);
  --text-tertiary: rgba(45, 76, 79, 0.6);
  --text-inverse: var(--color-white);
  --text-inverse-secondary: rgba(255, 255, 255, 0.64);

  --accent-terracotta: var(--color-terracotta-600);
  --accent-forest: var(--color-ink-800);
  --accent-copper: var(--color-teal-500);

  --border-subtle: rgba(0, 0, 0, 0.12);
  --border-subtle-inverse: rgba(255, 255, 255, 0.22);
  --border-strong: var(--color-black);

  /* Токены типографики (tokens/typography.css) */
  --font-display: 'Oswald', sans-serif;
  --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --tracking-label: 0.14em;
  --tracking-display: 0.02em;
  --text-display-xl: clamp(48px, 6vw, 96px);
  --text-display-lg: 56px;
  --text-display-md: 40px;
  --text-display-sm: 28px;
  --text-heading: 22px;
  --text-body-lg: 19px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-label: 12px;
  --text-caption: 11px;
  --lh-tight: 1.05;
  --lh-heading: 1.2;
  --lh-body: 1.55;

  /* Совместимость со старыми именами */
  --ink-900: var(--color-ink-900);
  --ink-800: var(--color-ink-800);
  --teal-500: var(--color-teal-500);
  --stone-100: var(--color-stone-100);
  --terracotta-600: var(--color-terracotta-600);
  --black: var(--color-black);
  --white: var(--color-white);

  --radius: 2px;
  --shadow-card: 0 1px 2px rgba(18, 24, 28, 0.06), 0 8px 24px rgba(18, 24, 28, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ---------- Шапка ---------- */
.header {
  background: var(--ink-900);
  color: var(--text-inverse);
  border-bottom: 1px solid var(--border-subtle-inverse);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1240px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; }
/* Настоящий логотип из дизайн-системы (assets/logo-mark.png) */
.brand-logo-img {
  width: 60px; height: 60px;
  object-fit: contain;
  /* на тёмной шапке тёмный знак инвертируем в светлый (правило дизайн-системы) */
  filter: invert(1) brightness(1.4);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-name small {
  display: block; font-size: 10px; font-weight: 400;
  letter-spacing: var(--tracking-label);
  color: var(--text-inverse-secondary);
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 12px; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-inverse-secondary);
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: color 150ms linear;
}
.nav a:hover { color: var(--text-inverse); border-bottom-color: var(--teal-500); }
.nav a.active { color: var(--text-inverse); border-bottom-color: var(--teal-500); }

/* ---------- Герой ---------- */
.hero {
  background: var(--ink-900);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle-inverse);
}
.hero-contours {
  position: absolute; inset: 0;
  /* настоящие изолинии топокарты из дизайн-системы (packaging-reference.png),
     low-contrast texture: белые линии ~15% непрозрачности на тёмном фоне */
  background-image: url("contours.png");
  /* один тайл на весь экран — без повторов и без склеек */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.hero-inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: 96px 24px 88px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}
.hero-title .accent { color: var(--teal-500); }
.hero-sub {
  margin-top: 20px; font-size: 17px;
  color: var(--text-inverse-secondary);
  max-width: 46ch;
}
.hero-facts {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-render { text-align: center; position: relative; }
.hero-render img {
  max-width: 100%; max-height: 420px;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}
/* Водяной знак логотипа на рендере (правило дизайн-системы: ~14% в углу) */
.watermark {
  position: absolute;
  bottom: 14px; right: 14px;
  height: 40px;
  opacity: 0.5;
  filter: invert(1) brightness(2);
  pointer-events: none;
}
.watermark-sm {
  height: 22px;
  opacity: 0.4;
  bottom: 10px; right: 10px;
}
.watermark-dark {
  filter: none;
  opacity: 0.28;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--ink-800);
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--white);
  cursor: pointer;
  transition: background 160ms linear, color 160ms linear, transform 160ms linear;
}
.btn:hover { background: var(--ink-900); border-color: var(--ink-900); }
.btn:active { transform: scale(0.98); }
.btn-light {
  background: transparent; color: var(--text-inverse);
  border-color: var(--border-subtle-inverse);
}
.btn-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-accent { background: var(--terracotta-600); border-color: var(--terracotta-600); }
.btn-accent:hover { background: #6b1d18; border-color: #6b1d18; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ---------- Баннер «Эверест бесплатно» ---------- */
.banner-free {
  background: var(--stone-100);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.banner-free-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 56px 24px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  align-items: center;
}
.banner-free-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600; line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--ink-900);
}
.banner-free-text {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 56ch;
}
.banner-free-actions {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.banner-free-media { text-align: center; }
.banner-free-media img {
  max-width: 100%;
  max-height: 320px;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

/* ---------- Блог ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 160ms linear, transform 160ms linear;
}
.blog-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.blog-card-meta {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  line-height: 1.15; text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: var(--ink-900);
}
.blog-card-excerpt {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.blog-card-more {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-900);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: border-color 160ms linear;
}
.blog-card:hover .blog-card-more { border-color: var(--teal-500); }

/* Страница статьи */
.breadcrumbs {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 32px;
}
.breadcrumbs a { color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); padding-bottom: 1px; }
.breadcrumbs a:hover { color: var(--ink-900); border-color: var(--ink-800); }
.article {
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 44px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700; line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--ink-900);
  margin: 8px 0 8px;
}
.article-date {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 28px;
}
.article-body { font-size: 16px; line-height: 1.7; color: var(--text-primary); }
.article-body p { margin-bottom: 16px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  margin: 32px 0 12px;
}
.article-body strong { color: var(--ink-900); }
.article-back { margin-top: 36px; }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 36px; }
.section-label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600; line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
}
.section-note { margin-top: 12px; color: var(--text-secondary); max-width: 60ch; }

/* ---------- Фильтры ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms linear;
}
.filter-btn:hover { border-color: var(--ink-800); color: var(--ink-900); }
.filter-btn.active {
  background: var(--ink-900); color: var(--white);
  border-color: var(--ink-900);
}

/* ---------- Сетка карточек ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 160ms linear, transform 160ms linear;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card-media { aspect-ratio: 1 / 1; background: var(--stone-100); overflow: hidden; position: relative; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 200ms linear;
}
.card:hover .card-media img { transform: scale(1.02); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
  line-height: 1.15; text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.card-meta {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 14px;
}
.card-bottom {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.price { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.price-free { color: var(--terracotta-600); }
.badge-free {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border: 1px solid var(--terracotta-600);
  color: var(--terracotta-600);
  padding: 3px 8px; border-radius: var(--radius);
}
.buy-link {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--ink-800);
  color: var(--ink-900);
  border-radius: var(--radius);
  transition: all 160ms linear;
}
.buy-link:hover { background: var(--ink-900); color: var(--white); }

/* ---------- Карточка товара ---------- */
.product { padding: 56px 0 80px; }
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.product-media { background: var(--stone-100); border-radius: var(--radius); overflow: hidden; position: relative; }
.product-media img { width: 100%; display: block; }
/* Галерея: миниатюры под фото */
.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 10px;
}
.gallery-thumb {
  width: 72px; height: 72px;
  padding: 0; border: 1px solid var(--border-subtle);
  border-radius: var(--radius); overflow: hidden;
  background: var(--stone-100); cursor: pointer;
  transition: border-color 150ms linear, opacity 150ms linear;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--ink-800); }
.gallery-thumb.active { border-color: var(--ink-900); box-shadow: 0 0 0 1px var(--ink-900); }
.gallery-thumb:not(.active) { opacity: 0.65; }
.gallery-thumb:not(.active):hover { opacity: 1; }
.product-cat {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal-500);
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700; line-height: 1.05;
  text-transform: uppercase;
  margin: 8px 0 6px;
}
.product-meta { font-size: 15px; color: var(--text-secondary); margin-bottom: 22px; }
.product-desc { font-size: 16px; line-height: 1.65; margin-bottom: 24px; white-space: pre-line; }
.product-desc p { margin: 0; text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-indent: 1.5em; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px; border-radius: var(--radius);
  color: var(--text-secondary);
}
.product-buy {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--border-subtle);
}
.product-price { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.product-price small { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.product-extra { margin-top: 18px; font-size: 13px; color: var(--text-secondary); }
.back-link {
  display: inline-block; margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 3px;
}
.back-link:hover { color: var(--ink-900); border-color: var(--ink-800); }

/* ---------- О проекте / Как купить ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.info-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.info-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.info-card ol { padding-left: 18px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.info-card ol li { margin-bottom: 6px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink-900); color: var(--text-inverse-secondary); padding: 48px 0 40px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-brand { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}
.footer-col a { display: block; font-size: 14px; padding: 3px 0; }
.footer-col a:hover { color: var(--white); }
/* Иконки соцсетей в подвале */
.socials { display: flex; gap: 10px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-subtle-inverse);
  border-radius: var(--radius);
  color: var(--text-inverse-secondary);
  transition: color 150ms linear, border-color 150ms linear, background 150ms linear;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover {
  color: var(--white);
  border-color: var(--teal-500);
  background: rgba(255, 255, 255, 0.08);
}
.footer-bottom {
  max-width: 1240px; margin: 32px auto 0; padding: 20px 24px 0;
  border-top: 1px solid var(--border-subtle-inverse);
  font-size: 12px; letter-spacing: 0.04em;
}
.lang {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.1em;
  border: 1px solid var(--border-subtle-inverse);
  padding: 3px 8px; border-radius: var(--radius);
  color: var(--text-inverse-secondary);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 56px; }
  .hero-render { display: none; }
  .product-layout { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .banner-free-inner { grid-template-columns: 1fr; }
  .banner-free-media { display: none; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}


/* Cookie-баннер (152-ФЗ: согласие на аналитические cookie) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  display: flex; justify-content: center; pointer-events: none;
  transform: translateY(140%); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner-inner {
  pointer-events: auto;
  max-width: 680px; width: 100%;
  background: var(--white); color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  padding: 16px 20px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner-text {
  margin: 0; font-size: 13.5px; line-height: 1.55;
  color: var(--text-secondary); flex: 1 1 340px; min-width: 240px;
}
.cookie-banner-text a { color: var(--terracotta-600); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 20px; font-size: 13px; border-radius: 8px; }
.cookie-banner .btn-decline {
  background: transparent; color: var(--ink-800);
  border-color: var(--border-subtle);
}
.cookie-banner .btn-decline:hover { background: var(--stone-100); border-color: var(--ink-800); }
@media (max-width: 480px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-inner { padding: 14px 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; }
}

/* ---------- Коллекции: плитки-коллажи ---------- */
.collections-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.collection-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); text-decoration: none;
  aspect-ratio: 1 / 1; border: 1px solid var(--border-subtle);
}
.collection-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .35s ease;
}
.collection-tile:hover img { transform: scale(1.04); }
.collection-tile-body {
  position: absolute; left: 0; right: 0; top: 0; padding: 16px 16px 26px;
  background: linear-gradient(180deg, rgba(10, 12, 16, .62), rgba(10, 12, 16, 0) 70%);
  color: var(--text-inverse);
}
.collection-tile .collection-flag {
  position: absolute; top: auto; left: auto; right: 12px; bottom: 12px;
  width: 34px; height: 34px; object-fit: cover; object-position: center;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.collection-tile-name {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.15;
  color: var(--text-inverse);
}
.collection-tile-count { font-size: 13px; color: var(--text-inverse-secondary); margin-top: 3px; }
@media (max-width: 900px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-tile { min-height: 150px; }
}

/* ---------- Текст коллекций ---------- */
.collection-intro {
  max-width: none;
  font-size: 16px; line-height: 1.7;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  color: var(--text-primary);
  margin-bottom: 34px;
}
.collection-intro p { margin: 0; text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-indent: 1.5em; }

/* ---------- Hero-кнопки: одинаковая ширина ---------- */
.hero-facts .btn { flex: 1 1 auto; min-width: 210px; text-align: center; }

/* ---------- Форма заявки ---------- */
.contact-form { max-width: 640px; margin-top: 22px; }
.form-hint { max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-secondary); }
.form-row .req { color: var(--terracotta-600); }
.form-row .opt { color: var(--text-secondary); font-weight: 400; }
.form-row input[type="text"], .contact-form textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  background: var(--white); color: var(--ink-900); box-sizing: border-box;
}
.form-row input:focus, .contact-form textarea:focus { outline: none; border-color: var(--terracotta-600); }
#cf-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--green-600); }
.form-status.error { color: var(--terracotta-600); }
.form-alt { margin-top: 18px; font-size: 14px; color: var(--text-secondary); }

/* ---------- Корзина ---------- */
.cart-link .cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: var(--terracotta-600); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.cart-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 12px; background: var(--white);
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.cart-item-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.cart-item-price { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.cart-item-remove {
  margin-left: auto; border: none; background: none; cursor: pointer;
  color: var(--text-secondary); font-size: 22px; line-height: 1; padding: 6px;
}
.cart-item-remove:hover { color: var(--terracotta-600); }
.cart-total { margin-top: 22px; font-size: 20px; font-weight: 700; font-family: var(--font-display); }
.cart-empty { font-size: 16px; color: var(--text-secondary); }
.cart-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
#payment-form { margin-top: 16px; }
.order-success-box {
  margin-top: 20px; padding: 20px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius); background: var(--white); max-width: 720px;
}
.order-success-box ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.order-success-box .btn { display: inline-flex; }
.cart-status { margin-top: 12px; font-size: 14px; min-height: 20px; }
.cart-status.error { color: var(--terracotta-600); }

/* Корзина в шапке — заметнее */
.nav .cart-link {
  color: var(--text-inverse);
  font-weight: 700;
  border: 1px solid var(--border-subtle-inverse);
  border-radius: var(--radius);
  padding: 4px 10px;
}
.nav .cart-link:hover { border-color: var(--teal-500); }

/* ---------- Покупка на странице модели: «Купить сейчас» + «В корзину» ---------- */
.btn-outline {
  background: transparent; color: var(--ink-800);
  border-color: var(--ink-800);
}
.btn-outline:hover { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.add-to-cart.added {
  background: var(--stone-100); color: var(--ink-800);
  border-color: var(--stone-100); cursor: default; opacity: 1;
}
.add-to-cart.added:hover { background: var(--stone-100); color: var(--ink-800); border-color: var(--stone-100); }
.add-to-cart.added:active { transform: none; }

/* Диалог «Купить сейчас» */
.buynow-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  opacity: 0; transition: opacity 180ms linear;
}
.buynow-overlay.open { opacity: 1; }
.buynow-card {
  position: relative; background: var(--white);
  width: 100%; max-width: 420px; box-sizing: border-box;
  padding: 28px 28px 24px; border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}
.buynow-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; padding: 4px 8px;
  color: var(--text-secondary);
}
.buynow-close:hover { color: var(--ink-900); }
.buynow-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: var(--tracking-display);
}
.buynow-product {
  margin-top: 6px; font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--ink-900);
}
.buynow-label { display: block; margin-top: 18px; font-size: 13px; color: var(--text-secondary); }
.buynow-label .req { color: var(--terracotta-600); }
.buynow-input {
  width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 15px;
  font-family: inherit; box-sizing: border-box;
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  background: var(--white); color: var(--ink-900);
}
.buynow-input:focus { outline: none; border-color: var(--terracotta-600); }
.buynow-note { margin: 10px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.buynow-status { margin: 10px 0 0; font-size: 13px; min-height: 18px; }
.buynow-status.error { color: var(--terracotta-600); }
.buynow-actions { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.buynow-actions .btn { flex: 1 1 auto; }
.buynow-actions .btn[disabled] { opacity: 0.65; cursor: default; }
.buynow-actions .btn[disabled]:active { transform: none; }

@media (max-width: 480px) {
  .buynow-card { padding: 24px 20px 20px; }
  .buynow-actions { flex-direction: column; }
  .buynow-actions .btn { width: 100%; text-align: center; }
}

