/* МегаДрайв — партнёрский сайт союз.online | Deep Orange Theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── СВЕТЛАЯ ТЕМА (deep orange) ── */
:root {
  --bg-deep:    #fff9f5;
  --bg-page:    #fff5ef;
  --bg-card:    #ffffff;
  --bg-card2:   #fff0e6;
  --border:     #f0c8a0;
  --border2:    #c45006;
  --accent:     #c45006;
  --accent2:    #e8720a;
  --orange:     #c45006;
  --orange2:    #e88c40;
  --blue:       #0369a1;
  --blue2:      #0284c7;
  --text:       #1a0c03;
  --text-muted: #5a3010;
  --text-dim:   #966040;
  --shadow:     0 2px 12px rgba(196,80,6,.09);
  --shadow-md:  0 4px 24px rgba(196,80,6,.15);
  --radius:     13px;
  --radius-sm:  8px;
}

/* ── ТЁМНАЯ ТЕМА ── */
[data-theme="dark"] {
  --bg-deep:    #0e0803;
  --bg-page:    #0e0803;
  --bg-card:    #1c0f05;
  --bg-card2:   #281608;
  --border:     #3a1e08;
  --border2:    #8a4010;
  --accent:     #f07030;
  --accent2:    #f89050;
  --orange:     #f07030;
  --orange2:    #f8b080;
  --blue:       #38bdf8;
  --blue2:      #7dd3fc;
  --text:       #f5e0d0;
  --text-muted: #c89070;
  --text-dim:   #886050;
  --shadow:     0 2px 12px rgba(0,0,0,.45);
  --shadow-md:  0 4px 28px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s, color .25s;
}
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── NAV ── */
.topnav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.5rem;
  background: rgba(255,249,245,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: background .25s, border-color .25s;
}
[data-theme="dark"] .topnav { background: rgba(14,8,3,.94); }
.topnav__brand {
  display: flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: .95rem; color: var(--text);
}
.topnav__brand:hover { text-decoration: none; opacity: .85; }
.topnav__logo { font-size: 1.2rem; }
.topnav__links { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.topnav__link {
  font-size: .82rem; color: var(--text-muted); padding: .3rem .65rem;
  border-radius: 6px; transition: background .15s, color .15s;
}
.topnav__link:hover { background: var(--bg-card2); color: var(--accent); text-decoration: none; }
.topnav__link--accent { color: var(--accent); font-weight: 600; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border2); background: var(--bg-card);
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; margin-left: .25rem; flex-shrink: 0;
}
.theme-btn:hover { background: var(--bg-card2); transform: rotate(20deg); }

/* ── HERO ── */
.hero {
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(196,80,6,.13) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 110%, rgba(232,114,10,.08) 0%, transparent 55%),
    var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(240,112,48,.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(248,144,80,.07) 0%, transparent 60%),
    var(--bg-deep);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem 1.1rem; border-radius: 999px;
  background: rgba(196,80,6,.1); border: 1px solid rgba(196,80,6,.28);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 1.75rem;
}
[data-theme="dark"] .hero__badge { background: rgba(240,112,48,.12); border-color: rgba(240,112,48,.3); }
.hero__title {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  font-weight: 900; line-height: .96; letter-spacing: -.03em; margin-bottom: 1rem;
}
.hero__accent { color: var(--accent); }
.hero__sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 680px; margin: 0 auto 2rem; line-height: 1.55;
}
.hero__actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__geo { display: flex; justify-content: center; gap: .45rem; flex-wrap: wrap; }
.geo-tag {
  padding: .25rem .8rem; border-radius: 999px;
  background: rgba(196,80,6,.07); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted);
}
[data-theme="dark"] .geo-tag { background: rgba(240,112,48,.1); }

/* ── VERIFIED BAND ── */
.verified-band {
  background: var(--bg-card); border-bottom: 1px solid var(--border); padding: .9rem 1.5rem;
}
.verified-band__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: center;
}
.verified-item {
  display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--text-muted);
}
.verified-item__label { font-weight: 600; color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.6rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600;
  transition: all .18s; text-decoration: none; border: none; cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #7a3000);
  color: #fff; box-shadow: 0 3px 12px rgba(196,80,6,.38);
}
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; box-shadow: 0 5px 18px rgba(196,80,6,.5); }
.btn--ghost {
  border: 1.5px solid var(--border2); color: var(--text); background: var(--bg-card);
}
.btn--ghost:hover { background: var(--bg-card2); text-decoration: none; }
.btn--outline {
  border: 1.5px solid var(--accent); color: var(--accent);
  background: rgba(196,80,6,.07);
}
.btn--outline:hover { background: rgba(196,80,6,.14); text-decoration: none; }

/* ── STATS BAND ── */
.stats-band {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, #6a2800 100%);
  color: #fff;
}
[data-theme="dark"] .stats-band { background: linear-gradient(135deg, #c44800 0%, #4a1800 100%); }
.stats-band__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; text-align: center;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}
.stat-big { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.stat-big__num { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.stat-big__lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }

/* ── SECTION LAYOUT ── */
.section-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section-head { text-align: center; margin-bottom: 2.75rem; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
  margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); font-size: .95rem; max-width: 620px; margin: 0 auto; }

/* ── CATALOG ── */
.catalog { padding: 5rem 0; }
.catalog__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem;
}
.prod-card {
  position: relative;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.prod-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.prod-card--featured { border-color: rgba(196,80,6,.38); background: var(--bg-card2); }
.prod-card--featured:hover { border-color: var(--accent); }
.prod-card__icon { font-size: 2rem; }
.prod-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: .2rem .65rem; border-radius: 999px;
  background: rgba(196,80,6,.1); border: 1px solid rgba(196,80,6,.28);
  color: var(--accent); font-size: .72rem; font-weight: 700;
}
.prod-card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.prod-card__desc { font-size: .87rem; color: var(--text-muted); flex: 1; line-height: 1.55; }
.prod-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.prod-card__price { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.prod-card__geo { font-size: .78rem; color: var(--text-dim); }
.prod-card__btn {
  display: inline-block; padding: .5rem 1rem; border-radius: var(--radius-sm);
  background: rgba(196,80,6,.09); border: 1px solid rgba(196,80,6,.28);
  color: var(--accent); font-size: .84rem; font-weight: 600;
  text-decoration: none; text-align: center; transition: background .15s;
}
.prod-card__btn:hover { background: rgba(196,80,6,.18); text-decoration: none; }

/* ── CHANNELS ── */
.channels { padding: 5rem 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.channels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.channel-card {
  background: var(--bg-page); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: .65rem;
  text-decoration: none; color: var(--text);
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.channel-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.channel-card--main { border-color: rgba(196,80,6,.4); background: var(--bg-card2); }
.channel-card--main:hover { border-color: var(--accent); }
.channel-card__icon { font-size: 2.2rem; }
.channel-card__name { font-size: .9rem; font-weight: 700; color: var(--accent); }
.channel-card__desc { font-size: .86rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.channel-card__count { font-size: .78rem; color: var(--text-dim); font-weight: 600; }
.channel-card__btn {
  display: inline-block; padding: .45rem .9rem; border-radius: var(--radius-sm);
  background: rgba(196,80,6,.09); border: 1px solid rgba(196,80,6,.28);
  color: var(--accent); font-size: .82rem; font-weight: 600; align-self: flex-start;
  transition: background .15s;
}
.channel-card:hover .channel-card__btn { background: rgba(196,80,6,.18); }

/* ── HIGHLIGHTS ── */
.highlights { padding: 4.5rem 0; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.hl-item {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .15s, transform .15s;
}
.hl-item:hover { border-color: var(--border2); transform: translateY(-1px); }
.hl-item__icon { font-size: 2rem; }
.hl-item__title { font-weight: 700; font-size: .97rem; color: var(--accent); }
.hl-item__desc { font-size: .86rem; color: var(--text-muted); line-height: 1.5; }

/* ── REVIEWS ── */
.reviews { padding: 5rem 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.review-card {
  background: var(--bg-page); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.review-card__stars { color: #f59e0b; font-size: 1.05rem; letter-spacing: .1em; }
.review-card__platform {
  font-size: .72rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600;
}
.review-card__text {
  font-size: .9rem; color: var(--text-muted); line-height: 1.65; font-style: italic; flex: 1;
}
.review-card__text::before { content: '«'; color: var(--accent); font-style: normal; font-weight: 700; }
.review-card__text::after { content: '»'; color: var(--accent); font-style: normal; font-weight: 700; }
.review-card__author { font-size: .82rem; font-weight: 600; color: var(--text); }
.review-card__date { font-size: .76rem; color: var(--text-dim); }

/* ── ABOUT ── */
.about {
  padding: 4.5rem 0; background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.about__inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; max-width: 1040px; margin: 0 auto; align-items: start; }
@media (max-width: 700px) { .about__inner { grid-template-columns: 1fr; } }
.about__text p { color: var(--text-muted); margin-bottom: .85rem; line-height: 1.65; }
.about__text strong { color: var(--text); }
.about__list { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }
.about__list li { font-size: .9rem; color: var(--text-muted); padding-left: 1.4rem; position: relative; }
.about__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.company-card {
  width: 260px; background: var(--bg-deep);
  border: 1px solid rgba(196,80,6,.3); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
@media (max-width: 700px) { .company-card { width: 100%; } }
.company-card__icon { font-size: 2rem; }
.company-card__name { font-weight: 700; font-size: .95rem; color: var(--accent); }
.company-card__status {
  display: inline-block; padding: .15rem .5rem; border-radius: 4px;
  background: rgba(196,80,6,.1); color: var(--accent); font-size: .72rem; font-weight: 700;
}
.company-row { display: flex; gap: .75rem; align-items: baseline; }
.company-row__key { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; width: 70px; flex-shrink: 0; }
.company-row__val { font-size: .86rem; color: var(--text-muted); }
.union-badge {
  width: 260px; background: var(--bg-card2);
  border: 1px solid rgba(196,80,6,.25); border-radius: var(--radius-sm);
  padding: 1.25rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  margin-top: .75rem;
}
@media (max-width: 700px) { .union-badge { width: 100%; } }
.union-badge__icon { font-size: 2rem; }
.union-badge__title { font-weight: 700; font-size: .93rem; color: var(--accent); }
.union-badge__sub { font-size: .82rem; color: var(--text-muted); }
.union-badge__link { font-size: .82rem; color: var(--blue2); display: block; }

/* ── CONTACTS ── */
.contacts { padding: 5rem 0; }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.contact-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
  transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.contact-card__icon { font-size: 1.9rem; margin-bottom: .6rem; }
.contact-card__label { font-size: .76rem; color: var(--text-dim); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-card__val { font-size: .92rem; color: var(--text-muted); line-height: 1.5; }
.contact-card__val a { color: var(--blue2); }
.contacts-cta {
  text-align: center; padding: 2.5rem 2rem;
  background: var(--bg-card2); border-radius: var(--radius);
  border: 1.5px solid var(--border);
}
.contacts-cta p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .97rem; }
.contacts-cta .btn-group { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 2.5rem 1.5rem 2rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: start;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-brand__name { font-size: 1rem; font-weight: 700; }
.footer-brand__sub { font-size: .8rem; color: var(--text-muted); }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.footer-nav a { font-size: .85rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-legal { text-align: right; }
.footer-legal__copy { font-size: .76rem; color: var(--text-dim); line-height: 1.6; }
.footer-legal a { color: var(--blue2); }
@media (max-width: 700px) { .footer-legal { text-align: left; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero__title { font-size: clamp(2rem, 13vw, 3.5rem); }
  .catalog__grid, .channels-grid, .reviews-grid, .highlights-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; }
}
