/* «Всей семьёй»: общая основа (шапка, подвал, кнопки) + страницы статей, списка и разделов. */
:root{--bg:#F1ECE4;--card:#FBF9F5;--ink:#2C2A27;--mut:#67625B;--line:#DDD5C9;--acc:#566E86;--acc2:#45596D;--rose:#BE9F96;--tint:#E3E7EA;--oat2:#E9E2D6;--dark:#45596D;--dt:#EEF0F1;--dm:#C3CCD5;--r:16px;--rb:12px;--hh:72px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--hh) + 16px);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.7 'Noto Serif',Georgia,serif;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--acc2);text-underline-offset:3px}
a:hover{color:var(--acc)}
h1,h2,h3,h4{font-family:'Kurale','Noto Serif',Georgia,serif;font-weight:400;line-height:1.15;margin:0;text-wrap:balance}
p{margin:0 0 12px}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px;border-radius:8px}
.skip{position:absolute;left:12px;top:-60px;background:var(--acc2);color:#fff;padding:10px 14px;border-radius:var(--rb);z-index:100}
.skip:focus{top:10px}

/* метка над заголовком: строчка-«шов» */
.lbl{display:inline-flex;align-items:center;gap:10px;font:700 13px/1.2 'Noto Serif',serif;letter-spacing:.02em;color:var(--acc2)}
.lbl::before{content:"";width:26px;height:0;border-top:2px dashed var(--rose)}

/* кнопки 12px: джинсовая / контур */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:11px 22px;border-radius:var(--rb);font:700 15.5px/1.2 'Noto Serif',serif;text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:background .2s,border-color .2s,color .2s,box-shadow .2s}
.btn-p{background:var(--acc);color:#fff;box-shadow:0 6px 14px -8px rgba(69,89,109,.7)}
.btn-p:hover{background:var(--acc2);color:#fff}
.btn-s{background:var(--card);color:var(--acc2);border-color:#B7C1CB}
.btn-s:hover{border-color:var(--acc);color:var(--acc2)}
.btn svg{width:17px;height:17px;flex:none}

/* ---------- шапка ---------- */
.hdr{position:sticky;top:0;z-index:50;background:rgba(251,249,245,.94);backdrop-filter:saturate(1.1) blur(8px);-webkit-backdrop-filter:saturate(1.1) blur(8px);border-bottom:1px solid var(--line)}
.hdr .wrap{display:flex;align-items:center;gap:24px;height:72px}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);flex:none}
.logo svg{width:40px;height:40px;flex:none}
.logo b{display:block;font:400 25px/1 'Kurale',serif}
.logo small{display:block;margin-top:4px;font:400 12px/1.1 'Noto Serif',serif;color:var(--mut)}
.nav{display:flex;gap:4px;margin-left:auto}
.nav a{font-weight:700;font-size:14.5px;color:var(--ink);text-decoration:none;padding:9px 12px;border-radius:var(--rb);white-space:nowrap;transition:background .2s,color .2s}
.nav a:hover{background:var(--oat2);color:var(--acc2)}
.nav a[aria-current]{background:var(--tint);color:var(--acc2)}
.burger{display:none;margin-left:auto;width:46px;height:46px;border:1.5px solid var(--line);background:var(--card);border-radius:var(--rb);cursor:pointer;align-items:center;justify-content:center}
.burger span{display:block;width:18px;height:2px;border-radius:2px;background:var(--ink);position:relative}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:18px;height:2px;border-radius:2px;background:var(--ink)}
.burger span::before{top:-6px}.burger span::after{top:6px}
.prog{position:absolute;left:0;bottom:-1px;height:3px;width:100%;background:var(--acc);border-radius:0 3px 3px 0;transform-origin:0 50%;transform:scaleX(0)}

/* ---------- подвал ---------- */
.ftr{background:var(--dark);color:var(--dm);padding:58px 0 30px;border-radius:28px 28px 0 0}
.ftr .wrap{display:grid;grid-template-columns:1.3fr 1fr;gap:34px 48px}
.ftr .logo{color:var(--dt)}
.ftr .logo small{color:var(--dm)}
.ftr p{font-size:15px;line-height:1.65;margin:16px 0 0;max-width:470px}
.ftr h4{font:400 18px/1 'Kurale',serif;color:var(--dt);margin:4px 0 14px}
.ftr nav{display:grid;grid-template-columns:1fr 1fr;gap:8px 26px}
.ftr a{color:var(--dt);text-decoration:none;font-size:15px}
.ftr a:hover{color:#fff;text-decoration:underline}
.ftr .bot{grid-column:1/-1;border-top:1.5px dashed rgba(195,204,213,.35);padding-top:18px;margin-top:6px;font-size:13.5px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}

/* ---------- крошки ---------- */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 20px;padding:0;list-style:none;font-size:14px;color:var(--mut)}
.crumbs li{display:flex;align-items:center;gap:10px;min-width:0}
.crumbs li+li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--rose)}
.crumbs a{color:var(--acc2);text-decoration:none;font-weight:700}
.crumbs a:hover{text-decoration:underline}
.crumbs [aria-current]{max-width:46ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- шапка статьи ---------- */
.a-top{padding:30px 0 0}
.a-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:center}
.a-head h1{font-size:clamp(30px,3.8vw,49px);line-height:1.12;margin:16px 0 22px;overflow-wrap:break-word}
.a-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.a-meta li{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:14px;color:var(--mut)}
.a-meta svg{width:16px;height:16px;color:var(--acc)}
.a-cover{position:relative;margin:0;padding:8px;background:#fff;border-radius:22px;box-shadow:0 0 0 1px var(--line),0 18px 34px -24px rgba(44,42,39,.5);transform:rotate(1deg)}
.a-cover img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:15px}

/* ---------- раскладка ---------- */
.a-grid{display:grid;grid-template-columns:minmax(0,730px) 280px;gap:54px;justify-content:center;padding:48px 0 74px}
.a-side{position:sticky;top:calc(var(--hh) + 22px);align-self:start;display:grid;gap:14px}
.toc{padding:20px 20px 14px;background:var(--card);border:1px solid var(--line);border-radius:var(--r)}
.toc-h{margin:0 0 10px;font:400 19px/1.2 'Kurale',serif;color:var(--ink)}
.toc ol{list-style:none;margin:0;padding:0;counter-reset:t;display:grid;gap:2px}
.toc li{counter-increment:t;display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:start;font-size:14.5px;line-height:1.4}
.toc li::before{content:counter(t);width:24px;height:24px;margin-top:5px;border-radius:50%;background:var(--tint);color:var(--acc2);font:700 12px/24px 'Noto Serif',serif;text-align:center}
.toc a{display:block;padding:5px 0;color:var(--ink);text-decoration:none}
.toc a:hover{color:var(--acc2);text-decoration:underline}
.side-go{padding:20px;border-radius:var(--r);background:var(--dark);color:var(--dt)}
.side-go b{display:block;font:400 21px/1.2 'Kurale',serif}
.side-go p{font-size:14px;line-height:1.55;color:var(--dm);margin:8px 0 14px}
.side-go .btn{width:100%;background:var(--card);color:var(--acc2)}

/* ---------- текст ---------- */
.prose{font-size:18px;line-height:1.75;color:#34312D}
.prose>*:first-child{margin-top:0}
.prose p{margin:0 0 1.15em}
.prose h2{font-size:clamp(26px,2.8vw,34px);line-height:1.18;margin:1.9em 0 .65em;scroll-margin-top:calc(var(--hh) + 18px)}
.prose h2::after{content:"";display:block;width:64px;margin-top:12px;border-top:2px dashed var(--rose)}
.prose h3{font-size:23px;margin:1.6em 0 .5em}
.prose ul,.prose ol{margin:0 0 1.3em;padding:0;list-style:none}
.prose li{position:relative;margin:0 0 .55em;padding-left:30px}
.prose ul>li::before{content:"";position:absolute;left:5px;top:.62em;width:9px;height:9px;border-radius:50%;border:2px solid var(--acc);background:var(--card)}
.prose ol{counter-reset:o}
.prose ol>li{counter-increment:o;padding-left:42px}
.prose ol>li::before{content:counter(o);position:absolute;left:0;top:.18em;width:28px;height:28px;border-radius:50%;background:var(--acc);color:#fff;font:700 13px/28px 'Noto Serif',serif;text-align:center}
.prose a{color:var(--acc2);text-decoration-color:rgba(69,89,109,.4)}
.prose a:hover{text-decoration-color:var(--acc2)}
.prose strong{font-weight:700;color:var(--ink)}
.prose blockquote{margin:1.8em 0;padding:22px 26px 20px;background:#fff;border-radius:var(--r);box-shadow:0 0 0 1px var(--line);font-size:17.5px;line-height:1.65;position:relative}
.prose blockquote::before{content:"";position:absolute;left:22px;top:-9px;width:46px;height:18px;border-radius:4px;background:rgba(190,159,150,.45);transform:rotate(-4deg)}
.prose blockquote p:last-child{margin-bottom:0}
.st-foto{margin:1.9em 0}
.st-foto img{width:100%;border-radius:var(--r);background:var(--card)}
.st-foto figcaption{margin-top:8px;font-size:14px;line-height:1.45;color:var(--mut)}

/* таблица */
.st-table{margin:1.8em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--card);border:1px solid var(--line);border-radius:var(--r)}
.st-table table{width:100%;min-width:560px;border-collapse:collapse;font-size:15.5px;line-height:1.45}
.st-table th{text-align:left;padding:13px 14px;font:700 13.5px/1.3 'Noto Serif',serif;color:var(--acc2);background:var(--tint);white-space:nowrap}
.st-table td{padding:12px 14px;border-top:1px solid var(--line);vertical-align:top}
.st-table td:first-child{font-weight:700}
.st-table .st-hero td{background:#F3EAE6}
.st-table .st-hero td:first-child strong::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--rose);margin-right:8px;vertical-align:1px}

/* товарный блок — наклейка */
.st-tovar{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;align-items:center;margin:2em 0;padding:16px 26px 16px 16px;background:var(--card);border:6px solid #fff;border-radius:22px;box-shadow:0 0 0 1px var(--line),0 14px 28px -18px rgba(44,42,39,.45)}
.st-tovar-foto{position:relative;height:220px;border-radius:14px;background:radial-gradient(circle at 50% 42%,#fff 0,#F4EFE7 55%,#EAE3D8 100%);display:flex;align-items:center;justify-content:center;overflow:hidden}
.st-tovar-foto::after{content:"";position:absolute;left:50%;bottom:10%;width:62%;height:14%;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(44,42,39,.25),transparent)}
.st-tovar-foto img{position:relative;z-index:1;width:auto;max-width:80%;max-height:170px;margin-bottom:12px;filter:drop-shadow(0 12px 10px rgba(44,42,39,.22))}
.st-tovar-b{display:flex;flex-direction:column;align-items:flex-start}
.st-tovar b{display:block;margin-top:10px;font:400 clamp(22px,2.3vw,26px)/1.2 'Kurale',serif;color:var(--ink)}
.st-tovar-offer{display:inline-block;margin-top:10px;padding:5px 12px;border-radius:999px;background:var(--tint);font-size:13.5px;color:var(--acc2)}
.st-tovar .btn{margin-top:14px}
.prose .st-tovar .btn{color:#fff;text-decoration:none}
.st-tovar p{margin:12px 0 0;font-size:13.5px;line-height:1.5;color:var(--mut)}
.st-tovar .st-tovar-cena{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:12px 0 2px}
.st-tovar .st-tovar-c1{font:700 27px/1.1 'Noto Serif',serif;color:var(--ink)}
.st-tovar .st-tovar-c0{font-size:16px;color:var(--mut)}
.st-tovar .st-tovar-c2{flex-basis:100%;font-size:12.5px;color:var(--mut)}
.st-tovar .st-tovar-plus{list-style:none;margin:10px 0 8px;padding:0;display:grid;gap:5px;font-size:15px;line-height:1.45}
.st-tovar .st-tovar-plus li{position:relative;margin:0;padding:0 0 0 22px}
.st-tovar .st-tovar-plus li::before{content:"";position:absolute;left:2px;top:.55em;width:8px;height:8px;border-radius:50%;background:var(--rose);border:0}
.st-tovar .st-tovar-soc{font-size:14px;color:var(--mut)}
.st-tovar .st-tovar-st{color:var(--rose)}

/* частые вопросы */
.st-faq{margin:1em 0 2em;display:grid;gap:10px}
.st-faq details{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:0 20px}
.st-faq details[open]{background:#fff}
.st-faq summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr 32px;gap:16px;align-items:center;padding:15px 0;font:400 19px/1.35 'Kurale',serif;color:var(--ink)}
.st-faq summary::-webkit-details-marker{display:none}
.st-faq summary:hover{color:var(--acc2)}
.st-plus{width:32px;height:32px;border-radius:50%;background:var(--tint);position:relative;font-size:0;color:transparent}
.st-plus::before,.st-plus::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;border-radius:2px;background:var(--acc2);transform:translate(-50%,-50%)}
.st-plus::after{transform:translate(-50%,-50%) rotate(90deg);transition:transform .25s}
.st-faq details[open] .st-plus{background:var(--acc)}
.st-faq details[open] .st-plus::before,.st-faq details[open] .st-plus::after{background:#fff}
.st-faq details[open] .st-plus::after{transform:translate(-50%,-50%) rotate(0)}
.st-faq details>p,.st-faq details>div{margin:0;padding:0 48px 16px 0;font-size:16.5px;color:#46423D}

/* читайте также */
.st-readalso{margin:2.2em 0 0;padding:18px 22px 14px;background:var(--tint);border-radius:var(--r)}
.prose .st-readalso-title{margin:0 0 6px;font:400 19px/1.2 'Kurale',serif;color:var(--acc2)}
.prose .st-readalso ul{margin:0}
.prose .st-readalso li{margin:0;padding:6px 0 6px 26px}
.prose .st-readalso li::before{content:"→";position:absolute;left:0;top:6px;width:auto;height:auto;border:0;background:none;font:700 16px/1.6 'Noto Serif',serif;color:var(--acc)}
.prose .st-readalso a{font-weight:700;text-decoration:none}
.prose .st-readalso a:hover{text-decoration:underline}
.prose .a-note{margin-top:34px;padding:14px 18px;border:1.5px dashed #CFC4B4;border-radius:var(--r);font-size:14px;line-height:1.55;color:var(--mut)}
.prose a[href^="/go/semya-ket?"][href*="b=tekst"]{color:var(--acc);font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

/* ---------- карточки статей ---------- */
.sb{padding:64px 0 78px;background:var(--oat2)}
.sec-h{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 30px;margin-bottom:28px}
.sec-h h2{font-size:clamp(28px,3.2vw,40px);margin-top:10px}
.sc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.sc{display:flex;flex-direction:column;padding:8px 8px 18px;background:var(--card);border-radius:var(--r);box-shadow:0 0 0 1px var(--line);text-decoration:none;color:var(--ink);transition:box-shadow .25s,transform .25s}
.sc:hover{box-shadow:0 0 0 1px #CFC4B4,0 16px 28px -20px rgba(44,42,39,.5);transform:translateY(-3px);color:var(--ink)}
.sc-img{position:relative;display:block;aspect-ratio:16/10;border-radius:11px;overflow:hidden;background:var(--oat2)}
.sc-img img{width:100%;height:100%;object-fit:cover}
.sc-r{position:absolute;left:10px;top:10px;padding:5px 11px;border-radius:999px;background:rgba(251,249,245,.94);font-size:12.5px;font-weight:700;color:var(--acc2)}
.sc-b{display:flex;flex-direction:column;flex:1;padding:14px 10px 0}
.sc-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--mut)}
.sc h3{font-size:21px;line-height:1.25;margin:8px 0 8px}
.sc p{font-size:15px;line-height:1.55;color:var(--mut);margin:0 0 14px}
.sc-go{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:15px;color:var(--acc2)}
.sc-go::after{content:"→";transition:transform .2s}
.sc:hover .sc-go::after{transform:translateX(4px)}

/* ---------- список и раздел ---------- */
.l-head{padding:30px 0 0}
.l-panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:24px 40px;align-items:center;padding:clamp(24px,3.4vw,44px);background:var(--card);border:6px solid #fff;border-radius:26px;box-shadow:0 0 0 1px var(--line),0 16px 30px -24px rgba(44,42,39,.45)}
.l-panel h1{font-size:clamp(30px,4.3vw,54px);line-height:1.08;margin:12px 0 14px;overflow-wrap:break-word}
.l-panel p{color:var(--mut);max-width:640px;margin:0;font-size:17px}
.l-art{width:190px;height:190px}
.l-list{padding:32px 0 80px}
.st-pages{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:38px}
.st-pages a,.st-pages span{min-width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:50%;border:1.5px solid #B7C1CB;background:var(--card);font-weight:700;font-size:15px;color:var(--acc2);text-decoration:none}
.st-pages a:hover{border-color:var(--acc)}
.st-pages [aria-current]{background:var(--acc);border-color:var(--acc);color:#fff}
.st-pusto{grid-column:1/-1;margin:0;padding:22px 24px 22px 62px;position:relative;border:1.5px dashed #CFC4B4;border-radius:var(--r);background:var(--card);color:var(--mut);font-size:16.5px}
.st-pusto::before{content:"";position:absolute;left:22px;top:24px;width:24px;height:24px;border-radius:50%;background:var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='%2345596D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat}

/* ---------- адаптив ---------- */
@media (max-width:1180px){
  .nav a{padding:9px 8px;font-size:14px}
  .a-grid{grid-template-columns:minmax(0,730px);gap:0}
  .a-side{position:static;margin-bottom:30px;order:-1}
  .side-go{display:none}
}
@media (max-width:1100px){
  .burger{display:flex}
  .nav{display:none;position:absolute;left:12px;right:12px;top:78px;background:var(--card);flex-direction:column;gap:2px;padding:10px;border:1px solid var(--line);border-radius:var(--r);box-shadow:0 20px 34px -18px rgba(44,42,39,.4)}
  .nav.open{display:flex}
  .nav a{padding:12px 14px;font-size:16px}
}
@media (max-width:960px){
  .a-head{grid-template-columns:1fr;gap:26px}
  .a-cover{order:-1;transform:none}
  .sc-grid{grid-template-columns:1fr 1fr}
  .l-panel{grid-template-columns:minmax(0,1fr)}
  .l-art{display:none}
  .ftr .wrap{grid-template-columns:1fr}
}
@media (max-width:640px){
  :root{--hh:64px}
  body{font-size:16px}
  .wrap{padding:0 16px}
  .hdr .wrap{gap:10px;height:64px}
  .nav{top:70px}
  .logo small{display:none}
  .logo b{font-size:22px}
  .logo svg{width:36px;height:36px}
  .a-top,.l-head{padding-top:18px}
  .crumbs [aria-current]{max-width:24ch}
  .a-grid{padding:30px 0 54px}
  .prose{font-size:17px;line-height:1.72}
  .st-tovar{grid-template-columns:1fr;gap:14px;padding:12px 12px 20px}
  .st-tovar-b{padding:0 6px}
  .st-tovar .btn{width:100%}
  .st-faq details{padding:0 14px}
  .st-faq summary{font-size:17.5px}
  .st-faq details>p,.st-faq details>div{padding-right:0}
  .sc-grid{grid-template-columns:1fr}
  .sb{padding:46px 0 56px}
  .l-panel{padding:22px 18px;border-width:5px}
  .l-panel h1{font-size:29px}
  .ftr{border-radius:22px 22px 0 0}
  .ftr nav{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
