/* Общий стиль страниц-статей и раздела «Инструкции» сайта GoListen.
   Правила взяты с apple.com (замеры в памяти Claude, yt-app-apple-web-research):
   - заголовки: высота строки = размер + 4 px; основной текст 17/25;
   - колонка текста 692 px, общая ширина 980 px;
   - карточки без рамок, скругление 18/28 px, фон #f5f5f7 на белом;
   - кнопки — пилюли; навигация с размытием; подвал-справочник 12/16.
   Inter вместо SF Pro, трекинг подобран под Inter. Цвета страницы и акцент — как у лендинга, чтобы переход
   между ними не бросался в глаза. Тёмная тема — по системе. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;
  src:url("../fonts/inter.woff2") format("woff2")}

:root{
  --page:#ffffff; --alt:#f5f5f7; --on-alt:#ffffff;
  --ink:#1d1d1f; --ink-2:#6e6e73; --ink-3:#86868b;
  --hair:#d2d2d7; --hair-soft:rgba(0,0,0,.08);
  --accent:#e30000; --link:#c70000; --on-accent:#ffffff;
  --yes:#1f9d3a; --no:#e0303a; --meh:#8e8e93;
  --nav:rgba(255,255,255,.78);
  --feature:#1d1d1f; --feature-ink:#f5f5f7; --feature-ink-2:#a1a1a6; --feature-card:#2c2c2e;
  --shadow:0 2px 8px rgba(0,0,0,.05),0 18px 40px rgba(0,0,0,.08);
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --wide:980px; --text:692px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root{
  --page:#0d0e12; --alt:#17181d; --on-alt:#22232a;
  --ink:#f5f5f7; --ink-2:#a1a1a6; --ink-3:#86868b;
  --hair:#34363f; --hair-soft:rgba(255,255,255,.09);
  --accent:#e30000; --link:#ff6b6b;
  --yes:#30c25a; --no:#ff5a5f; --meh:#8e8e93;
  --nav:rgba(13,14,18,.74);
  --feature:#1f2027; --feature-ink:#f5f5f7; --feature-ink-2:#a1a1a6; --feature-card:#2b2c34;
  --shadow:0 2px 8px rgba(0,0,0,.4),0 18px 40px rgba(0,0,0,.45);
  color-scheme:dark;
}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px}
body{margin:0;background:var(--page);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:25px;
  letter-spacing:-.013em;-webkit-font-smoothing:antialiased;font-synthesis:none;min-width:320px}
img,svg{max-width:100%;display:block}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
b,strong{font-weight:600}
h1,h2,h3,h4{font-weight:600;margin:0;text-wrap:balance}
p{margin:0}
.wrap{max-width:var(--wide);margin:0 auto;padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right))}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ── навигация ─────────────────────────────────────────── */
.gnav{position:sticky;top:0;z-index:50;background:var(--nav);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--hair-soft)}
.gnav .wrap{display:flex;align-items:center;gap:22px;height:52px}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:600;font-size:19px;line-height:23px;letter-spacing:-.016em}
.brand:hover{text-decoration:none}
.brand img{width:28px;height:28px;border-radius:7px}
.gnav .sp{flex:1}
.gnav nav{display:flex;gap:22px}
.gnav nav a{color:var(--ink-2);font-size:14px;line-height:18px;letter-spacing:-.006em}
.gnav nav a:hover,.gnav nav a[aria-current]{color:var(--ink);text-decoration:none}
.pill{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:var(--on-accent);border-radius:980px;
  padding:7px 15px;font-size:14px;line-height:18px;letter-spacing:-.006em;font-weight:400;white-space:nowrap}
.pill:hover{text-decoration:none;filter:brightness(1.08)}
.pill.big{padding:12px 24px;font-size:17px;line-height:21px;letter-spacing:-.013em}
.more{font-size:17px;line-height:21px;color:var(--link);white-space:nowrap}
.more::after{content:" ›"}

/* ── шапка статьи ──────────────────────────────────────── */
.hero{background:var(--alt);overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:56px;align-items:end}
.hero-text{padding:76px 0 80px}
.eyebrow{display:inline-block;font-size:17px;line-height:21px;font-weight:600;color:var(--link);margin-bottom:14px}
.hero h1{font-size:48px;line-height:52px;letter-spacing:-.022em}
.intro{font-size:21px;line-height:29px;letter-spacing:-.017em;color:var(--ink-2);margin-top:20px;max-width:34em}
.meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:22px;font-size:14px;line-height:18px;color:var(--ink-3)}
.meta span{display:inline-flex;align-items:center;gap:6px}
.meta svg{width:15px;height:15px}
.hero-art{height:470px;overflow:hidden;align-self:end;display:flex;justify-content:center}
.hero-art svg{width:300px;height:auto;flex:none}

/* ── тело: оглавление + текст ─────────────────────────── */
.doc{display:grid;grid-template-columns:200px minmax(0,var(--text));gap:60px;justify-content:center;padding-top:64px}
.toc{position:sticky;top:80px;align-self:start;font-size:14px;line-height:18px;letter-spacing:-.006em}
.toc>p{font-weight:600;color:var(--ink);margin-bottom:12px}
.toc ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--hair)}
.toc li a{display:block;padding:6px 0 6px 14px;margin-left:-1px;border-left:2px solid transparent;color:var(--ink-2)}
.toc li.sub a{padding-left:26px;font-size:13px}
.toc li a:hover{color:var(--ink);text-decoration:none}
.toc li a.on{color:var(--ink);border-left-color:var(--accent);font-weight:600}
.prose>*+*{margin-top:18px}
.prose h2{font-size:32px;line-height:36px;letter-spacing:-.021em;margin-top:72px}
.prose>h2:first-child,.prose>.callout+h2{margin-top:56px}
.prose h3{font-size:21px;line-height:25px;letter-spacing:-.017em;margin-top:36px}
.prose ul,.prose ol{padding-left:22px}
.prose li+li{margin-top:8px}
.prose .muted{color:var(--ink-2)}
.src{color:var(--ink-3);font-size:14px;line-height:20px}
.src a{color:var(--ink-3);text-decoration:underline;text-decoration-color:var(--hair)}

/* «Коротко» */
.callout{display:grid;grid-template-columns:30px 1fr;gap:14px;background:var(--alt);border-radius:18px;padding:24px 26px;
  font-size:19px;line-height:27px;letter-spacing:-.016em}
.callout svg{width:30px;height:30px;color:var(--accent);margin-top:-1px}

/* хронология */
.timeline{list-style:none;padding:0!important;margin-top:28px!important}
.timeline li{position:relative;padding:0 0 26px 34px;margin:0!important}
.timeline li::before{content:"";position:absolute;left:4px;top:5px;width:14px;height:14px;border-radius:50%;
  background:var(--page);border:3px solid var(--ink)}
.timeline li::after{content:"";position:absolute;left:10px;top:23px;bottom:3px;width:2px;background:var(--hair)}
.timeline li:last-child{padding-bottom:0}
.timeline li:last-child::after{display:none}
.timeline time{display:block;font-size:14px;line-height:18px;font-weight:600;color:var(--link);margin-bottom:4px}

/* карточки способов */
.methods{display:grid;gap:20px;margin-top:28px!important}
.method{background:var(--alt);border-radius:28px;padding:30px 32px 30px}
.method-head{display:flex;align-items:center;gap:14px}
.num{flex:none;width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--page);display:grid;place-items:center;
  font-weight:600;font-size:17px;letter-spacing:0}
.method h3{margin:0;font-size:24px;line-height:28px;letter-spacing:-.019em}
.method>p,.method .body>p{margin-top:14px}
.facts{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0!important;margin:18px 0 0}
.facts li{margin:0!important;display:inline-flex;align-items:center;gap:7px;background:var(--on-alt);border-radius:980px;
  padding:6px 13px 6px 7px;font-size:14px;line-height:18px;letter-spacing:-.006em}
.facts li::before{content:"";width:20px;height:20px;border-radius:50%;flex:none;background:var(--meh) center/12px no-repeat}
.facts .yes::before,.y::before{background-color:var(--yes);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.6-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.facts .no::before,.n::before{background-color:var(--no);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3.4 3.4 5.2 5.2m0-5.2-5.2 5.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
.facts .cost::before{background-color:var(--meh);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='2.2' fill='white'/%3E%3C/svg%3E")}
.minus{color:var(--ink-2);font-size:15px;line-height:22px;letter-spacing:-.01em;margin-top:16px!important}
.minus b{color:var(--ink)}
.tag{display:inline-block;font-size:12px;line-height:16px;font-weight:600;letter-spacing:0;color:var(--no);
  border:1px solid currentColor;border-radius:980px;padding:2px 9px;margin-left:4px;vertical-align:3px}

/* главная карточка — отдельный плеер */
.method.featured{background:var(--feature);color:var(--feature-ink);padding:34px;display:flow-root}
.featured .num{background:var(--accent);color:#fff}
.num svg{width:17px;height:17px}
.featured .minus,.featured .muted{color:var(--feature-ink-2)}
.featured .minus b{color:var(--feature-ink)}
.featured a:not(.pill){color:#ff8a8a}
.featured .facts li{background:var(--feature-card);color:var(--feature-ink)}
.featured .art{float:right;width:196px;margin:-4px -6px 18px 30px}
.featured .art svg{width:196px}
.featured h4{font-size:17px;line-height:21px;margin-top:24px}
.featured .cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:24px}
.featured .cta-row .more{color:#ff8a8a}

/* шаги */
.steps{counter-reset:s;list-style:none;padding:0!important;margin-top:16px!important;display:grid;gap:14px}
.steps li{counter-increment:s;position:relative;padding-left:44px;min-height:30px;margin:0!important}
.steps li::before{content:counter(s);position:absolute;left:0;top:-2px;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;
  display:grid;place-items:center;font-size:15px;font-weight:600;letter-spacing:0}

/* таблица сравнения */
.matrix{margin-top:24px!important;background:var(--alt);border-radius:18px;overflow:hidden}
.matrix table{width:100%;border-collapse:collapse;font-size:15px;line-height:20px;letter-spacing:-.01em}
.matrix th{text-align:left;font-size:13px;line-height:16px;font-weight:600;color:var(--ink-2);padding:16px 16px 12px;vertical-align:bottom}
.matrix td{padding:14px 16px;border-top:1px solid var(--hair-soft);vertical-align:middle}
.matrix td:first-child{font-weight:600}
.matrix .y,.matrix .n,.matrix .m{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.matrix .y::before,.matrix .n::before,.matrix .m::before{content:"";width:20px;height:20px;border-radius:50%;flex:none;
  background-position:center;background-size:12px;background-repeat:no-repeat}
.matrix .m::before{background-color:var(--meh);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6h5.6' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
.matrix tr.best td{background:color-mix(in srgb,var(--accent) 7%,transparent)}

/* «где не работает» и марки телефонов */
.picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;list-style:none;padding:0!important;margin-top:22px!important}
.picker li{margin:0!important}
.picker a{display:grid;grid-template-columns:40px 1fr;gap:4px 14px;align-items:center;height:100%;background:var(--alt);border-radius:18px;
  padding:16px 18px;color:var(--ink)}
.picker a:hover{text-decoration:none;background:color-mix(in srgb,var(--alt) 85%,var(--ink) 6%)}
.picker .ic{grid-row:span 2;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff}
.picker .ic svg{width:22px;height:22px}
.picker b{font-size:17px;line-height:21px}
.picker small{font-size:14px;line-height:18px;color:var(--ink-2);letter-spacing:-.006em}
.cards3{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:20px!important}
.cards3>div{background:var(--alt);border-radius:18px;padding:18px 20px}
.cards3 h4{font-size:17px;line-height:21px;margin-bottom:6px}
.cards3 p{font-size:15px;line-height:22px;color:var(--ink-2);letter-spacing:-.01em}
.xlist{list-style:none;padding:0!important}
.xlist li{position:relative;padding-left:32px}
.xlist li::before{content:"";position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;background:var(--no) center/12px no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3.4 3.4 5.2 5.2m0-5.2-5.2 5.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}

/* вопросы — аккордеон как у Apple */
.faq{margin-top:20px!important;border-top:1px solid var(--hair)}
.faq details{border-bottom:1px solid var(--hair)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;
  padding:22px 0;font-size:21px;line-height:25px;font-weight:600;letter-spacing:-.017em}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:20px;height:20px;margin-top:2px;transition:transform .25s ease;
  background:var(--ink-2);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14M3 10h14' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14M3 10h14' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 40px 24px 0;color:var(--ink-2)}

/* блок скачивания */
.band{background:var(--alt);margin-top:104px;padding:80px 0 84px;text-align:center}
.band img{width:84px;height:84px;border-radius:19px;margin:0 auto 22px;box-shadow:var(--shadow)}
.band h2{font-size:40px;line-height:44px;letter-spacing:-.022em}
.band p.intro{margin:14px auto 0}
.band .cta-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 26px;margin-top:30px}
.trust{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;list-style:none;padding:0;margin:30px 0 0}
.trust li{display:inline-flex;align-items:center;gap:7px;background:var(--on-alt);border-radius:980px;padding:7px 14px 7px 9px;
  font-size:14px;line-height:18px;color:var(--ink-2);letter-spacing:-.006em}
.trust svg{width:18px;height:18px;color:var(--yes)}

/* ещё по теме / карточки раздела */
.related{padding:76px 0 8px}
.related h2{font-size:32px;line-height:36px;letter-spacing:-.021em}
.related .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:26px}
.tile{display:flex;flex-direction:column;background:var(--alt);border-radius:28px;overflow:hidden;color:var(--ink)}
.tile:hover{text-decoration:none}
.tile:hover .tile-art svg{transform:scale(1.04)}
.tile-art{height:190px;display:grid;place-items:center;color:#fff}
.tile-art svg{width:84px;height:84px;transition:transform .35s ease}
.tile-body{padding:24px 26px 28px;display:flex;flex-direction:column;gap:8px;flex:1}
.tile-body small{font-size:14px;line-height:18px;color:var(--ink-3)}
.tile-body h3{font-size:24px;line-height:28px;letter-spacing:-.019em}
.tile-body p{color:var(--ink-2);font-size:17px;line-height:25px}
.tile-body .more{margin-top:auto;padding-top:10px}
.g-violet{background:linear-gradient(140deg,#1e1b4b 0%,#6d28d9 52%,#db2777 100%)}
.g-ember{background:linear-gradient(140deg,#2b0b0e 0%,#b91c1c 55%,#f97316 100%)}
.g-ocean{background:linear-gradient(140deg,#082f49 0%,#0369a1 55%,#22d3ee 100%)}

/* раздел «Инструкции» */
.hub-hero{background:var(--alt);padding:84px 0 72px}
.hub-hero h1{font-size:56px;line-height:60px;letter-spacing:-.022em}
.hub-hero .intro{font-size:24px;line-height:32px}
.hub{padding-top:56px;padding-bottom:24px}

/* подвал-справочник */
.gfoot{background:var(--alt);color:var(--ink-2);font-size:12px;line-height:16px;letter-spacing:0;margin-top:96px;padding:34px 0 40px}
.related+.gfoot{margin-top:72px}
.band+.gfoot{margin-top:0;border-top:1px solid var(--hair-soft)}
.gfoot .dir{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-bottom:22px;border-bottom:1px solid var(--hair)}
.gfoot h4{font-size:12px;line-height:16px;font-weight:600;color:var(--ink);margin-bottom:10px}
.gfoot ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.gfoot a{color:var(--ink-2)}
.gfoot a:hover{color:var(--ink)}
.gfoot .legal{margin-top:16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px}

/* ── планшеты ─────────────────────────────────────────── */
@media (max-width:1068px){
  .hero .wrap{grid-template-columns:minmax(0,1fr) 270px;gap:36px}
  .hero h1{font-size:40px;line-height:44px}
  .hero-art{height:400px}
  .hero-art svg{width:250px}
  .doc{grid-template-columns:minmax(0,var(--text));gap:0}
  .toc{position:static;background:var(--alt);border-radius:18px;padding:18px 20px;margin-bottom:8px}
  .toc ol{columns:2;column-gap:28px;border:0}
  .toc li{break-inside:avoid}
  .toc li a{border:0;padding:5px 0}
  .toc li.sub a{padding-left:12px}
  .toc li a.on{font-weight:400}
  .featured .art{width:176px}
  .featured .art svg{width:176px}
}
/* ── телефоны ─────────────────────────────────────────── */
@media (max-width:734px){
  body{font-size:17px}
  .gnav .wrap{gap:16px;height:48px}
  .gnav nav{gap:16px}
  .brand{font-size:17px}
  .brand img{width:26px;height:26px}
  .hero .wrap{grid-template-columns:1fr;gap:0}
  .hero-text{padding:44px 0 28px}
  .hero h1{font-size:32px;line-height:36px;letter-spacing:-.021em}
  .intro{font-size:19px;line-height:27px}
  .hero-art{height:300px}
  .hero-art svg{width:230px}
  .doc{padding-top:36px}
  .toc ol{columns:1}
  .prose h2{font-size:28px;line-height:32px;margin-top:56px}
  .callout{font-size:17px;line-height:25px;padding:20px 20px;grid-template-columns:26px 1fr;gap:12px}
  .callout svg{width:26px;height:26px}
  .method{padding:24px 22px;border-radius:24px}
  .method h3{font-size:21px;line-height:25px}
  .method.featured{padding:24px 22px}
  .featured .art{float:none;width:200px;margin:4px auto 22px}
  .featured .art svg{width:200px}
  .matrix table{font-size:14px;line-height:18px}
  .matrix th,.matrix td{padding:11px 9px}
  .matrix th:first-child,.matrix td:first-child{padding-left:14px}
  .matrix .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .faq summary{font-size:19px;line-height:23px;padding:20px 0}
  .faq details p{padding-right:0}
  .band{margin-top:80px;padding:60px 0 64px}
  .band h2{font-size:32px;line-height:36px}
  .related{padding-top:56px}
  .related h2{font-size:28px;line-height:32px}
  .tiles,.related .tiles{grid-template-columns:1fr}
  .tile-art{height:150px}
  .hub-hero{padding:48px 0 40px}
  .hub-hero h1{font-size:40px;line-height:44px}
  .hub-hero .intro{font-size:19px;line-height:27px}
  .gfoot .dir{grid-template-columns:1fr 1fr}
  .gfoot .dir>div:first-child{grid-column:span 2}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
