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

:root {
  --blue: #1865E8;
  --blue-d: #1254C4;
  --blue-l: #E8F1FD;
  --navy: #0B1428;
  --navy-m: #152A5E;
  --slate: #0F172A;
  --gray: #475569;
  --gray-l: #94A3B8;
  --border: #E2E8F0;
  --bg: #F4F7FB;
  --white: #FFFFFF;
  --green: #22C55E;
  --accent: var(--blue);
  --accent-d: var(--blue-d);
  --accent-l: var(--blue-l);
  --hero-bg: linear-gradient(135deg, var(--navy) 0%, var(--navy-m) 45%, #1a4a9e 100%);
  --radius: 12px;
}

.theme-max {
  --accent: #7C3AED;
  --accent-d: #6D28D9;
  --accent-l: #EDE9FE;
  --hero-bg: linear-gradient(135deg, #1e1033 0%, #4c1d95 50%, #6d28d9 100%);
}

.theme-heat {
  --accent: #3D9B8F;
  --accent-d: #2F7A71;
  --accent-l: #E0F2F1;
  --hero-bg: linear-gradient(160deg, #0f1c24 0%, #152833 55%, #1a3a42 100%);
}

.theme-uk {
  --accent: #4F46E5;
  --accent-d: #4338CA;
  --accent-l: #EEF2FF;
}

.theme-act {
  --accent: #C2410C;
  --accent-d: #9A3412;
  --accent-l: #FFF7ED;
  --hero-bg: linear-gradient(145deg, #1c1410 0%, #3b2418 50%, #7c2d12 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }

.tag {
  display: inline-block;
  background: var(--accent-l);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--gray);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24, 101, 232, .25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover { background: var(--accent-l); }

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.45);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(11,20,40,.04);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px;
}

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; display: block; }
.logo-text {
  font-size: 18px; font-weight: 800; color: var(--navy);
  letter-spacing: -.02em;
}

.nav-menu {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto;
}

.nav-menu a {
  color: var(--slate); text-decoration: none;
  font-size: 14px; font-weight: 500;
}

.nav-menu a:hover { color: var(--accent); }

.nav-cta { font-size: 14px; padding: 10px 20px; flex-shrink: 0; }

.nav-burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}

.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--slate); margin: 5px 0; border-radius: 2px;
}

/* HERO */
.hero {
  background: var(--hero-bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}

.hero h1 span { color: #6CB4FF; }
.theme-heat .hero h1 span { color: #d4a35c; }
.theme-max .hero h1 span { color: #c4b5fd; }
.theme-uk .hero h1 span { color: #a5b4fc; }
.theme-act .hero h1 span { color: #fdba74; }

.hero-lead {
  font-size: 17px; color: rgba(255,255,255,.82);
  max-width: 520px; margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-card h3 { font-size: 15px; margin-bottom: 12px; opacity: .9; }
.hero-card ul { list-style: none; font-size: 14px; color: rgba(255,255,255,.85); }
.hero-card li { padding: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-card li:last-child { border: none; }
.hero-card li a,
.hero-card li a:link,
.hero-card li a:visited {
  display: block;
  padding: 10px 0;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s;
}
.hero-card li a:hover,
.hero-card li a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-badge a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-badge a:hover { color: #fff; }

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero-feat {
  text-align: center;
  padding: 16px 8px;
}

.hero-feat-icon { font-size: 28px; margin-bottom: 8px; }
.hero-feat h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.hero-feat p { font-size: 12px; color: rgba(255,255,255,.65); }

/* PORTAL HOME */
.portal-hero .hero-grid { grid-template-columns: 1.1fr .9fr; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all .25s;
  border-top: 4px solid var(--accent);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,.1);
  border-color: var(--accent);
}

.product-card--smm { --accent: #1865E8; }
.product-card--max { --accent: #7C3AED; }
.product-card--heat { --accent: #3D9B8F; }
.product-card--uk { --accent: #4F46E5; }
.product-card--act { --accent: #C2410C; }

.product-icon { font-size: 36px; margin-bottom: 16px; }
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--gray); flex: 1; margin-bottom: 16px; }
.product-link {
  font-size: 14px; font-weight: 600; color: var(--accent);
}

.product-status {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-l);
  color: var(--accent);
  margin-bottom: 12px;
}

/* FLOW */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.flow-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.flow-card h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}

.flow-num {
  width: 28px; height: 28px;
  background: var(--accent-l); color: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}

.flow-card p { font-size: 14px; color: var(--gray); }

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

.feat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
}

.feat-card:hover { border-color: var(--accent); }

.feat-icon { font-size: 28px; margin-bottom: 12px; }
.feat-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* FORM */
.form-section {
  background: var(--hero-bg);
  color: var(--white);
  padding: 80px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-intro h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.form-intro p { color: rgba(255,255,255,.8); margin-bottom: 24px; }

.contact-form {
  background: var(--white);
  color: var(--slate);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.contact-form h3 { font-size: 20px; margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px;
  font-family: inherit;
}

.form-field textarea { min-height: 100px; resize: vertical; }

.btn-form { width: 100%; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--gray-l); margin-top: 12px; text-align: center; }
.form-note a { color: var(--accent); font-weight: 500; }
.form-note a:hover { text-decoration: underline; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--gray-l);
  text-align: left;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent a { color: var(--accent); font-weight: 500; }
.form-consent a:hover { text-decoration: underline; }

.btn-form:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* LEGAL PAGE */
.legal-page {
  padding: 48px 0 72px;
  background: var(--white);
}

.legal-doc {
  max-width: 760px;
}

.legal-doc__meta {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.legal-doc h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.legal-doc__lead {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 32px;
}

.legal-doc section {
  margin-bottom: 28px;
}

.legal-doc h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

.legal-doc p { margin-bottom: 10px; }
.legal-doc ul { margin: 8px 0 0 1.1rem; padding: 0; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--accent); }
.legal-doc a:hover { text-decoration: underline; }

.legal-doc__back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-doc__back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-doc__back a:hover { text-decoration: underline; }

.legal-doc__operator {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--off);
  border-radius: 8px;
  font-size: 14px;
  color: var(--slate);
}

#formStatus {
  display: none; margin-bottom: 16px;
  padding: 12px; border-radius: 8px;
  font-size: 14px; text-align: center;
}

.trust-list { list-style: none; }
.trust-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px;
  color: rgba(255,255,255,.85);
}

.trust-list .tick {
  width: 22px; height: 22px;
  background: rgba(34,197,94,.2);
  color: #4ade80;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  padding: 32px 20px;
  font-size: 13px;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

.footer-logo img { height: 48px; opacity: .9; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

.footer-meta { display: flex; flex-direction: column; gap: 6px; }
.footer-meta p { margin: 0; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,.42); }

.text-center { text-align: center; }
.section-sub.center { margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .hero-grid, .form-grid, .flow-grid { grid-template-columns: 1fr; }
  .products-grid, .features-grid { grid-template-columns: 1fr; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .nav-menu { display: none; }
  .nav-burger { display: block; }
  .nav-inner { position: relative; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: 14px;
    z-index: 99;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; }
}
