/* ankirstroy.ru — site-owned technical editorial layer */
:root{--ak-ink:#1d2b34;--ak-steel:#53646d;--ak-muted:#6d7b82;--ak-line:#d8dfe0;--ak-paper:#f2f4f3;--ak-accent:#df763a;--ak-deep:#18262f;}
body.lio-theme--editorial{background:var(--ak-paper);color:var(--ak-ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;}
body.lio-theme--editorial .editorial-header{background:var(--ak-deep);color:#f4f6f5;border-bottom:4px solid var(--ak-accent);padding:0 clamp(18px,4vw,68px);}
body.lio-theme--editorial .editorial-topline{max-width:1440px;margin:auto;color:#bac6ca;border-color:#40515b;}
body.lio-theme--editorial .editorial-masthead{max-width:1440px;margin:auto;text-align:left;padding:25px 0 22px;}
body.lio-theme--editorial .editorial-masthead .lio-brand{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:clamp(1.65rem,3.2vw,2.7rem);font-weight:760;letter-spacing:-.045em;color:#f5f7f6;white-space:normal;}
body.lio-theme--editorial .editorial-masthead .lio-brand__tagline{color:#bdc8cc;max-width:none;font-size:.78rem;letter-spacing:.02em;}
body.lio-theme--editorial .editorial-nav{max-width:1440px;margin:auto;justify-content:flex-start;gap:clamp(10px,1.8vw,26px);border-color:#40515b;color:#edf1f1;}
body.lio-theme--editorial .editorial-nav a{padding:13px 0;color:#edf1f1;text-decoration:none;}
body.lio-theme--editorial .editorial-nav a:hover{color:#ffb27f;text-decoration:none;}
body.lio-theme--editorial .editorial-main{max-width:1560px;padding:42px clamp(18px,4vw,68px);}
body.lio-theme--editorial .editorial-kicker,body.lio-theme--editorial .editorial-tag{color:var(--ak-accent);}
body.lio-theme--editorial .editorial-lead{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:clamp(24px,4vw,54px);align-items:center;}
body.lio-theme--editorial .editorial-lead-copy{padding:28px 0;}
body.lio-theme--editorial .editorial-lead h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(2.45rem,4.5vw,4.55rem);line-height:1.04;color:#1d2b34;}
body.lio-theme--editorial .editorial-lead p{font:400 clamp(1.02rem,1.25vw,1.22rem)/1.68 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#56656d;max-width:640px;}
body.lio-theme--editorial .editorial-lead-media{height:430px;background:#233540;border:1px solid #cbd4d5;overflow:hidden;}
body.lio-theme--editorial .editorial-lead-media img{width:100%;height:100%;object-fit:cover;}
body.lio-theme--editorial .editorial-feed{padding:46px 0;}
body.lio-theme--editorial .editorial-feedhead{border-bottom:2px solid #26343c;margin-bottom:22px;}
body.lio-theme--editorial .editorial-feedhead h2{font:760 1.12rem/1.25 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;text-transform:uppercase;letter-spacing:.075em;color:#25333b;}
body.lio-theme--editorial .editorial-feedhead span{color:var(--ak-accent);}
body.lio-theme--editorial .editorial-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
body.lio-theme--editorial .editorial-cards .lio-card{padding:0 0 18px;background:#fff;border:1px solid #dce3e3;border-top:4px solid var(--ak-accent);box-shadow:0 8px 22px #18262f0b;gap:10px;min-width:0;}
body.lio-theme--editorial .editorial-cards .lio-card img{height:165px;width:100%;object-fit:cover;}
body.lio-theme--editorial .editorial-cards .lio-card strong{padding:8px 18px 0;font:680 1.2rem/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#1e2b33;}
body.lio-theme--editorial .editorial-cards .lio-card span{padding:0 18px;color:#5c6b73;font:400 .92rem/1.55 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;}
body.lio-theme--editorial .editorial-cards .lio-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px #18262f16;}
body.lio-theme--editorial .editorial-body{max-width:900px;font:400 1.04rem/1.82 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#34434b;}
body.lio-theme--editorial .editorial-body h2{font:720 1.58rem/1.28 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#1f2d35;border-left:4px solid var(--ak-accent);padding-left:14px;margin:2.1em 0 .8em;}
body.lio-theme--editorial .editorial-body h3{font:700 1.12rem/1.35 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#263740;margin:1.5em 0 .5em;}
body.lio-theme--editorial .editorial-body p{margin:0 0 1.12em;}
body.lio-theme--editorial .editorial-body ul,body.lio-theme--editorial .editorial-body ol{padding-left:1.45em;margin:0 0 1.3em;}
body.lio-theme--editorial .editorial-body li{padding-left:.2em;margin:.35em 0;}
body.lio-theme--editorial .editorial-body table{width:100%;border-collapse:collapse;display:table;margin:24px 0;font:400 .91rem/1.55 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;}
body.lio-theme--editorial .editorial-body th{background:#263740;color:#f5f7f6;text-align:left;padding:12px 13px;font-weight:700;}
body.lio-theme--editorial .editorial-body td{padding:12px 13px;border-bottom:1px solid #d8e0e1;vertical-align:top;background:#fff;}
body.lio-theme--editorial .editorial-body blockquote{margin:25px 0;padding:18px 22px;border-left:4px solid var(--ak-accent);background:#fff5ed;color:#4b5960;}
body.lio-theme--editorial .editorial-storyhead{max-width:980px;}
body.lio-theme--editorial .editorial-storyhead h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(2.15rem,4.1vw,3.7rem);line-height:1.1;color:#1d2b34;}
body.lio-theme--editorial .editorial-deck{font:400 clamp(1.05rem,1.4vw,1.22rem)/1.65 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#56656d;}
body.lio-theme--editorial .editorial-storyhead time{font:650 .75rem system-ui;color:#7b888e;}
body.lio-theme--editorial .editorial-article-media{height:430px;max-width:1160px;margin:0 auto 45px;overflow:hidden;}
body.lio-theme--editorial .editorial-reading{grid-template-columns:minmax(0,820px) 190px;gap:46px;}
body.lio-theme--editorial .editorial-reading-aside{border-top:3px solid var(--ak-accent);padding-top:16px;color:#53636b;font:650 .78rem system-ui;}
body.lio-theme--editorial .editorial-side-nav a{white-space:normal;color:#53636b;}
body.lio-theme--editorial .editorial-section-heading h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;color:#1d2b34;}
body.lio-theme--editorial .lio-footer--extended{background:var(--ak-deep);color:#c9d2d5;border-top:4px solid var(--ak-accent);}
body.lio-theme--editorial .lio-footer--extended .lio-footer__brand{color:#fff;}
body.lio-theme--editorial .lio-footer--extended .lio-footer__identity p{color:#c2cdd1;}
body.lio-theme--editorial .lio-footer--extended a{color:#edf2f2;}
body.lio-theme--editorial .lio-footer--extended .lio-footer__bottom{border-color:#40515b;}
.ankir-home-extra{padding:8px 0 20px;}
.ankir-home-extra .ankir-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 28px;}
.ankir-home-extra .ankir-principles>div{padding:16px;background:#fff;border-top:3px solid var(--ak-accent);border-bottom:1px solid var(--ak-line);}
.ankir-home-extra .ankir-principles span{display:block;color:var(--ak-accent);font:750 .72rem system-ui;letter-spacing:.12em;margin-bottom:8px;}
.ankir-home-extra .ankir-principles strong{display:block;color:var(--ak-ink);font:700 1rem system-ui;margin-bottom:5px;}
.ankir-home-extra .ankir-principles p{font-size:.92rem;line-height:1.6;margin:0;}
.ankir-home-extra .ankir-note{padding:17px 20px;background:#fff5ed;border-left:4px solid var(--ak-accent);}
/* Calm remains a clean temporary presentation until the site owner activates Editorial in the admin. */
body.lio-theme--calm{background:var(--ak-paper);color:var(--ak-ink);}
body.lio-theme--calm .calm-header{background:var(--ak-deep);color:#f5f7f6;border-bottom:4px solid var(--ak-accent);}
body.lio-theme--calm .calm-header .lio-brand,body.lio-theme--calm .calm-nav{color:#f0f4f3;}
body.lio-theme--calm .calm-hero{text-align:left;}
body.lio-theme--calm .calm-hero h1{color:var(--ak-ink);margin-left:0;}
body.lio-theme--calm .calm-lead{margin-left:0;color:#56656d;}
body.lio-theme--calm .calm-hero .lio-actions{justify-content:flex-start;}
body.lio-theme--calm .calm-hero-media{max-width:none;height:350px;border-radius:2px;}
body.lio-theme--calm .calm-section .lio-card{border-radius:0;border-top:3px solid var(--ak-accent);}
body.lio-theme--calm .lio-footer{background:var(--ak-deep);color:#c9d2d5;border-color:#40515b;}
@media(max-width:900px){
 body.lio-theme--editorial .editorial-lead{grid-template-columns:1fr;gap:20px;}
 body.lio-theme--editorial .editorial-lead-media{height:310px;}
 body.lio-theme--editorial .editorial-reading{grid-template-columns:1fr;gap:20px;}
 body.lio-theme--editorial .editorial-reading-aside{display:none;}
 body.lio-theme--editorial .editorial-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
 .ankir-home-extra .ankir-principles{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px){
 body.lio-theme--editorial .editorial-header{padding:0 18px;}
 body.lio-theme--editorial .editorial-masthead{padding:20px 0;}
 body.lio-theme--editorial .editorial-masthead .lio-brand{font-size:1.55rem;white-space:normal;}
 body.lio-theme--editorial .editorial-nav{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;gap:16px;}
 body.lio-theme--editorial .editorial-nav a{flex:0 0 auto;font-size:.66rem;}
 body.lio-theme--editorial .editorial-main{padding:24px 18px;}
 body.lio-theme--editorial .editorial-lead-media{height:225px;}
 body.lio-theme--editorial .editorial-cards{grid-template-columns:1fr;}
 body.lio-theme--editorial .editorial-storyhead{padding:24px 0;}
 body.lio-theme--editorial .editorial-article-media{height:230px;margin-bottom:26px;}
 body.lio-theme--editorial .editorial-body{font-size:1rem;}
 body.lio-theme--editorial .editorial-body table{display:block;overflow-x:auto;}
 .ankir-home-extra .ankir-principles{grid-template-columns:1fr;}
 body.lio-theme--calm .calm-hero-media{height:220px;}
}

