* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

:root {
  /* Light theme */
  --primary-color: #FF8C00 !important;
  --dark: #000000 !important;
  --true-blue: #00008b !important;
  --light-text: #ffffff !important;
  --background: #000000 !important;
  --card-bg: rgba(0, 0, 0, 0.2) !important;
  --card-border: rgba(255, 255, 255, 0.1) !important;
  --gradient-start: var(--true-blue) !important;
  --gradient-end: var(--dark) !important;
  --transition-standard: all 0.3s ease;
  --glass-border-radius: 1rem;
  --glass-padding: 2rem;
  --glass-hover-translate: -5px;
  --glass-hover-border: rgba(255, 255, 255, 0.2);
  --glass-hover-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 6px 20px 0 rgba(0, 0, 0, 0.3);
}

@property --hero-gradient-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 120deg;
}

@keyframes hero-gradient-rotate {
  from {
    --hero-gradient-angle: 120deg;
  }

  to {
    --hero-gradient-angle: 480deg;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.2);
    --card-border: rgba(0, 0, 0, 0.1);
    --gradient-start: #f0f0f0;
    --gradient-end: #ffffff;
  }
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  background: var(--background) !important;
  color: var(--light-text) !important;
  line-height: 1.6 !important;
  position: relative !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--gradient-angle, 135deg), var(--true-blue), var(--dark));
  z-index: -1;
  transition: background 0.1s linear;
}

header {
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.8rem 2rem !important;
  position: fixed !important;
  width: calc(100% - 4rem) !important;
  max-width: 1400px !important;
  top: 1rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1000 !important;
  transition: all 0.3s ease !important;
  border-radius: 10rem !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  top: 0.5rem;
}

.logo {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 2rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
  margin: 0;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  transition: transform 0.3s ease-in-out;
}

:is(.nav-links, .plan-features, .miniapp-features, .footer-section ul) {
  list-style: none;
  padding: 0;
}

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

.nav-links a.active::before {
  width: 100%;
}

.nav-links li {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
  display: block;
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  transform: translateZ(0);
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links .nav-cta {
  /* Base styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 44px;
  padding: 0;
  margin: 0;
  
  /* Border and background */
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 22px;
  
  /* Text styles */
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  
  /* Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
  
  /* Prevent size changes */
  box-sizing: border-box;
  flex-shrink: 0;
  
  /* Position for pseudo-element */
  position: relative;
  overflow: hidden;
  
  /* Add transition for transform */
  transition: var(--transition-standard);
  transform-origin: center;
}

/* Background fill effect */
.nav-links .nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}

/* Text container */
.nav-links .nav-cta span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  white-space: nowrap;
  padding: 0 24px;
  display: inline-block;
  text-align: center;
}

/* Hover states */
.nav-links .nav-cta:hover {
  transform: scale(1.02);
}

.nav-links .nav-cta:hover::after {
  transform: translateX(0);
}

.nav-links .nav-cta:hover span {
  color: var(--dark);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-left: auto !important;
  margin-right: 1rem !important;
}

.mobile-menu-btn span {
  width: 30px;
  height: 3px;
  background-color: var(--primary-color) !important;
  transition: var(--transition-standard);
  border-radius: 3px;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(32, 32, 64, 0.3) 0%, rgba(15, 15, 46, 0) 70%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  background: linear-gradient(45deg, var(--primary-color), #ff6600);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* фиксим обрезание текста в iOS Safari при градиентном тексте */
  color: transparent;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(255, 140, 0, 0.2);
}

.hero-content p {
  font-size: 1.4rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 500;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: nowrap;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  text-align: center;
  min-width: 200px;
  flex: 0 0 auto;
}

.stat i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(255, 140, 0, 0.2);
}

.stat-number-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 2px 10px rgba(255, 140, 0, 0.2);
}

.speed-container {
  gap: 0.2rem;
}

.support-container {
  gap: 0.1rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--light-text);
  opacity: 0.9;
  font-weight: 500;
}

.plans-container {
  position: relative;
  padding: 2rem 0;
  margin: 0;
  width: 100%;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-features {
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.plan-features li i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.plan-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--dark);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition-standard);
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: auto;
}

.plan-button:hover {
  background: #ff6600;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.plan.popular {
  border: 2px solid var(--primary-color) !important;
}

.plan h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.savings {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  background: rgba(0, 123, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 255, 0.2);
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.reviews-container {
  position: relative;
  padding: 1rem 0;
  margin: 0;
  width: 100%;
  overflow: visible;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.review {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 1rem;
  overflow: hidden;
  width: 300px;
  height: 200px;
}

.review-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  background-color: #1A222C;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card-border);
  cursor: pointer;
  transition: var(--transition-standard);
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.faq-item {
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item:hover {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-standard);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-answer {
  padding: 0 1.5rem;
  color: var(--light-text);
  opacity: 0.9;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.faq-item.active .faq-question {
  border-bottom: none;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 2rem 0;
  text-align: center;
  box-shadow: 0 -8px 32px 0 rgba(0, 0, 0, 0.37);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: left;
}

.footer-section p {
  margin-bottom: 0.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.footer-section ul {
  margin: 0;
  text-align: left;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  text-align: left;
  padding-left: 0;
}

.footer-section i {
  margin-right: 0.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.footer-section a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0;
}

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

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--card-border);
  margin: 0 -1rem;
  max-width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  color: var(--primary-color) !important;
  margin: 0;
  line-height: 1;
}

.hero-primary-button {
  --hero-gradient-angle: 120deg;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--dark);
  background: linear-gradient(var(--hero-gradient-angle, 120deg), var(--primary-color) 0%, #ff4000 100%);
  box-shadow: 0 12px 30px rgba(255, 140, 0, 0.35);
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 220px;
  white-space: nowrap;
  animation: hero-gradient-rotate 4.5s linear infinite;
  animation-play-state: paused;
}

.hero-primary-button span {
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

.hero-primary-button svg {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.hero-primary-button:hover {
  transform: translateY(-3px);
  animation-play-state: running;
}

.hero-primary-button:hover::after {
  opacity: 1;
}

.hero-primary-button:hover svg {
  transform: translateX(6px);
}

.hero-primary-button:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-primary-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
  animation-play-state: running;
}

.hero-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.6rem;
  border-radius: 999px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  min-width: 210px;
  white-space: nowrap;
}

.hero-secondary-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.hero-secondary-button:hover {
  background: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  color: var(--dark);
}

.hero-secondary-button:hover::after {
  transform: translateX(0);
}

.hero-secondary-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
}

.content-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 3rem;
  color: var(--light-text);
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), #ff6600);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 140, 0, 0.2);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.feature p {
  font-size: 1rem;
  color: var(--light-text);
  opacity: 0.9;
  margin: 0;
}

.speed-gif-card {
  padding: 0 !important;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 1.33rem) !important;
  max-width: calc(33.333% - 1.33rem) !important;
  display: flex !important;
  align-items: stretch !important;
  height: auto !important;
}

.speed-gif {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  flex: 1;
}

.features-row:last-of-type .feature:not(.speed-gif-card) {
  flex: 0 0 calc(66.667% - 0.67rem) !important;
  max-width: calc(66.667% - 0.67rem) !important;
}

.about-container {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.features-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.feature {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.about-text {
  width: 100%;
  box-sizing: border-box;
}

.about-text p {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Медиа-запрос для iPad Mini (1133x744) и планшетов в портретной ориентации */
@media (max-width: 1200px) and (min-width: 769px) {
  .features-row {
    flex-wrap: nowrap; /* Принудительно держим карточки в ряд */
  }
  
  .features-row:first-of-type .feature {
    flex: 1; /* Равномерное распределение ширины */
    min-width: 0; /* Позволяем карточкам сжиматься */
  }
  
  /* Дополнительные стили для карточек на iPad Mini */
  .features-row:first-of-type .feature h3 {
    font-size: 1.3rem; /* Немного уменьшаем размер заголовка */
    line-height: 1.3;
  }
  
  .features-row:first-of-type .feature p {
    font-size: 0.95rem; /* Немного уменьшаем размер текста */
    line-height: 1.5;
  }
  
  .features-row:last-of-type .speed-gif-card {
    flex: 0 0 calc(33.333% - 1.33rem) !important;
    max-width: calc(33.333% - 1.33rem) !important;
    display: flex !important;
    align-items: stretch !important;
    height: auto !important;
  }
  
  .features-row:last-of-type .feature:not(.speed-gif-card) {
    flex: 0 0 calc(66.667% - 0.67rem) !important;
    max-width: calc(66.667% - 0.67rem) !important;
  }
}

/* Медиа-запрос для iPad 13" и больших планшетов */
@media (max-width: 1400px) and (min-width: 1201px) {
  .features-row {
    flex-wrap: nowrap; /* Принудительно держим карточки в ряд */
  }
  
  .features-row:first-of-type .feature {
    flex: 1; /* Равномерное распределение ширины */
    min-width: 0; /* Позволяем карточкам сжиматься */
  }
  
  /* Дополнительные стили для карточек на iPad 13" */
  .features-row:first-of-type .feature h3 {
    font-size: 1.4rem; /* Оптимальный размер заголовка */
    line-height: 1.3;
  }
  
  .features-row:first-of-type .feature p {
    font-size: 1rem; /* Оптимальный размер текста */
    line-height: 1.5;
  }
  
  .features-row:last-of-type .speed-gif-card {
    flex: 0 0 calc(33.333% - 1.33rem) !important;
    max-width: calc(33.333% - 1.33rem) !important;
    display: flex !important;
    align-items: stretch !important;
    height: auto !important;
  }
  
  .features-row:last-of-type .feature:not(.speed-gif-card) {
    flex: 0 0 calc(66.667% - 0.67rem) !important;
    max-width: calc(66.667% - 0.67rem) !important;
  }
}

/* Дополнительный медиа-запрос для iPad Mini в ландшафтной ориентации */
@media (max-width: 1133px) and (min-width: 1024px) and (max-height: 800px) {
  .features-row:first-of-type {
    flex-wrap: nowrap !important;
  }
  
  .features-row:first-of-type .feature {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  .features-row:first-of-type .feature h3 {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
  }
  
  .features-row:first-of-type .feature p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  
  /* Отзывы в 3 столбца для iPad Mini */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.2rem !important;
  }
  
  .review {
    width: auto !important;
    height: 180px !important; /* Немного уменьшаем высоту для лучшего размещения */
  }
}

/* Дополнительный медиа-запрос для iPad 13" в ландшафтной ориентации */
@media (max-width: 1366px) and (min-width: 1201px) and (max-height: 1024px) {
  .features-row:first-of-type {
    flex-wrap: nowrap !important;
  }
  
  .features-row:first-of-type .feature {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  .features-row:first-of-type .feature h3 {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
  }
  
  .features-row:first-of-type .feature p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }
  
  /* Отзывы в 3 столбца для iPad 13" */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.3rem !important;
  }
  
  .review {
    width: auto !important;
    height: 190px !important; /* Немного уменьшаем высоту для лучшего размещения */
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem !important;
    width: auto !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    left: 1rem !important;
    right: 1rem !important;
    transform: none !important; /* remove transform to prevent fixed children from being bound and to allow proper backdrop-filter */
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: 1rem !important;
    z-index: 1002 !important;
    width: 30px;
    height: 24px;
    position: relative;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color) !important;
    transition: var(--transition-standard);
    border-radius: 3px;
    position: absolute;
    left: 0;
  }

  .mobile-menu-btn span:nth-child(1) {
    top: 0;
  }

  .mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-menu-btn span:nth-child(3) {
    bottom: 0;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }

  .nav-links {
    position: fixed !important;
    top: 70px !important;
    left: auto !important;
    right: -100% !important;
    width: 280px !important;
    /* Glass container look (reuse site variables) */
    background: var(--card-bg) !important;
    background-color: var(--card-bg) !important; /* ensure color declared for webkit */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--card-border) !important;
    background-clip: padding-box !important;
    will-change: backdrop-filter !important;
    isolation: isolate !important;
    border-radius: 1.5rem !important;
    padding: 1.5rem !important;
    flex-direction: column !important;
    align-items: center !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
    z-index: 1001 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.001 !important; /* keep element renderable for blur in Safari */
    pointer-events: none !important;
  }

  /* Glass backdrop via pseudo-element for better WebKit reliability */
  @supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
    .nav-links { background: transparent !important; }
    .nav-links::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 1.5rem !important;
      background: var(--card-bg) !important;
      background-color: var(--card-bg) !important;
      -webkit-backdrop-filter: blur(10px) !important;
      backdrop-filter: blur(10px) !important;
      border: 1px solid var(--card-border) !important;
      z-index: -1;
    }
  }

  .nav-links.active {
    right: 1rem !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav-links li {
    width: 100% !important;
    margin: 0.5rem 0 !important;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-standard);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links li:nth-child(5) { transition-delay: 0.5s; }
  .nav-links li:nth-child(6) { transition-delay: 0.6s; }

  .nav-links a {
    width: 100% !important;
    text-align: center !important;
    padding: 0.8rem 0 !important;
    font-size: 1.1rem !important;
    color: var(--light-text) !important;
    transition: var(--transition-standard) !important;
    border-radius: 1rem !important;
  }

  .nav-links a:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .nav-links .nav-cta {
    width: 100% !important;
    margin-top: 1rem !important;
    background: var(--primary-color) !important;
    color: var(--dark) !important;
    font-size: 1.1rem !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 1rem !important;
    transition: var(--transition-standard) !important;
    border: none !important;
  }

  .nav-links .nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lift) !important;
  }

  .logo {
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
  }

  .logo img {
    height: 32px;
  }

  .logo h1 {
    font-size: 1.8rem;
    text-align: left;
    margin: 0;
    line-height: 1;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .plans-container {
    padding: 5rem 0;
    margin: 0;
    width: 100%;
    overflow: visible;
  }

  .plans-grid {
    display: flex;
    gap: 2rem;
    padding: 1rem 1rem 4rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    position: relative;
  }

  .plans-grid::-webkit-scrollbar {
    display: none;
  }

  .plan {
    flex: 0 0 85%;
    min-width: 280px;
    scroll-snap-align: center;
    margin: 0;
    height: auto;
    transform: none;
    position: relative;
  }

  .plan:hover {
    transform: none;
  }

  .plan:first-child {
    margin-left: 0;
  }

  .plan:last-child {
    margin-right: 0;
  }

  .popular-badge {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    position: absolute;
    z-index: 2;
  }

  .plan-button {
    margin-top: 1.5rem;
  }

  .savings {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-stats {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2rem !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
  }

  .stat {
    min-width: 120px !important;
    flex: none !important;
  }

  .feature {
    padding: 1.5rem !important;
  }

  .speed-gif-card {
    padding: 0 !important;
  }

  .speed-gif {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 1rem !important;
  }

  /* Дополнительное правило для полной ширины карточки с анимацией */
  .features-row .speed-gif-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .content-section {
    padding: 4rem 1rem;
  }

  #plans.content-section,
  #reviews.content-section {
    padding: 4rem 0;
  }

  #plans .container,
  #reviews .container {
    padding: 0 1.5rem;
  }

  .content-section h2 {
    font-size: 2.5rem;
  }

  .about-text {
    padding: 2rem;
  }

  .about-text p {
    font-size: 1.1rem;
  }

  :root {
    font-size: 14px;
  }

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

  .footer-section h3,
  .footer-section ul,
  .footer-section ul li {
    text-align: left;
  }

  .footer-section ul {
    display: inline-block;
  }

  .about-container {
    gap: 1.5rem;
  }

  .features-row {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .features-row:first-of-type .feature {
    flex: 0 0 100%;
  }
  
  .features-row:last-of-type .speed-gif-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    min-width: 100% !important;
  }
  
  .features-row:last-of-type .feature:not(.speed-gif-card) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

.mb-4 { margin-bottom: 4rem; }

/* Общие стили для элементов со стеклянным эффектом */
:is(.plan, .feature, .about-text, .review, .faq-item, .glass-container) {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--glass-border-radius);
}

:is(.plan, .feature, .about-text, .glass-container) {
  padding: var(--glass-padding);
}

:is(.plan, .feature, .about-text, .review, .faq-item) {
  transition: var(--transition-standard);
}

:is(.plan, .feature, .about-text, .review) {
  transform: translateY(0);
  will-change: transform;
}

:is(.plan, .feature, .about-text, .review):hover {
  transform: translateY(var(--glass-hover-translate));
  border-color: var(--glass-hover-border);
  box-shadow: var(--glass-hover-shadow);
}

@media (max-width: 768px) {
  :is(.plan, .feature, .about-text, .review):hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .gradient-bg,
  .mobile-menu-btn,
  .hero-primary-button,
  .hero-secondary-button,
  .nav-cta {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: none;
    color: black;
  }
}

#plans .container {
  max-width: 100%;
  padding: 0 1.5rem;
  overflow: visible;
}

/* Медиа-запрос для планшетов — отзывы в 3 столбца */
@media (max-width: 1400px) and (min-width: 769px) {
  .reviews-grid {
    max-width: 1200px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Немного уменьшаем отступы для лучшего размещения */
  }
  
  .review {
    width: auto; /* Убираем фиксированную ширину */
    height: 200px; /* Сохраняем высоту */
  }
}

@media (max-width: 768px) {
  #reviews .container {
    padding: 0 1.5rem;
    margin: 0;
    max-width: 100%;
  }

  .reviews-container {
    padding: 1rem 0;
    margin: 0;
    width: 100%;
  }

  .reviews-grid {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1rem 2rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
  }

  .reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .review {
    flex: 0 0 85%;
    min-width: 280px;
    scroll-snap-align: center;
    margin: 0;
    height: 200px;
    width: 280px;
    transform: none;
  }

  .review:hover {
    transform: none;
  }

  .review:first-child {
    margin-left: 0;
  }

  .review:last-child {
    margin-right: 0;
  }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  width: 100%;
}

.hero-content > .hero-buttons:first-of-type {
  margin-top: clamp(1.5rem, 5.5vh, 4rem);
  margin-bottom: clamp(8rem, 20vh, 18rem); /* минимальный десктопный зазор, чтобы метрики оставались ниже фолда */
}

.hero-content .lead {
  margin-bottom: 3rem;
}

.hero-buttons:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  /* Верхний отступ заголовка на мобилках */
  .hero-content h1 {
    margin-top: 8rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-content .lead {
    padding-bottom: 0;
    margin-bottom: clamp(3rem, 8vh, 5rem) !important;
  }

  .hero-content > .hero-buttons:first-of-type {
    margin-top: clamp(1.5rem, 5vh, 3.5rem) !important;
    margin-bottom: clamp(10rem, 34vh, 18rem) !important; /* мобильный запас: метрики удерживаем ниже первого экрана */
  }
  
  .hero-buttons .hero-primary-button,
  .hero-buttons .hero-secondary-button {
    width: 100%;
    max-width: 360px; /* немного шире, чтобы текст не переносился */
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
    white-space: nowrap;
  }

  /* Делаем текст кнопки «Попробовать бесплатно» крупнее на мобилках */
  .hero-buttons .hero-primary-button {
    font-size: 1.2rem;
  }
}

/* Точечные правки для самых узких экранов */
@media (max-width: 480px) {
  :root {
    font-size: 13px;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 3rem;
    padding-right: 0.12em; /* небольшой запас справа, чтобы не обрезались последние символы */
    overflow: visible; /* явно разрешаем выход теней за границы */
    word-wrap: normal;       /* не разбиваем слова */
    overflow-wrap: normal;   /* переносим только по пробелам */
    hyphens: none;           /* отключаем переносы с дефисом */
  }

  .hero-buttons .hero-primary-button,
  .hero-buttons .hero-secondary-button {
    font-size: 0.95rem;
    padding: 1rem 1.6rem;
  }

  .hero-buttons .hero-primary-button {
    font-size: 1.1rem;
  }
}

/* Более узкие экраны имеют приоритетные настройки */
/* Расширяем полезную ширину и включаем безопасные переносы на мобилках */
@media (max-width: 768px) {
  .hero-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 1.5rem;
  }
}

.miniapp-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  max-width: 1100px;
}

.miniapp-media {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1 1 0;
  justify-content: center;
}

.miniapp-timer {
  --timer-progress: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  text-align: left;
  color: var(--light-text);
  max-width: 420px;
  width: 100%;
}

.timer-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.timer-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.timer-caption {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.timer-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  min-width: 5ch;
  text-align: right;
}

.timer-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.timer-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(61, 255, 176, 0.18);
  overflow: hidden;
}

.timer-progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(61, 255, 176, 0.2) 0%, rgba(61, 255, 176, 0.85) 50%, rgba(61, 255, 176, 1) 100%);
  transform-origin: left center;
  transform: scaleX(var(--timer-progress));
  transition: transform 0.06s linear;
}

.miniapp-video-wrapper {
  flex: 0 1 360px;
  width: clamp(300px, 28vw, 360px);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  position: relative;
  background: rgba(255, 255, 255, 0.04);
}

.miniapp-video-wrapper::before {
  content: '';
  display: block;
  padding-top: 207.7922078%; /* 1280 / 616 * 100 */
}

.miniapp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  background: #000;
}

@media (max-width: 1024px) {
  .miniapp-container {
    gap: 2rem;
  }

  .miniapp-video-wrapper {
    flex: 0 1 280px;
    width: clamp(240px, 30vw, 300px);
  }

  .miniapp-description {
    max-width: 420px;
  }
}

.miniapp-description {
  flex: 1 1 420px;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.miniapp-features {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.miniapp-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--light-text);
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 500;
  opacity: 0.9;
}

.miniapp-features li i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .miniapp-container {
    flex-direction: column;
    align-items: center;
  }

  .miniapp-media,
  .miniapp-description {
    flex: 1 1 100%;
  }

  .miniapp-media {
    flex-direction: column;
    gap: 1.5rem;
  }

  .miniapp-video-wrapper {
    flex: 0 0 auto;
    width: clamp(220px, 60vw, 280px);
    margin: 0 auto;
  }

  .miniapp-description {
    max-width: none;
    align-items: center;
  }

  .miniapp-timer {
    max-width: none;
  }

}

@media (max-width: 480px) {
  .miniapp-video-wrapper {
    width: clamp(190px, 88vw, 240px);
  }
}
