/* ===== RG Service — Demo CSS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #09AEA9;
  --teal-dark: #078a86;
  --teal-light: #e6f7f7;
  --dark: #0f1923;
  --dark2: #1a2632;
  --text: #1a1a2e;
  --text2: #5a6a7a;
  --border: #e2e8f0;
  --white: #ffffff;
  --orange: #f97316;
  --green: #22c55e;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(9,174,169,.12);
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,.7); margin-left: 20px; transition: color .2s; }
.topbar a:hover { color: #fff; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: none; }
.logo-text { display: none; }
.logo-img { height: 44px; width: auto; display: block; }
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text2); transition: all .2s;
}
.header-nav a:hover, .header-nav a.active { background: var(--teal-light); color: var(--teal); }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-switch a {
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text2);
  transition: all .2s; cursor: pointer;
}
.lang-switch a.active { background: var(--teal); color: #fff; }
.btn-app {
  background: var(--teal); color: #fff; padding: 9px 20px;
  border-radius: 9px; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.btn-app:hover { background: var(--teal-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0d2035 100%);
  color: #fff;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(9,174,169,.18) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1100px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(9,174,169,.2); border: 1px solid rgba(9,174,169,.4);
  color: #5de8e3; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 900; line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal); color: #fff; padding: 14px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(9,174,169,.4); }
.btn-outline-white {
  background: rgba(255,255,255,.1); color: #fff; padding: 14px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid rgba(255,255,255,.25);
  transition: all .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.18); }

/* Hero phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mock {
  width: 260px; height: 480px;
  background: #fff; border-radius: 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 8px rgba(255,255,255,.08);
  overflow: hidden; position: relative;
}
.phone-screen {
  background: #f8fafc; height: 100%; padding: 20px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-status { display: flex; justify-content: space-between; font-size: 11px; color: #888; font-weight: 600; }
.phone-header { background: var(--teal); border-radius: 12px; padding: 14px; color: #fff; }
.phone-header-title { font-size: 13px; font-weight: 800; }
.phone-header-sub { font-size: 11px; opacity: .8; margin-top: 2px; }
.phone-card {
  background: #fff; border-radius: 10px; padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 10px;
}
.phone-card-icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.phone-card-text { flex: 1; }
.phone-card-name { font-size: 12px; font-weight: 700; color: var(--text); }
.phone-card-sub { font-size: 11px; color: var(--text2); }
.phone-card-badge {
  background: var(--teal); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.phone-card-badge.orange { background: var(--orange); }
.phone-new-request {
  background: var(--teal); border-radius: 10px; padding: 12px; color: #fff;
  font-size: 12px; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--teal-light);
  border-bottom: 1px solid rgba(9,174,169,.2);
  padding: 20px 24px;
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { font-size: 24px; }
.trust-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.trust-text span { font-size: 12px; color: var(--text2); }

/* ===== HOW IT WORKS ===== */
.section { padding: 72px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--teal-light); color: var(--teal);
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--text2); max-width: 520px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal); color: #fff;
  font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }
.step-arrow {
  position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%);
  color: var(--teal); font-size: 24px; z-index: 1;
}

/* ===== CATEGORIES ===== */
.section-dark { background: var(--dark); padding: 72px 24px; }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.6); }
.section-dark .section-tag { background: rgba(9,174,169,.2); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cat-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 24px;
  transition: all .2s; cursor: pointer; display: block;
}
.cat-card:hover { background: rgba(9,174,169,.15); border-color: rgba(9,174,169,.4); transform: translateY(-3px); }
.cat-icon { font-size: 36px; margin-bottom: 14px; }
.cat-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.cat-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.cat-types { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-type {
  background: rgba(9,174,169,.2); color: #5de8e3;
  padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
}

/* ===== QR SECTION ===== */
.qr-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 72px 24px;
}
.qr-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.qr-text .section-tag { background: rgba(255,255,255,.2); color: #fff; }
.qr-text .section-title { color: #fff; }
.qr-text .section-sub { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.qr-features { display: flex; flex-direction: column; gap: 16px; }
.qr-feature { display: flex; align-items: flex-start; gap: 14px; }
.qr-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.qr-feature-text strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.qr-feature-text span { font-size: 13px; color: rgba(255,255,255,.7); }

.qr-visual {
  display: flex; justify-content: center;
}
.qr-box {
  background: #fff; border-radius: 20px; padding: 32px;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.2);
  width: 260px;
}
.qr-code {
  width: 160px; height: 160px; margin: 0 auto 16px;
  background: var(--dark); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.qr-box-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.qr-box-sub { font-size: 12px; color: var(--text2); }

/* ===== STATS ===== */
.stats-section { padding: 60px 24px; background: #f8fafc; }
.stats-inner { max-width: 1100px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center;
  border: 1px solid var(--border);
}
.stat-num { font-size: 42px; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text2); font-weight: 500; }

/* ===== PARTNERS CTA ===== */
.partners-cta {
  background: var(--dark); padding: 72px 24px;
}
.partners-cta-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.partners-cta .section-title { color: #fff; }
.partners-cta .section-sub { color: rgba(255,255,255,.6); margin-bottom: 28px; }
.partners-cta .section-tag { background: rgba(247,151,22,.15); color: var(--orange); }
.earnings-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.earnings-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.8); font-size: 15px;
}
.earnings-check { color: var(--green); font-size: 18px; }

.commission-cards { display: flex; flex-direction: column; gap: 12px; }
.commission-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.commission-card-label { font-size: 14px; color: rgba(255,255,255,.7); }
.commission-card-price { font-size: 20px; font-weight: 800; color: var(--teal); }
.commission-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.4); }
.btn-orange {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; padding: 14px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  transition: all .2s;
}
.btn-orange:hover { background: #ea6c0a; transform: translateY(-1px); }

/* ===== APP DOWNLOAD ===== */
.app-section { padding: 72px 24px; text-align: center; }
.app-section .section-title { margin-bottom: 12px; }
.app-section .section-sub { margin: 0 auto 36px; }
.app-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.app-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--dark); color: #fff; padding: 14px 24px;
  border-radius: 12px; font-size: 14px;
  transition: transform .2s;
}
.app-badge:hover { transform: translateY(-2px); }
.app-badge-icon { font-size: 28px; }
.app-badge-text small { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }
.app-badge-text strong { font-size: 16px; font-weight: 800; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark); color: rgba(255,255,255,.6); padding: 48px 24px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}

/* ===== PARTNERS PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 72px 24px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(9,174,169,.2) 0%, transparent 65%);
}
.page-hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.7); margin-bottom: 32px; }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  text-align: center; transition: all .2s;
}
.benefit-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.benefit-icon { font-size: 40px; margin-bottom: 12px; }
.benefit-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* Register form */
.register-section { padding: 72px 24px; background: #f8fafc; }
.form-card {
  max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 20px; padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.form-card h2 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.form-card p { font-size: 15px; color: var(--text2); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s;
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; user-select: none;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.form-terms { font-size: 13px; color: var(--text2); display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-terms input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--teal); }
.form-terms a { color: var(--teal); text-decoration: underline; }
.btn-submit {
  width: 100%; background: var(--teal); color: #fff; padding: 15px;
  border-radius: 10px; font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  transition: background .2s; font-family: inherit;
}
.btn-submit:hover { background: var(--teal-dark); }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  padding: 18px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.faq-q:hover { background: var(--teal-light); }
.faq-a { padding: 0 20px 18px; font-size: 14px; color: var(--text2); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: var(--teal-light); color: var(--teal); }
.faq-arrow { transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner, .qr-inner, .partners-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .qr-visual { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partners-cta-inner > div:last-child { display: none; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .header-nav { display: none; }
  .section { padding: 48px 16px; }
  .section-dark { padding: 48px 16px; }
  .qr-section { padding: 48px 16px; }
  .partners-cta { padding: 48px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .qr-box { width: 100%; max-width: 100%; box-sizing: border-box; }
  .qr-visual { width: 100%; }
  .qr-inner { gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-direction: column; gap: 14px; align-items: flex-start; padding: 0 4px; }
  .trust-item { width: 100%; }
}

/* ===== LANG SWITCH LOGIC ===== */
[data-lang="et"] .ru, [data-lang="ru"] .et { display: none; }
