/* ==========================================================================
   WOMP site — "How to use WOMP" page (guide.html)
   Page-only styles. Loaded AFTER styles.css?v=14 and whats-new-4-0-0.css?v=1
   (phone frames .wn-phone / .wn-shot / .wn-ph, .final-cta, .store-badge come from there).
   Every selector is scoped under .gd (the <main> has class="wn400 gd"),
   so nothing leaks into other pages. Site is light-only.
   ========================================================================== */

.gd {
  --gd-hdr: 80px;            /* высота липкой шапки сайта */
  --gd-anchor: 108px;        /* отступ при переходе по якорю */
  --gd-stick: 108px;         /* где липнут кадры рядом с текстом */
  --gd-amber-bg: #FFF4E0;
  --gd-amber-tx: #8A5A12;
}
@media (max-width: 1199px) { .gd { --gd-anchor: 158px; --gd-stick: 158px; } }
@media (max-width: 700px)  { .gd { --gd-hdr: 66px; --gd-anchor: 140px; --gd-stick: 140px; } }

/* styles.css ставит body { overflow-x: hidden }: тогда body становится «прокручиваемым предком» и position: sticky
   не работает (на живом сайте липкая шапка сейчас тоже уезжает вверх). Здесь нужны липкие шапка и оглавление,
   поэтому на этой странице body только обрезает лишнее (clip), не создавая прокрутку. Горизонтальный скролл по-прежнему закрыт у html. */
body { overflow-x: clip; }

/* Anchor targets clear the sticky header (and the «Разделы» bar) */
.wn400.gd [id] { scroll-margin-top: var(--gd-anchor); }
.wn400.gd section[id] { scroll-margin-top: var(--gd-anchor); }
.wn400.gd #top { scroll-margin-top: var(--gd-hdr); }

/* ---------- Android switch (как на странице 4.1.0) ----------
   <main data-android="soon"> → «Android скоро»;  data-android="live" → «Android уже в Google Play». */
.gd:not([data-android="live"]) .wn-and-live { display: none !important; }
.gd[data-android="live"] .wn-and-soon { display: none !important; }
.gd .wn-final-soon { align-self: center; }
@media (max-width: 500px) { .gd .wn-final-soon { align-self: stretch; justify-content: center; text-align: center; } }

/* ---------- Header: пункт «Инструкция» ---------- */
.site-header .nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.mobile-menu a[aria-current="page"] { background: var(--green-soft-2); color: var(--green); }
/* Шесть пунктов меню (с «Инструкцией») не помещаются в шапку уже 1200 px: до этой ширины пользуемся «бургером», как на телефоне */
@media (max-width: 1199px) {
  .site-header .nav { display: none; }
  .site-header .menu-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.gd-hero { min-height: auto; padding-block: 24px 40px; }
.gd h1.gd-title {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.gd-hero .lead { margin-bottom: 24px; }
.gd-hints { display: grid; gap: 10px; max-width: 520px; text-align: left; }
.gd-hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.gd-hint svg { flex: 0 0 auto; margin-top: 1px; color: var(--green); }
.gd-hero .wn-hero-visual { max-width: 460px; }
@media (max-width: 1000px) {
  .gd-hints { margin-inline: auto; }
  .gd-hero { padding-bottom: 24px; }
}
@media (max-width: 500px) {
  .gd-hero .wn-hero-visual { aspect-ratio: 1 / 1.3; }
}

/* ---------- «С чего начать» ---------- */
.gd-startwrap { padding-block: 8px 28px; }
.gd-start-h {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
}
.gd-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gd-start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.gd-start-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border); }
.gd-start-n {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 16px;
}
.gd-start-t { font-size: 15.5px; line-height: 1.5; color: var(--text-secondary); }
.gd-start-t strong { display: block; margin-bottom: 4px; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.gd-start-go { margin-top: auto; color: var(--green); font-weight: 700; }
@media (max-width: 900px) {
  .gd-start { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gd-start-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 18px; }
  .gd-start-n { flex: 0 0 34px; }
  .gd-start-t { flex: 1; min-width: 0; }
  .gd-start-t strong { font-size: 17px; }
  .gd-start-go { margin-top: 6px; }
}

/* ---------- Layout: оглавление + разделы ---------- */
.gd-layout { padding-block: 16px 56px; }
.gd-main { min-width: 0; }
@media (min-width: 1200px) {
  .gd-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 48px; align-items: start; }
  .gd-tocwrap {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }
  .gd-toc-toggle { display: none; }
}

/* Оглавление (общее) */
.gd-toc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 16px 12px 12px;
  box-shadow: var(--shadow-sm);
}
.gd-toc ul { list-style: none; }
.gd-toc-title { margin: 0; padding: 0 8px 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-secondary); }
.gd-toc-group + .gd-toc-group { margin-top: 12px; }
.gd-toc-gl { margin: 0; padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.gd-toc-a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-secondary);
  transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.gd-toc-a .n { flex: 0 0 18px; padding-top: 2px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-tertiary); }
.gd-toc-a .t { min-width: 0; }
.gd-toc-a:hover { background: var(--green-soft-2); color: var(--text); }
.gd-toc li.is-active > .gd-toc-a { background: var(--green-soft); color: var(--green); font-weight: 600; }
.gd-toc li.is-active > .gd-toc-a .n { color: var(--green); }
.gd-toc-sub { display: none; margin: 2px 0 6px 26px; padding-left: 8px; border-left: 2px solid var(--border-soft); }
.gd-toc li.is-active > .gd-toc-sub { display: block; }
.gd-toc-sub a { display: block; padding: 4px 8px; border-radius: 8px; font-size: 13px; line-height: 1.3; color: var(--text-secondary); }
.gd-toc-sub a:hover { background: var(--green-soft-2); color: var(--text); }

/* Уже 1200 px: липкая кнопка «Разделы» + выпадающее оглавление */
@media (max-width: 1199px) {
  .gd-tocwrap { position: sticky; top: calc(var(--gd-hdr) + 6px); z-index: 45; margin-bottom: 20px; }
  .gd-toc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }
  .gd-toc-toggle svg { flex: 0 0 auto; color: var(--green); }
  .gd-toc-lbl { flex: 0 0 auto; }
  .gd-toc-cur {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
  }
  .gd-toc-chev { flex: 0 0 auto; color: var(--text-tertiary); transition: transform var(--dur-micro) var(--ease); }
  .gd-tocwrap.is-open .gd-toc-chev { transform: rotate(180deg); }
  .gd-toc {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 8px);
    max-height: calc(100vh - var(--gd-hdr) - 6px - 52px - 24px - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 10px;
    box-shadow: var(--shadow-lg);
  }
  .gd-tocwrap.is-open .gd-toc { display: block; }
  .gd-toc-title, .gd-toc-sub, .gd-toc li.is-active > .gd-toc-sub { display: none; }
  .gd-toc-a { padding: 10px 10px; font-size: 15px; }
}
@media (max-width: 560px) { .gd-toc-cur { font-size: 13px; } }

/* ---------- Раздел ---------- */
.gd-sec { padding-block: 56px 8px; border-top: 1px solid var(--border-soft); }
.gd-sec:first-child { border-top: 0; padding-top: 16px; }
.gd-sec-head { max-width: 760px; margin-bottom: 30px; }
.gd-sec-head .eyebrow { margin-bottom: 14px; }
.gd-h2 { margin-bottom: 14px; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.gd-why { margin: 0; max-width: 700px; font-size: 18px; line-height: 1.5; }
@media (max-width: 700px) {
  .gd-sec { padding-top: 44px; }
  .gd-sec-head { margin-bottom: 22px; }
  .gd-h2 { font-size: 26px; }
  .gd-why { font-size: 16px; }
}

/* ---------- Строка: текст + кадры ---------- */
.gd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  margin-bottom: 44px;
}
.gd-row--2 { grid-template-columns: minmax(0, 1fr) 400px; }
.gd-row--solo { display: block; }
.gd-row--solo .gd-copy { max-width: 720px; }
.gd-copy { min-width: 0; max-width: 640px; }
.gd-copy > * + * { margin-top: 28px; }
.gd-media { min-width: 0; }
@media (min-width: 901px) and (min-height: 780px) {
  .gd-media { position: sticky; top: var(--gd-stick); }
}

.gd-stage {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 26px 18px 22px;
  border-radius: 32px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  background:
    radial-gradient(70% 55% at 50% 25%, rgba(167, 215, 174, .34) 0%, rgba(167, 215, 174, 0) 70%),
    radial-gradient(50% 45% at 85% 95%, rgba(213, 232, 187, .38) 0%, rgba(213, 232, 187, 0) 70%),
    var(--surface);
}
.gd-fig { flex: 1 1 0; min-width: 0; max-width: 222px; margin: 0; }
.gd-row--1 .gd-fig { max-width: 238px; }
.gd-fig .wn-phone { cursor: zoom-in; }
.gd-fig .wn-phone:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.gd-cap {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 900px) {
  .gd-row, .gd-row--2 { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 36px; }
  .gd-copy { max-width: none; }
  .gd-stage { padding: 22px 14px 18px; border-radius: 28px; }
  .gd-row--1 .gd-fig { max-width: 232px; }
  .gd-row--2 .gd-fig { max-width: 216px; }
}
@media (max-width: 560px) {
  /* два кадра в ряд не помещаются — лента, которую листают вбок (как «Ещё экраны» на страницах «Что нового») */
  .gd-row--2 .gd-stage {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .gd-row--2 .gd-fig { flex: 0 0 176px; max-width: none; scroll-snap-align: start; }
  .gd-row--2 .gd-stage::after { content: ""; flex: 0 0 1px; }
  .gd-row--2 .gd-stage:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
}
@media (prefers-reduced-motion: no-preference) { .gd-row--2 .gd-stage { scroll-behavior: smooth; } }

/* ---------- Текст: заголовки, шаги, списки ---------- */
.gd-blk, .gd-card { min-width: 0; }
.gd-h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.gd-intro { margin: -4px 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.gd-p { font-size: 16px; line-height: 1.55; }
.gd-p + .gd-p { margin-top: 10px; }

.gd-steps { list-style: none; display: grid; gap: 14px; counter-reset: gd-n; }
.gd-steps > li {
  position: relative;
  min-height: 30px;
  padding-left: 44px;
  font-size: 16px;
  line-height: 1.55;
  counter-increment: gd-n;
}
.gd-steps > li::before {
  content: counter(gd-n);
  position: absolute;
  left: 0; top: -1px;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.gd-li-t { display: block; margin-bottom: 2px; font-size: 16px; }

.gd-list { list-style: none; display: grid; gap: 10px; }
.gd-list > li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; }
.gd-list > li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.gd-sublist {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--border-soft);
}
.gd-sublist > li { position: relative; font-size: 15px; line-height: 1.5; color: var(--text); }

/* Названия кнопок и экранов — «как в приложении» */
.gd .ui {
  padding: 0 3px;
  border-radius: 6px;
  background: var(--green-soft);
  color: #1E5A2B;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.gd .gd-xref { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gd .gd-xref .ui { padding: 0; background: none; color: inherit; }
.gd .gd-and {
  display: inline-block;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--gd-amber-bg);
  color: var(--gd-amber-tx);
  font-size: .86em;
  font-weight: 700;
  line-height: 1.5;
}
.gd .gd-hint .ui, .gd .gd-cap .ui { background: none; padding: 0; }

/* ---------- Совет ---------- */
.gd-tip {
  max-width: 760px;
  margin: 8px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--green-soft-2);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--green);
}
.gd-tip-k { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.gd-tip .gd-p { font-size: 15px; }
.gd-tip-list { list-style: none; display: grid; gap: 8px; }
.gd-tip-list > li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.55; }
.gd-tip-list > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.gd-tip .ui { background: #DDEEDF; }

/* ---------- Карточки в ряд ---------- */
.gd-cards { display: grid; gap: 16px; margin: 0 0 44px; }
.gd-cards-1 { grid-template-columns: minmax(0, 1fr); }
.gd-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.gd-card .gd-h3 { margin-bottom: 12px; font-size: 18px; }
.gd-card .gd-steps { gap: 12px; }
.gd-card .gd-steps > li, .gd-card .gd-list > li, .gd-card .gd-p { font-size: 15px; }
.gd-card .gd-steps > li { padding-left: 40px; }
.gd-card .gd-steps > li::before { width: 28px; height: 28px; font-size: 13px; }
.gd-card--lg { padding: 28px; border-radius: 28px; border-color: #E5EBE6; box-shadow: var(--shadow-md); }
.gd-card--lg .gd-h3 { font-size: 22px; }
.gd-card--prem { background: var(--green-soft-2); border-color: var(--border-strong); }
.gd-card-ico {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 15px;
  background: var(--green-soft);
  font-size: 24px;
}
@media (max-width: 1000px) {
  .gd-cards-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gd-cards-2 { grid-template-columns: minmax(0, 1fr); }
  .gd-card--lg { padding: 22px; }
}

/* «Фото профиля: нажми на аватарку» — самая частая просьба, поэтому блок выделен */
.gd-blk#profile-avatar {
  padding: 20px 22px;
  background: var(--green-soft-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
}
.gd-blk#profile-avatar .gd-h3::before { content: "📷  "; }
.gd-blk#profile-avatar .gd-steps > li::before { background: var(--green); color: #fff; }
@media (max-width: 500px) { .gd-blk#profile-avatar { padding: 18px 16px; } }

/* Заметка «Вход в уже созданный аккаунт» */
.gd-note { max-width: 760px; margin: 0 0 44px; }
.gd-note-in {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
}
.gd-note-in .gd-h3 { font-size: 18px; }
.gd-note-in .gd-h3::before { content: "🔑  "; }
.gd-note-in .gd-p { font-size: 15px; }

/* ---------- Таблица лимитов ---------- */
.gd-limits {
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.gd-limits table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.gd-limits th {
  padding: 13px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.gd-limits th:last-child { text-align: right; }
.gd-limits td { padding: 14px 20px; border-bottom: 1px solid var(--border-soft); vertical-align: top; line-height: 1.4; }
.gd-limits tr:last-child td { border-bottom: 0; }
.gd-limits .gd-n { text-align: right; white-space: nowrap; font-weight: 700; color: var(--green); }
.gd-sec .gd-blk#limits { margin-bottom: 44px; max-width: 760px; }
@media (max-width: 500px) {
  .gd-limits table { font-size: 14.5px; }
  .gd-limits th, .gd-limits td { padding: 12px 14px; }
}

/* ---------- «Куда нажать?» ---------- */
.gd-where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.gd-q {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.gd-q:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.gd-q-q { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.gd-q-a { font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.gd-q-a .ui { color: #1E5A2B; }
.gd-q-go { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--green); }
@media (max-width: 760px) { .gd-where { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Вопросы и ответы (ссылка на главную) ---------- */
.gd-faq { max-width: 760px; margin-bottom: 24px; }
.gd-faq-t { margin: 0 0 18px; font-size: 17px; line-height: 1.55; }
.gd-faq-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.gd-faq-btns .btn { flex: 1 1 200px; }
.gd-faq-s { margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.gd-faq-s a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Финальный блок ---------- */
.gd .wn-final { padding-top: 0; }
.gd .final-cta .store-badge { border-color: transparent; box-shadow: none; }
.gd .final-cta :focus-visible { outline-color: #fff; }
@media (max-width: 500px) {
  .gd .final-cta-buttons .store-badge { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Увеличение кадра и «Наверх» ---------- */
.gd-lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 23, 19, .86);
  cursor: zoom-out;
}
.gd-lb.open { display: flex; }
.gd-lb img {
  width: auto;
  height: auto;
  max-width: min(92vw, 480px);
  max-height: 92vh;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.gd-lb-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(17, 23, 19, .62);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 20px;
}
.gd-top {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 39;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-micro) var(--ease);
}
.gd-top.show { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) { .gd-top { display: none; } }   /* на телефоне есть липкая кнопка «Разделы» */
/* Кнопка «Наверх» прижата к низу окна: в самом конце страницы она закрывала последнюю букву адреса в подвале ("Emirates").
   Даём подвалу запас снизу, чтобы строка с адресом оказалась выше кнопки. (≤900 px кнопки нет.) */
@media (min-width: 901px) { .site-footer { padding-bottom: 84px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gd-start-card, .gd-q { transition: none; }
  .gd-start-card:hover, .gd-q:hover { transform: none; }
}
