:root {
  color-scheme: light;
  --bg: #f6fafc;
  --surface: #ffffff;
  --surface-strong: #eef5f8;
  --ink: #203441;
  --muted: #5d717d;
  --line: #d8e6ec;
  --accent: #198ae6;
  --accent-dark: #1265a9;
  --green: #1c9b73;
  --red: #cf3f3f;
  --shadow: 0 18px 50px rgba(32, 52, 65, 0.11);
  --max: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: break-word;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(25, 138, 230, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: var(--header-height);
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 230, 236, 0.86);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(32, 52, 65, 0.08);
}

.brand {
  color: inherit;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border-bottom: 0;
}

.brand-logo {
  width: 260px;
  max-width: 48vw;
  height: auto;
}

.site-nav {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #425866;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.fact-item a,
.system-copy a,
.transfers-copy a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(18, 101, 169, 0.35);
}

.fact-item a:hover,
.fact-item a:focus-visible,
.system-copy a:hover,
.system-copy a:focus-visible,
.transfers-copy a:hover,
.transfers-copy a:focus-visible {
  border-color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  padding: calc(var(--header-height) + 34px) max(24px, calc((100vw - var(--max)) / 2)) 30px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  align-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-text {
  max-width: 980px;
  margin: 0;
  color: #425866;
  font-size: 17px;
  line-height: 1.55;
}

.hero-text p {
  margin: 0;
}

.hero-text p + p {
  margin-top: 16px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(25, 138, 230, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: rgba(32, 52, 65, 0.22);
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.button.quiet:hover,
.button.quiet:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.quiet {
  border-color: transparent;
  color: var(--accent-dark);
}

.fact-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.fact-item {
  min-height: 66px;
  padding: 15px 22px;
  border-right: 1px solid var(--line);
}

.fact-item:last-child {
  border-right: 0;
}

.fact-item strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.fact-item span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding: 42px max(24px, calc((100vw - var(--max)) / 2)) 54px;
}

.section-heading,
.join-content,
.contact-section,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}

.section h2 {
  font-size: 36px;
}

.section-heading > p,
.join-content p,
.contact-section p,
.system-copy p,
.text-block p,
.notice-box p {
  color: #425866;
  font-size: 17px;
}

.section-heading > p,
.join-content p:first-child,
.contact-section p:first-child,
.system-copy p:first-child,
.text-block p:first-child,
.notice-box p {
  margin-top: 0;
}

.system-copy {
  max-width: 900px;
}

.system-copy p {
  margin: 0;
}

.system-copy p + p {
  margin-top: 18px;
}

.system-section,
.documents-section,
.contact-section {
  background: var(--surface);
}

.transfers-section,
.cabinet-section {
  background: var(--surface-strong);
}

.transfers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 40px;
  align-items: start;
}

.transfers-copy {
  max-width: 760px;
}

.transfers-copy h2 {
  margin-bottom: 24px;
}

.transfers-copy p {
  margin: 0;
  color: #425866;
  font-size: 17px;
}

.transfers-copy p + p {
  margin-top: 16px;
}

.dostlik-brand {
  max-width: 260px;
  margin: 18px 0 22px;
}

.dostlik-brand img {
  width: 100%;
  height: auto;
}

.app-downloads {
  font-weight: 700;
}

.app-downloads span {
  margin: 0 7px;
  color: var(--muted);
  font-weight: 600;
}

.app-preview {
  justify-self: end;
  width: min(100%, 280px);
  margin: 0;
}

.app-preview img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 22px 46px rgba(32, 52, 65, 0.18);
}

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

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

.feature-card,
.text-block,
.document-card,
.notice-box,
.login-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card {
  min-height: 232px;
  padding: 24px;
}

.feature-number {
  color: var(--green);
  font-weight: 700;
}

.feature-card h3 {
  min-height: 58px;
  margin: 36px 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.text-block {
  min-height: 260px;
  padding: 28px;
}

.text-block h3,
.notice-box h3,
.login-preview h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
  color: #425866;
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.join-section {
  background: #223542;
  color: #fff;
}

.join-section .section-kicker {
  color: #8ed0ff;
}

.join-content p,
.join-section .steps span {
  color: rgba(255, 255, 255, 0.76);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 82px;
  padding: 16px 18px 16px 70px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 18px;
  color: #8ed0ff;
  font-weight: 700;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.steps .long-step {
  min-height: 150px;
}

.steps span,
.steps .long-step span,
.steps .step-compact {
  font-size: 14px;
  line-height: 1.52;
}

.steps .long-step .step-note {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.52;
}

.documents-intro {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.documents-section-paused h2 {
  margin-bottom: 24px;
}

.documents-paused-box {
  max-width: 760px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.documents-paused-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.documents-paused-box p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.document-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 980px;
  margin-top: 32px;
}

.document-card {
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.document-card:last-child {
  border-bottom: 1px solid var(--line);
}

.document-card span:first-child {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.document-card strong {
  font-size: 22px;
  line-height: 1.22;
}

.document-card small {
  color: var(--muted);
  font-size: 15px;
}

.document-card small a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(18, 101, 169, 0.5);
  font-weight: 600;
}

.document-card small a:hover,
.document-card small a:focus-visible {
  border-color: var(--accent-dark);
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  margin-top: 4px;
}

.document-actions a,
.document-actions span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #415766;
  font-size: 13px;
  font-weight: 700;
}

.document-actions a {
  border-bottom: 1px solid rgba(18, 101, 169, 0.35);
  color: var(--accent-dark);
}

.document-actions a:hover,
.document-actions a:focus-visible {
  border-color: var(--accent-dark);
}

.notice-box {
  max-width: 980px;
  margin-top: 0;
  padding: 22px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.notice-box {
  border-top: 1px solid var(--line);
}

.notice-box p {
  max-width: 820px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 40px;
  align-items: start;
}

.cabinet-layout h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

.cabinet-layout p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #425866;
  font-size: 17px;
}

.login-preview {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.login-preview label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.login-preview input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.contact-section {
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
}

.contact-details span {
  color: var(--muted);
  font-weight: 600;
}

.contact-details a {
  color: var(--accent-dark);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.contact-form > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-form > label input,
.contact-form > label textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form > label input {
  min-height: 46px;
}

.contact-form > label textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .consent-field {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #425866;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.consent-field input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
}

.consent-field a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(18, 101, 169, 0.35);
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-status.success {
  color: #1a7f4c;
}

.form-status.error {
  color: var(--red);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-brand.brand-lockup {
  display: inline-flex;
}

.footer-brand .brand-logo {
  width: 220px;
  max-width: 100%;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: var(--accent-dark);
}

.legal-page {
  padding: 136px max(24px, calc((100vw - var(--max)) / 2)) 80px;
  background: #fff;
}

.legal-content {
  max-width: 860px;
}

.legal-content h1 {
  margin: 0 0 28px;
  font-size: 44px;
  line-height: 1.08;
}

.legal-content h2 {
  margin: 32px 0 10px;
  font-size: 24px;
}

.legal-content p {
  margin: 0;
  color: #425866;
  font-size: 17px;
  line-height: 1.62;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(18, 101, 169, 0.35);
}

.legal-note {
  margin-top: 36px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 14px !important;
}

.cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(720px, calc(100vw - 48px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(32, 52, 65, 0.18);
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice p {
  margin: 0;
  color: #425866;
  font-size: 14px;
  line-height: 1.45;
}

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

.cookie-notice-actions a {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(18, 101, 169, 0.35);
}

.cookie-notice-actions .button {
  min-height: 40px;
  padding: 10px 14px;
}

@media (max-width: 1080px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .brand-logo {
    width: 238px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    justify-self: stretch;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(32, 52, 65, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .fact-band,
  .feature-grid,
  .feature-grid.three,
  .document-list,
  .section-heading,
  .transfers-layout,
  .join-content,
  .contact-section,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .app-preview {
    justify-self: start;
  }

  .hero-inner {
    min-height: auto;
  }

  .fact-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-item:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 8px 16px;
  }

  .brand-logo {
    width: 202px;
    max-width: calc(100vw - 88px);
  }

  .hero {
    padding: calc(var(--header-height) + 24px) 16px 30px;
  }

  .section-heading > p,
  .join-content p,
  .contact-section p,
  .system-copy p,
  .transfers-copy p,
  .text-block p,
  .notice-box p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 34px 16px 46px;
  }

  .section h2 {
    font-size: 30px;
  }

  .cabinet-layout h2 {
    font-size: 30px;
  }

  .legal-page {
    padding: 108px 16px 56px;
  }

  .legal-content h1 {
    font-size: 34px;
  }

  .dostlik-brand {
    max-width: 220px;
  }

  .app-preview {
    width: min(100%, 250px);
  }

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

  .feature-card {
    min-height: auto;
  }

  .feature-card h3 {
    min-height: 0;
    margin-top: 28px;
  }

  .text-block,
  .login-preview {
    padding: 22px;
  }

  .steps li {
    padding-left: 64px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }

  .cookie-notice {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
  }

  .cookie-notice-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
