:root {
  color-scheme: light;
  --bg: #f4f7ff;
  --bg-elevated: #fbfcff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #fbfcff;
  --text: #101a37;
  --text-soft: #607096;
  --line: rgba(43, 92, 255, 0.14);
  --line-strong: rgba(43, 92, 255, 0.28);
  --accent: #2b5cff;
  --accent-deep: #1944da;
  --accent-soft: #dfe8ff;
  --shadow: rgba(44, 73, 150, 0.16);
  --radius: 16px;
  --header-height: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1120;
  --bg-elevated: #11182a;
  --surface: rgba(20, 29, 50, 0.78);
  --surface-solid: #141d32;
  --text: #eef3ff;
  --text-soft: #a5b2d1;
  --line: rgba(126, 157, 255, 0.18);
  --line-strong: rgba(126, 157, 255, 0.34);
  --accent: #7093ff;
  --accent-deep: #9ab1ff;
  --accent-soft: #1d2c56;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  transition: background-color 240ms ease, color 240ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 72% 7%, rgba(43, 92, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 32%);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 760;
  line-height: 1.02;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: 0 10px 36px var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.nav-shell,
.section-shell,
.hero {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  font-size: 1.08rem;
  font-weight: 760;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand-x {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.desktop-nav a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.footer-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.button,
.icon-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button {
  min-height: 50px;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button:active,
.icon-button:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: #f8faff;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.88rem;
}

.button-large {
  min-height: 58px;
  padding-inline: 28px;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.theme-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: 40px;
  align-items: center;
  min-height: 100dvh;
  padding-top: var(--header-height);
}

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

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.65rem, 5.4vw, 5.2rem);
  font-weight: 790;
  line-height: 0.91;
}

.hero-summary {
  max-width: 540px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.text-link {
  gap: 8px;
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 600px;
  isolation: isolate;
}

.hero-disc {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-soft);
}

.hero-disc-one {
  top: 10%;
  right: 2%;
  width: 440px;
  height: 440px;
}

.hero-disc-two {
  right: 22%;
  bottom: 5%;
  width: 230px;
  height: 230px;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.card-stack {
  position: absolute;
  inset: 8% 0 0;
  perspective: 1100px;
}

.gift-card {
  position: absolute;
  overflow: hidden;
  width: 68%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: 0 34px 70px var(--shadow);
}

.gift-card img {
  width: 100%;
  aspect-ratio: 1.62;
  object-fit: cover;
}

.gift-card-back {
  top: 8%;
  right: 0;
  transform: rotate(11deg) translateZ(-30px);
}

.gift-card-middle {
  top: 24%;
  right: 20%;
  transform: rotate(-8deg) translateZ(10px);
}

.gift-card-front {
  right: 3%;
  bottom: 5%;
  transform: rotate(3deg) translateZ(40px);
}

.quote-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 142px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  box-shadow: 0 18px 50px var(--shadow), inset 0 1px rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.quote-chip span {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
}

.quote-chip strong {
  font-size: 1.35rem;
}

.quote-chip-top {
  top: 19%;
  left: 1%;
  transform: rotate(-3deg);
}

.quote-chip-bottom {
  right: -2%;
  bottom: 12%;
  transform: rotate(2deg);
}

.card-ribbon {
  display: flex;
  gap: 16px;
  width: min(100% - 48px, 1240px);
  margin: -28px auto 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-ribbon::-webkit-scrollbar {
  display: none;
}

.brand-card {
  flex: 0 0 clamp(170px, 17vw, 216px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-solid);
  scroll-snap-align: start;
}

.brand-card img {
  width: 100%;
  aspect-ratio: 1.62;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 260ms ease, filter 260ms ease;
}

.brand-card:hover img {
  filter: saturate(1);
  transform: scale(1.03);
}

.rate-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  padding-block: 150px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.cards-section,
.markets-section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.rate-copy p,
.how-intro > p,
.cards-heading p,
.security-copy p,
.final-cta p {
  max-width: 590px;
  color: var(--text-soft);
  font-size: 1.07rem;
  line-height: 1.7;
}

.rate-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 34px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.rate-note span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
}

.rate-calculator {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: 0 34px 80px var(--shadow);
}

.calculator-header,
.quote-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calculator-header {
  margin-bottom: 30px;
}

.calculator-header > div {
  display: flex;
  flex-direction: column;
}

.calculator-header span,
.quote-result span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.calculator-header strong {
  font-size: 1.3rem;
}

.rate-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.rate-status[data-state="loading"] {
  opacity: 0.72;
}

.rate-status[data-state="success"] {
  background: color-mix(in srgb, #22a06b 16%, var(--bg-elevated));
  color: color-mix(in srgb, #138552 82%, var(--text));
}

.rate-status[data-state="error"] {
  background: color-mix(in srgb, #d74b58 14%, var(--bg-elevated));
  color: color-mix(in srgb, #c83342 82%, var(--text));
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-grid label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.field-grid label:nth-child(3) {
  grid-column: 1 / -1;
}

.field-grid select,
.field-grid input,
.input-wrap {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
}

.field-grid select,
.field-grid input {
  padding: 0 14px;
  outline: none;
}

.field-grid select:disabled,
.field-grid input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.field-grid select:focus,
.field-grid input:focus,
.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.value-field {
  grid-column: 1 / -1;
}

.input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.input-wrap > span {
  padding-left: 14px;
  color: var(--text-soft);
}

.input-wrap input {
  border: 0;
  box-shadow: none !important;
}

.quote-result {
  gap: 24px;
  margin-block: 26px;
  padding: 22px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.quote-result > div {
  display: flex;
  flex-direction: column;
}

.quote-result strong {
  color: var(--accent-deep);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

.quote-result > div:last-child {
  text-align: right;
}

.calculator-button {
  width: 100%;
}

.calculator-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.rate-error {
  margin: -10px 0 20px;
  color: color-mix(in srgb, #d43d4c 82%, var(--text));
  font-size: 0.82rem;
  line-height: 1.5;
}

.how-section {
  padding-block: 140px;
  background: color-mix(in srgb, var(--accent-soft) 58%, var(--bg));
}

.how-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(56px, 10vw, 140px);
  align-items: center;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 420px);
  height: 520px;
  margin-top: 52px;
  border: 8px solid var(--text);
  border-radius: 42px 42px 0 0;
  background: #dff2ff;
  box-shadow: 0 30px 80px var(--shadow);
}

.phone-frame img {
  width: 100%;
  height: auto;
  transform: translateY(-4%);
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 22px;
  border-radius: 999px;
  background: var(--text);
  transform: translateX(-50%);
}

.process-list {
  display: grid;
}

.process-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

.process-list article:first-child {
  padding-top: 0;
}

.process-list article:last-child {
  border-bottom: 0;
}

.process-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}

.process-list h3 {
  margin-bottom: 8px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.cards-section {
  padding-block: 150px;
}

.cards-heading {
  max-width: 760px;
  margin-bottom: 64px;
}

.card-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 245px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item > div {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-item > div span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-accent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--accent);
  color: #f8faff;
}

.gallery-accent p {
  margin-bottom: 30px;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 760;
  line-height: 1.08;
}

.gallery-accent a {
  display: inline-flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 720;
}

.catalog-panel {
  margin-top: 64px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.catalog-toolbar {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.catalog-toolbar h3 {
  margin-bottom: 6px;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.catalog-toolbar p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.catalog-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.catalog-filters::-webkit-scrollbar {
  display: none;
}

.catalog-filter {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.catalog-filter:hover,
.catalog-filter:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
}

.catalog-filter:active {
  transform: translateY(1px) scale(0.98);
}

.catalog-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #f8faff;
}

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

.catalog-card {
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover,
.catalog-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 18px 36px var(--shadow);
  transform: translateY(-3px);
}

.catalog-card:active {
  transform: translateY(1px) scale(0.99);
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 1.62;
  object-fit: cover;
  background: var(--bg-elevated);
}

.catalog-card > span {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 14px 15px;
}

.catalog-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card small {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.markets-section {
  padding-block: 130px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--bg));
}

.markets-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(52px, 9vw, 120px);
  align-items: start;
}

.markets-intro {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.markets-intro p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  border-top: 1px solid var(--line);
}

.country-item {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  font-weight: 720;
}

.country-item img {
  flex: 0 0 auto;
  width: 44px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
}

.country-item span {
  min-width: 0;
}

.security-section {
  padding-block: 140px;
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.security-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
}

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

.security-points article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.security-points article:first-child {
  grid-column: 1 / -1;
  min-height: 190px;
}

.security-points article > span {
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 38px;
  height: 38px;
  margin-bottom: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.security-points h3 {
  margin-bottom: 10px;
}

.security-points p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(50px, 10vw, 140px);
  padding-block: 150px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-size: 1.06rem;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--text-soft);
  line-height: 1.7;
}

.final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: 0 34px 80px var(--shadow);
}

.final-cta img {
  width: 52px;
  height: 52px;
  margin-bottom: 36px;
  border-radius: 13px;
}

.final-cta h2 {
  max-width: 760px;
}

.final-cta p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  padding-block: 44px;
}

.footer-grid > p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1120;
    --bg-elevated: #11182a;
    --surface: rgba(20, 29, 50, 0.78);
    --surface-solid: #141d32;
    --text: #eef3ff;
    --text-soft: #a5b2d1;
    --line: rgba(126, 157, 255, 0.18);
    --line-strong: rgba(126, 157, 255, 0.34);
    --accent: #7093ff;
    --accent-deep: #9ab1ff;
    --accent-soft: #1d2c56;
    --shadow: rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 0.98fr 1.02fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .quote-chip-bottom {
    right: 0;
  }

  .card-ribbon {
    gap: 14px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .nav-shell,
  .section-shell,
  .hero,
  .card-ribbon {
    width: min(100% - 32px, 720px);
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 6px;
    padding: 14px 16px 20px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    box-shadow: 0 24px 40px var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu > a:not(.button) {
    padding: 12px 6px;
    color: var(--text-soft);
    font-weight: 680;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 13vw, 5.8rem);
  }

  .hero-visual {
    min-height: 560px;
  }

  .card-ribbon {
    margin-top: 0;
  }

  .rate-section,
  .how-grid,
  .markets-grid,
  .security-grid,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .rate-section,
  .cards-section,
  .faq-section {
    padding-block: 110px;
  }

  .how-section,
  .markets-section,
  .security-section {
    padding-block: 110px;
  }

  .phone-frame {
    height: 490px;
  }

  .card-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .gallery-tall {
    grid-row: auto;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-filters {
    width: 100%;
    padding-left: 0;
  }

  .markets-grid {
    gap: 44px;
  }

  .markets-intro {
    position: static;
  }

  .faq-section {
    gap: 34px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-grid > p:not(.copyright) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell,
  .hero,
  .card-ribbon {
    width: min(100% - 24px, 520px);
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .theme-toggle {
    display: none;
  }

  .hero {
    padding-top: 98px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.85rem, 13vw, 3.5rem);
    line-height: 0.94;
  }

  .hero-summary {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-disc-one {
    top: 12%;
    right: -24%;
    width: 330px;
    height: 330px;
  }

  .hero-disc-two {
    right: 5%;
    width: 160px;
    height: 160px;
  }

  .gift-card {
    width: 76%;
  }

  .gift-card-back {
    top: 10%;
  }

  .gift-card-middle {
    top: 29%;
  }

  .quote-chip {
    min-width: 118px;
    padding: 11px 13px;
  }

  .quote-chip strong {
    font-size: 1.05rem;
  }

  .quote-chip-top {
    top: 13%;
  }

  .quote-chip-bottom {
    bottom: 0;
  }

  .card-ribbon {
    padding: 12px;
  }

  .brand-card {
    flex-basis: 154px;
  }

  .rate-section,
  .cards-section,
  .faq-section,
  .how-section,
  .markets-section,
  .security-section {
    padding-block: 84px;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .rate-calculator {
    padding: 20px;
  }

  .field-grid,
  .security-points {
    grid-template-columns: 1fr;
  }

  .value-field,
  .security-points article:first-child {
    grid-column: auto;
  }

  .quote-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-result > div:last-child {
    text-align: left;
  }

  .phone-frame {
    width: 100%;
    height: 440px;
    border-radius: 34px 34px 0 0;
  }

  .process-list article {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .process-icon {
    width: 44px;
    height: 44px;
  }

  .card-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 225px;
  }

  .gallery-wide,
  .gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-accent {
    min-height: 260px;
  }

  .catalog-panel {
    margin-top: 48px;
    padding-top: 32px;
  }

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

  .catalog-card > span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
  }

  .catalog-card strong {
    width: 100%;
  }

  .country-grid {
    column-gap: 18px;
  }

  .country-item {
    min-height: 68px;
    font-size: 0.88rem;
  }

  .country-item img {
    width: 38px;
    height: 24px;
  }

  .security-points article,
  .security-points article:first-child {
    min-height: 0;
  }

  .final-cta {
    margin-bottom: 50px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled,
  .site-header.menu-open,
  .card-ribbon,
  .quote-chip,
  .mobile-menu,
  .gallery-item > div {
    background: var(--surface-solid);
  }
}
