/*
Theme Name: CardsOnline
Theme URI: https://cardsonline.ru
Author: CardsOnline
Description: Landing page theme for CardsOnline — foreign bank cards for Russian citizens
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: cardsonline
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --blue: #2b61ec;
  --dark: #1e222e;
  --firefly: #0d1b2a;
  --white: #ffffff;
  --gray: #8c8c8c;
  --light-gray: #e3e3e3;
  --bg: #f5f5f5;
  --cyan: #0891b2;
  --orange-star: #f59e0b;
  --shuttle-gray: #5a6a7a;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --container: 1400px;
  --section-px: 260px;
  --section-py: 50px;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ===========================
   TYPOGRAPHY
=========================== */
.section-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  text-align: center;
  margin-bottom: 6px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--firefly);
  text-align: center;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  margin-top: 10px;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: opacity .2s;
  cursor: pointer;
  border: none;
  font-family: 'Manrope', sans-serif;
}
.btn-primary:hover { opacity: .88; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: opacity .2s;
  cursor: pointer;
  border: none;
  font-family: 'Manrope', sans-serif;
}
.btn-secondary:hover { opacity: .8; }

/* ===========================
   SECTION WRAPPER
=========================== */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
}

/* ===========================
   HERO
=========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: linear-gradient(135deg, #e8eeff 0%, #f8f0ff 40%, #fff8f0 100%);
}
.hero-bg-left {
  position: absolute;
  left: -226px;
  top: -167px;
  width: 384px;
  height: 666px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse, rgba(200,210,255,0.6) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-bg-right {
  position: absolute;
  right: -303px;
  bottom: -102px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse, rgba(255,200,180,0.5) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 20px 380px;
  flex: 1;
}
.hero-title {
  font-size: 80px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.05;
  max-width: 836px;
  margin-bottom: 30px;
}
.hero-title .blue { color: var(--blue); }
.hero-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  max-width: 689px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
/* Карты — прибиты к низу hero вплотную к ленте */
.hero-cards {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  z-index: 2;
  pointer-events: none;
}
.hero-cards__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   MARQUEE
=========================== */
.marquee-bar {
  background: var(--light-gray);
  padding: 19px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 30px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   WHY US
=========================== */
#why-us {
  background: var(--bg);
  padding: 0;
}
#why-us .section-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.why-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-card--dark {
  background: var(--dark);
  color: #fff;
}
.why-card__emoji { font-size: 38px; line-height: 1; }
.why-card__title {
  font-size: 16px;
  font-weight: 800;
  color: inherit;
}
.why-card--dark .why-card__title { color: #fff; }
.why-card__desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  line-height: 1.5;
}
.why-card--dark .why-card__desc { color: rgba(255,255,255,.3); }
.why-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
}
.why-badge--white {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid #fff;
}
.why-badge--blue {
  background: rgba(43,97,236,.1);
  color: var(--blue);
  border: 1px solid rgba(43,97,236,.1);
}
.why-card--wide { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }
.why-card--wide .why-left { display: flex; flex-direction: column; gap: 20px; max-width: 500px; }
.why-card--wide .why-flags { display: flex; gap: 34px; font-size: 64px; }

/* ===========================
   GEOGRAPHY
=========================== */
#geography { background: #fff; }
#geography .section-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.geo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.geo-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  min-width: 220px;
}
.geo-card__flag { font-size: 38px; }
.geo-card__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--firefly);
  text-align: center;
}
.geo-card__logos {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.geo-logo-item { height: 24px; width: auto; object-fit: contain; }
.geo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.geo-tag {
  background: var(--light-gray);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
}

/* ===========================
   HOW IT WORKS
=========================== */
#how-it-works { background: #fff; }
#how-it-works .section-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.steps-grid {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
}
.step {
  flex: 1;
  max-width: 335px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.step__num {
  font-size: 80px;
  font-weight: 800;
  color: rgba(43,97,236,.15);
  line-height: 1;
  font-family: 'Manrope', sans-serif;
}
.step__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--firefly);
  line-height: 1.3;
}
.step__desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  line-height: 1.5;
}
.stats-row {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat__icon { font-size: 20px; }
.stat__value { font-size: 38px; font-weight: 800; color: var(--blue); line-height: 1; }
.stat__label { font-size: 14px; font-weight: 600; color: var(--gray); }
.stats-box {
  background: var(--bg);
  border-radius: 30px;
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.stats-box .stat { width: 185px; }

/* ===========================
   FOR WHOM
=========================== */
#for-whom { background: #fff; padding: 0; }
#for-whom .section-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.forwhom-grid {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}
.forwhom-card {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}
.forwhom-card__img {
  height: 170px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-radius: 22px 22px 0 0;
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.forwhom-card__img-emoji {
  font-size: 48px;
  line-height: 1;
}
.forwhom-card__img-sub {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}
.forwhom-card__img-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.forwhom-card__body {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.forwhom-card__title { font-size: 16px; font-weight: 800; color: var(--dark); }
.forwhom-card__desc { font-size: 16px; font-weight: 600; color: var(--gray); line-height: 1.5; }
.forwhom-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(6,182,212,.08);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
}

/* ===========================
   REVIEWS
=========================== */
#reviews { background: #fff; }
#reviews .section-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.reviews-stats {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.reviews-stats .stat__label { text-transform: uppercase; letter-spacing: .5px; }
.reviews-platforms {
  background: var(--bg);
  border-radius: 30px;
  padding: 30px;
  display: flex;
  gap: 20px;
}
.reviews-platforms .stat { width: 185px; }
.reviews-slider-wrap {
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  padding-bottom: var(--section-py);
}
.reviews-slider {
  display: flex;
  gap: 24px;
  will-change: transform;
  animation: reviews-scroll 40s linear infinite;
}
.reviews-slider:hover { animation-play-state: paused; }
@keyframes reviews-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 30px;
  width: 380px;
  min-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.review-card__stars { font-size: 16px; color: var(--orange-star); }
.review-card__text { font-size: 14px; font-weight: 600; color: var(--shuttle-gray); line-height: 1.6; flex: 1; }
.review-card__author { display: flex; gap: 10px; align-items: center; }
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(10,22,40) 0%, rgb(6,182,212) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.8px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.review-card__name { font-size: 16px; font-weight: 800; color: var(--firefly); }
.review-card__location { font-size: 14px; font-weight: 600; color: var(--shuttle-gray); }
.review-card__quote {
  position: absolute;
  top: 14px;
  right: 30px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(43,97,236,.1);
  line-height: 1;
}

/* ===========================
   FAQ
=========================== */
/* faq styles moved to FAQ + CTA section below */
.faq-item {
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
}
.faq-item.open { background: var(--light-gray); }
.faq-item__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px;
}
.faq-item__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  transition: transform .3s;
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__question {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  flex: 1;
}
.faq-item__answer {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-item__answer { max-height: 300px; padding: 0 30px 30px; }

/* ===========================
   CTA
=========================== */
#cta {
  background: transparent;
  padding-bottom: 0;
}
#cta .section-inner {
  display: flex;
  align-items: stretch;
  padding-bottom: var(--section-py);
}
.cta-box {
  display: flex;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  min-height: 340px;
}
.cta-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cta-left {
  background: var(--firefly);
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.cta-left__title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.cta-left__sub {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  width: fit-content;
  transition: opacity .2s;
}
.cta-btn:hover { opacity: .88; }
.cta-right {
  background: #fff;
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.cta-right__label {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}
.cta-contacts { display: flex; flex-direction: column; gap: 10px; }
.cta-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity .2s;
}
.cta-link:hover { opacity: .88; }
.cta-link--tg { background: #229ed9; box-shadow: 0 4px 9px rgba(34,158,217,.25); }
.cta-link--wa { background: #25d366; box-shadow: 0 4px 9px rgba(37,211,102,.25); }
.cta-link__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-link__icon img { filter: brightness(0) invert(1); }
.cta-link__name { font-size: 16px; font-weight: 800; color: #fff; }
.cta-link__handle { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.cta-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.cta-phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}
.cta-phone span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  margin-left: 6px;
}

/* ===========================
   FOOTER
=========================== */
#footer {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* Декоративные градиентные эллипсы */
.footer-ellipse {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.footer-ellipse--left {
  width: 600px;
  height: 600px;
  left: -477px;
  bottom: -320px;
}
.footer-ellipse--right {
  width: 384px;
  height: 666px;
  right: -255px;
  bottom: -323px;
}

/* Inner layout */
.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 0;
}

/* Левый блок */
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-shrink: 0;
  width: 220px;
}

/* Logo */
.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: max-content;
}
.footer-logo__svg {
  height: 28px;
  width: auto;
  display: block;
  color: var(--dark);
}

/* Contacts block */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-contacts__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}
.footer-contacts__link {
  font-size: 16px;
  font-weight: 600;
  color: rgba(30,34,46,.8);
  text-decoration: none;
  transition: color .2s;
}
.footer-contacts__link:hover { color: var(--blue); }

/* Socials */
.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}
.footer-social-btn {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.footer-social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.footer-more-wrap {
  position: relative;
}
.footer-more-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px 0;
  min-width: 220px;
  z-index: 100;
}
.footer-more-dropdown[hidden] { display: none; }
.footer-more-item {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: background .15s;
  white-space: nowrap;
}
.footer-more-item:hover { background: var(--bg); }

/* Nav + Legal columns */
.footer-links-wrap {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-shrink: 0;
}
.footer-nav-col,
.footer-legal-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-legal-col { width: 260px; }
.footer-nav-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}
.footer-nav-col a {
  font-size: 16px;
  font-weight: 600;
  color: rgba(30,34,46,.8);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-col a:hover { color: var(--blue); }
.footer-legal-col a {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  transition: color .2s;
}
.footer-legal-col a:hover { color: var(--dark); }

@media (max-width: 1250px) {
  .footer-img-wrap { display: none; }
}

/* Ecommerce image — 4th flex column on desktop, фиксированный размер */
.footer-img-wrap {
  position: absolute;
  right: var(--section-px);
  bottom: 0;
  width: 390px;
}
.footer-ecommerce-img {
  width: 390px;
  height: auto;
  display: block;
}

/* Bottom text */
.footer-bottom {
  position: relative;
  z-index: 1;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer-bottom-inner p {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  line-height: 1.5;
}

/* ===========================
   CONTACT FORM MODAL
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 667px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0); }

/* Кнопка Назад */
.modal__back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 40px;
  cursor: pointer;
}
.modal__back-icon {
  width: 38px;
  height: 38px;
  background: #403939;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Заголовок */
.modal__header { margin-bottom: 20px; }
.modal__title {
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 20px;
}
.modal__subtitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

/* Поля */
.form-field { margin-bottom: 0; }
.form-field input,
.form-field textarea {
  padding: 14px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--dark);
  background: #f3f5f4;
  outline: none;
  width: 100%;
  transition: background .2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #656871; font-weight: 600; }
.form-field input:focus,
.form-field textarea:focus { background: #eaeceb; }
.form-field textarea { resize: vertical; min-height: 80px; }

/* Ряд телефон+email */
.form-row {
  display: flex;
  gap: 6px;
}
.form-row .form-field { flex: 1; }

/* Группа полей */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Чекбокс */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--dark);
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  margin-top: 2px;
}
.form-consent input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.form-consent label {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 1.4;
  cursor: pointer;
}

/* Разделитель */
.form-divider {
  height: 1px;
  background: var(--light-gray);
}

/* Ошибка */
.form-error-msg {
  color: red;
  font-size: 14px;
  display: none;
}

/* Кнопка отправки */
.form-actions { display: flex; justify-content: flex-end; }
.form-submit {
  background: var(--blue) !important;
  padding: 10px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success__icon { font-size: 48px; margin-bottom: 16px; }
.form-success__title { font-size: 20px; font-weight: 800; color: var(--dark); }
.form-success__sub { font-size: 16px; color: var(--gray); margin-top: 8px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1400px) {
  :root { --section-px: 60px; }
  .hero-title { font-size: 62px; }
}

@media (max-width: 1100px) {
  :root { --section-px: 40px; }
  .hero-title { font-size: 52px; }
  .section-title { font-size: 32px; }
  .steps-grid { flex-wrap: wrap; }
  .step { max-width: 48%; }
  .why-card--wide { flex-direction: column; }
  .footer-nav { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-px: 20px; --section-py: 40px; }
  .hero-title { font-size: 38px; max-width: 100%; }
  .hero-subtitle { font-size: 15px; }
  #hero { min-height: 0; }
  .hero-content { padding: 100px 20px 0; }
  .hero-cards {
    position: relative;
    left: auto;
    transform: none;
    max-width: 100%;
    margin-top: 24px;
  }
  .section-title { font-size: 26px; }
  .section-label { font-size: 14px; }
  /* Почему мы — строго две колонки */
  .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-row { display: contents; }
  .why-card { flex: unset; min-width: 0; }
  .why-card--dark:not(.why-card--wide) { grid-column: span 1; }
  .why-card--wide { grid-column: 1 / -1; flex-direction: column; align-items: center; text-align: center; }
  .why-card--wide .why-left { display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .why-card--wide .why-flags { font-size: 40px; gap: 20px; justify-content: center; }
  /* 4 страны — две колонки */
  .geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  /* Как это работает — две колонки */
  .steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .step { max-width: 100%; }
  .forwhom-grid { flex-direction: column; }
  .forwhom-card { min-width: 100%; }
  .reviews-slider-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reviews-slider-wrap::-webkit-scrollbar { display: none; }
  .reviews-slider { flex-wrap: nowrap; }
  .review-card { min-width: 260px; width: 260px; flex-shrink: 0; }
  /* Рейтинги — средний по центру, платформы снизу на всю ширину */
  .reviews-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  .reviews-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 12px;
    margin-left: calc(-1 * var(--section-px) + 12px);
    margin-right: calc(-1 * var(--section-px) + 12px);
    border-radius: 16px;
    width: calc(100% + var(--section-px) * 2 - 24px);
  }
  .reviews-platforms .stat { width: auto; min-width: 0; }
  .cta-box { flex-direction: column; }
  .cta-left { padding: 40px 30px; }
  .cta-right { padding: 40px 30px; }
  .cta-left__title { font-size: 28px; }
  /* Футер — две колонки */
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 50px;
    padding-right: var(--section-px);
  }
  .footer-main { grid-column: 1 / 2; }
  .footer-links-wrap { grid-column: 2 / 3; flex-direction: column; gap: 24px; }
  .footer-img-wrap { display: none; }
  .footer-legal-col { width: auto; }
  /* Stats — 2×2 карточки на мобилке */
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stats-box {
    display: contents;
    background: none;
    padding: 0;
    border-radius: 0;
  }
  .stats-box .stat { width: auto; }
  .stats-row .stat {
    background: var(--bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .stat__icon { font-size: 24px; margin-bottom: 4px; }
  .stat__value { font-size: 28px; }
  .stat__label { font-size: 13px; }
  /* Гео — флаг и название слева, логотипы снизу */
  .geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .geo-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; flex: unset; min-width: 0; }
  .geo-card__flag { font-size: 24px; }
  .geo-card__name { font-size: 13px; text-align: left; }
  .geo-card__logos { justify-content: flex-start; margin-left: 0; gap: 6px; flex-wrap: wrap; }
  .geo-logo-item { height: 18px; }
  .geo-logo-item { height: 18px; }
  /* Модал — отступы по бокам */
  .modal-overlay { align-items: flex-start; padding: 16px; overflow-y: auto; }
  .modal { margin: 0; width: 100%; max-width: 100%; padding: 24px 20px; }
  .modal__title { font-size: 26px; }
  .form-row { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; text-align: center; }
  /* Футер */
  .footer-inner { grid-template-columns: 3fr 2fr; gap: 24px; }
  .footer-nav-col a,
  .footer-legal-col a { font-size: 14px; }
  .footer-nav-title { font-size: 18px; }
  .footer-links-wrap { margin-left: -15px; }
  /* Why-us карточки */
  .why-card { padding: 18px; gap: 12px; }
  .why-card__title { font-size: 14px; }
  .why-card__desc { font-size: 13px; }
  .why-card__emoji { font-size: 28px; }
}

/* ===========================
   SITE HEADER / TOPBAR
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.0);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,.07);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--section-px);
  display: flex;
  align-items: center;
  gap: 0;
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo__svg {
  height: 28px;
  width: auto;
  display: block;
  color: var(--dark);
}
.header-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
.header-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: background .2s;
  white-space: nowrap;
}
.header-nav__link:hover { background: rgba(0,0,0,.05); }
.header-cta {
  flex-shrink: 0;
  background: var(--firefly) !important;
  color: #f5f5f5 !important;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
}
.header-nav__cta-mobile { display: none; }
.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 12px;
}
.header-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s;
}

/* Hero — cards repositioned inside content (below buttons) */
.hero-content { padding-top: 140px; } /* offset for fixed header */

/* ===========================
   GEO LOGOS — real images
=========================== */
.geo-logos-img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}
.geo-logo-single {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

/* ===========================
   STEP — image digit
=========================== */
.step__img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

/* ===========================
   FAQ + CTA shared gradient wrap
=========================== */
.faq-cta-wrap {
  position: relative;
  background:
    radial-gradient(ellipse 700px 500px at 100% 50%, rgba(43,97,236,.13) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}

/* ===========================
   FAQ
=========================== */
#faq {
  position: relative;
  background: transparent;
  overflow: hidden;
}
.faq-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.faq-deco--ball {
  left: -142px;
  bottom: 0;
  width: clamp(200px, 26vw, 500px);
  height: auto;
}
/* Ветка — одно изображение справа, на всю высоту #faq */
.faq-deco--branch {
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(100px, 14vw, 240px);
  height: 100%;
  object-fit: contain;
  object-position: top right;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.faq-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.faq-list { width: 100%; max-width: 926px; display: flex; flex-direction: column; gap: 20px; }

/* Header responsive */
@media (max-width: 1100px) {
  .header-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
    z-index: 999;
  }
  .header-nav.header-nav--open { display: flex; }
  .header-burger { display: flex; }
  .header-inner { padding: 16px 24px; }
  .header-cta { margin-left: auto; }
  .header-burger { margin-left: 12px; }
}
@media (max-width: 768px) {
  .hero-content { padding-top: 100px; }
  .faq-deco--ball { width: 200px; left: -60px; }
  .faq-deco--branch { display: none; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .header-burger { margin-left: auto; }
  .header-nav__cta-mobile { display: block; width: 100%; margin-top: 8px; }
}

/* =====================================================================
   LEGAL PAGE
===================================================================== */
.legal-page {
  min-height: 80vh;
  padding-top: 100px;
  padding-bottom: 80px;
}
.legal-inner {
  max-width: 860px;
}
.legal-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 40px;
}
.legal-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark);
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}
.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}
.legal-content p {
  margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-empty {
  color: var(--gray);
  font-size: 16px;
}
.legal-back {
  display: inline-flex;
  margin-top: 48px;
  font-size: 15px;
}
