/* «Запись на услуги» — сайт сервиса. Тетрадь в клетку против записи в MAX. */
:root {
    --paper: #F7F9FC;
    --sheet: #FFFFFF;
    --grid: #DCE6F2;
    --ink: #1C2448;
    --ink-2: #4A5373;
    --ink-3: #7A829C;
    --pen: #2F49B8;
    --brand: #4F4FC8;
    --brand-deep: #3B3BA8;
    --brand-soft: #ECECFB;
    --marker: #F5C542;
    --marker-soft: #FFF3C9;
    --free: #1E8A5A;
    --line: #E3E8F0;
    --r-s: 10px;
    --r-m: 18px;
    --r-l: 28px;
    --wrap: 1120px;
    --display: "Unbounded", "Golos Text", system-ui, sans-serif;
    --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hand: "Caveat", "Segoe Print", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-3); }
.small { font-size: 15px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 249, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--marker); }
.menu-btn { display: none; margin-left: auto; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); padding: 10px; cursor: pointer; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; border: 0; border-radius: 999px; padding: 15px 26px; font: 600 17px/1.2 var(--text);
    text-decoration: none; cursor: pointer; background: var(--brand); color: #fff; transition: background .15s; }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn .max { width: 24px; height: 24px; flex: none; border-radius: 7px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }

/* ---------- первый экран: тетрадь и телефон ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 20px; }
.price-note { font-size: 15px; color: var(--ink-3); }
.desk { position: relative; min-height: 550px; }
.sheet { position: absolute; left: 0; top: 24px; width: 78%; padding: 30px 26px 34px 52px; background-color: var(--sheet);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 22px 22px; border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(28, 36, 72, .25); transform: rotate(-2.5deg); }
.sheet::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 2px; background: #EFA7A7; }
.sheet .hd { font: 600 30px/1 var(--hand); color: var(--pen); margin-bottom: 10px; }
.sheet ol { list-style: none; margin: 0; padding: 0; font: 500 26px/44px var(--hand); color: var(--pen); }
.sheet li { position: relative; white-space: nowrap; }
.sheet li s { text-decoration: none; position: relative; }
.sheet li s::after { content: ""; position: absolute; left: -4px; right: -6px; top: 52%; height: 3px; background: #C8423B; border-radius: 2px; transform: rotate(-1.5deg) scaleX(0); transform-origin: left; animation: strike .5s ease-out forwards; }
.sheet li:nth-child(2) s::after { animation-delay: .9s; }
.sheet li:nth-child(4) s::after { animation-delay: 1.25s; }
.sheet .q { color: #C8423B; }
@keyframes strike { to { transform: rotate(-1.5deg) scaleX(1); } }
.phone { position: relative; width: 260px; border-radius: 38px; padding: 10px; background: #1C2448; box-shadow: 0 30px 60px -25px rgba(28, 36, 72, .55); }
.phone img { border-radius: 29px; width: 100%; height: auto; }
.desk .phone { position: absolute; right: 0; top: 0; }
.mark { background: linear-gradient(transparent 55%, var(--marker-soft) 55%); padding: 0 2px; }

/* ---------- секции ---------- */
section { padding: 72px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* тетрадь против бота */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.vs > div { padding: 30px 32px; }
.vs .old { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; }
.vs .old h3 { font: 600 30px/1.1 var(--hand); color: var(--pen); }
.vs .new { background: var(--ink); color: #fff; }
.vs .new h3 { color: #fff; }
.vs ul { list-style: none; padding: 0; margin: 18px 0 0; }
.vs li { padding: 10px 0; border-top: 1px dashed rgba(122, 130, 156, .35); }
.vs .old li { font: 500 23px/1.3 var(--hand); color: var(--pen); }
.vs .new li { border-top-color: rgba(255, 255, 255, .15); color: #E4E8F5; }

/* возможности со скриншотами */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 1fr 300px; }
.feature.flip .phone { order: 2; }
.feature h3 { font-size: 26px; margin-bottom: 14px; }
.feature p { color: var(--ink-2); max-width: 32em; }
.feature ul { padding-left: 1.1em; color: var(--ink-2); margin: 0; }
.feature li { margin: 6px 0; }
.more-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: 44px; }
.more-list h3 { font-size: 18px; margin-bottom: 6px; }
.more-list p { color: var(--ink-2); font-size: 16px; margin: 0; }
.more-list .ic { font-size: 26px; display: block; margin-bottom: 8px; }

/* два режима */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { padding: 30px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.mode h3 { margin-bottom: 10px; }
.mode p { color: var(--ink-2); margin: 0 0 12px; }
.mode .who { font-size: 15px; color: var(--ink-3); margin: 0; }

/* шаги (настоящая последовательность) */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps > li { counter-increment: s; position: relative; padding-top: 58px; }
.steps > li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--marker);
    color: var(--ink); font: 700 20px/44px var(--display); text-align: center; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }

/* тариф */
.plan { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 44px; }
.plan h2 { color: #fff; }
.plan .amount { font: 700 64px/1 var(--display); margin: 18px 0 6px; }
.plan .amount small { font: 500 20px/1 var(--text); color: #C9CEE3; }
.plan p { color: #D5D9EA; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 9px 0 9px 30px; position: relative; color: #E4E8F5; border-top: 1px solid rgba(255, 255, 255, .12); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--marker); font-weight: 700; }
.plan .btn { background: var(--marker); color: var(--ink); }
.plan .btn:hover { background: #fff; color: var(--ink); }

/* вопросы */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 28px/1 var(--text); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* инструкция */
.guide-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.guide-nav a { text-decoration: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.guide { list-style: none; counter-reset: g; padding: 0; margin: 0; }
.guide > li { counter-increment: g; display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.guide > li:first-child { border-top: 0; }
.guide .txt { position: relative; padding-left: 64px; }
.guide .txt::before { content: counter(g); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%; background: var(--marker); font: 700 20px/44px var(--display); text-align: center; }
.guide h3 { font-size: 22px; margin-bottom: 10px; }
.guide p, .guide li li { color: var(--ink-2); }
.guide .phone { position: relative; width: 100%; }
.tip { background: var(--marker-soft); border-radius: var(--r-s); padding: 14px 18px; font-size: 16px; color: var(--ink); margin-top: 14px; }
.chat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; font-size: 16px; }
.chat b { color: var(--brand); font-weight: 600; }

/* документы */
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc, .req dd { overflow-wrap: anywhere; }
.doc .upd { color: var(--ink-3); font-size: 15px; }
.req { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 26px; }
.req dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.req dt { color: var(--ink-3); }
.req dd { margin: 0; }
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head .lead { margin-top: 16px; }

/* контакты */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contacts > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; }
.contacts h3 { font-size: 18px; margin-bottom: 8px; }

/* подвал */
.foot { background: var(--ink); color: #C9CEE3; padding: 48px 0 32px; margin-top: 40px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font-size: 14px; margin: 0 0 6px; letter-spacing: .02em; }
.foot ul + h4 { margin-top: 16px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.crumbs a { color: inherit; }
.who-list { margin-top: 28px; gap: 14px; }
.who-list a { display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
.who-list a:hover { border-color: #4F4FC8; }
.who-list h3 { margin: 0; font-size: 17px; }
.pro-feats { grid-template-columns: 1fr 1fr; margin-top: 0; }
@media (max-width: 600px) { .pro-feats { grid-template-columns: 1fr; } }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot .logo { color: #fff; margin-bottom: 12px; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; color: #9AA1BD; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
    .desk { min-height: 560px; max-width: 520px; }
    .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
    .feature.flip .phone { order: 0; }
    .feature .phone { position: relative; width: 260px; margin: 0 auto; }
    .more-list { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    .plan { grid-template-columns: 1fr; padding: 32px 26px; }
    .guide > li { grid-template-columns: 1fr; gap: 24px; }
    .guide .phone { max-width: 280px; margin: 0 auto; }
    .contacts, .foot .cols { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .menu-btn { display: block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    .nav a[aria-current] { box-shadow: none; color: var(--brand); }
    .top .btn { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    section { padding: 52px 0; }
    .hero { padding: 36px 0 20px; }
    .desk { min-height: 560px; }
    .sheet { width: 88%; padding: 22px 16px 26px 44px; }
    .sheet::before { left: 28px; }
    .sheet ol { font-size: 22px; line-height: 38px; }
    .desk .phone { width: 190px; border-radius: 30px; padding: 7px; top: 150px; }
    .phone img { border-radius: 24px; }
    .vs { grid-template-columns: 1fr; }
    .modes, .more-list { grid-template-columns: 1fr; }
    .plan .amount { font-size: 48px; }
    .btn { width: 100%; }
    .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sheet li s::after { animation: none; transform: rotate(-1.5deg) scaleX(1); }
}
@media (max-width: 360px) {
    .top .logo { font-size: 15px; gap: 8px; }
    .top .logo svg { width: 28px; height: 28px; }
    .menu-btn { padding: 10px 4px; }
}
.art-list a p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
