/* =========================================================================
   VMonety — main stylesheet
   Свёрстано 1:1 по Figma. Контейнер контента: 1240px, шрифт Inter, логотип Roboto.
   ========================================================================= */

/* ----------------------------- Design tokens ---------------------------- */
:root{
  --gold:        #B1932B;   /* бренд: текст, ссылки, заголовки */
  --gold-dark:   #877021;
  --bronze:      #C57D24;   /* акцент, начало градиента шагов */
  --gold-light:  #CC9F42;   /* текст outline-кнопок, конец градиента */
  --btn-a:       #E3D45E;   /* градиент кнопки «Купить» — начало */
  --btn-b:       #C99A40;   /* градиент кнопки «Купить» — конец */
  --btn-border:  #E3D45E;   /* обводка outline-кнопок */

  --bg:          #FFFEF3;   /* фон страницы (светлый крем) */
  --cream:       #FFFADD;   /* фон изображения монеты / мягкие карточки */
  --beige:       #EBE9CE;
  --white:       #FFFFFF;
  --grey-100:    #F3F3F3;
  --grey-300:    #B3B3B3;

  --ink:         #1E1E1E;   /* основной текст */
  --ink-2:       #303030;
  --muted:       #696969;   /* вторичный текст */
  --dark:        #232020;   /* фон футера */
  --dark-2:      #2C2C2C;

  --container:   1240px;
  --radius-sm:   8px;
  --radius:      20px;
  --radius-lg:   24px;
  --shadow-card: 0 4px 10px rgba(45,42,19,.10);
  --shadow-soft: 0 4px 20px rgba(45,42,19,.08);

  --grad-btn:    linear-gradient(98deg, var(--btn-a) 0%, var(--btn-b) 100%);
  --grad-step:   linear-gradient(90deg, var(--bronze) 0%, var(--gold-light) 100%);
}

/* ------------------------------- Reset ---------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.4;
  overflow-x:hidden; /* защита от горизонтального скролла (оффскрин-меню) */
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.h1,.h2,.page-title,.section-title,.coin-card__title,.post-row__title{ overflow-wrap:break-word; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,h6,p{ margin:0; }
input,textarea,select{ font-family:inherit; font-size:16px; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

/* ------------------------------ Layout ---------------------------------- */
.container{
  width:100%;
  max-width:calc(var(--container) + 80px);
  margin:0 auto;
  padding:0 40px;
}
.site-main{ min-height:40vh; }
.section{ padding:56px 0; }
.section--tight{ padding:40px 0; }

/* --------------------------- Typography --------------------------------- */
.h1,.page-title{
  font-size:40px; font-weight:500; line-height:1.1;
  color:var(--gold); text-transform:uppercase; letter-spacing:.5px;
}
.h2,.section-title{
  font-size:36px; font-weight:500; line-height:1.1;
  color:var(--gold); text-transform:uppercase; letter-spacing:1px;
}
.h3{ font-size:24px; font-weight:400; }
.h4{ font-size:20px; font-weight:500; }
.h5{ font-size:18px; font-weight:600; }
.text-muted{ color:var(--muted); }
.lead{ font-size:18px; color:var(--ink); line-height:1.6; }

/* ------------------------------ Buttons --------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:43px; padding:12px 16px; border-radius:var(--radius-sm);
  font-size:16px; font-weight:400; border:1px solid transparent;
  transition:filter .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space:nowrap;
}
.btn--primary{ background-image:var(--grad-btn); color:#fff; }
.btn--primary:hover{ filter:brightness(1.06) saturate(1.05); box-shadow:0 6px 16px rgba(197,125,36,.28); }
.btn--outline{ background:transparent; border-color:var(--btn-border); color:var(--gold-light); }
.btn--outline:hover{ background:var(--btn-border); color:#fff; }
.btn--dark{ background:var(--dark-2); color:#fff; }
.btn--dark:hover{ filter:brightness(1.15); }
.btn--block{ width:100%; }
.btn--lg{ height:49px; padding:12px 24px; font-size:16px; }
.btn[disabled]{ opacity:.55; pointer-events:none; }

/* ------------------------------ Header ---------------------------------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(255,254,243,.92); backdrop-filter:saturate(1.1) blur(6px);
  border-bottom:1px solid var(--beige);
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; height:65px;
}
.brand{ display:inline-flex; align-items:center; gap:8px; color:var(--gold); }
.brand__mark{ width:29px; height:29px; display:block; color:var(--gold); }
.brand__mark svg{ width:100%; height:100%; display:block; }
.brand__name{ font-family:'Roboto',sans-serif; font-size:20px; line-height:1.2; color:var(--gold); }

.main-nav__list{ display:flex; align-items:center; gap:40px; }
.main-nav__list>li{ position:relative; }
.main-nav a{ font-size:18px; color:var(--gold); transition:color .15s; }
.main-nav a:hover{ color:var(--gold-dark); }
.main-nav .menu-item-has-children>a{ display:inline-flex; align-items:center; gap:6px; }
.main-nav .menu-item-has-children>a::after{
  content:""; width:9px; height:9px; margin-top:2px;
  border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor;
  transform:rotate(45deg); transition:transform .18s;
}
.main-nav .menu-item-has-children:hover>a::after{ transform:rotate(-135deg); }
.main-nav .sub-menu{
  position:absolute; top:calc(100% + 14px); left:0; min-width:220px;
  background:#fff; border:1px solid var(--beige); border-radius:12px;
  box-shadow:var(--shadow-soft); padding:8px; opacity:0; visibility:hidden;
  transform:translateY(6px); transition:.18s;
}
.main-nav .menu-item-has-children:hover .sub-menu{ opacity:1; visibility:visible; transform:none; }
.main-nav .sub-menu a{ display:block; padding:9px 12px; border-radius:8px; font-size:16px; }
.main-nav .sub-menu a:hover{ background:var(--grey-100); }

.header-actions{ display:flex; align-items:center; gap:24px; }
.header-phone{ display:none; }
.cart-link{ display:inline-flex; align-items:center; gap:8px; font-size:18px; color:var(--gold); }
.cart-link .count{ font-variant-numeric:tabular-nums; }

.burger,.mobile-only{ display:none; }

/* Mobile menu overlay */
.mobile-menu{
  position:fixed; inset:0; z-index:60; background:#fff;
  transform:translateX(100%); transition:transform .28s ease; overflow-y:auto;
}
.mobile-menu.is-open{ transform:none; }
.mobile-menu__top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  height:64px; padding:0 20px; border-bottom:1px solid var(--beige);
}
.mobile-menu__phone{
  background:var(--grad-btn); color:#fff; font-size:13px; font-weight:500;
  padding:8px 12px; border-radius:8px;
}
.mobile-menu__close{ background:none; border:0; font-size:30px; line-height:1; color:var(--ink); }
.mobile-menu nav{ padding:20px; }
.mobile-menu nav a{ display:block; font-size:22px; color:var(--gold); padding:16px 0; }
.mobile-menu nav .sub a{ font-size:18px; padding-left:16px; color:var(--gold-dark); }

/* ------------------------------ Footer ---------------------------------- */
.site-footer{
  margin-top:64px; background:var(--dark); color:#EDE7DA;
  border-radius:24px 24px 0 0;
}
.site-footer .container{ padding-top:36px; padding-bottom:28px; }
.footer-top{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  flex-wrap:wrap; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-top .brand,.footer-top .brand__name,.footer-top .brand__mark{ color:#F4EFE2; }
.footer-contacts{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.footer-contacts a{ display:inline-flex; align-items:center; gap:8px; color:#EDE7DA; font-size:15px; }
.footer-contacts a:hover{ color:#fff; }
.footer-contacts svg{ width:18px; height:18px; opacity:.85; }
.footer-nav{
  display:flex; gap:34px; flex-wrap:wrap; padding:22px 0 26px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-nav a{ font-size:16px; color:#EDE7DA; }
.footer-nav a:hover{ color:#fff; }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  flex-wrap:wrap; padding-top:22px; font-size:13px; color:#A79F8E;
}
.footer-disclaimer{ font-size:11px; line-height:1.6; color:#8C8474; padding-top:20px; }

/* --------------------------- Breadcrumbs -------------------------------- */
.breadcrumbs{ padding:22px 0 8px; font-size:14px; color:var(--muted); }
.breadcrumbs a{ color:var(--muted); }
.breadcrumbs a:hover{ color:var(--gold); }
.breadcrumbs .sep{ margin:0 8px; opacity:.6; }
.breadcrumbs .current{ color:var(--gold); }

.page-head{ padding:8px 0 28px; }
.page-head .page-title{ margin:0; }

/* ============================ COIN CARD ================================= */
.coin-card{ display:flex; flex-direction:column; gap:16px; }
.coin-card__media{
  position:relative; aspect-ratio:1/1; background:var(--cream);
  border-radius:var(--radius); overflow:hidden;
}
.coin-card__media img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; padding:8%; transition:transform .3s ease;
}
.coin-card:hover .coin-card__media img{ transform:scale(1.04); }
.coin-card__title{ font-size:18px; font-weight:600; line-height:1.4; color:var(--ink); }
.coin-card__title a:hover{ color:var(--gold); }
.coin-card__specs{ font-size:14px; color:var(--ink); }
.coin-card__specs p{ margin:0; line-height:1.5; }
.coin-card__specs span{ color:var(--muted); }

.price-rows{ display:flex; flex-direction:column; gap:8px; }
.price-row{ display:flex; align-items:center; gap:16px; }
.price-row__info{ flex:1 0 0; min-width:0; }
.price-row__label{
  font-size:12px; letter-spacing:1px; text-transform:uppercase;
  opacity:.8; color:var(--ink);
}
.price-row__value{ font-size:16px; font-weight:600; color:var(--ink); }
.price-row .btn{ width:111px; flex-shrink:0; }
.price-divider{ height:1px; background:var(--beige); }

/* =========================== HERO / HOME =============================== */
.hero{ padding:36px 0 8px; text-align:center; }
.hero__title{ margin-bottom:28px; }
.hero__title span{ display:block; }
.coins-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
  text-align:left;
}
.hero__cta{ margin-top:36px; }

/* Section heading with intro on the right (Почему выбирают нас) */
.section-head{
  display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:end;
  margin-bottom:28px;
}
.section-head .section-title{ margin:0; }
.section-head p{ color:var(--muted); font-size:16px; line-height:1.6; }

/* Feature cards */
.features-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
.feature-card{
  background:#fff; border-radius:var(--radius-lg); padding:24px 16px;
  box-shadow:var(--shadow-card); display:flex; flex-direction:column; gap:16px;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.feature-card__icon{ width:40px; height:40px; color:var(--gold); }
.feature-card__icon svg{ width:100%; height:100%; display:block; }
.feature-card__icon .badge{
  position:relative; width:40px; height:40px; display:grid; place-items:center;
}
.feature-card__icon .badge b{
  position:absolute; font-size:16px; font-weight:700; color:var(--gold);
}
.feature-card h3{ font-size:20px; font-weight:500; color:var(--ink); }
.feature-card p{ font-size:16px; line-height:1.4; color:var(--muted); }
.feature-card:hover{
  background-image:var(--grad-step);
  color:#fff; transform:translateY(-4px); box-shadow:0 14px 30px rgba(197,125,36,.28);
}
.feature-card:hover h3{ color:#fff; }
.feature-card:hover p{ color:rgba(255,255,255,.92); }
.feature-card:hover .feature-card__icon,
.feature-card:hover .feature-card__icon .badge b{ color:#FFF7DE; }

/* Steps (Как проходит сделка) */
.steps{ position:relative; margin-top:30px; }
.steps-track{
  position:relative; background-image:var(--grad-step);
  border-radius:0 40px 40px 0; padding:42px 40px 38px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
.step{ position:relative; color:#fff; }
.step-badge{
  position:absolute; top:-64px; left:0;
  width:35px; height:35px; border-radius:100px; background:var(--bronze);
  display:grid; place-items:center; color:#fff; box-shadow:0 4px 10px rgba(45,42,19,.18);
}
.step-badge svg{ width:22px; height:22px; }
.step__num{
  display:block; font-size:48px; font-weight:500; line-height:1; margin-bottom:8px;
  background:linear-gradient(180deg,#FFF6CE,rgba(255,246,206,.22));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.step__label{ display:block; font-size:20px; line-height:1.25; color:#fff; }

/* Invest block */
.invest{
  display:grid; grid-template-columns:1.35fr 1fr; gap:40px; align-items:center;
}
.invest__img{ border-radius:var(--radius-lg); overflow:hidden; }
.invest__img img{ width:100%; height:100%; object-fit:cover; }
.invest__body h2{ margin-bottom:18px; }
.invest__body h3{ font-size:24px; color:var(--gold); margin-bottom:16px; }
.invest__list{ display:flex; flex-direction:column; gap:14px; }
.invest__list li{ padding-left:0; }
.invest__list b{ display:block; font-size:16px; color:var(--ink); margin-bottom:2px; }
.invest__list span{ color:var(--muted); font-size:15px; line-height:1.5; }

/* Map + contact info */
.map-block{ display:grid; grid-template-columns:1.6fr 1fr; gap:24px; align-items:stretch; }
.map-block__map{ border-radius:var(--radius-lg); overflow:hidden; min-height:320px; background:var(--grey-100); }
.map-block__map img,.map-block__map iframe{ width:100%; height:100%; border:0; object-fit:cover; }
.info-card{ background:var(--cream); border-radius:var(--radius-lg); padding:24px; }
.info-card__grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px 24px; }
.info-card__grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.info-item .label{
  font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--muted);
  margin-bottom:6px;
}
.info-item .value{ font-size:16px; color:var(--ink); line-height:1.5; }
.info-item .value a{ color:var(--ink); }
.info-item .value a:hover{ color:var(--gold); }
.info-item .value.with-icon{ display:flex; align-items:center; gap:8px; }
.info-item .value svg{ width:18px; height:18px; color:var(--gold); flex-shrink:0; }

/* Contact cards row (Остались вопросы?) */
.contacts-cta__head{ margin-bottom:26px; }
.contacts-cta__head p{ color:var(--muted); font-size:16px; max-width:520px; margin-top:8px; }
.contact-cards{ display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
.contact-card{
  border:1px solid var(--beige); border-radius:16px; padding:16px;
  display:flex; flex-direction:column; gap:12px; background:#fff;
  transition:border-color .18s, box-shadow .18s;
}
.contact-card:hover{ border-color:var(--gold-light); box-shadow:var(--shadow-card); }
.contact-card__icon{
  width:34px; height:34px; border-radius:8px; background:var(--cream);
  display:grid; place-items:center; color:var(--gold);
}
.contact-card__icon svg{ width:18px; height:18px; }
.contact-card b{ font-size:15px; font-weight:500; color:var(--ink); word-break:break-word; }

/* ============================ CATALOG ================================== */
.catalog-head{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  margin-bottom:28px; flex-wrap:wrap;
}
.catalog-tools{ display:flex; align-items:center; gap:12px; }

/* Кастомный дропдаун сортировки (1:1 по макету) */
.sort{ position:relative; }
.sort__btn{
  display:inline-flex; align-items:center; justify-content:space-between; gap:12px;
  min-width:206px; height:43px; padding:0 14px; background:#fff;
  border:1px solid var(--beige); border-radius:10px; color:var(--gold);
  font-size:14px; cursor:pointer; transition:border-color .15s;
}
.sort__btn:hover{ border-color:var(--gold-light); }
.sort__chevron{ color:var(--gold); transition:transform .2s; flex-shrink:0; }
.sort.is-open .sort__chevron{ transform:rotate(180deg); }
.sort__menu{
  position:absolute; top:calc(100% + 6px); right:0; min-width:206px;
  background:#fff; border:1px solid var(--beige); border-radius:12px;
  box-shadow:var(--shadow-soft); padding:6px; z-index:20;
  opacity:0; visibility:hidden; transform:translateY(-6px); transition:.16s;
}
.sort.is-open .sort__menu{ opacity:1; visibility:visible; transform:none; }
.sort__menu a{
  display:block; padding:9px 12px; border-radius:8px; font-size:14px; color:var(--gold);
}
.sort__menu a:hover{ background:var(--cream); }
.sort__menu a.is-active{ background:var(--cream); color:var(--gold-dark); }

/* Переключатель вида (Component 17) — только на мобильных */
.view-toggle{
  display:none; width:43px; height:43px; flex-shrink:0; padding:0;
  background:#fff; border:1px solid var(--beige); border-radius:10px;
  align-items:center; justify-content:center; cursor:pointer; color:var(--gold);
}
.view-toggle:hover{ border-color:var(--gold-light); }
.view-toggle__icon{ gap:4px; }
.view-toggle__icon i{ width:7px; height:7px; border-radius:50%; background:currentColor; display:block; }
.view-toggle__icon--grid{ grid-template-columns:1fr 1fr; }
.view-toggle__icon--list{ flex-direction:column; }
/* иконка отражает ТЕКУЩИЙ вид: список -> 2 точки, сетка -> 4 точки. По умолчанию — список */
.view-toggle .view-toggle__icon--grid{ display:none; }
.view-toggle .view-toggle__icon--list{ display:flex; }
.view-toggle[data-view="grid"] .view-toggle__icon--grid{ display:grid; }
.view-toggle[data-view="grid"] .view-toggle__icon--list{ display:none; }
.view-toggle[data-view="list"] .view-toggle__icon--grid{ display:none; }
.view-toggle[data-view="list"] .view-toggle__icon--list{ display:flex; }

.catalog-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:28px 24px;
}
.catalog-empty{ padding:40px 0; color:var(--muted); font-size:18px; }

/* SEO text block */
.seo-text{ margin-top:48px; font-size:14px; color:var(--ink); line-height:1.7; }
.seo-text h2,.seo-text h3{ font-size:15px; font-weight:700; margin:14px 0 6px; color:var(--ink); text-transform:none; letter-spacing:0; }
.seo-text p{ margin:0 0 10px; }
.seo-text__collapse{ max-height:120px; overflow:hidden; position:relative; transition:max-height .4s ease; }
.seo-text__collapse.is-open{ max-height:4000px; }
.seo-text__collapse:not(.is-open)::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:70px;
  background:linear-gradient(to bottom, rgba(255,254,243,0), var(--bg));
}
.seo-more{ margin-top:12px; }

/* Pagination */
.pagination{ display:flex; gap:8px; justify-content:center; margin-top:40px; flex-wrap:wrap; }
.pagination .page-numbers{
  min-width:42px; height:42px; padding:0 12px; display:inline-flex; align-items:center;
  justify-content:center; border:1px solid var(--beige); border-radius:10px; color:var(--ink);
}
.pagination .page-numbers.current{ background-image:var(--grad-btn); color:#fff; border-color:transparent; }
.pagination .page-numbers:hover{ border-color:var(--gold-light); }

/* ========================= SINGLE PRODUCT ============================== */
.product{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.product__gallery{ display:flex; flex-direction:column; gap:16px; }
.gallery-main{
  aspect-ratio:1/1; background:var(--cream); border-radius:var(--radius);
  overflow:hidden; position:relative;
}
.gallery-main img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:8%; }
.gallery-thumbs{ display:flex; gap:16px; }
.gallery-thumb{
  width:96px; height:96px; background:var(--cream); border-radius:14px; overflow:hidden;
  border:2px solid transparent; cursor:pointer; flex-shrink:0;
}
.gallery-thumb.is-active{ border-color:var(--gold-light); }
.gallery-thumb img{ width:100%; height:100%; object-fit:contain; padding:8%; }
.product__gallery.two-up{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.product__gallery.two-up .gallery-main{ aspect-ratio:1/1; }

.buy-box{ display:flex; flex-direction:column; gap:16px; }
.price-panel{
  background:#fff; border:1px solid var(--beige); border-radius:16px; padding:20px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
}
.price-panel__title{ font-size:14px; letter-spacing:.5px; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.price-panel__cols{ display:flex; gap:28px; }
.price-panel__col .cap{ font-size:12px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:4px; }
.price-panel__col .val{ font-size:22px; font-weight:600; color:var(--ink); }
.price-panel .btn{ min-width:150px; }

/* Tabs */
.tabs{ margin-top:40px; }
.tabs__nav{ display:flex; gap:28px; border-bottom:1px solid var(--beige); }
.tabs__btn{
  background:none; border:0; padding:0 0 12px; font-size:16px; color:var(--muted);
  border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tabs__btn.is-active{ color:var(--gold); border-color:var(--gold); }
.tabs__panel{ display:none; padding-top:20px; }
.tabs__panel.is-active{ display:block; }
.spec-list{ display:grid; grid-template-columns:1fr; gap:8px; max-width:560px; }
.spec-list .row{ display:flex; gap:8px; font-size:15px; }
.spec-list .row .k{ color:var(--muted); }
.spec-list .row .v{ color:var(--ink); }

.related h2{ margin-bottom:26px; }

/* ============================== BLOG =================================== */
.post-list{ display:flex; flex-direction:column; }
.post-row{
  display:grid; grid-template-columns:200px 1fr; gap:32px; align-items:center;
  padding:24px 0; border-bottom:1px solid var(--beige);
}
.post-row:first-child{ border-top:1px solid var(--beige); }
.post-row__thumb{
  width:200px; height:130px; border-radius:14px; overflow:hidden; background:var(--grey-100);
}
.post-row__thumb img{ width:100%; height:100%; object-fit:cover; }
.post-row__thumb.is-empty{ display:grid; place-items:center; color:var(--grey-300); }
.post-row__thumb.is-empty svg{ width:48px; height:48px; }
.post-row__title{ font-size:20px; font-weight:600; color:var(--ink); line-height:1.35; }
.post-row__title a:hover{ color:var(--gold); }
.post-row__date{ margin-top:18px; font-size:14px; color:var(--muted); }

/* Single article */
.article{ max-width:820px; }
.article__meta{ font-size:14px; color:var(--muted); margin:6px 0 24px; }
.article__cover{ border-radius:var(--radius-lg); overflow:hidden; margin-bottom:28px; background:var(--grey-100); aspect-ratio:16/9; }
.article__cover img{ width:100%; height:100%; object-fit:cover; }
.article__body{ font-size:16px; line-height:1.7; color:var(--ink); }
.article__body p{ margin:0 0 18px; }
.article__body h2{ font-size:22px; text-transform:none; color:var(--ink); letter-spacing:0; margin:28px 0 12px; }
.article__body h3{ font-size:19px; margin:22px 0 10px; }
.article__body blockquote{
  margin:22px 0; padding:18px 22px; background:var(--cream);
  border-left:3px solid var(--gold-light); border-radius:0 12px 12px 0;
  font-style:italic; color:var(--ink-2);
}
.article__body img{ border-radius:14px; margin:18px 0; }
.article__body a{ color:var(--gold); text-decoration:underline; }
.article__body ul{ list-style:disc; padding-left:22px; margin:0 0 18px; }
.article__body ol{ list-style:decimal; padding-left:22px; margin:0 0 18px; }
.article__body li{ margin-bottom:6px; }

/* ========================= CONTENT PAGES =============================== */
.content-page{ max-width:900px; }
.content-page .rich h2{ font-size:26px; margin:26px 0 12px; }
.content-page .rich h3{ font-size:18px; font-weight:700; text-transform:none; color:var(--ink); letter-spacing:0; margin:22px 0 8px; }
.content-page .rich p{ margin:0 0 16px; font-size:16px; line-height:1.7; color:var(--ink); }
.content-page .rich strong{ color:var(--ink); }
.content-page .rich ul{ list-style:disc; padding-left:22px; margin:0 0 16px; }
.content-page .rich li{ margin-bottom:6px; line-height:1.6; }

/* FAQ accordion */
.faq{ display:flex; flex-direction:column; gap:16px; max-width:760px; }
.faq__item{ background:#fff; border-radius:16px; box-shadow:var(--shadow-card); overflow:hidden; }
.faq__q{
  width:100%; text-align:left; background:none; border:0;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 24px; font-size:16px; font-weight:500; color:var(--ink);
}
.faq__toggle{
  flex-shrink:0; width:28px; height:28px; border-radius:50%;
  border:1px solid var(--beige); display:grid; place-items:center; position:relative; color:var(--muted);
}
.faq__toggle::before,.faq__toggle::after{
  content:""; position:absolute; background:currentColor; border-radius:2px;
}
.faq__toggle::before{ width:12px; height:1.6px; }
.faq__toggle::after{ width:1.6px; height:12px; transition:transform .2s; }
.faq__item.is-open .faq__toggle::after{ transform:scaleY(0); }
.faq__a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq__a-inner{ padding:0 24px 20px; font-size:15px; line-height:1.6; color:var(--muted); }

/* =============================== CART ================================== */
.cart{ display:grid; grid-template-columns:1.6fr 1fr; gap:32px; align-items:start; }
.cart-items{ display:flex; flex-direction:column; gap:8px; }
.cart-item{
  display:grid; grid-template-columns:72px 1fr auto; gap:20px; align-items:center;
  padding:18px 0; border-bottom:1px solid var(--beige);
}
.cart-item__img{ width:72px; height:72px; border-radius:12px; overflow:hidden; background:var(--cream); }
.cart-item__img img{ width:100%; height:100%; object-fit:contain; padding:8%; }
.cart-item__title{ font-size:16px; font-weight:600; color:var(--ink); }
.cart-item__price{ font-size:13px; color:var(--muted); margin-top:4px; }
.cart-item__right{ display:flex; align-items:center; gap:22px; }
.qty{ display:inline-flex; align-items:center; gap:14px; }
.qty button{
  width:30px; height:30px; border-radius:8px; border:1px solid var(--beige);
  background:#fff; font-size:18px; line-height:1; color:var(--ink); display:grid; place-items:center;
}
.qty button:hover{ border-color:var(--gold-light); color:var(--gold); }
.qty span{ min-width:20px; text-align:center; font-size:16px; }
.cart-item__total{ font-size:18px; font-weight:600; color:var(--ink); min-width:110px; text-align:right; }
.cart-item__remove{ background:none; border:0; color:var(--grey-300); padding:6px; }
.cart-item__remove:hover{ color:var(--bronze); }
.cart-item__remove svg{ width:20px; height:20px; }
.cart-total{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 0 0; font-size:16px;
}
.cart-total b{ font-size:20px; }

.booking{
  background:var(--cream); border-radius:20px; padding:26px 24px; position:sticky; top:90px;
}
.booking h2{ font-size:22px; text-align:center; color:var(--ink); text-transform:none; letter-spacing:0; line-height:1.3; }
.booking__note{ font-size:12px; color:var(--muted); text-align:center; margin:12px 0 18px; line-height:1.5; }
.booking__count{ display:flex; align-items:center; justify-content:space-between; font-size:14px; color:var(--muted); padding:12px 0; border-top:1px solid rgba(0,0,0,.06); border-bottom:1px solid rgba(0,0,0,.06); }
.booking__count b{ color:var(--ink); font-size:16px; }
.booking form{ display:flex; flex-direction:column; gap:12px; margin-top:16px; }
.booking__terms{ font-size:11px; color:var(--muted); text-align:center; margin-top:12px; line-height:1.5; }
.booking__terms a{ color:var(--gold); }
.cart-empty{ padding:30px 0; font-size:18px; color:var(--muted); }

/* -------------------------------- Forms --------------------------------- */
.field{ display:flex; flex-direction:column; gap:6px; }
.input{
  width:100%; height:46px; padding:0 14px; border:1px solid var(--beige);
  border-radius:10px; background:#fff; color:var(--ink);
}
textarea.input{ height:auto; padding:12px 14px; min-height:96px; resize:vertical; }
.input::placeholder{ color:#B9B097; }
.input:focus{ border-color:var(--gold-light); outline:none; }
.input.is-error{ border-color:#D9534F; }
.field__error{ color:#D9534F; font-size:12px; display:none; }
.field.is-error .field__error{ display:block; }

/* -------------------------------- Modal --------------------------------- */
.modal{
  position:fixed; inset:0; z-index:80; display:none;
  align-items:center; justify-content:center; padding:20px;
  background:rgba(30,26,18,.55); backdrop-filter:blur(2px);
}
.modal.is-open{ display:flex; }
.modal__box{
  background:#fff; border-radius:18px; padding:32px 28px; max-width:420px; width:100%;
  text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.35);
  animation:pop .28s ease;
}
@keyframes pop{ from{ transform:translateY(12px) scale(.96); opacity:0; } to{ transform:none; opacity:1; } }
.modal__box h3{ font-size:22px; color:var(--ink); margin-bottom:12px; }
.modal__box p{ color:var(--muted); font-size:14px; line-height:1.5; }
.modal__box .btn{ margin-top:22px; }

/* Toast */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:12px; font-size:14px;
  opacity:0; pointer-events:none; transition:.25s; z-index:90;
}
.toast.is-show{ opacity:1; transform:translateX(-50%); }

/* ------------------------------ Utilities ------------------------------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.hidden{ display:none !important; }

/* ============================ RESPONSIVE ============================== */
@media (max-width:1100px){
  .contact-cards{ grid-template-columns:repeat(3,1fr); }
  .catalog-grid,.coins-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:900px){
  :root{ --container:1240px; }
  .container{ padding:0 20px; }
  .main-nav,.header-actions .cart-link{ display:none; }
  .burger{ display:inline-flex; }
  .mobile-only{ display:inline-flex; }
  .header-actions{ gap:14px; }
  .header-phone{
    display:inline-flex; background:var(--grad-btn); color:#fff; font-size:13px;
    font-weight:500; padding:8px 12px; border-radius:8px;
  }
  .section-head{ grid-template-columns:1fr; gap:14px; }
  .features-grid,.steps-track{ }
  .invest{ grid-template-columns:1fr; }
  .map-block{ grid-template-columns:1fr; }
  .product{ grid-template-columns:1fr; }
  .cart{ grid-template-columns:1fr; }
  .booking{ position:static; }
  .h1,.page-title{ font-size:30px; }
  .h2,.section-title{ font-size:26px; }
}
@media (max-width:820px){
  .features-grid{ grid-template-columns:1fr 1fr; }
  .catalog-grid,.coins-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-cards{ grid-template-columns:repeat(2,1fr); }
  .info-card__grid,.info-card__grid.cols-3{ grid-template-columns:1fr; }
  .steps-track{ grid-template-columns:1fr; gap:30px; padding:30px 24px; border-radius:0 24px 24px 0; }
  .step-badge{ position:static; margin-bottom:12px; }
  .step__num{ font-size:40px; }
  .price-panel{ flex-direction:column; align-items:stretch; }
  .price-panel .btn{ width:100%; }
}
@media (max-width:560px){
  .container{ padding:0 16px; }
  .coins-grid,.features-grid{ grid-template-columns:1fr; }
  .post-row{ grid-template-columns:1fr; gap:14px; }
  .post-row__thumb{ width:100%; height:180px; }
  .contact-cards{ grid-template-columns:1fr; }
  .footer-top,.footer-bottom{ flex-direction:column; align-items:flex-start; }
  .section{ padding:36px 0; }

  /* Каталог: переключатель вида 1/2 в ряд */
  .view-toggle{ display:inline-flex; }
  .sort__btn{ min-width:0; width:100%; }
  .sort{ flex:1; }
  .catalog-tools{ width:100%; }
  .catalog-grid{ grid-template-columns:1fr; gap:22px; }            /* по умолчанию — 1 в ряд */
  .catalog-grid.view-grid{ grid-template-columns:1fr 1fr; gap:16px; }
  /* в режиме «2 в ряд» кнопки уходят под цену на всю ширину */
  .catalog-grid.view-grid .price-row{ flex-direction:column; align-items:stretch; gap:8px; }
  .catalog-grid.view-grid .price-row .btn{ width:100%; }
  .catalog-grid.view-grid .coin-card__title{ font-size:16px; }
}
