    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #F0F0F0;
      font-family: 'Inter', sans-serif;
    }

    header {
      padding: 60px 0;
    }

    /* Бургер-меню */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-menu img {
    width: 40px;
    height: 40px;
}

/* Mobile menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav-header .logo img {
  max-height: 40px;
}

.mobile-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.mobile-nav-links a,
.mobile-get-started {
  font-size: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-get-started {
  color: white;
  background-color: #53AC67;
  padding: 12px 20px;
  border-radius: 20px;
}

    .container {
      max-width: 1420px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo img {
      display: block;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: clamp(24px, 3vw, 100px);
    }

    .nav-menu a {
      font-size: 20px;
      font-weight: 400;
      color: #333333;
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-menu a:hover {
      color: #53AC67;
    }

    .btn-get-started {
      display: inline-flex;
      align-items: center;
      gap: 16px;
      padding: 12px 16px;
      font-family: 'Inter', sans-serif;
      font-size: 20px;
      font-weight: 500;
      color: white;
      background-color: #53AC67;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn-get-started:hover {
      background-color: #479a5a;
    }

    /* Hero Block */
    .hero {
      background-image: url('assets/grid-main.svg');
      background-repeat: repeat;
      padding-top: 80px;
      position: relative;
      min-height: 600px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero-content {
      max-width: 870px;
      padding-right: 60px;
    }

    .hero-title {
      font-size: 52px;
      margin-bottom: 40px;
      font-weight: 700;
      color: #333;
    }

    .hero-title span {
      color: #53AC67;
      font-weight: 700;
    }

    .hero-text {
      margin-bottom: 40px;
      font-size: 28px;
      color: #333;
    }

    .btn-hero {
      display: inline-flex;
      align-items: center;
      gap: 16px;
      padding: 12px 16px;
      font-family: 'Inter', sans-serif;
      font-size: 28px;
      font-weight: 500;
      color: white;
      background-color: #53AC67;
      border: none;
      border-radius: 20px;
      cursor: pointer;
    }

    .btn-hero:hover {
      background-color: #479a5a;
    }

    .hero-image {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .hero-image img {
      width: 100%;
      height: auto;
      filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    }

    .last-sign {
      position: relative;
      margin: 80px 10px 0 10px;
      background-image: url('assets/last-sign-main.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      height: 72px;
      z-index: 1;
    }

    /* What is Novatrend Block */
    .what-is-novatrend .container {
    display: block;
    }

    .what-is-novatrend {
    background-image: url('assets/grid-what.svg');
    background-repeat: repeat;
    padding: 60px 0;
    }

    .section-title {
    font-size: 52px;
    margin-bottom: 10px;
    color: #333;
    }

    .section-title span {
    color: #53AC67;
    font-weight: 700;
    }

    .section-subtitle {
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
    }

    .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: start;
    }

    .card {
    padding: 32px;
    background: #F0F0F0;
    border: 1px solid #53AC67;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    }

    .card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    }

    .card h3 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #333;
    }

    .card p {
    font-size: 20px;
    color: #333;
    text-align: left;
    }

    /* How It Works Block */
    .how-it-works .container {
    display: block;
    }

    .how-it-works {
    background-color: #F0F0F0;
    padding: 60px 0;
    }

    .how-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    }

    .how-title {
    font-size: 52px;
    color: #333;
    }

    .how-subtitle {
    font-size: 28px;
    color: #333;
    text-align: right;
    }

    .how-content {
    display: flex;
    gap: 60px;
    align-items: center;
    }

    .how-image {
    width: 500px;
    }

    .how-image img {
    width: 100%;
    height: auto;
    }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 1fr); /* 4 равные строки */
  gap: 20px;
  justify-items: start;
  align-items: start;
  position: relative;
}

.step-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  position: relative; /* только для изображения */
}

.step-1 {
  grid-column: 1;
  grid-row: 1 / 3; /* занимает первую "логическую" строку (1+2) */
}

.step-2 {
  grid-column: 2;
  grid-row: 2 / 4; /* начинается на 2-й, заканчивается на 4-й → визуально между 1 и 2 */
  justify-self: end;
  align-self: center;
}

.step-3 {
  grid-column: 1;
  grid-row: 3 / 5; /* занимает вторую "логическую" строку (3+4) */
}

.step-card img {
  position: absolute;
  top: -30px;
  right: 0px;
  width: 40%;
  height: auto;
}

    .step-number {
    width: 51px;
    height: 51px;
    background: #53AC67;
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    }

    .step-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #333;
    }

    .step-card p {
    font-size: 18px;
    color: #333;
    margin: 0;
    width: 100%;
    }

    /* Pricing Block */
    .pricing {
    background-image: url('assets/grid-what.svg');
    background-repeat: repeat;
    padding: 60px 0;
    overflow: visible;
    }

    .pricing .container {
    display: block;
    position: relative;
    overflow: visible;
    }

    .pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    }

    .pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    }

    .header-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    }

    .pricing .section-title {
    font-size: 52px;
    color: #333;
    margin: 0;
    }

    .pricing .section-subtitle {
    font-size: 28px;
    color: #333;
    margin: 0;
    }

    .slider-controls {
    display: flex;
    gap: 20px;
    }

    .slider-btn {
    width: 60px;
    height: 60px;
    background: #F0F0F0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.05);
    }

    .slider-btn img {
    width: 36px;
    height: 36px;
    display: block;
    }

    .slider-btn:hover {
    background: #eaeaea;
    }

    .cards-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    min-height: 400px;
    scrollbar-width: none;
    }

    .cards-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    }

    .card-item {
    min-width: 390px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    }

    .card-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    }

    .card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }

    .card-item h3 {
    font-size: 24px;
    margin: 0;
    color: #333;
    }

    .price {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: right;
    }

    .card-item p {
    font-size: 18px;
    color: #333;
    margin: 0;
    }

    .balance-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    }

    .btn-get-card {
    width: 100%;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background-color: #53AC67;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    }

    .btn-get-card:hover {
    background-color: #479a5a;
    }

    /* CTA Block */
    .cta-block {
    background-image: url('assets/grid-main.svg');
    background-repeat: repeat;
    padding: 60px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .cta-content {
    max-width: 870px;
    text-align: center; /* ← центрирует текст и кнопку */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    }

    .cta-title {
    font-size: 52px;
    margin: 0;
    font-weight: 700;
    color: #333;
    }

    .cta-title span {
    color: #53AC67;
    font-weight: 700;
    }

    .cta-text {
    margin: 0;
    font-size: 28px;
    color: #333;
    line-height: 1.4;
    }

    .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: white;
    background-color: #53AC67;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    align-self: center; /* ← если flex-direction column */
    }

    .btn-cta:hover {
    background-color: #479a5a;
    }

    /* Footer */
    footer {
    background-color: #F0F0F0;
    padding: 60px 0;
    border-top: 1px solid #eee;
    }

    footer .container {
        display: block;
    }

    .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    }

    .footer-top .logo img {
    display: block;
    }

    .footer-top .nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 100px);
    }

    .footer-top .nav-menu a {
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: color 0.2s;
    }

    .footer-top .nav-menu a:hover {
    color: #53AC67;
    }

    .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(16px, 2.5vw, 40px); /* гибкий отступ */
    flex-wrap: wrap; /* ← разрешаем перенос при нехватке места */
    position: relative;
    }

  .freekassa-banner {
    display: inline-block;
    margin-left: auto; /* прижимает к правому краю */
    flex-shrink: 0; /* не даёт сжиматься при малом пространстве */
  }

    .footer-copyright,
    .footer-links {
    font-size: 20px;
    color: #333;
    }

    .footer-links {
    display: flex;
    gap: clamp(16px, 2.5vw, 40px);
    flex-wrap: wrap; /* ← ссылки тоже могут переноситься */
    align-items: center;
    }

    .footer-links a {
    color: #333;
    text-decoration: none;
    }

    .footer-links a:hover {
    color: #53AC67;
    }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 800px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.modal h2 {
  font-size: 28px;
  color: #333;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section label {
  display: block;
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.card-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 16px;
}

.card-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.card-type-option input[type="radio"] {
  display: none;
}

.card-type-option img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
}

.card-type-option span {
  font-size: 14px;
  color: #333;
}

.card-type-option input:checked ~ * {
  color: #53ac67;
}

.card-type-option input:checked + img {
  box-shadow: 0 0 40px rgba(83, 172, 103);
}

.card-type-option input:checked {
  border-color: #53AC67;
}

.balance-type-options,
.currency-options {
  display: flex;
  gap: 16px;
}

.balance-type-btn,
.currency-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #F0F0F0;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.balance-type-btn,
.currency-btn {
  padding: 12px 24px;
  background: #F0F0F0;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  color: #333;
}

.balance-type-btn.active,
.currency-btn.active {
  background: #53AC67;
  color: white;
  border-color: #53AC67;
}

.token-select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #F0F0F0;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}

#balance-input,
#balance-custom-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #F0F0F0;
  text-align: center;
  font-weight: 500;
  color: #333;
}

#balance-custom {
  margin-top: 10px;
}

.total-price {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: center;
  padding: 12px;
  background: #F0F0F0;
  border-radius: 12px;
}

.modal-pay-btn {
  width: 100%;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  background-color: #53AC67;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.modal-pay-btn:hover {
  background-color: #479a5a;
}

#email-input, #phone-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #F0F0F0;
}

.modal-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* === 1.5. Large Desktop & Laptop (1025px – 1420px) === */
@media (min-width: 1025px) and (max-width: 1420px) {
  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding-right: 30px;
  }

  .hero-title, .section-title, .how-title, .pricing .section-title, .cta-title {
    font-size: 46px;
  }

  .hero-text, .section-subtitle, .how-subtitle, .pricing .section-subtitle, .cta-text {
    font-size: 26px;
  }

  .card {
    padding: 28px;
  }

  .btn-get-started,
  .nav-menu a {
    font-size: 18px;
  }

  .btn-hero,
  .btn-cta {
    font-size: 26px;
  }

  .modal {
    width: 750px;
  }

  .card-type-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .card-type-option {
    padding: 10px;
  }

  .card-type-option span {
    font-size: 12px;
  }
}

/* === 1. Tablet Landscape (1024px и ниже) === */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .burger-menu {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  header {
    padding: 20px 0;
  }

  .hero-title, .cta-title {
    font-size: 42px;
  }

  .hero-text, .cta-text {
    font-size: 24px;
  }

  .hero-content {
    max-width: 700px;
    padding-right: 30px;
  }

  .section-title, .how-title, .pricing .section-title {
    font-size: 42px;
    margin-bottom: 10px;
  }

  .section-subtitle, .pricing .section-subtitle {
    font-size: 22px;
  }

  .how-subtitle {
    font-size: 22px;
    text-align: center;
  }

  .how-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-get-started,
  .nav-menu a {
    font-size: 18px;
  }

  .btn-hero {
    font-size: 24px;
  }

  .btn-cta {
    font-size: 24px;
  }

  .footer-links {
    gap: clamp(12px, 3vw, 40px);
  }

  .modal {
    width: 700px;
  }
}

/* === 2. Tablet Portrait (768px и ниже) === */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  header .container {
    flex-direction: row; /* ← логотип и бургер в строку */
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    gap: 0;
  }

  header .logo img {
    max-width: 250px;
  }

  .burger-menu {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .hero {
    padding-top: 60px;
    min-height: auto;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-image {
    width: 80%;
  }

  .what-is-novatrend .container,
  .how-it-works .container,
  .pricing .container,
  footer .container {
    display: flex;
  }

  .cards-grid {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 500px;
  }

  .how-content {
    flex-direction: column;
    gap: 40px;
  }

  .how-image {
    width: 100%;
  }

    .pricing-header {
    flex-direction: column;
    align-items: flex-start;
    }

    .header-text {
    gap: 0;
    }

    .slider-controls {
    display: none; /* ← скрываем стрелки */
    }

    .cards-container {
    flex-direction: column;
    overflow-x: hidden;
    gap: 20px;
    }

    .card-item {
    min-width: auto;
    width: 100%;
    }

  .cta-content {
    max-width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .footer-links a,
  .footer-links a[href^="mailto"] {
    white-space: nowrap; /* ← предотвращает разрыв email и длинных слов */
  }

  .steps-grid {
    display: block;
  }

  .step-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
  }

  .step-1, .step-2, .step-3 {
    position: relative;
    top: auto;
    left: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .modal {
    width: 90vw;
    padding: 30px 20px;
  }

.card-type-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card-type-option {
  padding: 10px;
}

.card-type-option span {
  font-size: 12px;
}

.modal-pay-btn {
    font-size: 18px;
    gap: 8px;
}

.modal-pay-btn img {
    width: 32px;
    height: 32px;
}
  /* Уменьшаем отступы между секциями */
.last-sign {
  margin-top: 40px;
}

/* Уменьшаем отступы внутри Hero */
.hero, .what-is-novatrend, .how-it-works, .pricing, .cta-block, footer {
  padding: 40px 0 0 0;
}

    /* Footer adjustments for mobile */
    .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
    }
    .footer-top .logo img {
    max-width: 250px; /* уменьшаем логотип */
    }
    .footer-top .nav-menu {
    flex-direction: column;
    gap: clamp(24px, 3vw, 100px);
    }
    .footer-top .nav-menu a {
    font-size: 18px;
    }
}

/* === 3. Mobile (414px и ниже) === */
@media (max-width: 414px) {
  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-text {
    font-size: 18px;
  }

  .btn-get-started,
  .nav-menu a {
    font-size: 16px;
  }

  .btn-hero,
  .btn-cta {
    font-size: 20px;
    padding: 10px 14px;
  }

  .balance-type-options,
  .currency-options {
    gap: 12px;
  }

  .balance-type-btn,
  .currency-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-section label {
    font-size: 16px;
  }

  .modal h2 {
    font-size: 24px;
  }
}

/* === Payment Method Options (стиль как у валюты) === */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center; /* Центрируем текст */
  padding: 10px 16px;
  background: #F0F0F0;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  color: #333;
  text-align: center; /* Центрируем текст */
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option.active,
.payment-option:hover {
  background: #53AC67;
  color: white;
  border-color: #53AC67;
}

@media (max-width: 768px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* === Loader Spinner === */
.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid rgba(83, 172, 103, 0.3);
  border-top: 4px solid #53AC67;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}