/* etopravo.ru — раздел /blog. Палитра бренда: текст #1a1f23, фон #f1f3f5,
   мятный #b7d2b9, голубой #c2dcf1, персик #ffe7c6, сирень #b3add9, hover #1b6b3a. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root{
  --text:#1a1f23; --muted:#485155; --bg:#f1f3f5; --line:#e3e6e8;
  --mint:#b7d2b9; --blue:#c2dcf1; --peach:#ffe7c6; --lilac:#b3add9;
  --green:#1b6b3a; --tg:#29a9eb; --tg-h:#1d8fd1;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--text);font-family:'Montserrat','Helvetica Neue',Arial,sans-serif;font-size:18px;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:var(--green);text-decoration:none;border-bottom:1px solid rgba(27,107,58,.35)}
a:hover{border-bottom-color:var(--green)}
img{max-width:100%;height:auto}
h1,h2,h3,h4{color:var(--text);font-weight:700;line-height:1.25;margin:0}
h1{font-size:38px;margin:8px 0 16px}
h2{font-size:30px;margin:48px 0 18px;letter-spacing:-0.01em}
h3{font-size:22px;margin:32px 0 12px}
h4{font-size:19px;margin:24px 0 10px}
p{margin:0 0 16px}
ul,ol{margin:0 0 18px;padding-left:24px}
li{margin:0 0 8px}
strong{font-weight:700}
em{font-style:italic;color:var(--muted)}
hr{border:0;height:1px;background:var(--line);margin:48px 0}
table{border-collapse:collapse;width:100%;font-size:16px;margin:0 0 20px}
th,td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
th{background:var(--bg);font-weight:600}
.table-wrap{overflow-x:auto;margin:0 0 20px}
@media (max-width:600px){h1{font-size:28px}h2{font-size:24px;margin-top:36px}h3{font-size:20px}body{font-size:17px}}

/* ---------- шапка ---------- */
.hdr{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.hdr-in{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:24px}
.hdr-logo{display:flex;align-items:center;border:0}
.hdr-logo img{height:40px;width:auto;display:block}
.hdr-nav{display:flex;gap:22px;margin-left:auto;align-items:center}
.hdr-nav a{border:0;color:var(--text);font-weight:500;font-size:15px}
.hdr-nav a:hover{color:var(--green)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 26px;border-radius:10px;font-weight:600;font-size:16px;border:2px solid var(--text);background:var(--text);color:#fff !important;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}
.btn:hover{background:var(--green);border-color:var(--green)}
.btn-tg{background:var(--tg);border-color:var(--tg);border-radius:100px}
.btn-tg:hover{background:var(--tg-h);border-color:var(--tg-h)}
.btn svg{width:20px;height:20px;fill:currentColor;flex-shrink:0}
.hdr-burger{display:none;background:none;border:0;padding:6px;margin-left:auto;cursor:pointer}
.hdr-burger span{display:block;width:26px;height:2px;background:var(--text);margin:6px 0}
@media (max-width:860px){
  .hdr-burger{display:block}
  .hdr-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;flex-direction:column;align-items:stretch;padding:12px 20px 20px;border-bottom:1px solid var(--line);gap:0}
  .hdr-nav.open{display:flex}
  .hdr-nav a{padding:12px 0;border-bottom:1px solid var(--line);font-size:17px}
  .hdr-nav .btn{margin-top:14px;border-bottom:2px solid var(--text)}
}

/* ---------- макет ---------- */
.wrap{max-width:780px;margin:0 auto;padding:36px 20px 40px}
.wrap-wide{max-width:1100px}
.crumbs{font-size:14px;color:var(--muted);margin:0 0 18px}
.crumbs a{color:var(--muted);border:0}
.crumbs a:hover{color:var(--green)}

/* ---------- статья: мета, TL;DR ---------- */
.art-meta{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;font-size:15px;color:var(--muted);margin:0 0 28px}
.art-meta .dot{color:#b7c0c5}
.art-meta strong{color:var(--text);font-weight:600}
.art-tldr{background:var(--mint);border-radius:14px;padding:24px 26px;margin:8px 0 32px}
.art-tldr .lbl{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;background:var(--text);color:#fff;border-radius:6px;margin-bottom:12px}
.art-tldr p{margin:0;font-size:17px;line-height:1.6}
.art-cover{margin:0 0 28px}
.art-cover img{width:100%;display:block;border-radius:14px}

/* ---------- вставки ---------- */
.art-quote{background:var(--blue);border-left:4px solid var(--text);border-radius:0 10px 10px 0;padding:20px 24px;margin:24px 0}
.art-quote .q{font-size:18px;line-height:1.6;margin:0 0 10px;font-style:italic}
.art-quote .src{font-size:14px;color:var(--muted);margin:0}
.art-cta{background:var(--peach);border-radius:14px;padding:22px 26px;margin:32px 0;display:flex;flex-direction:column;gap:12px}
.art-cta .t{font-weight:700;font-size:18px;margin:0}
.art-cta .d{font-size:16px;margin:0}
.art-cta .btn{width:fit-content}
.art-cards{display:flex;flex-direction:column;gap:14px;margin:18px 0 24px}
.art-card{border-radius:12px;padding:20px 22px}
.art-card-mint{background:var(--mint)}.art-card-peach{background:var(--peach)}.art-card-lilac{background:var(--lilac)}.art-card-blue{background:var(--blue)}
.art-card .t{font-weight:700;font-size:18px;margin:0 0 10px}
.art-card ol,.art-card ul{margin:0;padding-left:22px}
.art-card li{margin:0 0 6px;font-size:16px}
.art-case{background:#fff7e8;border:1px solid #f5d9aa;border-radius:14px;padding:24px 26px;margin:28px 0}
.art-case .lbl{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#a25a00;margin:0 0 12px}
.art-case dl{margin:0;display:grid;grid-template-columns:max-content 1fr;gap:6px 18px}
.art-case dt{font-weight:600;color:var(--muted);font-size:15px}
.art-case dd{margin:0;font-size:15px}
.art-case dd.res{font-weight:600;color:var(--green)}
@media (max-width:600px){.art-case dl{grid-template-columns:1fr;gap:2px}.art-case dd{margin-bottom:8px}}
.art-fig{margin:28px 0}
.art-fig img{width:100%;display:block;border-radius:10px;box-shadow:0 6px 24px rgba(0,0,0,.12)}
.art-fig figcaption{margin-top:10px;font-size:14px;color:var(--muted);line-height:1.5;font-style:italic;text-align:center}

/* ---------- FAQ ---------- */
.art-faq{margin:18px 0 32px}
.art-faq details{border-top:1px solid var(--line);padding:18px 0}
.art-faq details:last-child{border-bottom:1px solid var(--line)}
.art-faq summary{font-weight:600;font-size:18px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}
.art-faq summary::-webkit-details-marker{display:none}
.art-faq summary::after{content:"+";font-size:24px;color:var(--muted);flex-shrink:0}
.art-faq details[open] summary::after{content:"−"}
.art-faq details>*:not(summary){margin-top:12px}
.art-faq details p{font-size:16px;line-height:1.6}

/* ---------- форма заявки ---------- */
.lead{background:var(--mint);border-radius:18px;padding:32px 28px;margin:40px 0 24px}
.lead h2{font-size:26px;margin:0 0 8px}
.lead p{font-size:16px;margin:0 0 18px}
.lead form{display:grid;gap:12px}
.lead input,.lead textarea{width:100%;font:inherit;font-size:16px;padding:14px 16px;border:1px solid #fff;border-radius:10px;background:#fff;color:var(--text)}
.lead input:focus,.lead textarea:focus{outline:2px solid var(--text)}
.lead textarea{min-height:90px;resize:vertical}
.lead .consent{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:flex-start}
.lead .consent input{width:auto;margin-top:3px}
.lead .consent a{color:var(--muted)}
.lead .hp{position:absolute;left:-9999px}
.lead .btn{width:100%;padding:16px}
.lead .ok{display:none;background:#fff;border-radius:10px;padding:18px;font-weight:600}
.lead .err{display:none;color:#b00020;font-size:14px}
.lead-alt{font-size:15px;color:var(--muted);margin:14px 0 0}

/* ---------- Telegram-промо, источники, автор ---------- */
.tgp{background:var(--blue);border-radius:18px;padding:36px 28px;margin:36px 0 24px;text-align:center}
.tgp h2{font-size:26px;margin:0 0 12px}
.tgp p{font-size:17px;margin:0 0 22px}
.art-sources{font-size:15px;line-height:1.55;color:var(--muted)}
.art-sources li{margin:0 0 6px}
.art-author{background:var(--bg);border-radius:12px;padding:22px 26px;margin:36px 0 16px;font-size:15px;color:var(--muted);line-height:1.6;display:flex;gap:18px;align-items:flex-start}
.art-author img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex-shrink:0}
.art-author p{margin:0}
.art-pub{font-size:14px;color:var(--muted);margin:24px 0 0}

/* ---------- список статей ---------- */
.list-hero{background:var(--blue);border-radius:30px;padding:48px 40px;margin:0 0 32px}
.list-hero h1{margin:0 0 12px}
.list-hero p{margin:0;font-size:18px;max-width:700px}
@media (max-width:600px){.list-hero{padding:32px 22px;border-radius:22px}}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.tags a{border:1px solid var(--line);border-radius:100px;padding:6px 14px;font-size:14px;color:var(--text)}
.tags a.on,.tags a:hover{background:var(--text);color:#fff;border-color:var(--text)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.card{display:flex;flex-direction:column;background:var(--bg);border-radius:18px;overflow:hidden;border:0;color:var(--text)}
.card:hover{background:#e6e9ec}
.card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.card .cb{padding:20px 22px 24px;display:flex;flex-direction:column;gap:8px;flex:1}
.card .ct{font-weight:700;font-size:19px;line-height:1.3}
.card .cd{font-size:15px;color:var(--muted);flex:1}
.card .cm{font-size:13px;color:var(--muted)}
.related{margin:40px 0 0}
.related h2{font-size:24px;margin:0 0 16px}

/* ---------- подвал ---------- */
.ftr{background:var(--bg);margin-top:48px;padding:40px 20px 32px;font-size:15px;color:var(--muted)}
.ftr-in{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:32px}
.ftr a{color:var(--text);border:0;display:block;margin:0 0 10px}
.ftr a:hover{color:var(--green)}
.ftr .ftr-logo img{height:36px;width:auto}
.ftr .copy{grid-column:1/-1;border-top:1px solid var(--line);padding-top:18px;font-size:13px}
@media (max-width:700px){.ftr-in{grid-template-columns:1fr;gap:20px}}
