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

:root {
  --text-dark: #1d2430;
  --text-muted: #5a6372;
  --surface-light: #f8f9fb;
  --surface-muted: #f1f3f7;
  --surface-white: #ffffff;
  --surface-card: #ffffff;
  --border-soft: rgba(15, 23, 42, 0.14);
  --brand-red: #2d6bea; /* primary brand blue */
  --brand-red-hover: #2758b7;
  --hero-overlay: rgba(5, 10, 18, 0.16);
  --outline-text: #1f2937;
  --outline-border: rgba(15, 23, 42, 0.28);
  --outline-border-hover: rgba(15, 23, 42, 0.42);
  --learn-border: rgba(15, 23, 42, 0.26);
  --learn-text: #1f2937;
  --learn-hover-bg: rgba(15, 23, 42, 0.06);
  --legal-text: rgba(15, 23, 42, 0.62);
  --partner-copy: rgba(15, 23, 42, 0.9);
  --footer-bg: #f5f7fb;
  --footer-border: rgba(15, 23, 42, 0.14);
  --footer-text: #637084;
  --modal-overlay: rgba(12, 16, 24, 0.5);
  --modal-bg: #ffffff;
  --modal-border: rgba(15, 23, 42, 0.16);
  --modal-close: rgba(45, 55, 72, 0.8);
  --modal-title: #101828;
  --modal-text: #344054;
  --main-cover-pill-bg: rgba(15, 23, 42, 0.06);
  --main-cover-pill-border: rgba(15, 23, 42, 0.2);
  --main-cover-pill-text: #253041;
  --main-cover-item-bg: rgba(15, 23, 42, 0.03);
  --main-cover-item-border: rgba(15, 23, 42, 0.14);
  --main-cover-item-title: #111827;
  --faq-card-bg: #f8f9fb;
  --faq-answer-bg: #f5f6f8;
  --faq-border-soft: rgba(15, 23, 42, 0.1);
  --faq-hover-bg: #f2f4f7;
  --faq-open-bg: #eef2f6;
  --faq-question-text: #4b5565;
  --faq-answer-text: #667085;
  --faq-chevron: #98a2b3;
  --main-cover-icon-bg: rgba(15, 23, 42, 0.08);
  --main-cover-icon-border: rgba(15, 23, 42, 0.2);
  --main-cover-exclusion-bg: rgba(15, 23, 42, 0.03);
  --main-cover-exclusion-border: rgba(15, 23, 42, 0.14);
  --partner-liva: #e5761b;
  --partner-beloy: #1f2735;
  --partner-petra: #315b95;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--surface-white);
  color: var(--text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 100% - 96px);
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(8, 12, 18, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  height: 28px;
  flex: 0 0 auto;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link-claim {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 9px 14px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(12, 18, 28, 0.52);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.language-toggle {
  position: relative;
  flex: 0 0 auto;
}

.language-btn {
  background: rgba(12, 18, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-radius: 4px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.language-caret {
  font-size: 10px;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  border-radius: 6px;
  border: 1px solid #2a3444;
  background: #0f1724;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
  z-index: 1001;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  width: 100%;
  border: none;
  color: #ffffff;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.language-option:hover,
.language-option.active {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--hero-overlay), rgba(0, 0, 0, 0.13)),
    url("img/heroimage.png") center/cover no-repeat;
  color: #ffffff;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 20, 0.68) 0%,
    rgba(6, 12, 20, 0.42) 26%,
    rgba(6, 12, 20, 0.1) 56%
  );
  pointer-events: none;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-top: 156px;
  padding-bottom: 112px;
  position: relative;
  z-index: 1;
}

.hero-main {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.4px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-meta strong {
  font-size: 14px;
  letter-spacing: 0.4px;
}

.meta-separator {
  opacity: 0.7;
}

.hero-actions {
  margin-top: 44px;
}

#hero-cta-quote {
  min-width: 188px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  position: relative;
  top: -52px;
}

.hero-scroll-hint {
  margin-top: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 52px;
  display: flex;
  justify-content: center;
}

.hero-scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hero-scroll-indicator:hover {
  opacity: 1;
  transform: translateY(1px);
}

.scroll-arrow {
  width: 13px;
  height: 13px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
  animation: arrow-vertical 1.4s ease-in-out infinite;
}

@keyframes arrow-vertical {
  0% {
    transform: translateY(-3px) rotate(45deg);
  }
  50% {
    transform: translateY(3px) rotate(45deg);
  }
  100% {
    transform: translateY(-3px) rotate(45deg);
  }
}

/* General buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 4px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--brand-red);
  border: 1px solid var(--brand-red);
}

.btn-primary:hover {
  background: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  box-shadow: 0 8px 20px rgba(45, 107, 234, 0.35);
}

.btn-outline {
  color: var(--outline-text);
  background: transparent;
  border: 1px solid var(--outline-border);
}

.btn-outline:hover {
  border-color: var(--outline-border-hover);
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--learn-border);
  color: var(--learn-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  padding: 8px 16px;
  background: transparent;
  margin-top: 18px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.learn-more-btn:hover {
  border-color: var(--outline-border-hover);
  background-color: var(--learn-hover-bg);
}

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

.benefit-actions .learn-more-btn {
  margin-top: 0;
}

.learn-more-btn-quote {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

.learn-more-btn-quote:hover {
  background: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
}

/* Sections */
.section {
  padding: 128px 0;
}

#benefits-section {
  scroll-margin-top: 140px;
}

#benefits-section .section-title {
  font-size: clamp(28px, 2.6vw, 38px);
}

.section-light {
  background: var(--surface-light);
}

.section-muted {
  background: var(--surface-muted);
}

.section-white {
  background: var(--surface-white);
}

.section-title {
  text-align: center;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.22;
  margin-bottom: 72px;
}

/* Benefits */
.benefits-list {
  display: grid;
  gap: 152px;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 88px;
}

.benefit-copy {
  max-width: 480px;
}

.benefit-row-reverse .benefit-copy {
  order: 2;
}

.benefit-row-reverse .benefit-image {
  order: 1;
}

.benefit-copy h3 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.24px;
  margin-bottom: 18px;
  font-weight: 500;
}

.benefit-copy p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 480px;
}

.benefit-image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.benefit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits-legal {
  margin-top: 56px;
  text-align: center;
  font-size: 12px;
  color: var(--legal-text);
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.why-copy {
  max-width: 500px;
}

.why-copy h3 {
  font-size: 24px;
  line-height: 1.32;
  margin-bottom: 18px;
  font-weight: 500;
}

.why-copy p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.why-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-actions {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Partnership */
.partnership .section-title {
  margin-bottom: 56px;
}

.partner-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 40px 28px;
}

.partner-placeholder {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.partner-logo-wrap {
  width: 152px;
  height: 42px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.partner-logo {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
}

.partner-logo-liva {
  transform: scale(0.9);
}

.partner-logo-beloy {
  transform: scale(0.9);
}

.partner-logo-petra {
  transform: scale(2.25);
}

.partner-liva {
  color: var(--partner-liva);
}

.partner-beloy {
  color: var(--partner-beloy);
}

.partner-petra {
  color: var(--partner-petra);
}

.partner-card p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--partner-copy);
  white-space: pre-line;
  text-align: justify;
  text-justify: inter-word;
}

/* Footer */
.footer {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  padding: 30px 0;
}

.footer-regulatory {
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--footer-text);
}

/* Drawer */
body.drawer-open {
  overflow: hidden;
}

.drawer {
  position: fixed;
  z-index: 2000;
  inset: 0;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(860px, calc(100vw - 80px));
  max-width: 100%;
  height: 100%;
  background: var(--modal-bg);
  border-left: 1px solid var(--modal-border);
  box-shadow: -24px 0 50px rgba(0, 0, 0, 0.26);
  padding: 34px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease, opacity 0.18s ease;
  outline: none;
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

@media (min-width: 769px) {
  .drawer[data-drawer-side="right"] .drawer-panel {
    right: 0;
    left: auto;
    border-left: 1px solid var(--modal-border);
    border-right: none;
    box-shadow: -24px 0 50px rgba(0, 0, 0, 0.26);
    transform: translateX(100%);
  }

  .drawer[data-drawer-side="left"] .drawer-panel {
    left: 0;
    right: auto;
    border-left: none;
    border-right: 1px solid var(--modal-border);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.26);
    transform: translateX(-100%);
  }

  .drawer[data-drawer-side="right"].is-open .drawer-panel,
  .drawer[data-drawer-side="left"].is-open .drawer-panel {
    transform: translateX(0);
  }

  .drawer[data-drawer-side="left"] .drawer-close {
    right: auto;
    left: 16px;
  }

  .drawer[data-drawer-side="right"] .drawer-close {
    right: 16px;
    left: auto;
  }
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--modal-close);
  cursor: pointer;
}

#drawer-title {
  font-size: 26px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--modal-title);
  transition: opacity 0.18s ease;
}

#drawer-body {
  color: var(--modal-text);
  line-height: 1.75;
  font-size: 14px;
  transition: opacity 0.18s ease;
}

.drawer.is-language-switching .drawer-panel {
  opacity: 0;
}

#drawer-body p {
  margin-bottom: 12px;
}

#drawer-body .faq-accordion {
  display: grid;
  gap: 12px;
}

#drawer-body .faq-item {
  border: 1px solid var(--faq-border-soft);
  background: var(--faq-card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

#drawer-body .faq-item:hover {
  border-color: var(--main-cover-item-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

#drawer-body .faq-item.is-open {
  border-color: var(--main-cover-item-border);
  background: var(--faq-open-bg);
}

#drawer-body .faq-question {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--faq-question-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  padding: 15px 50px 15px 18px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.22s ease, color 0.22s ease;
}

#drawer-body .faq-question:hover {
  background: var(--faq-hover-bg);
}

#drawer-body .faq-question:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: -2px;
}

#drawer-body .faq-question::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faq-chevron);
  border-bottom: 2px solid var(--faq-chevron);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.28s ease, border-color 0.22s ease;
}

#drawer-body .faq-item.is-open .faq-question::after {
  transform: translateY(-40%) rotate(-135deg);
  border-color: var(--faq-question-text);
}

#drawer-body .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  color: var(--faq-answer-text);
  background: var(--faq-answer-bg);
  border-top: 1px solid transparent;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, border-color 0.22s ease;
}

#drawer-body .faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top: 1px solid var(--faq-border-soft);
}

#drawer-body .faq-answer-inner {
  overflow: hidden;
  padding: 0 18px;
  transition: padding 0.24s ease;
}

#drawer-body .faq-item.is-open .faq-answer-inner {
  padding: 12px 18px 16px;
}

#drawer-body .faq-answer p:last-child {
  margin-bottom: 0;
}

#drawer-body .faq-answer ul {
  margin: 10px 0 12px 18px;
  display: grid;
  gap: 6px;
}

#drawer-body .faq-answer li {
  line-height: 1.6;
}

#drawer-body .main-cover-modal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#drawer-body .main-cover-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--main-cover-pill-bg);
  border: 1px solid var(--main-cover-pill-border);
  color: var(--main-cover-pill-text);
  grid-column: 1 / -1;
}

#drawer-body .main-cover-item {
  background: var(--main-cover-item-bg);
  border: 1px solid var(--main-cover-item-border);
  border-radius: 10px;
  padding: 14px 16px;
}

#drawer-body .main-cover-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--main-cover-item-title);
}

#drawer-body .main-cover-item p {
  margin-bottom: 0;
}

#drawer-body .main-cover-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#drawer-body .main-cover-icon svg {
  width: 18px;
  height: 18px;
}

#drawer-body .main-cover-item ul {
  margin: 10px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

#drawer-body .main-cover-item li {
  line-height: 1.6;
}

#drawer-body .main-cover-item-exclusion {
  border-color: var(--main-cover-exclusion-border);
  background: var(--main-cover-exclusion-bg);
}

/* Scroll reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* RTL support */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-option {
  text-align: right;
}

html[dir="rtl"] .benefit-copy,
html[dir="rtl"] .why-copy,
html[dir="rtl"] .partner-card,
html[dir="rtl"] #drawer-body {
  text-align: right;
}

html[dir="rtl"] .benefit-row {
  direction: rtl;
}

html[dir="rtl"] .benefit-row-reverse .benefit-copy {
  order: 1;
}

html[dir="rtl"] .benefit-row-reverse .benefit-image {
  order: 2;
}

html[dir="rtl"] .drawer-panel {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--modal-border);
  box-shadow: 24px 0 50px rgba(0, 0, 0, 0.26);
  transform: translateX(-100%);
}

html[dir="rtl"] .drawer.is-open .drawer-panel {
  transform: translateX(0);
}

html[dir="rtl"] .drawer-close {
  right: auto;
  left: 16px;
}

html[dir="rtl"] #drawer-body .main-cover-item ul {
  margin: 10px 18px 0 0;
}

html[dir="rtl"] #drawer-body .faq-question {
  text-align: right;
  padding: 15px 18px 15px 50px;
}

html[dir="rtl"] #drawer-body .faq-question::after {
  right: auto;
  left: 18px;
}

html[dir="rtl"] #drawer-body .faq-answer ul {
  margin: 10px 18px 12px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    width: min(1120px, 100% - 64px);
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero-content {
    padding-top: 146px;
    padding-bottom: 90px;
  }

  .hero-actions {
    margin-top: 34px;
  }

  #hero-cta-quote {
    top: -42px;
  }

  .section {
    padding: 104px 0;
  }

  .section-title {
    margin-bottom: 60px;
  }

  .benefits-list {
    gap: 100px;
  }

  .benefit-row {
    gap: 52px;
  }

  .why-grid {
    gap: 44px;
  }

  .benefit-copy h3,
  .why-copy h3 {
    font-size: 22px;
  }

  .partner-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1120px, 100% - 40px);
  }

  .btn,
  .learn-more-btn {
    font-size: 12px;
  }

  .header {
    padding: 14px 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 12px;
  }

  .logo {
    order: 1;
  }

  .language-toggle {
    order: 2;
    margin-inline-start: auto;
  }

  .menu-toggle {
    order: 3;
    display: inline-flex;
    margin-inline-start: 10px;
  }

  .nav-links {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px;
    background: rgba(12, 18, 28, 0.62);
    backdrop-filter: blur(6px);
  }

  .nav.menu-open .nav-links {
    display: flex;
  }

  .nav-links .nav-link {
    display: block;
    font-size: 12px;
    border-radius: 6px;
    padding: 10px 12px;
  }

  .nav-links .nav-link-claim {
    text-align: center;
    border-color: rgba(255, 255, 255, 0.34);
  }

  html[dir="rtl"] .language-toggle {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }

  html[dir="rtl"] .menu-toggle {
    margin-inline-start: 0;
    margin-inline-end: 10px;
  }

  html[dir="rtl"] .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    background: url("img/heromobile.png") center/cover no-repeat;
  }

  .hero::before {
    display: none;
  }

  .hero-content {
    padding-top: 176px;
    padding-bottom: 84px;
  }

  .hero h1 {
    font-size: clamp(24px, 7.2vw, 32px);
    line-height: 1.18;
    margin-bottom: 18px;
  }

  .hero-meta {
    font-size: 12px;
    gap: 8px;
  }

  .hero-meta strong {
    font-size: 13px;
  }

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

  #hero-cta-quote {
    min-width: 176px;
    font-size: 14px;
    padding: 13px 28px;
    top: -34px;
  }

  .hero-scroll-hint {
    left: 50%;
    transform: translateX(-50%);
    bottom: 36px;
  }

  .section {
    padding: 84px 0;
  }

  .section-title {
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.24;
    margin-bottom: 48px;
  }

  #benefits-section .section-title {
    font-size: clamp(22px, 5.9vw, 28px);
  }

  .benefit-row,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .benefits-list {
    gap: 148px;
  }

  .benefit-row {
    gap: 30px;
  }

  .benefit-row .benefit-image {
    order: 1;
  }

  .benefit-row .benefit-copy {
    order: 2;
  }

  .benefit-row-reverse .benefit-image {
    order: 1;
  }

  .benefit-row-reverse .benefit-copy {
    order: 2;
  }

  html[dir="rtl"] .benefit-row-reverse .benefit-image {
    order: 1;
  }

  html[dir="rtl"] .benefit-row-reverse .benefit-copy {
    order: 2;
  }

  .benefit-copy h3,
  .why-copy h3 {
    font-size: 20px;
  }

  .benefit-copy p,
  .why-copy p {
    font-size: 13px;
    line-height: 1.75;
  }

  .partner-cards {
    grid-template-columns: 1fr;
  }

  .partner-placeholder {
    font-size: 24px;
  }

  .partner-logo-wrap {
    width: 138px;
    height: 38px;
    margin: 0 auto 18px;
  }

  .why-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 40px;
    gap: 12px;
  }

  .why-actions .btn {
    width: 100%;
  }

  .benefit-actions {
    gap: 8px;
  }

  .benefit-actions .learn-more-btn {
    width: auto;
  }

  .drawer-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: min(84vh, 760px);
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--modal-border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.34);
    padding: 24px;
    transform: translateY(100%);
  }

  .drawer.is-open .drawer-panel {
    transform: translateY(0);
  }

  html[dir="rtl"] .drawer-panel {
    left: 0;
    right: 0;
    border-right: none;
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.34);
    transform: translateY(100%);
  }

  html[dir="rtl"] .drawer.is-open .drawer-panel {
    transform: translateY(0);
  }

  .drawer-close {
    left: auto;
    right: 14px;
  }

  html[dir="rtl"] .drawer-close {
    right: auto;
    left: 14px;
  }

  #drawer-body .main-cover-item {
    padding: 12px 14px;
  }

  #drawer[data-drawer-key="faq"] #drawer-title {
    margin-top: 12px;
    margin-bottom: 26px;
  }

  #drawer[data-drawer-key="faq"] #drawer-body .faq-accordion {
    margin-top: 8px;
    gap: 14px;
  }

  #drawer-body .faq-question {
    font-size: 13px;
    padding: 13px 42px 13px 14px;
  }

  html[dir="rtl"] #drawer-body .faq-question {
    padding: 13px 14px 13px 42px;
  }

  #drawer-body .faq-answer-inner {
    padding: 0 14px;
  }

  #drawer-body .faq-item.is-open .faq-answer-inner {
    padding: 10px 14px 14px;
  }

  #drawer-body .main-cover-item h3 {
    font-size: 14px;
  }

  #drawer-body .main-cover-modal {
    grid-template-columns: 1fr;
  }

  #drawer-body .main-cover-pill {
    grid-column: auto;
  }
}

/* ============================================================
   Morocco adaptation: fonts, formules, CTA micro-interaction
   ============================================================ */

body {
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="rtl"] body {
  font-family: "Tajawal", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero credibility chips */
.hero-meta {
  gap: 12px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

.hero-chip strong {
  font-size: 12.5px;
  letter-spacing: 0.6px;
}

.hero-chip-plain {
  color: rgba(255, 255, 255, 0.92);
}

/* Primary CTA → partner-flow micro-interaction */
.partner-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.partner-cta .cta-label,
.partner-cta .cta-redirect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.partner-cta .cta-redirect {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(115%);
  pointer-events: none;
}

.partner-cta.is-redirecting .cta-label {
  opacity: 0;
  transform: translateY(-115%);
}

.partner-cta.is-redirecting .cta-redirect {
  opacity: 1;
  transform: translateY(0);
}

.partner-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.74s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .partner-cta::after {
  transform-origin: right center;
}

.partner-cta.is-redirecting::after {
  transform: scaleX(1);
}

.cta-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: cta-spin 0.6s linear infinite;
}

@keyframes cta-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Formules / coverage tiers */
.formules {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.formules .section-title {
  margin-bottom: 16px;
}

.formules-subheading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.coverage-stack {
  display: grid;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.coverage-block {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.coverage-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.1);
}

.coverage-block-pack {
  border-color: rgba(45, 107, 234, 0.4);
  box-shadow: 0 22px 50px rgba(45, 107, 234, 0.1);
}

.coverage-block-options {
  background: var(--surface-light);
}

.coverage-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand-red);
}

.coverage-block-options .coverage-eyebrow {
  color: var(--text-muted);
}

.coverage-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 8px 0;
  color: var(--text-dark);
}

.coverage-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 64ch;
}

.cov-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cov-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.cov-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  line-height: 1.4;
}

.cov-item-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.cov-item.is-in .cov-item-mark {
  background: rgba(45, 107, 234, 0.12);
  color: var(--brand-red);
}

.cov-item.is-opt .cov-item-mark {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
}

.cov-item-label {
  color: var(--text-dark);
}

.cov-item.is-opt .cov-item-label {
  color: var(--text-muted);
}

.coverage-cta {
  margin-top: 26px;
}

.coverage-cta .btn-primary {
  min-width: 220px;
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 6px;
}

.coverage-actions {
  margin-top: 18px;
}

.coverage-actions .learn-more-btn {
  margin-top: 0;
}

.formules-note {
  text-align: center;
  max-width: 660px;
  margin: 38px auto 0;
  font-size: 12.5px;
  color: var(--legal-text);
  line-height: 1.6;
}

/* Partnership: role-based cards */
.partner-card {
  text-align: center;
}

.partner-card .partner-logo-wrap {
  height: 56px;
  margin: 0 auto 18px;
}

.partner-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 107, 234, 0.08);
  color: var(--brand-red);
}

.partner-icon svg {
  width: 26px;
  height: 26px;
}

.partner-monogram {
  height: 56px;
  min-width: 56px;
  padding: 0 16px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 107, 234, 0.08);
  color: var(--brand-red);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 1.5px;
}

.partner-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.partner-card p {
  text-align: center;
}

/* RTL adjustments for new components */
html[dir="rtl"] .coverage-block,
html[dir="rtl"] .partner-card {
  text-align: right;
}

html[dir="rtl"] .coverage-eyebrow {
  letter-spacing: normal;
  text-transform: none;
}

html[dir="rtl"] .partner-card,
html[dir="rtl"] .partner-card p {
  text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
  .coverage-block {
    padding: 28px 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .coverage-block {
    padding: 24px 20px;
  }

  .cov-list-grid {
    grid-template-columns: 1fr;
  }

  .formules .section-title {
    margin-bottom: 14px;
  }

  .formules-subheading {
    margin-bottom: 36px;
    font-size: 14px;
  }

  .coverage-cta .btn-primary {
    width: 100%;
  }

  .hero-meta {
    gap: 8px;
  }
}

/* ===== Tesla Driveway Insurance: temporary-insurance components ===== */

/* "Souscrire" nav action, styled as the header CTA */
.nav-link-quote {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  opacity: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link-quote:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

/* Subtitle under a section title */
.section-subtitle {
  max-width: 720px;
  margin: -6px auto 44px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Footer logo */
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.footer-logo img {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* How-it-works steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 40px;
  padding: 0;
}

.step {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 32px 26px 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(45, 107, 234, 0.1);
  color: var(--brand-red);
  font-size: 19px;
  font-weight: 800;
}

.step-title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.steps-cta {
  display: flex;
  justify-content: center;
}

/* Footer contact line */
.footer-contact {
  margin-top: 12px;
  color: var(--footer-text);
  font-size: 13px;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-subtitle {
    margin-bottom: 32px;
    font-size: 14px;
  }

  .steps-cta .btn-primary {
    width: 100%;
  }
}

/* ===== Contact page ===== */

/* Logo as a home link */
a.logo {
  display: flex;
  align-items: center;
}

/* Active nav item */
.nav-link-active {
  opacity: 1;
  font-weight: 700;
}

/* Dark banner for sub-pages, so the fixed (white) header stays readable */
.page-hero {
  background: linear-gradient(135deg, #0d1626 0%, #1a2b4d 100%);
  color: #ffffff;
  padding: 150px 0 66px;
  text-align: center;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* Contact channel cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 22px;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 107, 234, 0.4);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: rgba(45, 107, 234, 0.1);
  color: var(--brand-red);
}

.contact-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  word-break: break-word;
}

.contact-card-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Agency section */
.contact-agency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-agency h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.contact-agency p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-address {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.contact-map {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 12px;
}

/* FAQ cross-link band */
.contact-faq {
  text-align: center;
}

.contact-faq p {
  max-width: 540px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 16px;
}

/* Footer legal links */
.footer-links {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--footer-text);
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 48px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-agency {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
