:root {
  --bg: #07111f;
  --bg-elevated: rgba(11, 22, 39, 0.76);
  --surface: rgba(14, 27, 48, 0.72);
  --surface-strong: rgba(18, 35, 62, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f8fc;
  --muted: rgba(232, 239, 250, 0.72);
  --heading: #ffffff;
  --accent: #7c9fff;
  --accent-2: #6be4bf;
  --accent-3: #f6b86c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1200px;
  --nav-height: 84px;
}

html[data-theme="light"] {
  --bg: #eef3fb;
  --bg-elevated: rgba(255, 255, 255, 0.76);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(10, 22, 40, 0.04);
  --border: rgba(10, 22, 40, 0.08);
  --border-strong: rgba(10, 22, 40, 0.14);
  --text: #0c1730;
  --muted: rgba(12, 23, 48, 0.72);
  --heading: #061224;
  --accent: #325dff;
  --accent-2: #179874;
  --accent-3: #d48829;
  --shadow: 0 24px 70px rgba(24, 39, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 12%, rgba(124, 159, 255, 0.18), transparent 0 28%),
    radial-gradient(circle at 84% 18%, rgba(107, 228, 191, 0.14), transparent 0 26%),
    radial-gradient(circle at 50% 85%, rgba(246, 184, 108, 0.1), transparent 0 20%),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

body.page-transition {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  position: relative;
}

.section {
  padding: 88px 0;
}

.section-compact {
  padding: 60px 0 88px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  color: var(--heading);
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.page-blur {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.page-blur::before,
.page-blur::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
}

.page-blur::before {
  top: 120px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: rgba(124, 159, 255, 0.22);
}

.page-blur::after {
  right: -110px;
  top: 280px;
  width: 320px;
  height: 320px;
  background: rgba(107, 228, 191, 0.16);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.nav-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(66, 99, 214, 0.34);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.72;
}

.nav-link:hover,
.nav-link.active {
  color: var(--heading);
  background: var(--surface-soft);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.theme-switch .icon {
  font-size: 15px;
  line-height: 1;
  opacity: 0.75;
}

.switch {
  position: relative;
  width: 50px;
  height: 28px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.28s ease;
  cursor: pointer;
}

html[data-theme="light"] .slider {
  background: rgba(13, 22, 36, 0.08);
  box-shadow: inset 0 0 0 1px rgba(13, 22, 36, 0.08);
}

.slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dce7ff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s ease;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, rgba(50, 93, 255, 0.82), rgba(23, 152, 116, 0.82));
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.btn,
.button-like {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 52px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
  cursor: pointer;
  will-change: transform;
}

.btn .magnetic-inner,
.button-like .magnetic-inner {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  transition: transform 0.24s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 40px rgba(59, 93, 212, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 24px 46px rgba(59, 93, 212, 0.34);
}

.btn-secondary {
  color: var(--heading);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.nav-cta,
.support-link {
  min-height: 48px;
  padding-inline: 20px;
  color: var(--heading);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--border);
}

.nav-cta:hover,
.support-link:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--heading);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle::before {
  transform: translateY(-6px);
}

.nav-toggle::after {
  transform: translateY(4px);
}

.nav-open .nav-toggle span {
  opacity: 0;
}

.nav-open .nav-toggle::before {
  transform: translateY(2px) rotate(45deg);
}

.nav-open .nav-toggle::after {
  transform: translateY(0) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 96px 0 38px;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.glass-card,
.feature-card,
.story-card,
.stats-card,
.contact-card,
.cabinet-card,
.timeline-card,
.auth-card,
.pricing-card,
.value-card,
.faq-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 52px;
  min-height: 620px;
}

.hero-card::before,
.glass-card::before,
.feature-card::before,
.story-card::before,
.stats-card::before,
.contact-card::before,
.cabinet-card::before,
.timeline-card::before,
.auth-card::before,
.pricing-card::before,
.value-card::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), transparent 38%);
  opacity: 0.7;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124,159,255,0.22), transparent 70%);
  filter: blur(2px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="light"] .hero-badge {
  background: rgba(12, 23, 48, 0.04);
  border-color: rgba(12, 23, 48, 0.08);
}

.hero-title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--heading);
}

.hero-title span {
  color: var(--accent-2);
}

.hero-subtitle {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.hero-stat {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

html[data-theme="light"] .hero-stat {
  background: rgba(12, 23, 48, 0.04);
  border-color: rgba(12, 23, 48, 0.06);
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--heading);
}

.hero-stat span {
  color: var(--muted);
  font-size: 14px;
}

.hero-side {
  display: grid;
  gap: 22px;
}

.hero-preview {
  padding: 30px;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.preview-head h3,
.preview-panel h3,
.feature-card h3,
.story-card h3,
.contact-card h3,
.cabinet-card h3,
.auth-card h3,
.timeline-card h3,
.pricing-card h3,
.value-card h3,
.faq-item h3 {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.preview-pill,
.card-pill,
.support-pill,
.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-list,
.timeline-list,
.contact-list,
.cabinet-list,
.feature-list,
.value-list,
.footer-links,
.meta-list {
  display: grid;
  gap: 14px;
}

.preview-item,
.timeline-entry,
.contact-row,
.cabinet-row,
.value-item,
.faq-answer,
.step-card,
.support-card,
.pricing-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.preview-item::before,
.timeline-entry::before,
.contact-row::before,
.cabinet-row::before,
.value-item::before,
.pricing-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(124, 159, 255, 0.1);
}

.preview-panel {
  padding: 28px 30px;
}

.hero-shell-refined {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: start;
}

.hero-side-refined {
  align-content: start;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.hero-point {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

html[data-theme="light"] .hero-point {
  background: rgba(12, 23, 48, 0.04);
  border-color: rgba(12, 23, 48, 0.06);
}

.hero-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--heading);
}

.hero-point span {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  min-height: 0;
}

.hero-preview,
.preview-panel {
  min-height: 0;
}

.preview-panel p,
.contact-card p,
.cabinet-card p,
.auth-card p,
.timeline-card p,
.pricing-card p,
.value-card p,
.faq-answer,
.story-card p,
.feature-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.value-card,
.feature-card,
.story-card,
.stats-card,
.pricing-card,
.contact-card,
.cabinet-card,
.timeline-card,
.auth-card,
.faq-item {
  padding: 28px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stats-card strong {
  display: block;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--heading);
}

.stats-card span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.story-card-large {
  min-height: 100%;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.step-card {
  padding: 26px 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.step-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.step-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.support-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 84%, transparent), color-mix(in srgb, var(--surface) 86%, transparent));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.support-card h3 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.1;
  color: var(--heading);
}

.support-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.support-card .hero-actions {
  margin-top: 28px;
}

.footer {
  padding: 32px 0 48px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
}

.footer-brand-text {
  color: var(--muted);
  max-width: 520px;
  font-size: 15px;
}

.footer-links {
  grid-auto-flow: column;
  align-items: center;
  gap: 14px;
}

.footer-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--heading);
}

.page-hero {
  padding: 64px 0 10px;
}

.page-hero-card {
  padding: 40px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.input,
.textarea,
.select,
.file-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  color: var(--text);
  outline: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 90%, transparent);
}

.input:focus,
.textarea:focus,
.select:focus,
.file-input:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 0 0 4px rgba(124, 159, 255, 0.12);
}

.textarea {
  resize: vertical;
  min-height: 150px;
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
}

.auth-layout,
.contact-layout,
.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.entries-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.entry-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.entry-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,159,255,0.22), rgba(107,228,191,0.18));
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entry-title {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.entry-text {
  margin: 12px 0 0;
  color: var(--muted);
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.empty-state {
  padding: 40px 24px;
  border-radius: 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.inline-stat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.inline-stat .mini-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.mini-card strong {
  display: block;
  color: var(--heading);
  font-size: 22px;
  line-height: 1;
}

.mini-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  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; }

.page-fade {
  animation: pageFade 0.48s ease both;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1120px) {
  .hero-shell,
  .story-grid,
  .auth-layout,
  .contact-layout,
  .cabinet-layout,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .stats-row,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 960px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-center {
    display: none;
    width: 100%;
    order: 4;
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-open .nav-center {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: left;
  }

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

  .hero-card,
  .page-hero-card,
  .support-card,
  .value-card,
  .feature-card,
  .story-card,
  .stats-card,
  .contact-card,
  .cabinet-card,
  .timeline-card,
  .auth-card,
  .pricing-card,
  .faq-item {
    padding: 28px;
  }

  .hero-stats,
  .hero-points,
  .grid-2,
  .form-grid,
  .steps-grid,
  .stats-row,
  .grid-3,
  .inline-stat {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    grid-auto-flow: row;
  }
}
@media (max-width: 720px) {
  :root {
    --nav-height: 76px;
  }
  .container {
    width: min(var(--container), calc(100% - 22px));
  }
  .hero {
    padding-top: 34px;
  }
  .hero-card {
    padding: 24px;
  }
  .hero-points {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: clamp(34px, 11vw, 52px);
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .page-meta,
  .hero-actions,
  .nav-right {
    gap: 10px;
  }
  .theme-switch {
    padding: 8px 10px;
  }
  .entry-card {
    grid-template-columns: 1fr;
  }
  .entry-media {
    aspect-ratio: 1.4 / 1;
  }
}
.hero-stack-refined {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-main-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  border-radius: 36px;
  padding: 52px 52px 40px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}
.hero-copy-wide {
  max-width: 100%;
}
.hero-title-wide {
  max-width: 980px;
  margin-bottom: 24px;
}
.hero-title-wide span {
  display: block;
}
.hero-subtitle-wide {
  max-width: 860px;
  margin-bottom: 32px;
}
.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.hero-bottom-grid .hero-preview,
.hero-bottom-grid .preview-panel {
  min-height: 100%;
}
.hero-points-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.hero-points-grid .hero-point {
  min-height: 100%;
}
@media (max-width: 1200px) {
  .hero-main-card {
    padding: 44px 36px 34px;
  }
  .hero-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-points-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .hero-main-card {
    padding: 32px 22px 26px;
    border-radius: 28px;
  }
  .hero-bottom-grid {
    grid-template-columns: 1fr;
  }
  .hero-points-grid {
    grid-template-columns: 1fr;
  }
  .hero-title-wide,
  .hero-subtitle-wide {
    max-width: 100%;
  }
}