:root {
  --ink: #13231f;
  --muted: #65736f;
  --paper: #f6f1e8;
  --surface: #fffdf8;
  --surface-soft: #f0eadf;
  --line: rgba(19, 35, 31, 0.12);
  --green: #153f36;
  --green-2: #24584d;
  --sage: #e6efe9;
  --clay: #a85d36;
  --gold: #d6a24a;
  --shadow: 0 22px 55px rgba(19, 35, 31, 0.11);
  --shadow-soft: 0 12px 30px rgba(19, 35, 31, 0.07);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 162, 74, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(36, 88, 77, 0.10), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 60%, #eee5d7 100%);
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(90deg, rgba(19, 35, 31, 0.11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
}

p,
li,
dd,
dt,
h1,
h2,
h3,
a {
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-2));
  border-radius: 13px;
  font-size: 22px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(21, 63, 54, 0.18);
}

.brand-name {
  font-size: 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  gap: 14px;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  gap: 15px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.footer-links a {
  font-weight: 750;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.nav-links a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"],
.footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.language-menu {
  position: relative;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.language-menu summary {
  min-width: 142px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(19, 35, 31, 0.07);
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::marker {
  content: "";
}

.language-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  transform: rotate(45deg) translateY(-2px);
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.64;
}

.language-menu[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  z-index: 40;
  overflow: hidden;
  padding: 6px;
  background: rgba(255, 253, 248, 0.99);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.language-options a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 12px;
  text-decoration: none;
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options a[aria-current="true"] {
  color: #fff;
  background: var(--green);
}

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

.page.narrow {
  width: min(880px, calc(100% - 32px));
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

[lang="az"] h1,
[lang="az"] h2,
[lang="az"] h3,
[lang="ru"] h1,
[lang="ru"] h2,
[lang="ru"] h3 {
  letter-spacing: -0.02em;
}

h1 {
  max-width: 760px;
  text-wrap: balance;
  font-size: clamp(38px, 6vw, 72px);
}

h2 {
  text-wrap: balance;
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 24px;
}

.lead {
  max-width: 650px;
  text-wrap: pretty;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(21, 63, 54, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button.secondary {
  color: var(--green);
  background: transparent;
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(214, 162, 74, 0.58);
  outline-offset: 4px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 8px 12px;
  color: var(--green);
  background: rgba(230, 239, 233, 0.82);
  border: 1px solid rgba(21, 63, 54, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.load-card-preview {
  min-width: 0;
  padding: 30px;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.preview-label {
  margin: 0 0 18px;
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

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

.preview-grid div {
  min-width: 0;
  padding: 15px;
  background: rgba(230, 239, 233, 0.76);
  border: 1px solid rgba(21, 63, 54, 0.10);
  border-radius: 18px;
}

.preview-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 780px;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.card {
  min-width: 0;
  padding: 26px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--clay);
  border-radius: 50%;
  font-weight: 850;
}

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

.callout {
  min-width: 0;
  padding: 34px;
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-2));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.callout.light {
  color: var(--ink);
  background: var(--sage);
  border: 1px solid rgba(21, 63, 54, 0.12);
  box-shadow: none;
}

.callout p,
.callout li {
  color: rgba(255, 255, 255, 0.84);
}

.callout.light p,
.callout.light li {
  color: #354a44;
}

.feature-list {
  margin: 22px 0 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 8px;
}

.faq-section {
  padding-top: 20px;
}

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

.faq-item {
  min-width: 0;
  padding: 24px;
  background: rgba(255, 253, 248, 0.90);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  font-size: 20px;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-hero {
  padding: 70px 0 18px;
}

.legal-hero h1 {
  text-wrap: balance;
  font-size: clamp(36px, 5.4vw, 62px);
}

.legal-card {
  margin: 26px 0 78px;
  padding: clamp(24px, 5vw, 46px);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-card.compact {
  max-width: 760px;
}

.legal-card section + section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
}

.text-link,
.legal-card a {
  color: var(--green);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(19, 35, 31, 0.045);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--green);
  font-weight: 750;
}

@media (max-width: 1020px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .footer-links {
    justify-content: flex-start;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 46px;
  }

  .grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .nav {
    gap: 14px;
  }

  .nav-right {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    gap: 10px 14px;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  .nav-links,
  .footer-links {
    gap: 10px 12px;
    font-size: 13px;
  }

  .language-menu {
    width: 100%;
  }

  .language-menu summary {
    width: 100%;
  }

  .language-options {
    left: 0;
    right: auto;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .load-card-preview {
    padding: 24px;
  }

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

  .section {
    padding: 52px 0;
  }
}
