﻿:root{--ink:#0d2133;--deep:#0b1b29;--muted:#637789;--line:#d8e2e8;--paper:#f5f8fa;--lime:#d8f64a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,sans-serif}.wrap{width:min(1120px,calc(100% - 40px));margin:auto}.top{padding:8px 0;background:#edf3f5;color:#527083;font-size:13px}.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:10px;align-items:center;font-size:16px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.brand-link{text-decoration:none;color:inherit}.mark{width:30px;height:30px;border-radius:50%;background:var(--lime);box-shadow:inset 0 0 0 8px var(--ink)}nav{display:flex;gap:20px}nav a,a{color:inherit}nav a{text-decoration:none;color:#526b7c;font-size:14px}.nav-menu{display:flex;align-items:center;gap:20px}.phone{text-align:right;font-weight:800;text-decoration:none}.hero{padding:72px 0;background:var(--deep);color:#fff}.hero .wrap{position:relative}.eyebrow{color:#6b8494;font-size:12px;letter-spacing:.12em;font-weight:800;text-transform:uppercase}.hero .eyebrow{color:var(--lime)}h1{max-width:800px;margin:16px 0;font-size:clamp(39px,5vw,64px);letter-spacing:-.05em;line-height:1}h2{margin:10px 0 26px;font-size:38px;line-height:1.08;letter-spacing:-.04em}.lead{max-width:660px;color:#c2d1dc;font-size:19px}.button{display:inline-block;margin-top:19px;padding:15px 20px;background:var(--lime);border-radius:8px;text-decoration:none;font-weight:800}.section{padding:72px 0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{padding:25px;border:1px solid var(--line);border-radius:16px;background:#fff}.card h3{margin:10px 0;font-size:22px;letter-spacing:-.025em}.card p{margin:0;color:var(--muted)}.dark{background:var(--deep);color:#fff}.dark .eyebrow{color:var(--lime)}.dark .card{background:#122b3e;border-color:#345064}.dark .card p{color:#c3d1dc}.photo{width:100%;height:260px;object-fit:cover;border-radius:15px}.casegrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.case{padding:28px;border-radius:18px;background:#fff;border:1px solid var(--line)}.case b{display:block;color:#6b9200;font-size:37px}.cta{padding:40px;border-radius:20px;background:var(--lime)}.cta h2{max-width:650px}.footer{padding:38px 0;background:var(--deep);color:#b8c9d3}.footer a{color:#fff}.note{font-size:13px;color:var(--muted)}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.article-card{padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff}.article-card .tag{display:inline-block;margin-bottom:16px;color:#6b9200;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.article-card h3{margin:0 0 10px;font-size:22px;line-height:1.12;letter-spacing:-.025em}.article-card p{margin:0;color:var(--muted);font-size:14px}@media(max-width:760px){nav,.nav-menu{display:none}.grid,.article-grid{grid-template-columns:1fr}.casegrid{grid-template-columns:1fr}.section{padding:52px 0}h2{font-size:31px}.hero{padding:52px 0}.phone{font-size:13px}}


.article-submit{display:grid!important;grid-template-columns:minmax(260px,.75fr) 1fr!important;gap:34px!important;align-items:start!important;padding:34px!important;border:1px solid var(--line)!important;border-radius:20px!important;background:#fff!important}.article-submit .fields{display:grid;gap:13px}.article-submit input,.article-submit textarea{display:block;width:100%;max-width:100%}.article-submit textarea[name=body]{min-height:280px}.article-submit input[type=file]{padding:16px;background:#f4f8fa;border:1px dashed #b9c9d2}.article-submit .button{width:max-content;margin-top:4px}.footer-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.footer-links span{color:#7890a0}@media(max-width:760px){.article-submit{grid-template-columns:1fr!important;padding:24px!important}.article-submit .button{width:100%}}

.quick-cta{margin:28px 0;padding:24px 28px;border-radius:18px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 10px 30px rgba(13,33,51,.06)}.quick-cta h3{margin:0 0 5px;font-size:24px;letter-spacing:-.03em}.quick-cta p{margin:0;color:var(--muted)}.quick-cta .button{margin-top:0;white-space:nowrap}.footer-links{display:flex!important;flex-wrap:wrap;gap:10px!important;align-items:center;margin-top:14px}.footer-links span{color:#8fa6b5}.footer-links a{display:inline-flex;padding:7px 10px;border:1px solid #344b5d;border-radius:999px;color:#fff!important;text-decoration:none}.footer-links a:hover{background:#173448}@media(max-width:760px){.quick-cta{display:block}.quick-cta .button{margin-top:15px;width:100%;text-align:center}.footer-links{gap:8px!important}}

.article-content{padding:34px;border:1px solid var(--line);border-radius:20px;background:#fff}.article-content h2{margin:28px 0 14px;font-size:30px}.article-content p{margin:0 0 16px;color:#243b4d}.article-content blockquote,.comment-body blockquote{margin:16px 0;padding:14px 18px;border-left:4px solid var(--lime);border-radius:10px;background:#f0f6f8;color:#3d5567}.article-content a,.comment-body a{color:#416d00;font-weight:700}.editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0}.editor-toolbar button{border:1px solid #cbd8df;border-radius:999px;background:#fff;padding:8px 12px;color:#526b7c;font:700 13px Arial,sans-serif;cursor:pointer}.editor-toolbar button:hover{background:#eff8c4;color:#0d2133}.comments-list{display:grid;gap:14px;margin-bottom:28px}.comment-card{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}.comment-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.comment-head span{color:var(--muted);font-size:13px}.comment-body p{margin:0 0 12px;color:#243b4d}.comment-actions{display:flex;gap:8px;margin-top:12px}.comment-actions button{border:0;background:#eef5f7;border-radius:999px;padding:7px 10px;color:#526b7c;font-weight:700;cursor:pointer}.comment-actions button:hover{background:#eff8c4;color:#0d2133}.comment-replies{margin:16px 0 0 22px;padding-left:16px;border-left:2px solid #d8e2e8}.comment-form{margin-top:28px!important}.comment-form textarea{min-height:150px!important}@media(max-width:760px){.article-content{padding:24px}.comment-replies{margin-left:6px;padding-left:12px}.comment-head{display:block}}

.contacts{display:grid;gap:2px;text-align:right;white-space:nowrap}.contacts a[href^="mailto"]{font-size:13px;font-weight:700;color:#526b7c}.footer-contact{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0}.footer-contact a{display:inline-flex;padding:8px 11px;border-radius:999px;background:#122b3e;border:1px solid #344b5d;color:#fff!important;text-decoration:none}.footer-contact a:hover{background:#173448}@media(max-width:760px){.contacts{display:none}.footer-contact{display:grid}}

.contacts{display:grid!important;gap:2px!important;text-align:right!important;white-space:nowrap}.contacts .contact-phone{font-size:16px;font-weight:850;color:var(--ink);text-decoration:none}.contacts small{display:block;color:#718496;font-size:12px}.contacts .contact-mail{font-size:13px;font-weight:750;color:#526b7c;text-decoration:none}.footergrid-lite{display:grid;grid-template-columns:1.2fr .9fr .7fr;gap:32px;align-items:start}.footergrid-lite p{margin:12px 0 0;color:#aabdc9}.footer-contact{display:grid!important;gap:7px!important;margin:0!important}.footer-contact strong,.footergrid-lite strong{color:#fff}.footer-contact a{display:inline-flex;width:max-content;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;text-decoration:none}.footer-contact small{color:#8fa6b5}.footer-links{display:flex!important;flex-wrap:wrap;gap:10px!important;margin:12px 0 0!important}.footer-links a{display:inline-flex;padding:7px 10px;border:1px solid #344b5d;border-radius:999px;color:#fff!important;text-decoration:none}.modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:20px;background:rgba(7,22,34,.62)}.modal.open{display:grid}.modal-card{position:relative;width:min(520px,100%);padding:32px;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.25)}.modal-card h2{margin:8px 0 10px;font-size:34px}.modal-card p{color:var(--muted)}.modal-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#eef5f7;font-size:24px;cursor:pointer}.modal .fields{display:grid;gap:12px}.modal textarea{min-height:92px}@media(max-width:760px){.footergrid-lite{grid-template-columns:1fr}.contacts{display:none!important}.footer-contact a{width:auto}}

.site-footer{margin-top:70px;padding:52px 0 34px;background:#0d0f11;color:#fff}.site-footer .wrap{width:min(1160px,calc(100% - 40px))}.footer-line{height:1px;background:linear-gradient(90deg,transparent,#d8f64a,transparent);opacity:.9;margin:0 0 34px}.footer-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:42px;padding:28px 32px;border:1px solid #252b30;border-radius:22px;background:linear-gradient(135deg,#12181d,#0b1014)}.footer-cta h2{margin:0 0 8px;font-size:30px;letter-spacing:-.04em}.footer-cta p{margin:0;color:#9facb6}.footer-cta .button{margin:0;white-space:nowrap}.footer-main{display:grid;grid-template-columns:1.25fr .9fr .9fr;gap:70px;align-items:start}.footer-brand .brand{color:#fff;font-size:18px}.footer-brand p{max-width:330px;margin:22px 0 10px;color:#9facb6}.footer-brand small{color:#6f808b}.site-footer strong{display:block;margin-bottom:16px;color:#fff;font-size:15px}.footer-nav{display:grid;gap:10px}.footer-nav a,.footer-bottom a{color:#dce6ec;text-decoration:none;font-weight:700}.footer-nav a:hover,.footer-bottom a:hover,.footer-contact a:hover{color:#d8f64a}.site-footer .footer-contact{display:grid!important;gap:7px!important;margin:0!important}.site-footer .footer-contact a{padding:0!important;border:0!important;background:transparent!important;color:#fff!important;text-decoration:none;font-weight:800}.site-footer .footer-contact small{color:#8fa0aa}.footer-bottom{display:flex;gap:18px;flex-wrap:wrap;margin-top:42px;padding-top:18px;border-top:1px solid #252b30;color:#758692;font-size:13px}.footer-bottom a{font-size:13px;color:#9facb6}@media(max-width:820px){.footer-cta,.footer-main{display:block}.footer-cta .button{margin-top:18px;width:100%;text-align:center}.footer-main>div{margin-top:28px}.footer-cta{padding:24px}.site-footer{padding:42px 0 30px}}


/* beta 1.7 footer/modal hard override */
html body .site-footer{display:block!important;margin-top:80px!important;padding:54px 0 34px!important;background:#101010!important;color:#fff!important}
html body .site-footer .wrap{width:min(1160px,calc(100% - 40px))!important;margin:auto!important}
html body .site-footer .footer-line{display:block!important;height:1px!important;margin:0 0 58px!important;background:#1d7cff!important;opacity:1!important}
html body .site-footer .footer-cta{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:28px!important;margin:0 0 52px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body .site-footer .footer-cta h2{margin:0 0 10px!important;color:#fff!important;font-size:28px!important;line-height:1.1!important;letter-spacing:-.03em!important}
html body .site-footer .footer-cta p{margin:0!important;color:#9ca6ad!important;font-size:15px!important}
html body .site-footer .footer-cta .button{margin:0!important;color:#0d2133!important;background:var(--lime)!important}
html body .site-footer .footer-main{display:grid!important;grid-template-columns:1.3fr .9fr .9fr!important;gap:84px!important;align-items:start!important;margin:0!important}
html body .site-footer .footer-brand .brand{display:flex!important;color:#fff!important;font-size:22px!important;letter-spacing:.14em!important;text-transform:uppercase!important}
html body .site-footer .footer-brand p{max-width:360px!important;margin:24px 0 12px!important;color:#8d989f!important;font-size:14px!important}
html body .site-footer .footer-brand small{display:block!important;color:#6f7b82!important;font-size:13px!important}
html body .site-footer strong{display:block!important;margin:0 0 18px!important;color:#fff!important;font-size:16px!important}
html body .site-footer .footer-nav{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:0!important}
html body .site-footer .footer-nav a{display:block!important;color:#fff!important;text-decoration:none!important;font-size:15px!important;font-weight:800!important}
html body .site-footer .footer-contact{display:grid!important;gap:7px!important;margin:0!important;color:#fff!important}
html body .site-footer .footer-contact a{display:block!important;width:max-content!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;text-decoration:none!important;font-size:16px!important;font-weight:900!important}
html body .site-footer .footer-contact small{display:block!important;color:#9ca6ad!important;font-size:13px!important}
html body .site-footer .footer-bottom{display:flex!important;gap:20px!important;flex-wrap:wrap!important;margin:54px 0 0!important;padding:18px 0 0!important;border-top:1px solid #303030!important;color:#727b82!important;font-size:13px!important}
html body .site-footer .footer-bottom a{color:#9ca6ad!important;text-decoration:none!important;font-size:13px!important;font-weight:700!important}
html body .modal[hidden]{display:none!important}
html body .modal{position:fixed!important;inset:0!important;z-index:1000!important;display:none!important;place-items:center!important;padding:20px!important;background:rgba(7,22,34,.68)!important}
html body .modal.open{display:grid!important}
html body .modal-card{position:relative!important;width:min(520px,100%)!important;padding:32px!important;border-radius:22px!important;background:#fff!important;box-shadow:0 24px 70px rgba(0,0,0,.28)!important}
html body .modal-close{position:absolute!important;right:14px!important;top:12px!important;width:36px!important;height:36px!important;border:0!important;border-radius:50%!important;background:#eef5f7!important;color:#0d2133!important;font-size:24px!important;line-height:36px!important;cursor:pointer!important}
@media(max-width:820px){html body .site-footer .footer-cta,html body .site-footer .footer-main{display:block!important}html body .site-footer .footer-cta .button{margin-top:18px!important;width:100%!important;text-align:center!important}html body .site-footer .footer-main>div{margin-top:30px!important}}

/* beta 1.8: единая быстрая заявка и понятные CTA */
.cta .button{background:var(--ink)!important;color:#fff!important}
.quiz-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.quiz-callback{border:1px solid #cbd8df;border-radius:999px;background:#fff;color:#526b7c;padding:11px 15px;font:800 14px Arial,sans-serif;cursor:pointer}
.quiz-callback:hover{background:#eff8c4;color:#0d2133}
@media(max-width:760px){.quiz-nav{display:grid!important}.quiz-left{display:grid}.quiz-callback{width:100%}}

/* beta 1.18: заявки, телефон и спасибо-страница */
.quiz-nav .button,
.quiz-callback{
  min-width:180px;
  min-height:54px;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px 18px!important;
  text-align:center!important;
}
.quiz-callback{
  background:var(--lime)!important;
  color:var(--ink)!important;
  border-color:var(--lime)!important;
}
.thanks-hero .lead{max-width:720px}
.thanks-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.thanks-actions .button{margin-top:0}
.thanks-actions .primary-return{
  background:#fff!important;
  color:var(--ink)!important;
  border:2px solid #fff!important;
}
.thanks-actions .outline{
  color:#fff!important;
  border:1px solid rgba(255,255,255,.45)!important;
}
.thanks-card{
  padding:32px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
}
@media(max-width:760px){
  .quiz-nav .button,.quiz-callback{width:100%!important}
  .thanks-actions{display:grid}
}

/* beta 1.19: улучшенный редактор статей */
.article-content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:24px 0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.article-content th,
.article-content td{
  padding:13px 14px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  vertical-align:top;
  text-align:left;
}
.article-content th{
  background:#eef5f7;
  color:var(--ink);
  font-weight:850;
}
.article-content tr:last-child td{border-bottom:0}
.article-content th:last-child,
.article-content td:last-child{border-right:0}
.article-content .article-figure a{
  display:block;
  text-decoration:none;
}
.article-content .article-figure img{
  display:block;
  width:100%;
}
.article-content .article-download{
  width:max-content;
  color:var(--ink)!important;
}
.admin-article-form textarea[name=body]{
  min-height:560px!important;
  font-family:Consolas,"Courier New",monospace;
  line-height:1.55;
}
.editor-help{margin-top:18px}
.editor-toolbar button[data-md="table"],
.editor-toolbar button[data-md="image-upload"]{
  background:#eff8c4;
  color:#0d2133;
  border-color:#c9e53f;
}
@media(max-width:760px){
  .article-content{overflow-x:auto}
  .article-content table{min-width:620px}
}

/* beta 1.9: article admin + related articles */
.related-section{padding-top:0!important}
.related-list{display:grid;gap:10px;max-width:760px}
.related-link{display:block;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:800;text-decoration:none}
.related-link:hover{background:#eff8c4}
.article-content ul,.article-content ol{margin:0 0 18px 22px;color:#243b4d}
.article-content li{margin:7px 0}
.article-content figure{margin:24px 0}
.article-content figure img,.article-content img{max-width:100%;height:auto;border-radius:14px}
.article-content figcaption{margin-top:8px;color:var(--muted);font-size:14px}
.article-download{margin:10px 0}
.admin-article-form label{display:grid;gap:7px;margin:0 0 14px;font-weight:800}
.admin-article-form label input,.admin-article-form label textarea{font-weight:400}
.checkline{display:flex!important;grid-template-columns:none!important;align-items:center;gap:9px!important;font-weight:700!important}
.checkline input{width:auto}
.related-picker{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:10px}
@media(max-width:760px){.related-picker{grid-template-columns:1fr}}

/* beta 1.10: solutions dropdown */
.nav-dropdown{position:relative}
.nav-dropdown>button{border:0;background:transparent;color:#526b7c;font:700 14px Arial,sans-serif;cursor:pointer;padding:0}
.nav-dropdown>button:after{content:"";display:inline-block;margin-left:6px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;vertical-align:middle}
.nav-dropdown-menu{position:absolute;left:-14px;top:calc(100% + 14px);z-index:30;display:grid;min-width:245px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 18px 44px rgba(13,33,51,.14);opacity:0;visibility:hidden;transform:translateY(-6px);transition:.16s}
.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.nav-dropdown-menu a{display:block;padding:10px 12px;border-radius:9px;color:#243b4d!important;font-weight:800;text-decoration:none;white-space:nowrap}
.nav-dropdown-menu a:hover{background:#eff8c4;color:#0d2133!important}
.quiz-help{display:grid;gap:2px;max-width:340px}
.quiz-help b{font-size:14px}
.quiz-help span{color:var(--muted);font-size:13px}
.button.dark{background:var(--ink);color:#fff!important}
@media(max-width:760px){.nav-dropdown-menu{position:static;box-shadow:none}.quiz-help{max-width:none}}

.academy-hero{position:relative;overflow:hidden;padding:76px 0;background:#0b1b29;color:#fff}
.academy-hero:before{content:"";position:absolute;right:-190px;top:-240px;width:620px;height:620px;border:1px solid rgba(216,246,74,.32);border-radius:50%;box-shadow:0 0 0 86px rgba(216,246,74,.045),0 0 0 172px rgba(29,124,255,.055)}
.academy-hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;align-items:center}
.academy-hero h1{margin:14px 0 18px;color:#fff}
.academy-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.academy-actions .button,.academy-actions .academy-secondary{display:inline-flex;width:218px;height:52px;margin-top:0;padding:0 20px}
.academy-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:13px 18px;border:1px solid #607789;border-radius:9px;color:#fff!important;text-decoration:none;font-weight:800}
.academy-panel{padding:30px;border:1px solid #29475b;border-radius:18px;background:linear-gradient(145deg,#122b3e,#0c1824);box-shadow:0 24px 70px rgba(0,0,0,.18)}
.academy-panel span{display:block;color:#d8f64a;font-size:12px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.academy-panel strong{display:block;margin:18px 0 10px;font-size:38px;line-height:1;letter-spacing:-.045em}
.academy-panel p{margin:0;color:#c2d1dc}
.academy-section h2{max-width:760px}
.academy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.academy-card{position:relative;display:block;min-height:282px;padding:25px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);text-decoration:none;overflow:hidden;transition:.16s}
.academy-card:after{content:"";position:absolute;right:-42px;bottom:-42px;width:118px;height:118px;border-radius:50%;background:#eff8c4;opacity:.75}
.academy-card:hover{transform:translateY(-3px);border-color:#b7cf32;box-shadow:0 18px 42px rgba(13,33,51,.1)}
.academy-card h3{margin:22px 0 10px;font-size:25px;line-height:1.1;letter-spacing:-.035em}
.academy-card p{position:relative;z-index:1;margin:0;color:var(--muted)}
.academy-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#eaf1f4;color:#0d2133;font-size:27px;font-weight:900}
.academy-icon-tools:before{content:"⚒"}
.academy-icon-sales:before{content:"₽"}
.academy-icon-measure:before{content:"⌖"}
.academy-icon-hardhat:before{content:"▣"}
.academy-icon-assistant:before{content:"✓"}
.academy-icon-project:before{content:"▤"}
.academy-note{padding:0 0 76px}
.academy-note-box{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;padding:34px;border-radius:20px;background:#d8f64a}
.academy-note-box h2{margin:9px 0 10px;font-size:32px;line-height:1.08;letter-spacing:-.04em}
.academy-note-box p{max-width:720px;margin:0;color:#40563c}
.academy-note-box .button{background:#0d2133;color:#fff}
.academy-login-page{padding:62px 0 20px;background:linear-gradient(180deg,#f5f8fa,#e8eff3)}
.academy-login-shell{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:52px;align-items:center;min-height:560px}
.academy-login-copy h1{margin:14px 0 18px}
.academy-back{display:inline-flex;margin-bottom:24px;color:#526b7c;text-decoration:none;font-weight:800}
.academy-access-note{display:grid;gap:4px;max-width:520px;margin-top:28px;padding:18px 20px;border-left:4px solid #d8f64a;background:#fff}
.academy-access-note span{color:var(--muted)}
.academy-login-card{display:grid;gap:14px;padding:30px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 20px 54px rgba(13,33,51,.1)}
.academy-login-card h2{margin:0 0 4px;font-size:28px;line-height:1.1;letter-spacing:-.04em}
.academy-login-card label{display:grid;gap:7px;font-weight:800;color:#243b4d}
.academy-login-card .button{width:100%;margin-top:4px}
.academy-login-message{margin:0;padding:12px;border-radius:9px;background:#f1f6f8;color:#526b7c;font-size:14px}
.academy-login-card .academy-secondary{width:100%;min-height:0;padding:0;border:0;color:#526b7c!important}
@media(max-width:820px){.academy-hero-grid,.academy-login-shell,.academy-note-box{grid-template-columns:1fr}.academy-grid{grid-template-columns:1fr 1fr}.academy-panel{max-width:420px}.academy-note-box .button{width:100%}}
@media(max-width:560px){.academy-hero{padding:56px 0}.academy-grid{grid-template-columns:1fr}.academy-card{min-height:0}.academy-login-page{padding-top:40px}.academy-login-card{padding:24px}.academy-note{padding-bottom:54px}}

/* beta 1.20: кнопки действий со статьями в админке */
.admin-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}
.admin-actions form{display:inline-flex;margin:0}
.admin-actions .button{margin:0}
.button.danger{background:#ead0d0!important;color:#7a1f1f!important}
.button.danger:hover{background:#f0b8b8!important}
@media(max-width:760px){.admin-actions{display:grid}.admin-actions form,.admin-actions .button,.admin-actions form .button{width:100%}}

/* beta 1.21: обложки статей показываем целиком, без обрезки текста на картинке */
.article-full > .photo{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#0b1b29;
}

/* Exact approved port clip display cap; no media or article changes. */
.article-content .article-figure img[src="/uploads/port-platforms-full-20261119.webp"]{
  width:min(100%,360px);
  max-width:360px;
  height:auto;
  display:block;
  margin-inline:auto;
}
