/* ============ Koina Wallet — landing ============ */

/* ---------- Локальные шрифты (Nunito Sans / Nunito, variable woff2) ---------- */

/* Nunito 600-700 cyrillic-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(../assets/fonts/Nunito-600-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Nunito 600-700 cyrillic */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(../assets/fonts/Nunito-600-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Nunito 600-700 latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(../assets/fonts/Nunito-600-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Nunito 600-700 latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(../assets/fonts/Nunito-600-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Nunito Sans 400-800 cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/NunitoSans-400-800-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Nunito Sans 400-800 cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/NunitoSans-400-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Nunito Sans 400-800 latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/NunitoSans-400-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Nunito Sans 400-800 latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/NunitoSans-400-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --c-accent: #ff5f1f;
  --c-text: #14151a;
  --c-text-2: rgba(15, 19, 36, 0.6);
  --c-border: #dee0e3;
  --c-surface: #f3f5f7;
  --c-faq-open: #ffe9df;
  --c-info: #4778f5;
  --c-white: #fff;

  --grad-blue: linear-gradient(248deg, #cfe7ff 8%, #e6f7ff 124%);
  --grad-purple: linear-gradient(248deg, #d8bcfa 8%, #f1e6ff 124%);
  --grad-beige: linear-gradient(225deg, #fadebc 8%, #fff7e6 124%);

  --radius-card: 24px;
  --radius-btn: 12px;

  --font-main: "Nunito Sans", "Segoe UI", sans-serif;
  --font-alt: "Nunito", "Nunito Sans", sans-serif;

  --shadow-btn: 0 1px 2px 0 rgba(20, 21, 26, 0.05);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.2px;
  color: var(--c-text);
  background: var(--c-white);
}

img { display: block; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 16px;
}

.section { scroll-margin-top: 96px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: #e95312; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  box-shadow: var(--shadow-btn);
}
.btn-secondary:hover { background: var(--c-surface); }

.btn-white {
  background: var(--c-white);
  color: var(--c-accent);
  box-shadow: 0 8px 10px 0 rgba(255, 255, 255, 0.2);
}
.btn-white:hover { background: #fff3ec; }

.btn-lg { padding: 16px 28px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 12px;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 16px;
  margin-right: auto;
}

.header-nav a {
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover { color: var(--c-accent); }

.header-nav a.is-current {
  color: var(--c-accent);
  font-weight: 800;
  border-bottom: 2px solid var(--c-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
}

.mobile-menu {
  margin: 8px 16px 0;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-white);
  box-shadow: 0 12px 32px rgba(20, 21, 26, 0.12);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  padding: 12px 8px;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-surface);
}

.mobile-menu nav a.is-current { color: var(--c-accent); font-weight: 800; }

.mobile-menu-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}

.mobile-menu-actions .btn { flex: 1; }

/* ---------- Typography ---------- */

h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 800;
  letter-spacing: -1px;
}

.section { padding-top: 100px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.section-head--center { text-align: center; }

.section-sub {
  max-width: 800px;
  font-weight: 600;
  color: var(--c-text-2);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 844fr 540fr;
  gap: 24px;
  padding-top: 4px;
}

.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  min-height: 762px;
  padding: 56px;
  border-radius: var(--radius-card);
  background: var(--c-accent);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 1860px;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 28px), calc(-50% + 73px));
  pointer-events: none;
}

.hero-topology {
  position: absolute;
  width: 920px;
  max-width: none;
  left: -205px;
  bottom: -460px;
  transform: rotate(-114deg);
  pointer-events: none;
}

.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--c-white);
}

.hero-text p {
  max-width: 480px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.hero-main .btn { position: relative; }

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  min-height: 762px;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-radius: 30px;
  overflow: hidden;
}

.hero-card--blue { background: var(--grad-blue); }
.hero-card--purple { background: var(--grad-purple); }

.card-topology {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
  pointer-events: none;
}

.card-topology--tilt {
  transform: rotate(-6deg) scale(1.15);
  object-position: center;
}

.hero-card-img {
  position: relative;
  width: min(305px, 80%);
  height: auto;
}

/* Анимированные иллюстрации: квадратные webm поверх постера-webp */
video.js-anim {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
}

.hero-card-img--wallet { width: min(355px, 90%); }

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.features-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.feature-card--purple { background: linear-gradient(236deg, #d8bcfa 8%, #f1e6ff 124%); }
.feature-card--blue { background: linear-gradient(236deg, #cfe7ff 8%, #e6f7ff 124%); }

.feature-card-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 20px 40px 40px;
}

.feature-card h3 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.feature-card p {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--c-text-2);
}

.feature-card-img {
  width: 285px;
  height: 285px;
  flex-shrink: 0;
  align-self: flex-end;
}

.feature-card--tall {
  flex-direction: column;
  justify-content: flex-start;
  background: var(--c-surface);
}

.feature-card--tall .feature-card-text {
  padding: 40px 40px 0 61px;
}

.feature-card--tall p { max-width: 400px; }

.feature-card-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.feature-card-media img,
.feature-card-media video {
  width: min(444px, 80%);
  height: auto;
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 44px; /* место под выступающие вверх иллюстрации */
}

.why-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 504px;
  border-radius: var(--radius-card);
  background: var(--c-surface);
}

.why-card-media {
  position: relative;
  height: 286px;
}

.why-card-media img {
  position: absolute;
  left: 50%;
  top: -75px;
  transform: translateX(-50%);
  width: 365px;
  height: 365px;
}

.why-card-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.why-card h3 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 300px;
}

.why-card p {
  font-weight: 600;
  color: var(--c-text-2);
  max-width: 373px;
}

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 128px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  overflow: hidden;
}

/* мягкие белые блики (эллипсы из макета) */
.step-card::before,
.steps-visual::before,
.faq-item::before {
  content: "";
  position: absolute;
  left: -352px;
  top: -84px;
  width: 606px;
  height: 606px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
}

.step-card::after,
.steps-visual::after,
.faq-item::after {
  content: "";
  position: absolute;
  left: -168px;
  top: 118px;
  width: 238px;
  height: 238px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.step-card h3,
.step-card p {
  position: relative;
  font-family: var(--font-alt);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 36px;
}

.step-card h3 { font-size: 24px; }

.step-card p {
  font-size: 20px;
  color: var(--c-text-2);
}

.steps-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  overflow: hidden;
}

.steps-visual img {
  position: relative;
  width: min(443px, 70%);
  height: auto;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.faq-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.faq-tab {
  padding: 7px 17px;
  border: 2px solid var(--c-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-tab:hover { border-color: var(--c-accent); color: var(--c-text); }

.faq-tab.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.faq-item {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.faq-item.is-open { background: var(--c-faq-open); }

.faq-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 24px;
  border: 0;
  background: none;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: url("../assets/chevron-down.svg") center / contain no-repeat;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.faq-answer p {
  position: relative;
  overflow: hidden;
  padding-inline: 24px;
  font-weight: 500;
  color: var(--c-text-2);
}

.faq-item.is-open .faq-answer p { padding-bottom: 24px; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 32px;
  border-radius: var(--radius-card);
  background: var(--c-accent);
  overflow: hidden;
  text-align: center;
  color: var(--c-white);
}

.cta-glow {
  position: absolute;
  width: 1860px;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-text p {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.cta-buttons {
  position: relative;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 60px;
  padding-inline: 24px;
  border-radius: 15px;
  background: var(--c-white);
  font-family: var(--font-alt);
  font-size: 20px;
  font-weight: 600;
  color: #222;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 21, 26, 0.15);
}

.cta-btn img { width: 30px; height: 30px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  display: grid;
  grid-template-areas:
    "logo nav"
    "info nav"
    "info badges";
  grid-template-columns: 1fr auto;
  align-items: start;
  justify-content: space-between;
  row-gap: 18px;
  column-gap: 40px;
  padding-block: 40px;
}

.footer-logo { grid-area: logo; }

.footer-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-requisites {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-requisites p,
.footer-note {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.1px;
  color: var(--c-text-2);
}

.footer-mail {
  font-size: 18px;
  line-height: 26px;
  color: var(--c-info);
}

.footer-mail:hover { text-decoration: underline; }

.footer-note { max-width: 387px; }

.footer-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.footer-nav a {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--c-accent); }

.footer-badges {
  grid-area: badges;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
}



/* ---------- Documents page ---------- */

.docs-section { padding-top: 50px; padding-bottom: 50px; }

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 20px 40px 40px;
  border-radius: var(--radius-card);
  background: var(--grad-beige);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 21, 26, 0.08);
}

.doc-card h3 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #222;
}

.doc-card p {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--c-text-2);
}

/* ============ Adaptive ============ */

@media (max-width: 1200px) {
  h1, h2 { font-size: 40px; line-height: 48px; }

  .hero-main { min-height: 620px; padding: 40px; }
  .hero-side { min-height: 620px; }

  .why-card-media img { width: 300px; height: 300px; top: -50px; }
  .why-card { min-height: 440px; }

  .feature-card-img { width: 220px; height: 220px; }
}

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }

  .section { padding-top: 72px; }

  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 480px; }
  .hero-side { min-height: auto; grid-template-rows: none; }
  .hero-card { min-height: 340px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--tall .feature-card-text { padding: 40px 40px 0; }

  .why-grid { grid-template-columns: 1fr; gap: 64px; }
  .why-card { min-height: auto; }

  .steps-grid { grid-template-columns: 1fr; }
  .steps-visual { min-height: 420px; }

  .footer-inner {
    grid-template-areas: "logo" "nav" "info" "badges";
    grid-template-columns: 1fr;
  }
  .footer-nav { align-items: flex-start; }
  .footer-badges { justify-self: start; }

  .docs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.5px; }
  h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.5px; }

  .section { padding-top: 56px; }
  .section-head { text-align: center; align-items: center; }

  .hero-main {
    min-height: 420px;
    padding: 32px 24px;
    align-items: center;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-text p { font-size: 18px; line-height: 26px; letter-spacing: -0.2px; }

  .hero-card { min-height: 280px; padding: 24px; }
  .hero-card-img { width: min(260px, 85%); }
  .hero-card-img--wallet { width: min(300px, 90%); }

  .feature-card {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-card-text { padding: 32px 24px 0 32px; }
  .feature-card h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.3px; }
  .feature-card p { font-size: 18px; line-height: 26px; letter-spacing: -0.2px; }
  .feature-card-img { width: 240px; height: 240px; }
  .feature-card--tall .feature-card-text { padding: 32px 24px 0 32px; }
  .feature-card-media { min-height: 360px; }
  .feature-card-media img,
  .feature-card-media video { width: min(380px, 92%); }

  .why-grid { padding-top: 24px; gap: 56px; }
  .why-card-media { height: 230px; }
  .why-card-media img { width: 260px; height: 260px; top: -40px; }
  .why-card-text { padding: 24px 24px 32px; }
  .why-card h3 { font-size: 24px; line-height: 32px; }

  .step-card { min-height: auto; }
  .step-card h3 { font-size: 20px; line-height: 28px; }
  .step-card p { font-size: 16px; line-height: 24px; }

  .steps-visual { min-height: 320px; }
  .steps-visual img { width: min(300px, 80%); }

  .faq-tabs { justify-content: flex-start; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .faq-tabs::-webkit-scrollbar { display: none; }
  .faq-tab { font-size: 16px; line-height: 24px; white-space: nowrap; padding: 6px 14px; }

  .faq-question { font-size: 18px; line-height: 26px; padding: 20px; }
  .faq-icon { width: 28px; height: 28px; }
  .faq-answer p { padding-inline: 20px; font-size: 16px; line-height: 24px; }
  .faq-item.is-open .faq-answer p { padding-bottom: 20px; }

  .cta { padding: 56px 20px; gap: 32px; }
  .cta-text p { font-size: 18px; line-height: 26px; }
  .cta-btn { height: 48px; padding-inline: 18px; font-size: 17px; gap: 9px; }
  .cta-btn img { width: 23px; height: 23px; }

  .footer-inner { justify-items: center; text-align: center; row-gap: 20px; }
  .footer-info { align-items: center; }
  .footer-nav { align-items: center; gap: 12px; }
  .footer-badges { justify-self: center; }
  .footer-note { max-width: 100%; }

  .doc-card { padding: 32px 24px; }
  .doc-card h3 { font-size: 24px; line-height: 32px; }
  .doc-card p { font-size: 18px; line-height: 26px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Модальное окно заявки ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 26, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--radius-card);
  background: var(--c-white);
  box-shadow: 0 24px 64px rgba(20, 21, 26, 0.25);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--c-surface);
  color: var(--c-text-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover { background: #e8ebee; color: var(--c-text); }

.modal-view h3 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  padding-right: 40px;
}

.modal-sub {
  margin-top: 10px;
  font-weight: 500;
  color: var(--c-text-2);
}

#reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: var(--c-white);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder { color: rgba(15, 19, 36, 0.35); }

.form-field input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 95, 31, 0.15);
}

.form-field.has-error input { border-color: #e5484d; }

.field-error,
.form-submit-error {
  font-size: 14px;
  line-height: 20px;
  color: #e5484d;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit { margin-top: 4px; }

.form-submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: var(--c-text-2);
}

.modal-success { text-align: center; }

.modal-success .btn { margin-top: 24px; }

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--c-faq-open);
  color: var(--c-accent);
}

body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .modal-dialog { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-view h3 { font-size: 24px; line-height: 32px; }
}
