/* Специфика страницы /amocrm-guide.html (пошаговая инструкция).
 * Общие токены, nav, кнопки, section-шапки и footer — в site.css.
 */

.guide-hero{padding-block:clamp(40px,6vw,72px) 0; max-width:680px; margin:0 auto; text-align:center}
.guide-hero .eyebrow{justify-content:center; animation:fade .8s var(--ease) both}
.guide-hero h1{margin-top:20px; font-size:clamp(28px,4.4vw,46px); font-weight:300; letter-spacing:-.035em; line-height:1.1}
.guide-hero p{margin:16px auto 0; max-width:560px; font-size:16px; line-height:1.65; color:var(--ink-2)}

.guide-wrap{max-width:720px; margin:0 auto; padding-block:clamp(40px,6vw,64px) clamp(72px,10vw,120px)}

.toc{border:1px solid var(--line); border-radius:20px; padding:clamp(20px,3vw,28px); background:var(--panel); margin-bottom:clamp(48px,7vw,80px)}
.toc-title{font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-bottom:14px}
.toc-list{list-style:none; display:grid; gap:2px}
.toc-list a{display:flex; gap:12px; align-items:baseline; padding:9px 8px; margin:0 -8px; border-radius:10px; color:var(--ink-2); font-size:14.5px; text-decoration:none; transition:background .2s, color .2s}
.toc-list a:hover{background:var(--panel-2); color:var(--ink)}
.toc-num{font-family:var(--mono); color:var(--accent); flex:none; font-size:13px}

.step{display:grid; grid-template-columns:52px minmax(0,1fr); gap:20px; margin-bottom:clamp(44px,6vw,64px); scroll-margin-top:84px}
.step-n{width:44px; height:44px; border-radius:13px; display:grid; place-items:center; font-family:var(--display); font-weight:700; font-size:16px; color:var(--accent); border:1px solid var(--line-2); background:var(--panel); flex:none}
.step h2{font-size:clamp(20px,2.6vw,25px); font-weight:600; letter-spacing:-.02em; line-height:1.2; margin-bottom:14px}
.step > div > p{color:var(--ink-2); font-size:15.5px; line-height:1.68; margin-bottom:14px}
.step ol, .step ul{color:var(--ink-2); margin:0 0 14px 20px; font-size:15.5px; line-height:1.75}
.step li{margin-bottom:7px}
.step li::marker{color:var(--accent)}
.step strong{color:var(--ink); font-weight:600}
.step a{color:var(--accent); text-decoration-line:underline; text-decoration-color:color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset:3px}
.step a:hover{text-decoration-color:currentColor}
.step code{font-family:var(--mono); font-size:13px; background:var(--panel-2); color:var(--accent); padding:2px 7px; border-radius:6px; border:1px solid var(--line)}
.step > div > *:last-child{margin-bottom:0}
@media (max-width:560px){ .step{grid-template-columns:minmax(0,1fr); gap:12px} .step-n{width:36px; height:36px; border-radius:10px; font-size:14px} }

.note{background:var(--panel); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:12px; padding:14px 18px; margin:16px 0; font-size:14.5px; color:var(--ink-2); line-height:1.6}
.note strong{color:var(--ink)}
.note.warn{border-left-color:var(--warm)}

.guide-faq{border-top:1px solid var(--line)}
.guide-faq details{border-bottom:1px solid var(--line)}
.guide-faq summary{list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; font-family:var(--display); font-size:16px; font-weight:500; letter-spacing:-.015em}
.guide-faq summary::-webkit-details-marker{display:none}
.guide-faq summary .pl{flex:none; width:24px; height:24px; border-radius:50%; border:1px solid var(--line-2); position:relative; transition:transform .4s var(--ease), border-color .3s}
.guide-faq summary .pl::before, .guide-faq summary .pl::after{content:""; position:absolute; left:50%; top:50%; width:9px; height:1.5px; background:var(--ink-2); transform:translate(-50%,-50%)}
.guide-faq summary .pl::after{transform:translate(-50%,-50%) rotate(90deg)}
.guide-faq details[open] summary .pl{transform:rotate(45deg); border-color:var(--accent)}
.guide-faq details .a{padding:0 0 20px; color:var(--ink-2); line-height:1.65; font-size:14.5px}

.guide-card{border:1px solid var(--line); border-radius:20px; padding:clamp(24px,4vw,34px); background:var(--panel); text-align:center; margin-top:clamp(48px,7vw,72px)}
.guide-card h3{font-size:20px; font-weight:600; letter-spacing:-.02em; margin-bottom:8px}
.guide-card p{color:var(--ink-2); font-size:14.5px; margin-bottom:20px}

.guide-also{margin-top:20px; padding:14px 18px; border:1px solid var(--line); border-radius:12px; background:var(--panel); font-size:14px; color:var(--ink-2); text-align:center}
.guide-also a{color:var(--accent)}
