/* ==========================================================================
   Doscar Finance — Main Stylesheet
   ========================================================================== */

:root {
  --primary: #00b76c;
  --primary-dark: #009959;
  --primary-deep: #015a4f;
  --primary-light: #e9faf1;
  --primary-soft: #edfbec;
  --primary-tint: #f5fff7;
  --accent-orange: #f97316;
  --text: #111827;
  --text-dark: #061712;
  --text-step: #35443e;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --label-muted: #70747d;
  --bg: #ffffff;
  --border-header: #cacdcb;
  --border-policy: #c7c6c5;
  --policy-bg: #f8f8fb;
  --footer-bg: #111723;
  --footer-text: #9ca3af;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-btn: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 10px 30px rgba(0, 183, 108, 0.3);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-header);
  display: flex;
  align-items: center;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 183, 108, 0.22);
}

.logo-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}

.logo-wordmark span {
  color: var(--text);
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

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

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-account:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.nav-account-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 183, 108, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 153, 89, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-teal {
  background: var(--primary-deep);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.btn-teal:hover {
  background: #01433b;
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: #ffffff;
}

.btn-outline:hover {
  background: var(--primary-light);
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */

.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 183, 108, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(134, 239, 172, 0.16) 0%, transparent 48%),
    linear-gradient(180deg, #f8fffb 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(rgba(0, 183, 108, 0.14) 1.2px, transparent 1.2px),
    linear-gradient(125deg, transparent 48%, rgba(0, 183, 108, 0.04) 48.5%, rgba(0, 183, 108, 0.04) 49.5%, transparent 50%);
  background-size: 32px 32px, 180px 180px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-content h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(16px, 1.35vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-step);
  font-size: 14px;
  font-weight: 500;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Layered Apply Card */
.hero-card-wrap {
  position: relative;
  padding: 22px 22px 0 0;
}

.hero-card-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-card-layer--back {
  top: 0;
  right: 0;
  left: 34px;
  bottom: 28px;
  background: var(--primary-deep);
  transform: rotate(3.2deg);
  opacity: 0.92;
}

.hero-card-layer--mid {
  top: 10px;
  right: 10px;
  left: 18px;
  bottom: 14px;
  background: linear-gradient(135deg, #22c55e, var(--primary));
  transform: rotate(1.5deg);
}

.hero-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px 34px 34px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 183, 108, 0.12);
}

.apply-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 14px;
}

.apply-amount-display {
  font-size: clamp(36px, 3.6vw, 50px);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 26px;
  font-variant-numeric: tabular-nums;
}

/* Custom Loan Slider */
.apply-slider-wrap {
  position: relative;
  padding: 14px 0 10px;
  user-select: none;
  touch-action: none;
}

.apply-slider-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  cursor: pointer;
}

.apply-slider-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, #86efac, #00b76c);
}

.apply-slider-handler {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  border: 2.5px solid var(--primary);
  box-shadow: 0 6px 16px rgba(0, 183, 108, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: grab;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.apply-slider-handler:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 183, 108, 0.38);
}

.apply-slider-handler span {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--primary);
}

.apply-slider-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.apply-quick-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.apply-quick-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.apply-quick-pill:hover,
.apply-quick-pill.active {
  background: var(--primary-light);
  color: var(--primary-deep);
}

.apply-btn {
  width: 100%;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 700;
  border-radius: var(--radius-btn);
}

.apply-card-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-light);
}

/* ==========================================================================
   Generic Section Headings
   ========================================================================== */

.section {
  padding: 84px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
}

/* ==========================================================================
   Advantages Grid + Security Banner
   ========================================================================== */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.advantage-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  border: 1px solid #e6f4ec;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 183, 108, 0.12);
}

.advantage-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #86efac, var(--primary));
}

.advantage-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--primary);
}

.advantage-icon svg {
  width: 34px;
  height: 34px;
}

.advantage-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.28;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.safe-banner {
  background: linear-gradient(100deg, #e9faf1 0%, #f5fff7 55%, #edfbec 100%);
  border: 1px solid #ccefd9;
  border-radius: var(--radius);
  padding: 26px 34px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.safe-banner-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 183, 108, 0.28);
}

.safe-banner-icon svg {
  width: 30px;
  height: 30px;
}

.safe-banner p {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ==========================================================================
   Conditions & Product Details
   ========================================================================== */

.conditions {
  background: linear-gradient(to bottom, #ffffff, #f7fdf9);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.condition-card {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d5f4da;
}

.condition-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.condition-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.condition-icon svg {
  width: 24px;
  height: 24px;
}

.condition-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.condition-list {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 24px;
  margin-bottom: 24px;
}

.condition-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f0;
}

.condition-row:last-child {
  border-bottom: none;
}

.condition-label {
  font-size: 15px;
  color: var(--label-muted);
}

.condition-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.condition-card .btn {
  margin-top: auto;
  width: 100%;
}

.condition-note {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.55;
  margin-top: auto;
}

/* ==========================================================================
   3 Steps Section
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  background: linear-gradient(155deg, #f0fdf6 0%, #dcfce7 100%);
  border: 1px solid #c7f0d7;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  overflow: hidden;
}

.step-card:nth-child(2) {
  background: linear-gradient(155deg, #ecfdf5 0%, #d1fae5 100%);
}

.step-card:nth-child(3) {
  background: linear-gradient(155deg, #e9faf1 0%, #bbf7d0 100%);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 22px;
  box-shadow: 0 8px 18px rgba(0, 183, 108, 0.26);
}

.step-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.28;
}

.step-card p {
  font-size: 15px;
  color: var(--text-step);
  line-height: 1.55;
  position: relative;
  z-index: 2;
}

.step-decor {
  position: absolute;
  right: -12px;
  bottom: -14px;
  width: 112px;
  height: 112px;
  color: var(--primary);
  opacity: 0.14;
  pointer-events: none;
}

/* ==========================================================================
   Payment / Repayment Section
   ========================================================================== */

.payment {
  background: linear-gradient(to bottom, #ffffff, #f0fdf6);
  position: relative;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.payment-badge-head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.payment-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-card-icon svg {
  width: 24px;
  height: 24px;
}

.payment-subhead {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.payment-lead {
  font-size: 17px;
  font-weight: 500;
  color: var(--primary-deep);
  margin-bottom: 30px;
}

.payment-steps {
  list-style: none;
  position: relative;
  padding-left: 34px;
  margin-bottom: 32px;
}

.payment-steps::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), #86efac);
}

.payment-step {
  position: relative;
  padding: 14px 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dcf4e6;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.payment-step:last-child {
  margin-bottom: 0;
}

.payment-step::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary);
}

.payment-step strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 3px;
}

.payment-step span {
  font-size: 14px;
  color: var(--text-muted);
}

.payment-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-visual img {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.payment-cta-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.payment-btn {
  box-shadow: var(--shadow-cta);
  padding: 16px 32px;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.page-hero {
  padding: 58px 0 36px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.about-intro {
  padding: 20px 0 76px;
}

.intro-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  align-items: center;
}

.intro-text h2 {
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 16px;
}

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

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

.intro-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.intro-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-deep);
  font-size: 13.5px;
  font-weight: 600;
}

.intro-visual {
  display: flex;
  justify-content: center;
}

.intro-visual img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
}

.intro2 {
  background: var(--primary-tint);
  border: 1px solid #d7f5e1;
  border-radius: var(--radius);
  padding: 36px;
}

/* Policies & Disclosures Section */
.policies {
  padding: 76px 0 92px;
  background: linear-gradient(to bottom, #ffffff, #f7fdf9);
}

.policies-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.policies-header h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.policies-header p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.policy-item {
  background: var(--policy-bg);
  border: 1px solid var(--border-policy);
  border-radius: 14px;
  padding: 18px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.policy-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 183, 108, 0.08);
}

.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.policy-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.policy-item.has-children .policy-row {
  cursor: pointer;
}

.policy-arrow {
  width: 22px;
  height: 22px;
  color: var(--primary-deep);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.policy-item.has-children.open .policy-arrow {
  transform: rotate(180deg);
}

.policy-children {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e4e8;
}

.policy-item.has-children.open .policy-children {
  display: flex;
}

.policy-child {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.policy-child span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   Legal Document Pages (Terms, Privacy, Cookies)
   ========================================================================== */

.legal-page {
  padding: 44px 0 90px;
  background: linear-gradient(to bottom, #f8fffb 0%, #ffffff 220px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

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

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--primary-tint);
  border: 1px solid #d5f4da;
  border-radius: var(--radius-sm);
  padding: 22px;
}

.legal-toc h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.18s ease;
}

.legal-toc a:hover {
  background: #ffffff;
  color: var(--primary);
}

.legal-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 42px 46px;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-light);
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
}

.legal-section {
  margin-bottom: 30px;
  scroll-margin-top: 96px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.legal-section li {
  font-size: 15.5px;
  line-height: 1.68;
  margin-bottom: 8px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-weight: 600;
}

.legal-contact-box {
  background: var(--primary-soft);
  border: 1px solid #ccefd9;
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-top: 16px;
}

.legal-contact-box p {
  margin-bottom: 6px;
  color: var(--text-dark);
}

.legal-contact-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 22px;
}

.footer-col h4::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: #ffffff;
  flex-shrink: 0;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--footer-text);
  line-height: 1.5;
}

.footer-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-item a {
  color: #e5e7eb;
  transition: color 0.2s ease;
}

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

.footer-cards {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--footer-text);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Modal (Application / Login / Document Preview)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 23, 35, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.modal-close:hover {
  background: #e5e7eb;
}

.modal h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-right: 32px;
}

.modal-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #d1d5db;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.18s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 183, 108, 0.14);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 20px;
}

.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.form-checkbox a {
  color: var(--primary-deep);
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  padding: 18px 8px;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 150;
  max-width: 960px;
  margin: 0 auto;
  background: #111723;
  color: #ffffff;
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.5;
}

.cookie-banner a {
  color: #86efac;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.cookie-btn--accept {
  background: var(--primary);
  color: #ffffff;
}

.cookie-btn--accept:hover {
  background: var(--primary-dark);
}

.cookie-btn--settings {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1120px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid .step-card:last-child {
    grid-column: span 2;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .conditions-grid,
  .payment-grid,
  .intro-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .hero-card-wrap {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .intro-inner .intro-visual:first-of-type {
    order: 2;
  }
  .legal-content {
    padding: 28px 22px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 64px;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-header);
    padding: 20px 24px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-account,
  .lang-pill {
    justify-content: center;
  }
  .section {
    padding: 58px 0;
  }
  .advantages-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid .step-card:last-child {
    grid-column: auto;
  }
  .safe-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .policy-row,
  .policy-child {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}
