:root {
  --bg: #f4f1eb;
  --card: #fffdf8;
  --ink: #211f1b;
  --muted: #706a61;
  --line: #e4dccf;
  --line-strong: #d0c6b7;
  --accent: #165f7a;
  --accent-dark: #104d64;
  --accent-soft: #e8f3f6;
  --telegram: #1c78a4;
  --success: #356947;
  --success-soft: #edf7ef;
  --warning: #76500a;
  --warning-soft: #fff5d8;
  --container: 1040px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(22, 95, 122, .10), transparent 32rem),
    linear-gradient(180deg, #fffcf6 0, var(--bg) 28rem);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-150%);
}

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

.site-header {
  width: calc(100vw - clamp(24px, 5vw, 64px));
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 18px;
}

.site-nav {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 14px;
}

.site-nav > *,
.hero > *,
.quick-links a > *,
.faq-section > *,
.faq-item > *,
.support-card > *,
.no-results > * {
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 790;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
  letter-spacing: .04em;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.site-links a {
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-links a:hover,
.site-links a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.page {
  width: calc(100vw - clamp(24px, 5vw, 64px));
  max-width: var(--container);
  margin-inline: auto;
  padding-block: 20px 40px;
}

.page:focus { outline: none; }

.back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fffaf0;
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
}

.back-link:hover { border-color: var(--line-strong); background: #fff6e6; }

.hero {
  display: grid;
  justify-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 clamp(28px, 5vw, 46px);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: .015em;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 790;
  line-height: 1;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.lead {
  max-width: 700px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.search-wrap {
  display: none;
  width: min(100%, 680px);
  margin-top: 14px;
}

.js .search-wrap { display: block; }

.search-label {
  display: block;
  margin: 0 0 7px 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.search-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  padding: 5px 7px 5px 15px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 12px 34px rgba(53, 42, 31, .07);
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #92c2cf, 0 12px 34px rgba(53, 42, 31, .07);
}

.search-icon {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 8px;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.search-field input::placeholder { color: var(--muted); }

.clear-search {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  padding: 8px 11px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 730;
  cursor: pointer;
}

.search-status {
  min-height: 19px;
  margin: 7px 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.quick-links a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 10px 28px rgba(53, 42, 31, .045);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.quick-links a:hover {
  border-color: #a9cbd4;
  box-shadow: 0 14px 34px rgba(22, 95, 122, .09);
  transform: translateY(-1px);
}

.quick-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.quick-links strong {
  font-size: 16px;
  line-height: 1.25;
}

.quick-links a > span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.faq-section {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 12px 34px rgba(53, 42, 31, .045);
}

.section-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.section-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2,
.support-card h2,
.no-results h2 {
  margin: 5px 0 0;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 770;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.faq-item {
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  position: relative;
  min-height: 62px;
  padding: 19px 48px 19px 2px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 730;
  line-height: 1.35;
  overflow-wrap: anywhere;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item summary:hover { color: var(--accent-dark); }

.answer {
  padding: 0 48px 24px 2px;
}

.answer p,
.answer li,
.support-card p,
.no-results p {
  color: #5f5a52;
  font-size: 16px;
  line-height: 1.65;
}

.answer p { margin: 0 0 13px; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--ink); }

.answer ul,
.answer ol:not(.steps) {
  display: grid;
  gap: 7px;
  margin: 12px 0 16px;
  padding-left: 22px;
}

.answer li::marker { color: var(--accent); }

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

.steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  background: #fffaf0;
}

.steps.compact li {
  border: 0;
  border-radius: 0;
  padding: 3px 0;
  background: transparent;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.steps p { margin: 3px 0 0; }

.check-list,
.feature-list {
  list-style: none;
  padding-left: 0 !important;
}

.check-list li,
.feature-list li {
  position: relative;
  padding-left: 29px;
}

.check-list li::before,
.feature-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.check-list li::before { content: "✓"; }
.feature-list li::before { content: "→"; }

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

.method-grid article,
.plans article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  background: #fffaf0;
}

.method-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
}

.method-grid h3,
.plans h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.3;
}

.method-grid p,
.method-grid li,
.plans p {
  font-size: 14px;
  line-height: 1.55;
}

.method-grid ul,
.method-grid ol {
  padding-left: 18px !important;
}

.plan-tag {
  width: fit-content;
  margin: 0 0 10px !important;
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--accent) !important;
  background: var(--accent-soft);
  font-size: 11px !important;
  font-weight: 780;
  line-height: 1 !important;
}

.callout {
  margin-top: 18px;
  border: 1px solid #a9ced7;
  border-radius: 16px;
  padding: 16px;
  color: #174455;
  background: var(--accent-soft);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: inherit;
}

.callout p {
  margin: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.callout.success {
  border-color: #b9d8c3;
  color: #2f6541;
  background: var(--success-soft);
}

.callout.warning {
  border-color: #efc36a;
  color: var(--warning);
  background: var(--warning-soft);
}

.support-card,
.no-results {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at right bottom, rgba(22, 95, 122, .11), transparent 20rem),
    var(--card);
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.support-card h2,
.no-results h2 { margin-top: 7px; }

.support-card p,
.no-results p {
  max-width: 650px;
  margin: 10px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button.telegram {
  color: #fff;
  background: var(--telegram);
  box-shadow: 0 10px 22px rgba(36, 143, 195, .16);
}

.button.telegram:hover { background: #155f83; }

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fffaf0;
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: #fff6e6;
}

.quick-links a:focus-visible,
.back-link:focus-visible,
.faq-item summary:focus-visible,
.button:focus-visible,
.clear-search:focus-visible,
.footer a:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid #2c7188;
  outline-offset: 3px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer p { margin: 0; }

.footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid,
  .plans { grid-template-columns: 1fr; }

  .support-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 12px; }

  body {
    background:
      radial-gradient(circle at top left, rgba(22, 95, 122, .08), transparent 22rem),
      var(--bg);
  }

  .page {
    width: auto;
    max-width: var(--container);
    margin-inline: 12px;
    padding-block: 12px 28px;
  }

  .site-header {
    width: auto;
    max-width: var(--container);
    margin-inline: 12px;
    padding-top: 10px;
  }

  .site-nav {
    display: grid;
    gap: 9px;
    padding-bottom: 10px;
  }

  .site-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  .site-links a {
    min-width: 0;
    padding: 8px 5px;
    font-size: 11px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .site-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .hero {
    gap: 10px;
    padding: 4px 2px 24px;
  }

  .back-link { width: 100%; justify-content: center; }

  .eyebrow,
  .section-label { font-size: 12px; }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.03;
    letter-spacing: -.045em;
  }

  .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .search-wrap { margin-top: 10px; }

  .search-field {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 52px;
    border-radius: 14px;
    padding-left: 12px;
  }

  .search-icon { font-size: 21px; }
  .search-field input { font-size: 16px; }

  .clear-search {
    width: 44px;
    min-height: 44px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .clear-search::after {
    content: "×";
    color: var(--accent);
    font-size: 20px;
  }

  .quick-links {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .quick-links a {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 11px;
    border-radius: 15px;
    padding: 14px;
  }

  .quick-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .faq-list {
    gap: 10px;
    margin-top: 18px;
  }

  .faq-section {
    min-width: 0;
    border-radius: 17px;
    padding: 18px 16px;
  }

  .section-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 15px;
  }

  .section-number {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .section-heading h2,
  .support-card h2,
  .no-results h2 {
    margin-top: 3px;
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: normal;
  }

  .faq-item summary {
    min-height: 58px;
    padding: 17px 42px 17px 0;
    font-size: 16px;
    line-height: 1.35;
  }

  .faq-item summary::after {
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .answer { padding: 0 0 20px; }

  .answer p,
  .answer li,
  .support-card p,
  .no-results p {
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
  }

  .steps { gap: 8px; }

  .steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    border-radius: 13px;
    padding: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .method-grid,
  .plans { gap: 8px; }

  .method-grid article,
  .plans article {
    border-radius: 14px;
    padding: 14px;
  }

  .callout {
    border-radius: 14px;
    padding: 15px;
  }

  .support-card,
  .no-results {
    margin-top: 18px;
    border-radius: 17px;
    padding: 20px 16px;
  }

  .actions {
    display: grid;
    gap: 8px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    border-radius: 13px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 2px 0;
  }

  .footer nav {
    display: grid;
    justify-content: start;
    gap: 9px;
  }
}

@media (max-width: 350px) {
  .page,
  .site-header { width: auto; margin-inline: 12px; }
  h1 { font-size: 32px; }
  .faq-section { padding-inline: 14px; }
  .section-heading { grid-template-columns: 34px minmax(0, 1fr); }
  .section-number { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quick-links a,
  .button { transition: none; }
  .quick-links a:hover,
  .button:hover { transform: none; }
}

@media print {
  body { background: #fff; }
  .page { width: 100%; padding: 0; }
  .site-header,
  .search-wrap,
  .quick-links,
  .support-card,
  .footer { display: none; }
  [hidden] { display: revert !important; }
  .faq-section { box-shadow: none; }
  .faq-item:not([open]) > *:not(summary) { display: block; }
  .faq-item summary::after { display: none; }
}
