/* ===========================
   CROWNGOLD — brand.css
   =========================== */

:root{
  /* Base (warm dark) */
  --cg-bg: #070604;
  --cg-bg2:#0D0A07;
  --cg-surface:#12100D;
  --cg-surface2:#17130F;
  --cg-border: rgba(255, 215, 160, .10);

  --cg-text:#F6F1E6;
  --cg-muted:#B8AD9C;
  --cg-dim: rgba(246,241,230,.78);

  /* Accents */
  --cg-gold:#D9B46B;
  --cg-gold2:#F2D39A;
  --cg-purple:#A64BFF;
  --cg-purple2:#7B2CFF;
  --cg-amber:#FFB35A;

  /* Effects */
  --cg-radius: 18px;
  --cg-radius-sm: 12px;
  --cg-shadow: 0 18px 50px rgba(0,0,0,.55);
  --cg-glow-gold: 0 0 0 1px rgba(217,180,107,.18), 0 18px 70px rgba(217,180,107,.10);
  --cg-glow-purple: 0 0 0 1px rgba(166,75,255,.22), 0 18px 70px rgba(166,75,255,.14);

  /* Typography */
  --cg-font-body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --cg-font-head: ui-serif, Georgia, "Times New Roman", Times, serif;

  --cg-container: 1160px;
}

/* ===== Base ===== */
html, body { height: 100%; }
body{
  font-family: var(--cg-font-body);
  background:
    radial-gradient(1000px 520px at 18% -10%, rgba(217,180,107,.14), transparent 62%),
    radial-gradient(900px 520px at 90% 10%, rgba(166,75,255,.10), transparent 60%),
    linear-gradient(180deg, var(--cg-bg) 0%, var(--cg-bg2) 100%);
  color: var(--cg-text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--cg-gold2); }

.container{
  width: min(var(--cg-container), calc(100% - 40px));
  margin-inline: auto;
}

.hidden{ display:none !important; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: .2px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  user-select:none;
  will-change: transform;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btn--primary{
  background: linear-gradient(90deg, var(--cg-purple) 0%, var(--cg-purple2) 100%);
  color:#fff;
  box-shadow: var(--cg-glow-purple);
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(166,75,255,.28), 0 22px 80px rgba(166,75,255,.18);
}

.btn--ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,215,160,.12);
  color: var(--cg-text);
}
.btn--ghost:hover{
  border-color: rgba(217,180,107,.30);
  box-shadow: var(--cg-glow-gold);
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,6,4,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,215,160,.10);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:16px;
  height: 64px;
}

/* WP Custom Logo */
.site-branding{ display:flex; align-items:center; }
.custom-logo-link{ display:flex; align-items:center; text-decoration:none; }
.custom-logo{
  display:block;
  width:auto;
  max-height: 32px;
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.35));
}

/* Text logo fallback */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  letter-spacing: .5px;
}
.logo__mark{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: conic-gradient(from 220deg, var(--cg-gold2), var(--cg-gold), rgba(166,75,255,.85), var(--cg-gold2));
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.logo__text{ text-transform: lowercase; font-weight: 800; }

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  color: var(--cg-dim);
  font-weight: 650;
  font-size: 14px;
}

.nav__list{
  display:flex;
  align-items:center;
  gap: 8px;
  list-style:none;
  padding:0;
  margin:0;
}
.nav__list > li > a{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav__list > li > a:hover{
  background: rgba(255,255,255,.04);
  color: var(--cg-text);
}

.header__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.flag{
  width: 22px;
  height: 16px;
  border-radius: 4px;
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10);
}

.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,215,160,.12);
  background: rgba(255,255,255,.03);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.icon-btn:hover{
  border-color: rgba(217,180,107,.30);
  box-shadow: var(--cg-glow-gold);
}
.icon-btn:active{ transform: translateY(1px); }

/* ===== Hero ===== */
.hero{ padding: 22px 0 18px; }

.hero__inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;

  border-radius: 22px;
  border: 1px solid rgba(255,215,160,.10);
  background:
    radial-gradient(820px 360px at 18% 20%, rgba(217,180,107,.18), transparent 60%),
    radial-gradient(720px 420px at 60% 10%, rgba(166,75,255,.16), transparent 65%),
    linear-gradient(135deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.02) 55%, rgba(255,255,255,.03) 100%);
  box-shadow: var(--cg-shadow);
  overflow: hidden;
  position: relative;
}

/* subtle pattern overlay */
.hero__inner:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(700px 220px at 100% 10%, rgba(217,180,107,.10), transparent 70%);
  pointer-events:none;
}

.hero__content{
  padding: 28px 26px;
  position: relative;
}
.hero__kicker{
  display:inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(217,180,107,.92);
  margin-bottom: 10px;
}
.hero__title{
  font-family: var(--cg-font-head);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.hero__subtitle{
  color: rgba(246,241,230,.78);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 56ch;
}
.hero__actions{ display:flex; gap:12px; flex-wrap: wrap; }

.hero__media{
  position: relative;
  min-height: 240px;
  padding: 18px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
}
.hero__media img{
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.60));
  transform: translateY(8px);
}

/* ===== Slots ===== */
.slots{ padding: 18px 0 26px; }
.section-title{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(246,241,230,.90);
}

.slots__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.slot-card{
  border-radius: var(--cg-radius);
  border: 1px solid rgba(255,215,160,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.012) 100%);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  overflow:hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
.slot-card:hover{
  transform: translateY(-3px);
  border-color: rgba(166,75,255,.22);
  box-shadow: 0 0 0 1px rgba(166,75,255,.12), 0 18px 70px rgba(0,0,0,.60);
}
.slot-card__img{
  height: 170px;
  background:
    radial-gradient(120px 80px at 30% 30%, rgba(217,180,107,.18), transparent 65%),
    radial-gradient(200px 120px at 70% 20%, rgba(166,75,255,.18), transparent 68%),
    linear-gradient(135deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 60%),
    #120F0B;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.slot-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .94;
  transform: scale(1.02);
  transition: transform .25s ease, opacity .25s ease;
}
.slot-card:hover .slot-card__img img{
  transform: scale(1.06);
  opacity: 1;
}

.slot-card__body{
  padding: 14px 14px 16px;
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 10px;
}
.slot-card__title{
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ===== SEO Content ===== */
.seo-content{ padding: 18px 0 32px; }
.seo-content .content-box{
  border-radius: 18px;
  border: 1px solid rgba(255,215,160,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  box-shadow: var(--cg-shadow);
  padding: 18px 18px;
}
.seo-content h2{ font-family: var(--cg-font-head); font-size: 22px; margin: 6px 0 10px; }
.seo-content h3{ font-family: var(--cg-font-head); font-size: 18px; margin: 18px 0 8px; }
.seo-content p{ margin: 0 0 12px; color: rgba(246,241,230,.86); line-height: 1.7; }
.seo-content a{ color: var(--cg-gold2); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid rgba(255,215,160,.10);
  background: rgba(7,6,4,.75);
  padding: 26px 0 34px;
}
.footer__cols{
  display:grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 16px;
}
.footer__title{
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 12px;
  margin: 0 0 10px;
  color: rgba(246,241,230,.88);
  text-transform: uppercase;
}
.footer__link{
  display:block;
  padding: 6px 0;
  color: rgba(246,241,230,.70);
  font-size: 14px;
}
.footer__link:hover{ color: var(--cg-gold2); }
.footer__note{
  margin-top: 16px;
  color: rgba(246,241,230,.55);
  font-size: 12px;
  line-height: 1.6;
}

/* ===== Search form (из прошлого бренда, оставляем) ===== */
.search-form{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search-form__label{ flex: 1 1 320px; }
.search-form__input{
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,215,160,.12);
  background: rgba(255,255,255,.03);
  color: var(--cg-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-form__input::placeholder{ color: rgba(246,241,230,.55); }
.search-form__input:focus{
  border-color: rgba(166,75,255,.35);
  box-shadow: 0 0 0 4px rgba(166,75,255,.10);
  background: rgba(255,255,255,.04);
}

/* ===== Mobile offcanvas (оставляем поведение) ===== */
.burger{ display:none; }

.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 40;
}

@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__media{ justify-content:center; min-height: 180px; }
  .slots__grid{ grid-template-columns: repeat(2, 1fr); }
  .footer__cols{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .burger{ display:inline-flex; }
  .nav{ display:block; }

  body.nav-open{ overflow:hidden; }

  .nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 86vw);
    padding: 76px 14px 14px;
    background: rgba(7,6,4,.92);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255,215,160,.12);
    transform: translateX(105%);
    transition: transform .22s ease;
    z-index: 45;
  }

  body.nav-open .nav{ transform: translateX(0); }

  .nav__list{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav__list > li > a{
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,215,160,.10);
  }

  body.nav-open .nav-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  .hero__content{ padding: 22px 18px; }
  .seo-content .content-box{ padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ===== Crowngold: Stats bar ===== */
.stats{
  padding: 0 0 18px;
  margin-top: -6px;
}
.stats__bar{
  border-radius: 16px;
  border: 1px solid rgba(255,215,160,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  padding: 12px 14px;
}
.stats__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat{
  display:flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,215,160,.08);
}
.stat__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,215,160,.10);
}
.stat__value{
  font-weight: 900;
  letter-spacing: .01em;
}
.stat__label{
  font-size: 12px;
  color: rgba(246,241,230,.65);
  margin-top: 2px;
}

/* ===== Small button ===== */
.btn--sm{
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

/* ===== Badges on slot cards ===== */
.slot-card__img{ position: relative; }
.badge{
  position:absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.badge--hot{
  background: rgba(255, 72, 72, .85);
  color: #fff;
}

/* Responsive */
@media (max-width: 980px){
  .stats__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .stats__grid{ grid-template-columns: 1fr; }
}

/* ===== Crowngold footer refinements ===== */
.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,215,160,.10);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__copy{
  color: rgba(246,241,230,.70);
  font-size: 13px;
}
.footer__tiny{
  color: rgba(246,241,230,.55);
  font-size: 12px;
}

/* ===== Crowngold: second row chips ===== */
.subnav{
  border-top: 1px solid rgba(255,215,160,.08);
  padding: 10px 0 12px;
}

.subnav__scroll{
  display:flex;
  align-items:center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px; /* чуть места под скролл */
  scrollbar-width: thin;
  scrollbar-color: rgba(217,180,107,.35) transparent;
}
.subnav__scroll::-webkit-scrollbar{ height: 6px; }
.subnav__scroll::-webkit-scrollbar-thumb{
  background: rgba(217,180,107,.25);
  border-radius: 999px;
}
.subnav__scroll::-webkit-scrollbar-track{ background: transparent; }

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,160,.12);
  background: rgba(255,255,255,.03);
  color: rgba(246,241,230,.82);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip:hover{
  border-color: rgba(217,180,107,.30);
  color: rgba(246,241,230,.95);
  box-shadow: var(--cg-glow-gold);
}
.chip--active{
  border-color: rgba(217,180,107,.35);
  background: linear-gradient(180deg, rgba(217,180,107,.22), rgba(255,255,255,.03));
  color: rgba(246,241,230,.98);
}

/* On small screens reduce header height a bit */
@media (max-width: 560px){
  .site-header{ background: rgba(7,6,4,.86); }
  .header__inner{ height: 60px; }
  .subnav{ padding: 8px 0 10px; }
}