/* Стройка — Стройматериалы Москва — партнёрский сайт союз.online */
/* Тёплая янтарная схема: --accent #7a4a00 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── СВЕТЛАЯ ТЕМА ── */
:root {
  --bg-deep:    #fdf8f0;
  --bg-page:    #faf3e6;
  --bg-card:    #ffffff;
  --bg-card2:   #f5ead8;
  --border:     #e8d5b0;
  --border2:    #7a4a00;
  --accent:     #7a4a00;
  --accent2:    #a35a00;
  --accent-light: #b06010;
  --text:       #1a0e00;
  --text-muted: #5a3800;
  --text-dim:   #9a7040;
  --shadow:     0 2px 12px rgba(122,74,0,.09);
  --shadow-md:  0 4px 24px rgba(122,74,0,.15);
  --radius:     13px;
  --radius-sm:  8px;
}

/* ── ТЁМНАЯ ТЕМА ── */
[data-theme="dark"] {
  --bg-deep:    #100800;
  --bg-page:    #100800;
  --bg-card:    #1e1000;
  --bg-card2:   #261400;
  --border:     #3a2000;
  --border2:    #c07020;
  --accent:     #e0a040;
  --accent2:    #e8b060;
  --accent-light: #e0a040;
  --text:       #fff0d8;
  --text-muted: #d0a060;
  --text-dim:   #806030;
  --shadow:     0 2px 12px rgba(0,0,0,.4);
  --shadow-md:  0 4px 28px rgba(0,0,0,.5);
}

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(--accent-light); 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(253,248,240,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: background .25s, border-color .25s;
}
[data-theme="dark"] .topnav { background: rgba(16,8,0,.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(122,74,0,.14) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 110%, rgba(163,90,0,.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(224,160,64,.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(232,176,96,.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(122,74,0,.1); border: 1px solid rgba(122,74,0,.28);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 1.75rem;
}
[data-theme="dark"] .hero__badge { background: rgba(224,160,64,.12); border-color: rgba(224,160,64,.3); }
.hero__title {
  font-size: clamp(2.8rem, 10vw, 6.5rem);
  font-weight: 900; line-height: .96; letter-spacing: -.03em; margin-bottom: 1rem;
}
.hero__accent { color: var(--accent); }
.hero__accent2 { color: var(--accent2); }
.hero__sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 660px; margin: 0 auto 1.75rem; line-height: 1.55;
}
.hero__stats {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero__stat { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.hero__stat-val { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.hero__stat-lbl { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.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(122,74,0,.07); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted);
}
[data-theme="dark"] .geo-tag { background: rgba(224,160,64,.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), #3a2000);
  color: #fff; box-shadow: 0 3px 12px rgba(122,74,0,.38);
}
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; box-shadow: 0 5px 18px rgba(122,74,0,.48); }
.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(--accent2); color: var(--accent2);
  background: rgba(163,90,0,.07);
}
.btn--outline:hover { background: rgba(163,90,0,.14); text-decoration: none; }
.btn--tg {
  background: linear-gradient(135deg, #229ed9, #1481b0);
  color: #fff; box-shadow: 0 3px 10px rgba(34,158,217,.3);
}
.btn--tg:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; }

/* ── STATS BAND ── */
.stats-band {
  padding: 3rem 0;
  background: linear-gradient(135deg, #7a4a00 0%, #3a2000 100%);
  color: #fff;
}
.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: 2rem; font-weight: 900; line-height: 1.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(122,74,0,.38); background: var(--bg-card2); }
.prod-card--featured:hover { border-color: var(--accent); }
.prod-card--alt { border-color: rgba(163,90,0,.25); background: rgba(163,90,0,.04); }
.prod-card--alt:hover { border-color: var(--accent2); }
[data-theme="dark"] .prod-card--alt { background: rgba(163,90,0,.08); }
.prod-card__icon { font-size: 2rem; }
.prod-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: .2rem .65rem; border-radius: 999px;
  background: rgba(122,74,0,.1); border: 1px solid rgba(122,74,0,.28);
  color: var(--accent); font-size: .72rem; font-weight: 700;
}
[data-theme="dark"] .prod-card__badge { background: rgba(224,160,64,.15); border-color: rgba(224,160,64,.3); }
.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(122,74,0,.09); border: 1px solid rgba(122,74,0,.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(122,74,0,.18); text-decoration: none; }
.prod-card__btn--alt {
  background: rgba(163,90,0,.1); border-color: rgba(163,90,0,.3); color: var(--accent2);
}
.prod-card__btn--alt:hover { background: rgba(163,90,0,.2); }

/* ── 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 {
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--bg-page); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  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--primary { border-color: rgba(122,74,0,.38); background: var(--bg-card2); }
.channel-card--primary:hover { border-color: var(--accent); }
.channel-card--union { border-color: rgba(34,158,217,.25); background: rgba(34,158,217,.04); }
.channel-card--union:hover { border-color: #229ed9; }
[data-theme="dark"] .channel-card--union { background: rgba(34,158,217,.08); }
.channel-card__icon { font-size: 2rem; }
.channel-card__name { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.channel-card--union .channel-card__name { color: #229ed9; }
.channel-card__desc { font-size: .87rem; color: var(--text-muted); flex: 1; line-height: 1.5; }
.channel-card__btn {
  display: inline-block; padding: .45rem .9rem; border-radius: var(--radius-sm);
  background: rgba(122,74,0,.09); border: 1px solid rgba(122,74,0,.25);
  color: var(--accent); font-size: .82rem; font-weight: 600;
  align-self: flex-start; transition: background .15s;
}
.channel-card:hover .channel-card__btn { background: rgba(122,74,0,.18); }
.channel-card--union .channel-card__btn { background: rgba(34,158,217,.09); border-color: rgba(34,158,217,.25); color: #1481b0; }
.channel-card--union:hover .channel-card__btn { background: rgba(34,158,217,.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: 280px; background: var(--bg-deep);
  border: 1px solid rgba(122,74,0,.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(122,74,0,.1); color: var(--accent); font-size: .72rem; font-weight: 700;
}
[data-theme="dark"] .company-card__status { background: rgba(224,160,64,.15); }
.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: 75px; flex-shrink: 0; }
.company-row__val { font-size: .86rem; color: var(--text-muted); }

/* ── 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(--accent-light); }
.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(--accent-light); }
@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(2.5rem, 14vw, 4rem); }
  .hero__stats { gap: 1rem; }
  .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; }
  .hero__stats { grid-template-columns: 1fr 1fr; display: grid; }
}
