/* MyProgressa — глубокий зелёный (как в самом продукте) + редакционная типографика.
   Секции чередуются: тёмные («--deep») и бумажные («.alt»). Без внешних шрифтов и скриптов. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/img/fonts/playfair-display-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/img/fonts/playfair-display-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/img/fonts/playfair-display-cyrillic-wght-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/img/fonts/playfair-display-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/img/fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/img/fonts/onest-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --deep: #0a302a; --deep2: #0d3a33; --deep3: #072620; --panel: #0f4036; --line-d: #2f6b5e; --mint: #7de3b8; --sun: #ffd38a;
  --paper: #f4f1ea; --ink: #16140f; --ink-soft: #4a463b; --line-l: #cfc9b8; --green: #0f6b5c;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px; --radius: 20px; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--deep); }
body { margin: 0; background: var(--deep); color: #f3f8f5; font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--deep); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1.05; letter-spacing: -.025em; }
h2 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-weight: 600; font-size: 1.45rem; line-height: 1.25; }
em { font-style: italic; font-weight: 600; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; max-width: 44rem; }
.eyebrow { margin: 0 0 16px; font: 700 .8rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--s-acc, var(--mint)); }
.small { font-size: .9rem; }

/* Темы секций: .section — тёмная, .section.alt — бумажная */
.section { --s-bg: var(--deep); --s-ink: #f3f8f5; --s-mut: #b9d2c8; --s-card: var(--panel); --s-line: var(--line-d); --s-acc: var(--mint); --s-btn: var(--mint); --s-btn-ink: var(--deep); --s-chip: #1d5246;
  background: var(--s-bg); color: var(--s-ink); padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { --s-bg: var(--paper); --s-ink: var(--ink); --s-mut: var(--ink-soft); --s-card: #fff; --s-line: var(--line-l); --s-acc: var(--green); --s-btn: var(--green); --s-btn-ink: #fff; --s-chip: #e7e2d4; }
.section.deeper { --s-bg: var(--deep2); }
.section a:not(.btn):not(.post-card) { color: var(--s-acc); }
.section.alt a:not(.btn):not(.post-card) { color: var(--green); }
.section .lead, .section .muted { color: var(--s-mut); }
.section-head { max-width: 48rem; margin-bottom: 52px; }
.section-head h2, .section h2 { color: var(--s-ink); }
.muted { color: var(--s-mut); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 48, 42, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #1d4a41; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 800 1.45rem/1 var(--serif); letter-spacing: -.01em; color: #f3f8f5; text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: #c9ddd5; text-decoration: none; padding: 8px 10px; white-space: nowrap; border-radius: 10px; font-size: .96rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: #14584c; color: #fff; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 16px; border: 1px solid var(--line-d); border-radius: 10px; font-weight: 600; background: var(--panel); min-height: 44px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--deep); border-bottom: 1px solid #1d4a41; padding: 12px 20px 22px; display: grid; gap: 4px; }
.menu nav a { padding: 12px 8px; color: #f3f8f5; text-decoration: none; border-radius: 10px; font-size: 1.05rem; }
@media (max-width: 1290px) { .nav { display: none; } .menu { display: block; margin-left: 0; } .bar .btn-sm:first-of-type { margin-left: auto; } }
@media (max-width: 640px) { .bar .btn-sm { display: none; } .menu { margin-left: auto; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 15px 28px; border-radius: 12px; border: 1.5px solid transparent; background: var(--s-btn, var(--mint)); color: var(--s-btn-ink, var(--deep)); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-ghost { background: transparent; color: var(--s-ink); border-color: var(--s-line); }
.site-header .btn { background: var(--mint); color: var(--deep); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; border-radius: 10px; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Первый экран */
.hero { background: radial-gradient(1100px 560px at 50% 100%, #14584c 0%, var(--deep) 72%); padding: clamp(48px, 7vw, 88px) 0 0; text-align: center; overflow: hidden; }
.hero .pill { display: inline-block; margin: 0 0 26px; border: 1px solid var(--line-d); border-radius: 999px; padding: 8px 18px; font-size: .9rem; font-weight: 600; color: var(--mint); }
.hero h1 { max-width: 19ch; margin: 0 auto 26px; }
.hero h1 em { color: var(--mint); }
.hero .lead { margin: 0 auto 38px; color: #b9d2c8; }
.hero .actions { justify-content: center; margin-top: 0; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: #9bbdb1; font-size: .95rem; }
.shot { max-width: 1160px; margin: 60px auto 0; padding: 0 40px; }
.shot .win { border-radius: 22px 22px 0 0; overflow: hidden; border: 1px solid var(--line-d); border-bottom: 0; box-shadow: 0 -10px 80px rgba(125, 227, 184, .18); background: var(--panel); text-align: left; }
@media (max-width: 640px) { .shot { padding: 0 16px; margin-top: 40px; } }
.page-head { padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 22ch; }

/* Сетки и карточки */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--radius); padding: 30px; }
.section.alt .card { border: 2px solid var(--ink); border-radius: 4px; }
.card h3 { color: var(--s-ink); margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--s-mut); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--s-chip); color: var(--s-acc); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 700 .78rem/1.5 var(--sans); background: var(--s-chip); color: var(--s-ink); white-space: nowrap; }
.chip.ok { background: var(--mint); color: var(--deep); }
.chip.warn { background: var(--sun); color: #3b2a05; }
.chip.plan { background: #2a5a50; color: #e4f2ec; }
.section.alt .chip.plan { background: #e0dacb; color: var(--ink-soft); }
.section.alt .chip.ok { background: var(--green); color: #fff; }

/* Нумерованные списки в редакционном стиле */
.numlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); border-top: 2px solid var(--s-ink); }
.numitem { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 36px 36px 0; border-bottom: 1px solid var(--s-line); }
.num { font: 800 clamp(2.2rem, 4vw, 2.9rem)/1 var(--serif); color: var(--s-acc); }
.numitem h3 { margin-bottom: 12px; color: var(--s-ink); }
.numitem p { margin: 0; color: var(--s-mut); }
.mods { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); }
.mod { background: var(--panel); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 34px; }
.mod .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.mod .chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mod h3 { font-size: 1.7rem; color: #fff; }
.mod p { margin: 0; color: #c9ddd5; }
.mod .num { color: var(--mint); }
.story { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 2px solid var(--ink); padding: 32px; color: var(--ink); }
.story .when { font: 700 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--green); }
.story h3 { font-weight: 800; font-size: 1.75rem; margin: 0; color: var(--ink); }
.story p { margin: 0; color: var(--ink-soft); }
.aud { border-top: 2px solid var(--mint); padding-top: 20px; }
.aud h3 { margin-bottom: 10px; color: #fff; }
.aud p { margin: 0; color: #c9ddd5; font-size: 1.02rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 2px solid var(--ink); }
.stepi { padding: 28px 28px 32px 0; border-right: 1px solid var(--line-l); }
.stepi:last-child { border-right: 0; }
.stepi .num { margin-bottom: 14px; font-size: 2.9rem; }
.stepi h3 { font: 700 1.2rem/1.3 var(--sans); color: var(--ink); margin-bottom: 10px; }
.stepi p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.stat { font: 800 2.8rem/1 var(--serif); color: var(--s-acc); margin-bottom: 10px; }

/* Скриншоты в рамке */
.frame { border: 1px solid var(--s-line); border-radius: 14px; background: var(--panel); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.frame-top { display: flex; gap: 7px; padding: 12px 16px; background: #0f4036; }
.frame-top i { width: 11px; height: 11px; border-radius: 50%; background: #2f6b5e; }
.frame img { width: 100%; }
.fig { margin: 0; }
.caption { color: var(--s-mut); font-size: .88rem; margin: 12px 4px 0; }
.split { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--s-ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 14px; height: 8px; border-left: 2.5px solid var(--s-acc); border-bottom: 2.5px solid var(--s-acc); transform: rotate(-45deg) translateY(-50%); }
.note { margin-top: 36px; max-width: 50rem; color: var(--s-mut); font-size: .98rem; }

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--s-line); border-radius: var(--radius); background: var(--s-card); -webkit-overflow-scrolling: touch; }
.section.alt .table-wrap { border: 2px solid var(--ink); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; color: var(--s-ink); }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--s-line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { background: var(--s-chip); font-weight: 700; white-space: nowrap; }
.cmp td:first-child, .cmp th:first-child { position: sticky; left: 0; background: var(--s-card); min-width: 200px; z-index: 1; }
.cmp thead th:first-child { background: var(--s-chip); }
.cmp .us { background: rgba(125, 227, 184, .14); font-weight: 600; }
.section.alt .cmp .us { background: #dcebe4; }
.yes { color: var(--mint); font-weight: 700; } .part { color: var(--sun); font-weight: 700; } .no { color: var(--s-mut); }
.section.alt .yes { color: var(--green); } .section.alt .part { color: #8a5a12; }
@media (max-width: 640px) { .cmp td:first-child, .cmp th:first-child { min-width: 150px; font-size: .88rem; } th, td { padding: 12px; } }

/* FAQ */
.faq { border-top: 2px solid var(--s-ink); }
.faq details { border-bottom: 1px solid var(--s-line); padding: 6px 0; }
.faq summary { cursor: pointer; font: 600 1.4rem/1.35 var(--serif); padding: 18px 40px 18px 0; list-style: none; position: relative; color: var(--s-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.9rem/1 var(--sans); color: var(--s-acc); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--s-mut); max-width: 46rem; }
.faq details > div p { margin-bottom: .8em; }

/* Форма и CTA */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; padding: 14px; border-radius: 12px; border: 1px solid var(--line-d); background: var(--deep); color: #f3f8f5; width: 100%; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #9bbdb1; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--mint); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { padding: 14px 16px; border-radius: 12px; font-weight: 500; margin: 0; }
.msg.ok { background: rgba(125, 227, 184, .16); color: var(--mint); } .msg.err { background: #3b2220; color: #f0aaa4; }
.cta { background: radial-gradient(900px 420px at 80% 0%, #14584c 0%, var(--deep) 70%); }
.cta-box { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cta-box { grid-template-columns: 1fr 1fr; } }
.cta-box .form { background: var(--panel); border: 1px solid var(--line-d); border-radius: 22px; padding: 30px; }
.cta-box h2 { color: #fff; } .cta-box .lead { color: #b9d2c8; }

/* Блог и длинные тексты */
.post-card { display: grid; gap: 10px; text-decoration: none; color: inherit; height: 100%; }
.post-card h2, .post-card h3 { color: var(--s-ink); font-size: 1.5rem; } .post-card:hover h2, .post-card:hover h3 { color: var(--s-acc); }
.meta { color: var(--s-mut); font-size: .88rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prose { max-width: 44rem; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; color: var(--ink); }
.prose h1 { color: var(--ink); } .prose h2 { margin-top: 2em; font-size: 1.9rem; color: var(--ink); } .prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose p, .prose li { color: #2d2a22; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; } .prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--ink-soft); }
.prose .table-wrap { margin: 1.4em 0; } .prose table { font-size: .93rem; }
.prose code { background: #e7e2d4; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose a { color: var(--green); }
.prose .meta { color: var(--ink-soft); } .prose .lead { color: var(--ink-soft); }
.callout { background: #e3efe9; border-radius: 4px; border-left: 4px solid var(--green); padding: 18px 22px; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.crumbs { font-size: .9rem; color: var(--s-mut); margin-bottom: 20px; } .crumbs a { color: var(--s-mut) !important; }
.toc { background: #e9e5d9; border-radius: 4px; padding: 18px 24px; margin: 0 0 2em; font-size: .97rem; } .toc ol { margin: 8px 0 0; padding-left: 1.2em; }

/* Instagram */
.ig-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .ig-grid.six { grid-template-columns: repeat(6, 1fr); } }
.ig-grid a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--s-line); transition: transform .15s; }
.ig-grid a:hover { transform: translateY(-3px); }
.ig-grid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ig-h { margin-top: 56px; }

/* Подвал */
.site-footer { background: var(--deep3); border-top: 1px solid #1d4a41; padding: 56px 0 36px; font-size: .95rem; color: #9bbdb1; }
.foot { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot h4 { font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #7da699; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: #e4f2ec; text-decoration: none; } .foot a:hover { color: var(--mint); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #1d4a41; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta, .actions { display: none; } body { background: #fff; color: #000; } .section { background: #fff; color: #000; } }
.logo, .logo svg { flex-shrink: 0; } .logo svg { min-width: 36px; }
.site-header .btn-ghost { background: transparent; color: #f3f8f5; border-color: var(--line-d); }
.site-header .btn-ghost:hover { background: #14584c; }
.card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--s-ink); margin-bottom: .6em; }
