/* ImfoMob — основной стиль */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #0071e3;
  --accent-2: #7a3cff;
  --accent-soft: #e8f1fd;
  --good: #1f9d55;
  --bad: #d93025;
  --mark: #ff3b30;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0f; --surface: #16161c; --surface-2: #1c1c23; --text: #f2f2f7; --muted: #9a9aa3;
    --line: #2a2a33; --accent: #3d9bff; --accent-2: #a77bff; --accent-soft: #14243a; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0f; --surface: #16161c; --surface-2: #1c1c23; --text: #f2f2f7; --muted: #9a9aa3;
  --line: #2a2a33; --accent: #3d9bff; --accent-2: #a77bff; --accent-soft: #14243a; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.5vw, 48px); margin: 0 0 14px; }
.h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 18px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 18px; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 15px var(--font); cursor: pointer; text-decoration: none !important; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btns.center { justify-content: center; }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none !important; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text); padding: 7px 11px; border-radius: 10px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface); }
.nav a.is-active { color: var(--accent); background: var(--accent-soft); }
.nav a:first-child { font-weight: 700; }
.hdr__search { margin-left: auto; }
.hdr__search input { width: 190px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 12px; font: 14px var(--font); }
.theme-btn, .burger { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.burger { display: none; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
@media (max-width: 1080px) {
  .hdr__search { display: none; }
  .burger { display: grid; margin-left: auto; }
  .theme-btn { margin-left: auto; }
  .burger { margin-left: 0; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; font-size: 17px; }
}

/* Хлебные крошки */
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

/* Главная */
.hero { background: radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent), radial-gradient(900px 500px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent); padding: 48px 0 30px; }
.hero__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.hero__art { display: flex; justify-content: center; gap: 0; }
.hero__art svg { height: auto; width: 46%; }
.hero__art svg + svg { margin-left: -8%; transform: translateY(26px); }
/* minmax(0, …): длинные названия целей в списке не растягивают колонку, кнопка остаётся внутри формы */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px; background: var(--surface); padding: 12px; border-radius: 22px; box-shadow: var(--shadow); max-width: 640px; }
.picker__f { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 6px; }
.picker select, .switcher select, .compare-form select { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 15px var(--font); padding: 0 10px; margin-top: 4px; }
.picker select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.picker .btn { align-self: end; white-space: nowrap; }
/* Когда колонка с текстом узкая, кнопка уходит на отдельную строку, а списки остаются читаемыми */
@media (max-width: 1240px) and (min-width: 861px) {
  .picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .picker .btn { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; margin: 0 auto; }
  .picker { grid-template-columns: 1fr; }
}

.section { margin-top: 46px; margin-bottom: 46px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }

.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.goal { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .2s; overflow: hidden; }
.goal::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; opacity: .12; background: var(--gc, var(--accent)); }
.goal:hover { transform: translateY(-3px); }
.goal b { font-size: 19px; }
.goal span { color: var(--muted); font-size: 15px; }
.goal em { font-style: normal; font-size: 13px; color: var(--gc, var(--accent)); font-weight: 600; margin-top: auto; padding-top: 6px; }
.goal--red, .guide-head--red { --gc: #ff3b30; } .goal--green, .guide-head--green { --gc: #1fae4b; } .goal--purple, .guide-head--purple { --gc: #af52de; }
.goal--gray, .guide-head--gray { --gc: #636366; } .goal--blue, .guide-head--blue { --gc: #0a84ff; } .goal--orange, .guide-head--orange { --gc: #ff9500; }
.goal--yellow, .guide-head--yellow { --gc: #d9a300; } .goal--indigo, .guide-head--indigo { --gc: #5856d6; } .goal--teal, .guide-head--teal { --gc: #1f9fb5; }
.goal--black, .guide-head--black { --gc: #3a3a3c; }
:root[data-theme="dark"] .goal--black, :root[data-theme="dark"] .guide-head--black { --gc: #aeaeb2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .goal--black, :root:not([data-theme="light"]) .guide-head--black { --gc: #aeaeb2; } }
.goal-group__t { margin: 26px 0 12px; font-size: 18px; }
.section .goal-group__t { margin-top: 22px; }
.goal-grid--compact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.goal-grid--compact .goal { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.goal__ico { flex: 0 0 auto; line-height: 0; }
.goal-grid--compact .goal em { margin: 0 0 0 auto; padding: 0; }
@media (max-width: 520px) { .goal-grid { grid-template-columns: 1fr; } }

.hidden-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hidden-list a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; height: 100%; }
.hidden-list .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.hidden-list span:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .hidden-list { grid-template-columns: 1fr; } }

.series { margin-bottom: 18px; }
.series__t { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.model-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.model-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; padding: 12px 8px; background: var(--surface); border-radius: 16px; color: var(--text); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none !important; box-shadow: var(--shadow); }
.model-chip .device { height: 110px; width: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards--wide { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card__img { display: block; background: linear-gradient(160deg, var(--surface-2), var(--bg)); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 4px 0; font-size: 19px; }
.card h3 a { color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card time { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards--wide { grid-template-columns: 1fr; } }
.cover { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 16px; min-height: 120px; }
.cover .device { height: 150px; width: auto; }
.cover img { width: 100%; height: 180px; object-fit: cover; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag--compare { background: color-mix(in srgb, #af52de 15%, transparent); color: #a052d0; }
.tag--article { background: color-mix(in srgb, #1fae4b 15%, transparent); color: #1a8f42; }
.cta-compare { display: flex; flex-direction: column; margin-top: 18px; padding: 22px; border-radius: var(--radius); color: #fff; background: linear-gradient(110deg, var(--accent), var(--accent-2)); text-decoration: none !important; }
.cta-compare b { font-size: 20px; } .cta-compare span { opacity: .9; }

/* Каталог */
.page-head { margin: 10px 0 26px; }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model-grid--sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.model-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; }
.model-card__art { display: flex; justify-content: center; margin-bottom: 10px; }
.model-card__art .device { height: 170px; width: auto; }
.model-card b { font-size: 18px; } .model-card span { color: var(--muted); font-size: 14px; }
.swatches { display: flex; gap: 5px; margin-top: 6px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.model-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); font-size: 14px; text-align: center; text-decoration: none !important; }
.model-tile .device { height: 100px; width: auto; }
@media (max-width: 960px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .model-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .model-card { padding: 12px; } .model-card__art .device { height: 130px; } }

/* Страница модели */
.model-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; margin: 10px 0 30px; }
.model-hero__art { background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg) 70%); border-radius: 28px; padding: 20px; text-align: center; }
.cv-slide { display: none; justify-content: center; }
.cv-slide.is-active { display: flex; animation: fade .4s; }
.cv-slide svg { width: 48%; height: auto; }
@keyframes fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.cv-swatches { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.cv-swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.cv-swatches button.is-active { box-shadow: 0 0 0 2px var(--accent); }
.cv-name { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.rating { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.rating b { font-size: 34px; color: var(--accent); }
.rating span { color: var(--muted); font-size: 14px; }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.key-specs div { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.key-specs dt { font-size: 12px; color: var(--muted); }
.key-specs dd { margin: 0; font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .model-hero { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.two-col aside { display: flex; flex-direction: column; gap: 14px; margin-top: 86px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .two-col aside { margin-top: 0; } }
.pc { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.pc h3 { margin: 0 0 6px; font-size: 17px; }
.pc ul { margin: 0; padding: 0; list-style: none; }
.pc li { padding: 5px 0 5px 24px; position: relative; font-size: 15px; line-height: 1.45; }
.pc--pro li::before { content: "+"; position: absolute; left: 4px; color: var(--good); font-weight: 800; }
.pc--con li::before { content: "−"; position: absolute; left: 4px; color: var(--bad); font-weight: 800; }
.feat-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; list-style: none; }
.feat-list li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.feat-list--col { margin: 0; }
.side-link { display: block; padding: 6px 0; font-size: 15px; border-top: 1px solid var(--line); }
.prevnext { display: flex; justify-content: space-between; margin: 36px 0; font-weight: 600; }

/* Таблицы характеристик */
.specs-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 20px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.specs tbody th { color: var(--muted); font-weight: 500; width: 34%; }
.specs--multi tbody th { width: 22%; min-width: 140px; }
.specs--multi td { min-width: 160px; }
.specs thead th { font-size: 16px; border-top: 0; }
.specs__group th { background: var(--surface-2); color: var(--text) !important; font-weight: 700 !important; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.specs tr.is-diff td { background: color-mix(in srgb, var(--accent) 7%, transparent); font-weight: 600; }
.specs .yes { color: var(--good); font-weight: 800; } .specs .no { color: var(--muted); }
.only-diff { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 15px; }
.specs.only-diff-on tbody tr:not(.is-diff):not(.specs__group) { display: none; }

.compare-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; background: var(--surface); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-form label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .compare-form { grid-template-columns: 1fr; } }
.cmp-devices { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 12px; margin: 22px 0 8px; text-align: center; }
.cmp-devices a { display: flex; flex-direction: column; align-items: center; color: var(--text); gap: 6px; }
.cmp-devices .device { height: 180px; width: auto; }

/* Руководства */
.guide { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 34px; align-items: start; }
.guide__side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.guide__main { min-width: 0; }
@media (max-width: 1000px) { .guide { grid-template-columns: minmax(0, 1fr); } .guide__side { position: static; max-height: none; order: 2; } }
.side-box { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.side-box__t { font-weight: 700; margin: 0 0 8px; font-size: 15px; }
.toc { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; font-size: 14px; line-height: 1.35; }
.toc label { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toc input { margin-top: 2px; accent-color: var(--good); flex: 0 0 auto; }
.toc a { color: var(--text); }
.toc a::before { content: counter(t) ". "; color: var(--muted); }
.toc label.is-done a { color: var(--muted); text-decoration: line-through; }
.toc--plain li { padding: 5px 0; border-top: 1px solid var(--line); }
.toc--plain a::before { content: none; }
.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.progress__bar { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--good), #6fd38f); transition: width .3s; }

.guide-head { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 16px; border-top: 4px solid var(--gc, var(--accent)); }
.guide-head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.guide-head .lead { margin: 0; font-size: 17px; }
.guide-head__upd { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.model-facts { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 16px; }
.model-facts__t { font-weight: 700; margin: 0 0 10px; }
.model-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; margin: 0; }
.model-facts dt { font-size: 13px; color: var(--muted); }
.model-facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.model-facts__n { margin: 12px 0 6px; font-size: 15px; color: var(--muted); }
.model-facts a { font-size: 15px; font-weight: 600; }
.related { margin: 30px 0 0; }
.related h2 { font-size: 22px; margin: 0 0 12px; }
@media (max-width: 600px) { .guide-head { flex-direction: column; padding: 18px; } }
.switcher { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.switcher label { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.switcher select { margin: 0; min-width: 220px; }
.switcher__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.switcher__tabs a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.switcher__tabs a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.tip { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; margin: 0 0 22px; }
.tip__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.tip__num { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.tip__head h2 { margin: 2px 0 6px; font-size: clamp(20px, 2.6vw, 26px); }
.tip__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.tip__path { background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px; font-weight: 600; color: var(--text); }
.impact { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.impact i { width: 6px; height: 14px; border-radius: 3px; background: var(--line); }
.impact i:last-of-type { margin-right: 5px; }
.impact--1 i:nth-child(-n+1), .impact--2 i:nth-child(-n+2), .impact--3 i:nth-child(-n+3) { background: var(--good); }
.tip__req { font-size: 14px; color: #a35a00; background: color-mix(in srgb, #ff9500 12%, transparent); padding: 8px 12px; border-radius: 10px; margin: 0 0 10px; }
.tip__effect { margin: 0 0 6px; }
.tip__down { font-size: 15px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin: 16px 0 0; }
.tip__done { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 600; font-size: 15px; cursor: pointer; }
.tip__done input { width: 18px; height: 18px; accent-color: var(--good); }
.tip.is-done { opacity: .75; }
@media (max-width: 600px) { .tip { padding: 18px; border-radius: 20px; } .tip__num { width: 34px; height: 34px; font-size: 15px; } }
.guide-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 30px 0; }
.guide-next a { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-weight: 600; text-decoration: none; }
.guide-next small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
@media (max-width: 760px) { .guide-next { grid-template-columns: 1fr; } }
.model-guide-head { display: flex; gap: 28px; align-items: center; margin: 10px 0 26px; }
.model-guide-head__art .device { height: 230px; width: auto; }
@media (max-width: 700px) { .model-guide-head { flex-direction: column; align-items: flex-start; } .model-guide-head__art .device { height: 170px; } }

/* Текст статей */
.prose { font-size: 17px; line-height: 1.7; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin: 38px 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: st; }
.prose ol.steps > li { counter-increment: st; position: relative; padding: 2px 0 2px 40px; margin: 10px 0; }
.prose ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose table th { background: var(--surface-2); }
.prose kbd, .prose .ui { font-family: var(--font); font-size: .92em; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.box { border-radius: 16px; padding: 14px 16px 14px 18px; margin: 18px 0; border-left: 4px solid var(--accent); background: var(--accent-soft); font-size: 16px; }
.box__t { display: block; margin-bottom: 2px; }
.box--warn { border-color: #ff9500; background: color-mix(in srgb, #ff9500 12%, transparent); }
.box--pro { border-color: #af52de; background: color-mix(in srgb, #af52de 12%, transparent); }
.cond { border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; margin: 14px 0; }
.cond-inline { background: color-mix(in srgb, #ff9500 10%, transparent); border-radius: 6px; padding: 1px 6px; }
.cond-inline .cond__label { display: inline; margin: 0; }
.cond__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #a35a00; margin-bottom: 6px; }
.photo { margin: 20px 0; } .photo img { border-radius: 16px; width: 100%; height: auto; }
.photo figcaption, .device-fig figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.device-fig { margin: 24px 0; text-align: center; background: radial-gradient(circle at 50% 40%, var(--surface-2), transparent 70%); border-radius: 20px; padding: 16px; }
.device-fig .device { height: 300px; width: auto; max-width: 48%; }

.article { max-width: 1100px; }
.article__head { max-width: 820px; margin: 10px 0 20px; }
.article__meta { color: var(--muted); font-size: 14px; }
.article__cover .cover { background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg) 75%); border-radius: 28px; padding: 26px; }
.article__cover .cover .device { height: 300px; }
.article__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; margin-top: 30px; }
.article__grid:not(:has(.article__toc)) { grid-template-columns: minmax(0, 820px); }
.article__toc { position: sticky; top: 80px; align-self: start; }
.article__body { max-width: 780px; }
@media (max-width: 900px) { .article__grid { grid-template-columns: minmax(0, 1fr); } .article__toc { position: static; } .article__cover .cover .device { height: 210px; } }
.article-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); margin: 30px 0; }
.article-cta span { display: block; color: var(--muted); font-size: 15px; }
.helpful { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); margin: 30px 0; }
.helpful__q { margin: 0; font-weight: 700; font-size: 17px; }
.helpful__btns { display: flex; gap: 10px; }
.helpful__btns[hidden], .helpful__thanks[hidden], .helpful [hidden] { display: none; }
.helpful__btns .btn { min-width: 84px; }
.helpful__thanks { margin: 0; color: var(--good); font-weight: 600; }
.helpful__thanks span { display: block; color: var(--muted); font-weight: 400; font-size: 15px; }

/* ---------- Макет экрана iOS ---------- */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 20px 0; align-items: start; }
.shot { margin: 20px auto; max-width: 320px; }
.screens .shot { margin: 0 auto; }
.shot__path { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 8px; }
.shot__cap { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 10px; text-align: center; }
.shot__cap b { color: var(--text); }
.ios { --ib: #f2f2f7; --ir: #ffffff; --it: #000; --is: #8a8a8e; --il: #e5e5ea; --ia: #0a84ff;
  position: relative; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #3a3a3e, #1b1b1d); box-shadow: 0 18px 40px rgba(0,0,0,.18), inset 0 0 0 1.5px #555; }
.shot--dark .ios, :root[data-theme="dark"] .ios { --ib: #000; --ir: #1c1c1e; --it: #fff; --is: #8d8d93; --il: #38383a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ios { --ib: #000; --ir: #1c1c1e; --it: #fff; --is: #8d8d93; --il: #38383a; } }
.ios-screen { position: relative; border-radius: 37px; overflow: hidden; background: var(--ib); color: var(--it); font: 13.5px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; min-height: 360px; padding-bottom: 26px; letter-spacing: -.01em; }
.ios-status { display: flex; justify-content: space-between; align-items: center; padding: 13px 24px 4px 30px; font-weight: 600; font-size: 14px; height: 40px; }
.ios-island { width: 84px; height: 24px; border-radius: 14px; background: #000; }
.ios-sys { display: flex; gap: 5px; align-items: center; } .ios-sys svg { fill: currentColor; }
.ios-nav { display: flex; align-items: center; gap: 10px; padding: 8px 14px 6px; min-height: 44px; position: relative; }
.ios-back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--it); background: color-mix(in srgb, var(--ir) 75%, transparent); box-shadow: 0 1px 3px rgba(0,0,0,.12), inset 0 0 0 .5px rgba(255,255,255,.5); }
.ios-title { font-weight: 600; font-size: 16px; position: absolute; left: 60px; right: 60px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-title.is-large { position: static; text-align: left; font-size: 30px; font-weight: 700; padding: 4px 4px 0; letter-spacing: -.03em; }
.ios-body { padding: 4px 14px 0; }
.ios-gh { font-size: 11.5px; color: var(--is); text-transform: uppercase; padding: 14px 16px 6px; letter-spacing: .02em; }
.ios-gf { font-size: 11.5px; color: var(--is); padding: 6px 16px 4px; line-height: 1.35; }
.ios-group { background: var(--ir); border-radius: 22px; overflow: visible; margin-top: 4px; }
.ios-group + .ios-group, .ios-gf + .ios-group { margin-top: 16px; }
.ios-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; }
.ios-row + .ios-row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: .5px; background: var(--il); }
.ios-row--icon + .ios-row--icon::before { left: 52px; }
.ios-l { flex: 1; min-width: 0; }
.ios-l small { display: block; color: var(--is); font-size: 11.5px; margin-top: 2px; }
.ios-v { color: var(--is); white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.ios-chev { color: #c4c4c7; font-size: 22px; line-height: 1; margin-left: -4px; font-weight: 300; }
.ios-check { color: var(--ia); font-weight: 700; font-size: 16px; }
.ios-row--btn .ios-l { color: var(--ia); }
.ios-row--danger .ios-l { color: #ff3b30; }
.ios-icon { flex: 0 0 auto; display: block; }
.ios-app { flex: 0 0 auto; width: 29px; height: 29px; border-radius: 7px; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ios-toggle { flex: 0 0 auto; width: 51px; height: 31px; border-radius: 16px; background: #e9e9eb; position: relative; transition: background .2s; }
.shot--dark .ios-toggle, :root[data-theme="dark"] .ios-toggle { background: #39393d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ios-toggle { background: #39393d; } }
.ios-toggle i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.ios-toggle.is-on { background: #34c759 !important; }
.ios-toggle.is-on i { left: 22px; }
.ios-seg { display: flex; flex: 1; background: color-mix(in srgb, var(--is) 22%, transparent); border-radius: 10px; padding: 2px; }
.ios-seg span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.ios-seg span.is-on { background: var(--ir); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }
.ios-row--slider { gap: 10px; }
.ios-slider { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--il); }
.ios-slider i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ia); border-radius: 3px; }
.ios-slider b { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ios-sl-i { color: var(--is); font-size: 13px; } .ios-sl-i.is-big { font-size: 18px; }
.ios-text { font-size: 12.5px; color: var(--is); padding: 10px 16px; margin: 0; line-height: 1.4; }
.ios-big { text-align: center; padding: 14px 10px 6px; }
.ios-big b { display: block; font-size: 34px; letter-spacing: -.03em; }
.ios-big span { font-size: 12px; color: var(--is); }
.ios-search { display: flex; align-items: center; gap: 6px; color: var(--is); background: color-mix(in srgb, var(--is) 18%, transparent); border-radius: 12px; padding: 8px 10px; margin: 4px 2px 8px; }
.ios-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px 4px; }
.ios-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; text-align: center; color: var(--is); }
.ios-tile.is-on { color: var(--it); }
.ios-tile .ios-icon { border-radius: 50%; overflow: hidden; }
.ios-home { position: absolute; bottom: 8px; left: 50%; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: var(--it); opacity: .85; }
/* Отметка «измените здесь» */
.ios-row.is-marked, .ios-tile.is-marked { z-index: 1; }
.ios-row.is-marked::after, .ios-tile.is-marked::after { content: ""; position: absolute; inset: -1px; border: 2.5px solid var(--mark); border-radius: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 22%, transparent); pointer-events: none; animation: pulse 2.2s ease-in-out infinite; }
.ios-group > .ios-row.is-marked:first-child::after { border-top-left-radius: 22px; border-top-right-radius: 22px; }
.ios-group > .ios-row.is-marked:last-child::after { border-bottom-left-radius: 22px; border-bottom-right-radius: 22px; }
.ios-mark { position: absolute; left: -11px; top: 50%; margin-top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--mark); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; z-index: 2; box-shadow: 0 2px 6px rgba(255,59,48,.5); }
.ios-tile .ios-mark { left: auto; right: 2px; top: 0; margin: 0; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 25%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mark) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ios-row.is-marked::after, .ios-tile.is-marked::after { animation: none; } html { scroll-behavior: auto; } }

/* Поиск, пагинация, 404 */
.search-big { display: flex; gap: 10px; max-width: 640px; }
.search-big input { flex: 1; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 14px; font: 17px var(--font); }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.result-list a { display: block; padding: 12px 16px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); }
.result-list span { display: block; font-size: 14px; color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 30px 0; }
.pager__item { min-width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-weight: 600; }
.pager__item.is-current { background: var(--accent); color: #fff; }
.page-404 { text-align: center; padding: 60px 16px; }
.big404 { font-size: 120px; font-weight: 800; margin: 0; line-height: 1; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-404 .lead { margin: 0 auto 18px; }

/* Подвал */
.ftr { margin-top: 70px; border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 24px; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.ftr h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.ftr__grid a { display: block; color: var(--text); padding: 3px 0; }
.ftr p { color: var(--muted); max-width: 420px; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > div:first-child { grid-column: 1 / -1; } }

.device { display: block; }

/* Цены в магазинах */
.prices td { font-weight: 600; white-space: nowrap; }
.price-link { color: var(--text); }
.price-link.is-best { color: var(--good); }
.price-link.is-best::after { content: ' ✓'; }
.prices__note { font-size: 14px; margin: -8px 0 0; }
.model-card__price { color: var(--text) !important; font-weight: 700; font-size: 15px !important; margin-top: 4px; }
.key-specs__price dd a { color: var(--good); }
/* История изменения цены */
.ph-list { display: grid; gap: 10px; }
.ph { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.ph summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.ph summary::-webkit-details-marker { display: none; }
.ph summary b::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .2s; color: var(--muted); }
.ph[open] summary b::before { transform: rotate(90deg); }
.ph summary .muted { font-size: 14px; }
.ph__body { padding: 0 18px 16px; }
.pchart { width: 100%; height: auto; display: block; }
.pchart__grid { stroke: var(--line); stroke-width: 1; }
.pchart__lbl { fill: var(--muted); font: 11px var(--font); }
.pchart__legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.pchart__legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ph__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ph__table th, .ph__table td { text-align: left; padding: 7px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.ph__table th { color: var(--muted); font-weight: 500; }
.ph__down { color: var(--good); font-weight: 600; }
.ph__up { color: var(--bad); font-weight: 600; }
.ph__body { overflow-x: auto; }
.ph__src { font-size: 13px; margin: 10px 0 0; color: var(--muted); }

/* Главная: блок «О проекте» и отложенная отрисовка разделов ниже первого экрана (ускоряет мобильную загрузку) */
.about h2 { font-size: 24px; margin: 0 0 12px; }
.about p { max-width: 860px; color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.hero ~ .section ~ .section { content-visibility: auto; contain-intrinsic-size: auto 700px; }.goal-grid--compact .goal em { white-space: nowrap; }

/* Служебный атрибут скрытия важнее display у кнопок и ссылок */
[hidden] { display: none !important; }

/* «Мой iPhone» */
.my-chip { padding: 7px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none !important; }
/* На узких ноутбуках в шапке мало места: модель остаётся доступна в баннерах на страницах */
@media (min-width: 1081px) and (max-width: 1320px) { .my-chip { display: none; } .hdr__search input { width: 140px; } }
.my-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; margin: 16px 0; border-radius: 16px; background: var(--accent-soft); color: var(--text); text-decoration: none !important; }
.my-banner i { font-style: normal; color: var(--accent); font-weight: 700; }
.my-banner--hero { max-width: 640px; box-sizing: border-box; }
.btn.is-active { color: var(--good); border-color: var(--good); }
.my-board { display: grid; gap: 12px; padding: 18px 20px; margin: 18px 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.my-board__t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.my-board__t span { color: var(--muted); }
.my-board .btn { justify-self: start; }
.goal__bar { flex: 0 0 auto; margin-top: 6px; height: 6px; }

/* Диагностика */
.diag { padding: 22px; margin: 18px 0 30px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.diag__step + .diag__step { margin-top: 22px; }
.diag__q { margin: 0 0 12px; font-size: clamp(19px, 2.5vw, 23px); font-weight: 700; }
.diag__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.diag__opts .btn { height: auto; min-height: 44px; padding: 8px 18px; text-align: center; }
.diag-r { padding: 20px 22px; margin: 14px 0; border-radius: var(--radius); border: 1px solid var(--line); scroll-margin-top: 76px; }
.diag-r h3 { margin: 0 0 8px; font-size: 20px; }
.diag-r ol { padding-left: 22px; }
.diag-r li { margin: 7px 0; }
.diag-r:focus { outline: none; }
.diag-r.is-picked { margin: 0 0 14px; border-color: var(--accent); }
.diag-r__links { list-style: none; padding: 0; margin: 12px 0; }
.diag-r__note { color: var(--bad); font-size: 15px; }
.diag-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.diag-fb__a { font-weight: 400; }

/* Обновление iOS */
.verdict { padding: 22px; margin: 18px 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border-left: 6px solid var(--vc, var(--accent)); }
.verdict--yes { --vc: var(--good); } .verdict--wait { --vc: #ff9500; } .verdict--no { --vc: var(--bad); }
.verdict__label { margin: 0; color: var(--muted); font-size: 14px; }
.verdict__v { margin: 4px 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--vc); }
.ios-sum { margin: 0 0 8px; }
.ios-sum b { font-size: 30px; }
.ios-bar { max-width: 520px; }
.ios-issues { list-style: none; padding: 0; margin: 0; max-width: 620px; }
.ios-issues li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ios-issues li span { flex: 1; }
.ios-form { padding: 20px 22px; margin-top: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.ios-form h3 { margin: 0 0 12px; }
.ios-form label { display: block; font-size: 14px; color: var(--muted); }
.ios-form select { display: block; width: 100%; max-width: 340px; height: 44px; margin-top: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 15px var(--font); padding: 0 10px; }
.ios-form__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cta-compare + .section { margin-top: 30px; }