/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2A9FD6;
  --color-primary-dark: #1E7FB0;
  --color-primary-light: #E8F4FB;
  --color-accent: #7DB83A;
  --color-text: #1A1A2E;
  --color-text-light: #555;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F9FC;
  --color-border: #E0E0E0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
  --container: 1140px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--color-text);
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.125rem;
  margin-top: -32px;
  margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn__icon {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header--scrolled {
  padding: 10px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.header__lang {
  display: flex;
  gap: 8px;
}

.lang-link {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--color-text-light);
}

.lang-link.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg) 60%);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__content {
  flex: 1;
}

.hero__content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  flex: 0 0 320px;
}

.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
  padding: 12px;
  background: #1a1a2e;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
}

.phone-mockup img {
  border-radius: 24px;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== How it works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
}

.about__text p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 16px;
  max-width: 700px;
}

.about__stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.stat__number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat__label {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Partners ===== */
.partners {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

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

.partner-benefit {
  padding: 32px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.partner-benefit h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.partner-benefit p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.partners__cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
}

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

.contact-card {
  padding: 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.contact-card p {
  color: var(--color-text-light);
}

.contact-card a {
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer__reg {
  color: var(--color-text-light);
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image {
    flex: none;
  }

  .features__grid,
  .partners__grid,
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__stats {
    justify-content: center;
  }

  .section-title--left {
    text-align: center;
  }

  .about__text p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav--open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header__lang {
    display: none;
  }

  .hero__content h1 {
    font-size: 2rem;
  }

  .features__grid,
  .partners__grid,
  .contact__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .about__stats {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}
