:root {
  --bg: #060814;
  --bg-soft: #0a1020;
  --surface: rgba(11, 16, 31, 0.78);
  --surface-strong: rgba(13, 18, 35, 0.94);
  --surface-light: rgba(255, 255, 255, 0.05);
  --text: #f7f8ff;
  --muted: #aeb8d1;
  --faint: #7b86a5;
  --primary: #7c5cff;
  --primary-2: #19a0ff;
  --primary-hover: #8d72ff;
  --accent: #53e2ff;
  --success: #2ee59d;
  --warning: #ffcb57;
  --danger: #ff6f91;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.24);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 34px;
  --container: 1220px;
  --header-height: 82px;
  --gradient-main: linear-gradient(135deg, #6b5cff 0%, #16a3ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(107, 92, 255, 0.18), rgba(22, 163, 255, 0.14));
  --glass: blur(18px);
}

html[data-theme="light"] {
  --bg: #f4f7ff;
  --bg-soft: #ebf1ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-light: rgba(18, 28, 56, 0.05);
  --text: #0f1529;
  --muted: #59647f;
  --faint: #7d87a0;
  --primary: #6b5cff;
  --primary-2: #0e92f4;
  --primary-hover: #5c4ef0;
  --accent: #0aa6d7;
  --success: #149f64;
  --warning: #d3941a;
  --danger: #db4760;
  --border: rgba(17, 24, 39, 0.08);
  --border-strong: rgba(17, 24, 39, 0.14);
  --shadow: 0 22px 60px rgba(43, 56, 93, 0.12);
  --shadow-soft: 0 16px 34px rgba(43, 56, 93, 0.09);
  --gradient-main: linear-gradient(135deg, #6b5cff 0%, #0e92f4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(107, 92, 255, 0.12), rgba(14, 146, 244, 0.1));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(107, 92, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(22, 163, 255, 0.12), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at 20% 20%, rgba(107, 92, 255, 0.05), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(22, 163, 255, 0.05), transparent 22%);
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-light);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(107, 92, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(107, 92, 255, 0.14);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: #ffffff;
  color: #000000;
  padding: 12px 16px;
  border-radius: 12px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass);
  background: rgba(6, 8, 20, 0.68);
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .site-header {
  background: rgba(244, 247, 255, 0.72);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.language-switcher {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  backdrop-filter: var(--glass);
}

.theme-toggle {
  width: 46px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.language-switcher {
  padding-inline: 14px;
}

.hero,
.features,
.gallery,
.offer-panel,
.rating-section,
.faq {
  padding: 90px 0;
}

.hero {
  padding-top: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 42px;
  align-items: center;
}

.hero-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(107, 92, 255, 0.26);
  background: rgba(107, 92, 255, 0.12);
  color: #c8bbff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[data-theme="light"] .hero-badge,
html[data-theme="light"] .section-eyebrow {
  color: #5a49ff;
  background: rgba(107, 92, 255, 0.09);
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-text,
.section-text,
.feature-card p,
.offer-copy p,
.mini-info-card p,
.form-head p,
.faq-item p,
.trust-copy span,
.summary-caption,
.preview-note {
  color: var(--muted);
}

.hero-text {
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow-soft);
}

.pill-icon,
.feature-icon,
.mini-emoji {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.pill-icon {
  width: 22px;
  height: 22px;
}

.pill-svg,
.feature-svg,
.mini-svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: url(#none);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-pill .pill-icon,
.feature-icon,
.mini-emoji {
  color: #8a73ff;
}

.hero-buttons,
.offer-actions,
.modal-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--gradient-main);
  box-shadow: 0 18px 38px rgba(80, 98, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 46px rgba(80, 98, 255, 0.34);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-lg {
  min-height: 56px;
  padding-inline: 26px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.trust-strip {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
}

.trust-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rating-value,
.summary-big-number {
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rating-value {
  font-size: 1.35rem;
}

.summary-big-number {
  font-size: clamp(3rem, 8vw, 4.8rem);
}

.rating-stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  letter-spacing: 0.18em;
}

.stars-base,
.stars-fill {
  display: block;
  font-family: Arial, sans-serif;
}

.stars-base {
  color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .stars-base {
  color: rgba(20, 30, 60, 0.14);
}

.stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #31e49c;
}

.rating-stars-summary {
  font-size: 1rem;
}

.rating-stars-large {
  font-size: 1.3rem;
}

.rating-stars-preview {
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
}

.hero-screen-frame {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(107, 92, 255, 0.2), rgba(22, 163, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-screen-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  background: rgba(7, 10, 20, 0.4);
  pointer-events: none;
}

html[data-theme="light"] .hero-screen-frame::before {
  background: rgba(255, 255, 255, 0.18);
}

.hero-screen-frame img {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  aspect-ratio: 16 / 10.8;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-grid,
.preview-grid,
.rating-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.preview-card,
.offer-card,
.mini-info-card,
.rating-summary-card,
.rating-form-card,
.faq-item,
.offer-modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 24px;
  border-radius: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover,
.preview-card:hover,
.mini-info-card:hover,
.rating-summary-card:hover,
.rating-form-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--gradient-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.feature-svg,
.mini-svg {
  width: 24px;
  height: 24px;
}

.feature-card h3,
.mini-info-card strong,
.form-head h3 {
  margin: 0 0 10px;
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 100%;
}

.preview-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.preview-card:hover img {
  transform: scale(1.05);
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
}

.preview-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

.preview-overlay span {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.offer-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(107, 92, 255, 0.11), rgba(22, 163, 255, 0.08)),
    var(--surface);
}

.offer-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.offer-side {
  display: grid;
  gap: 16px;
}

.mini-info-card {
  padding: 18px;
  border-radius: 22px;
}

.mini-emoji {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--gradient-soft);
}

.rating-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.rating-summary-card,
.rating-form-card {
  padding: 28px;
  border-radius: 28px;
}

.rating-summary-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.summary-stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 0.95rem;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

html[data-theme="light"] .bar {
  background: rgba(17, 24, 39, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-main);
}

.form-head {
  margin-bottom: 22px;
}

.comment-form {
  display: grid;
  gap: 18px;
}

.form-row label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.star-rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.star-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-light);
  color: #a3adca;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.star-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 229, 157, 0.32);
}

.star-btn.is-active {
  color: #2ee59d;
  border-color: rgba(46, 229, 157, 0.38);
  background: rgba(46, 229, 157, 0.08);
}

.form-actions {
  margin-top: 4px;
}

.my-comment-preview {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.my-comment-preview > strong {
  display: inline-block;
  margin-bottom: 14px;
}

.my-comment-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

html[data-theme="light"] .my-comment-card {
  background: rgba(17, 24, 39, 0.025);
}

.preview-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.preview-note {
  font-size: 0.95rem;
}

#previewCommentText {
  margin: 14px 0 0;
  color: var(--muted);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 22px;
  padding: 0 22px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 0 20px;
  margin: 0;
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand-logo {
  width: auto;
  height: 44px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 42ch;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.offer-modal.is-open {
  display: block;
}

.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
}

.offer-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 520px);
  margin: 10vh auto 0;
  padding: 26px;
  border-radius: 26px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
}

.modal-text {
  margin: 0 0 20px;
  color: var(--muted);
}

.status-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.status-warning {
  background: rgba(255, 203, 87, 0.08);
  border-color: rgba(255, 203, 87, 0.2);
}

.status-box strong {
  display: block;
  margin-bottom: 6px;
}

.status-box p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .offer-card,
html[dir="rtl"] .rating-grid,
html[dir="rtl"] .footer-inner {
  direction: rtl;
}

html[dir="rtl"] .faq-item summary::after {
  right: auto;
  left: 0;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 12px;
}

@media (max-width: 1150px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .offer-card,
  .rating-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero,
  .features,
  .gallery,
  .offer-panel,
  .rating-section,
  .faq {
    padding: 72px 0;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo {
    height: 40px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .hero-buttons,
  .offer-actions,
  .form-actions,
  .modal-actions {
    flex-direction: column;
  }

  .btn,
  .btn-lg {
    width: 100%;
  }

  .trust-strip,
  .rating-summary-top,
  .preview-top-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .highlight-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .offer-card,
  .rating-summary-card,
  .rating-form-card,
  .offer-modal-panel {
    padding: 22px;
  }

  .star-rating-input {
    gap: 8px;
  }

  .star-btn {
    width: 44px;
    height: 44px;
  }

  .bar-row {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }
}