/* =========================================================================
   Шаблон «Соседи» — fest52.ru
   Подключается после CSS ultimate и перекрашивает весь сайт.
   Все селекторы — под body.sd, чтобы перебить ultimate без !important где можно.
   ========================================================================= */

:root{
  --sd-bg:#FFF6EA; --sd-card:#FFFFFF; --sd-ink:#33261F; --sd-muted:#6B5A4F; --sd-line:#F0DFCB;
  --sd-coral:#C4471F; --sd-coral-d:#9A3415; --sd-coral-50:#FFE6DC;
  --sd-green:#2E6B5A; --sd-green-d:#245747; --sd-green-50:#DDF0E7;
  --sd-sun:#FFC75A; --sd-sun-50:#FFF0CC;
  --sd-r:28px; --sd-r-s:18px;
  --sd-f:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ---------- база ---------- */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body.sd::before,body.sd::after{display:none !important;content:none !important}
html{background:var(--sd-bg)}
body.sd{margin:0;background:var(--sd-bg) none;color:var(--sd-ink);font:18px/1.6 var(--sd-f);min-width:0 !important}
body.sd,body.sd input,body.sd select,body.sd textarea,body.sd button,
body.sd h1,body.sd h2,body.sd h3,body.sd h4,body.sd h5{font-family:var(--sd-f)}
body.sd a{color:var(--sd-coral-d)}
body.sd a:hover{color:var(--sd-coral)}
body.sd img{max-width:100%;height:auto}
body.sd svg.i{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.sd-wrap{max-width:1200px;margin:0 auto;padding:0 16px;box-sizing:border-box}
body.sd *,body.sd *:before,body.sd *:after{box-sizing:border-box}
body.sd :focus-visible{outline:3px solid var(--sd-coral);outline-offset:2px}

/* кнопки */
.sd-btn,body.sd .button,body.sd .btn,body.sd input[type=submit],body.sd button.button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:999px;
  font:800 17px/1.2 var(--sd-f);text-decoration:none;border:2px solid var(--sd-ink);color:var(--sd-ink);background:#fff;cursor:pointer;
  box-shadow:none;text-shadow:none;height:auto;width:auto;text-transform:none;letter-spacing:0}
.sd-btn:hover,body.sd .button:hover,body.sd .btn:hover{color:var(--sd-ink);background:#fff8f0}
.sd-btn.c,body.sd .btn-primary,body.sd .button-submit{background:var(--sd-coral);border-color:var(--sd-coral);color:#fff;box-shadow:0 4px 0 var(--sd-coral-d)}
.sd-btn.c:hover,body.sd .btn-primary:hover,body.sd .button-submit:hover{background:#B13F1B;color:#fff}
.sd-btn.ghost,body.sd .button-cancel{border-color:transparent;background:transparent}
body.sd .button span,body.sd .btn span{color:inherit;font:inherit;background:none;padding:0}

/* ---------- шапка ---------- */
.sd-header{position:sticky;top:0;z-index:100;background:rgba(255,246,234,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--sd-line)}
.sd-hb{display:flex;align-items:center;gap:18px;min-height:76px}
body.sd .sd-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--sd-ink);font-weight:900;font-size:20px;line-height:1.1;flex:none}
.sd-logo small{display:block;font-weight:600;font-size:16px;color:var(--sd-muted)}
.sd-mainnav{margin-left:auto}
.sd-header ul.menu{list-style:none;margin:0;padding:0;display:flex;gap:2px;align-items:center;background:none;border:0}
.sd-header ul.menu li{position:relative;list-style:none;margin:0;padding:0;background:none;border:0;float:none}
.sd-header ul.menu li.level1 > a{display:flex;align-items:center;white-space:nowrap;min-height:44px;padding:0 14px;border-radius:999px;text-decoration:none;color:var(--sd-ink);font-weight:700;font-size:17px;background:none}
.sd-header ul.menu li.level1 > a:hover,.sd-header ul.menu li.level1.active > a{background:var(--sd-coral-50);color:var(--sd-ink)}
.sd-header ul.menu a span.wrap{padding:0;background:none;color:inherit;font:inherit}
.sd-header ul.menu li.folder > a:after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-4px 0 0 8px}
.sd-header ul.menu ul{display:none;position:absolute;top:100%;left:0;min-width:260px;background:#fff;border-radius:20px;padding:8px;margin:6px 0 0;list-style:none;box-shadow:0 18px 40px -14px rgba(51,38,31,.35);z-index:5}
.sd-header ul.menu ul ul{position:static;box-shadow:none;margin:0;padding:0 0 0 12px;display:block;min-width:0}
.sd-header ul.menu li.folder:hover > ul,.sd-header ul.menu li.folder.sd-open > ul,.sd-header ul.menu li.folder:focus-within > ul{display:block}
.sd-header ul.menu ul a{display:block;padding:10px 12px;border-radius:12px;text-decoration:none;color:var(--sd-ink);font-weight:700;font-size:16px;line-height:1.3}
.sd-header ul.menu ul a:hover{background:var(--sd-coral-50)}
.sd-header ul.menu ul li.folder > a:after{display:none}
.sd-usernav{display:flex;align-items:center;gap:6px;flex:none}
.sd-usernav ul.menu{gap:6px}
.sd-usernav ul.menu li.level1 > a{border:2px solid var(--sd-ink);padding:0 18px;font-weight:800}
.sd-usernav ul.menu li.user_add > a{background:var(--sd-coral);border-color:var(--sd-coral);color:#fff;box-shadow:0 4px 0 var(--sd-coral-d)}
.sd-usernav ul.menu li.user_add > a:hover{background:#B13F1B;color:#fff}
.sd-usernav ul.menu-personal li.level1 > a,.sd-usernav ul.menu-notices li.level1 > a{border-color:transparent}
.sd-usernav ul.menu ul{left:auto;right:0}
.sd-usernav .counter,.sd-header .counter{display:inline-block;min-width:22px;height:22px;line-height:22px;border-radius:11px;background:var(--sd-coral);color:#fff;font-size:14px;font-weight:800;text-align:center;margin-left:6px;padding:0 6px}

/* ---------- раскладка ---------- */
.sd-main{padding:28px 0 0}
.sd-page{display:grid;grid-template-columns:minmax(0,1fr);gap:32px}
.sd-with-sidebar .sd-page{grid-template-columns:minmax(0,1fr) 340px}
.sd-content{min-width:0}
.sd-two{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;margin-top:44px}
.sd-two > *{min-width:0}
.sd-pos-main > * + *{margin-top:44px}
.sd-pos-main{margin-top:44px}
body.sd .sess_messages{margin-bottom:20px}
body.sd .sess_messages > div{border-radius:18px;padding:14px 18px;margin-bottom:10px;background:var(--sd-green-50);color:var(--sd-green-d);border:0;font-weight:700}
body.sd .sess_messages .message_error{background:var(--sd-coral-50);color:var(--sd-coral-d)}

/* виджет-обёртка */
.sd-widget{position:relative}
/* кнопки правки виджета для администратора (ultimate показывает их только у .widget) */
.sd-widget:hover > .edit_wlinks{opacity:.6}
.sd-widget:hover > .edit_wlinks:hover{opacity:1}
.sd-widget > .edit_wlinks a{border-radius:6px;margin-left:2px}
.sd-widget-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.sd-h2,body.sd .sd-widget h2.sd-h2{font-size:clamp(26px,3vw,36px);font-weight:900;margin:0;letter-spacing:-.01em;line-height:1.15;color:var(--sd-ink)}
.sd-widget-links a{font-weight:800}
.sd-lead{color:var(--sd-muted);margin:0 0 22px}
.sd-sidebar .sd-widget{background:var(--sd-card);border-radius:var(--sd-r);padding:22px;box-shadow:0 2px 0 var(--sd-line);margin-bottom:24px}
.sd-sidebar .sd-h2{font-size:22px}
.sd-blob{background:var(--sd-card);border-radius:var(--sd-r);padding:28px;box-shadow:0 2px 0 var(--sd-line)}
.sd-pos-main > .sd-widget.sd-stick{margin-top:16px}
.sd-stick .sd-stickers{margin-top:0}
.sd-pos-main > .sd-widget.sd-card,.sd-two .sd-widget.sd-card{background:var(--sd-card);border-radius:var(--sd-r);padding:28px;box-shadow:0 2px 0 var(--sd-line)}

/* ---------- главная ---------- */
.sd-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center;padding:4px 0 8px}
.sd-hero > *{min-width:0}
body.sd .sd-hero h1{font-size:clamp(32px,4.4vw,58px);line-height:1.06;margin:0 0 16px;font-weight:900;letter-spacing:-.02em;color:var(--sd-ink)}
.sd-hero h1 span{color:var(--sd-coral)}
.sd-hero p{font-size:20px;color:var(--sd-muted);margin:0 0 24px;max-width:560px}
.sd-row{display:flex;gap:12px;flex-wrap:wrap}
.sd-illo{width:100%;height:auto;display:block}
.sd-counters{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0 0}
.sd-cnt{background:var(--sd-card);border-radius:22px;padding:16px 18px;box-shadow:0 2px 0 var(--sd-line)}
.sd-cnt b{display:block;font-size:30px;font-weight:900;line-height:1.1}
.sd-cnt span{color:var(--sd-muted);font-size:16px}

.sd-note{background:var(--sd-sun);border-radius:var(--sd-r);padding:28px;position:relative;overflow:hidden;height:100%}
.sd-note:after{content:"";position:absolute;right:-50px;bottom:-50px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.3)}
.sd-k{display:inline-flex;align-items:center;gap:8px;font-weight:900;text-transform:uppercase;font-size:16px;letter-spacing:.08em}
.sd-k i{width:10px;height:10px;border-radius:50%;background:var(--sd-coral-d);box-shadow:0 0 0 4px rgba(154,52,21,.18)}
body.sd .sd-note h2{font-size:clamp(26px,2.6vw,32px);line-height:1.15;margin:10px 0;font-weight:900;color:var(--sd-ink)}
.sd-note p{margin:0 0 14px}
.sd-checks{list-style:none;margin:0 0 18px;padding:0;position:relative;z-index:1}
.sd-checks li{display:flex;gap:10px;align-items:flex-start;padding:4px 0;list-style:none;background:none}
.sd-checks li svg{margin-top:2px}
.sd-note .sd-row{position:relative;z-index:1}
.sd-note small{display:block;margin-top:14px;font-size:16px;color:#5A4206;position:relative;z-index:1}

.sd-help .sd-hrow{display:flex;gap:14px;align-items:center;padding:12px 0;border-top:2px dotted var(--sd-line);text-decoration:none;color:var(--sd-ink)}
.sd-help .sd-hrow:first-child{border-top:0;padding-top:0}
.sd-ic{flex:none;width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:var(--sd-coral-50);color:var(--sd-coral-d)}
.sd-ic.g{background:var(--sd-green-50);color:var(--sd-green)}
.sd-ic.y{background:var(--sd-sun-50);color:#7A5300;width:48px;height:48px;border-radius:16px}
.sd-hrow b{display:block;line-height:1.25}
.sd-hrow span span{color:var(--sd-muted);font-size:16px}
.sd-sidebar .sd-help .sd-tel{font-size:22px;white-space:nowrap}
.sd-help .sd-tel{font-size:26px;font-weight:900;color:var(--sd-coral-d);line-height:1.2}
.sd-two .sd-widget{height:100%}
.sd-two #widget_wrapper_help,.sd-two .sd-widget.sd-card{height:100%}

.sd-life{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:16px}
body.sd .sd-ph{text-decoration:none;color:var(--sd-ink);font-weight:800;line-height:1.25;display:block}
.sd-ph img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:24px;margin-bottom:10px;display:block}
.sd-ph.big{grid-row:span 2}
.sd-ph.big img{aspect-ratio:auto;height:calc(100% - 64px);min-height:300px;border-radius:24px 24px 24px 90px}
.sd-ph small{display:block;color:var(--sd-muted);font-weight:600;font-size:16px}
.sd-stickers{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
body.sd .sd-stickers a{display:inline-flex;align-items:center;gap:8px;background:var(--sd-green-50);color:var(--sd-green-d);text-decoration:none;font-weight:800;border-radius:999px;padding:10px 16px;font-size:17px;min-height:44px}

.sd-path{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,1fr);position:relative}
.sd-path:before{content:"";position:absolute;left:4%;right:4%;top:27px;height:6px;border-radius:3px;background:linear-gradient(90deg,var(--sd-green) 0 56%,#E9D8C3 56% 100%)}
.sd-path li{position:relative;text-align:center;padding:0 6px;font-size:16px;line-height:1.3;color:var(--sd-muted);list-style:none;background:none}
.sd-dot{width:60px;height:60px;margin:0 auto 10px;border-radius:50%;background:var(--sd-green);color:#fff;display:grid;place-items:center;position:relative;z-index:1;box-shadow:0 0 0 6px #fff}
.sd-path li.next .sd-dot{background:var(--sd-sun);color:var(--sd-ink)}
.sd-path li.later .sd-dot{background:#fff;color:var(--sd-muted);border:3px dashed #D8C2A6}
.sd-path b{display:block;color:var(--sd-ink);font-size:17px}
.sd-here{display:inline-block;margin-top:6px;background:var(--sd-ink);color:#fff;border-radius:999px;padding:2px 10px;font-size:16px;font-weight:800}
.sd-why{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:26px}
.sd-why div{background:var(--sd-bg);border-radius:20px;padding:14px 16px;font-size:16px}
.sd-why b{display:block;font-size:17px}

.sd-todo{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
body.sd .sd-td{background:var(--sd-card);border-radius:24px;padding:20px;text-decoration:none;color:var(--sd-ink);box-shadow:0 2px 0 var(--sd-line);display:flex;gap:14px;align-items:flex-start}
.sd-td:hover{box-shadow:0 2px 0 var(--sd-line),inset 0 0 0 2px var(--sd-coral)}
.sd-td b{display:block;font-size:19px;line-height:1.25;margin-bottom:4px}
.sd-td span span{color:var(--sd-muted);font-size:16px}

.sd-news{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
body.sd .sd-n{background:var(--sd-card);border-radius:24px;overflow:hidden;text-decoration:none;color:var(--sd-ink);box-shadow:0 2px 0 var(--sd-line);display:flex;flex-direction:column}
.sd-n img,.sd-n-noimg{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:var(--sd-sun-50)}
.sd-n-body{padding:16px 18px 20px;display:block}
.sd-tag{display:inline-block;font-size:16px;font-weight:800;color:var(--sd-green-d);background:var(--sd-green-50);border-radius:999px;padding:2px 12px;line-height:1.5}
.sd-n-title{display:block;font-size:21px;font-weight:800;line-height:1.25;margin:10px 0 6px}
.sd-n-teaser{display:block;margin:0 0 8px;color:var(--sd-muted);font-size:16px}
.sd-n time{font-size:16px;color:var(--sd-muted)}
.sd-more{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
body.sd .sd-more a{background:var(--sd-card);border-radius:20px;padding:14px 18px;text-decoration:none;color:var(--sd-ink);font-weight:800;box-shadow:0 2px 0 var(--sd-line);line-height:1.35}
.sd-more small{display:block;font-weight:600;color:var(--sd-muted);font-size:16px;margin-bottom:2px}
.sd-allnews{margin-top:18px}

.sd-chat{display:grid;gap:10px}
body.sd .sd-bub{background:var(--sd-card);border-radius:22px 22px 22px 6px;padding:12px 16px;text-decoration:none;color:var(--sd-ink);box-shadow:0 2px 0 var(--sd-line);display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:56px}
.sd-bub:nth-child(even){border-radius:22px 22px 6px 22px;margin-left:28px;background:#FFFDF8}
.sd-bub b{font-size:18px;line-height:1.3}
.sd-bub small{color:var(--sd-muted);white-space:nowrap;font-size:16px}
.sd-sidebar .sd-bub:nth-child(even){margin-left:0}
.sd-sidebar .sd-bub{box-shadow:none;background:var(--sd-bg);flex-wrap:wrap}
.sd-sidebar .sd-bub small{white-space:normal}

.sd-join{background:var(--sd-green);color:#E8F5EE;border-radius:var(--sd-r);padding:28px}
body.sd .sd-join h2{color:#fff;font-size:28px;margin:0 0 8px;font-weight:900}
.sd-join p{margin:0 0 18px}
body.sd .sd-join .sd-btn{background:#fff;border-color:#fff;color:var(--sd-green-d);box-shadow:0 4px 0 #1B4236}
body.sd .sd-join .sd-alt{display:block;margin-top:14px;color:#fff;font-weight:700}

/* ---------- подвал ---------- */
.sd-footer{margin-top:56px;background:var(--sd-green);color:#DDF0E7;padding:36px 0 28px;border-radius:40px 40px 0 0;font-size:17px}
.sd-fg{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:24px;align-items:start}
body.sd .sd-footer a{color:#fff}
.sd-footer b{color:#fff}
.sd-fnav{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px}
.sd-footer-map{border-radius:22px;overflow:hidden;min-height:120px;background:#245747}
.sd-footer-map ymaps,.sd-footer-map iframe{border-radius:22px}
.sd-debug{margin-top:20px;font-size:14px;opacity:.8}
.sd-offline{background:var(--sd-coral);color:#fff;text-align:center;padding:10px 16px;font-weight:800}
.sd-offline a{color:#fff}

/* ---------- нижнее меню и шторка (телефон) ---------- */
.sd-tabbar{display:none}
.sd-sheet[hidden]{display:none}
.sd-sheet{position:fixed;inset:0;z-index:200;background:rgba(51,38,31,.45)}
.sd-sheet-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:28px 28px 0 0;padding:16px 16px calc(24px + env(safe-area-inset-bottom))}
.sd-grab{width:44px;height:5px;border-radius:3px;background:#E3D2BF;margin:0 auto 12px}
body.sd .sd-sheet-panel a.it{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 6px;text-decoration:none;color:var(--sd-ink);font-weight:800;font-size:18px;border-bottom:1px solid var(--sd-line)}
.sd-sheet-panel .btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.sd-sheet-panel .sd-btn.ghost{width:100%;margin-top:8px}

/* =========================================================================
   Внутренние страницы (разметка ultimate / default)
   ========================================================================= */

/* хлебные крошки */
body.sd #breadcrumbs{background:none;border:0;padding:0;margin:0 0 14px;font-size:16px}
body.sd #breadcrumbs ul{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;padding:0;list-style:none}
body.sd #breadcrumbs li{list-style:none;margin:0;padding:0;color:var(--sd-muted);background:none;float:none;font-size:16px}
body.sd #breadcrumbs li a{color:var(--sd-muted);text-decoration:none;font-weight:700}
body.sd #breadcrumbs li a:hover{color:var(--sd-coral-d)}
body.sd #breadcrumbs li.sep{opacity:.6}

/* заголовки и текст */
body.sd #controller_wrap{background:none;border:0;padding:0;box-shadow:none}
body.sd .sd-content h1{font-size:clamp(30px,3.6vw,44px);line-height:1.1;font-weight:900;letter-spacing:-.02em;margin:0 0 20px;color:var(--sd-ink);border:0;padding:0;text-transform:none}
body.sd .sd-content h2{font-weight:900;color:var(--sd-ink);text-transform:none}
body.sd .sd-content h3{font-weight:800;color:var(--sd-ink)}
body.sd .inline_rss_icon{display:none}
body.sd .subscribe_wrap{float:right;margin:6px 0 0 16px}
body.sd .subscribe_wrap a.subscriber{border-radius:999px;border:2px solid var(--sd-green);color:var(--sd-green-d);background:#fff;font-weight:800;padding:6px 14px;font-size:16px;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
body.sd .subscribe_wrap .count-subscribers{font-size:16px;color:var(--sd-muted);margin-left:6px}

/* меню-таблетки: рубрики, наборы, вкладки */
body.sd .gui-panel,body.sd .content_categories{background:none;border:0;padding:0;margin:0 0 24px;box-shadow:none}
body.sd .content_categories ul,body.sd ul.pills-menu{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;list-style:none;background:none;border:0}
body.sd .content_categories ul li,body.sd ul.pills-menu li{list-style:none;margin:0;padding:0;float:none;background:none;border:0}
body.sd .content_categories ul li a,body.sd ul.pills-menu li a,body.sd ul.pills-menu li > div{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;color:var(--sd-ink);text-decoration:none;font-weight:800;font-size:16px;box-shadow:0 2px 0 var(--sd-line);border:0}
body.sd .content_categories ul li a span{background:none;padding:0;color:inherit}
body.sd .content_categories ul li a:before,body.sd .articles_icon li a:before{display:none}
body.sd .content_categories ul li.active a,body.sd ul.pills-menu li.active > div,body.sd ul.pills-menu li.active a{background:var(--sd-ink);color:#fff}

/* список статей / альбомов — плитка */
body.sd .content_list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;margin:0 0 24px;padding:0;background:none;border:0}
body.sd .content_list:before,body.sd .content_list:after{display:none}
body.sd .content_list > .tile,body.sd .content_list > .item,body.sd .content_list > div{width:auto !important;float:none !important;margin:0 !important;padding:0;background:var(--sd-card);border-radius:24px;overflow:hidden;box-shadow:0 2px 0 var(--sd-line);border:0;display:flex;flex-direction:column;position:relative;min-height:0}
body.sd .content_list .photo{position:relative;width:100%;height:auto;margin:0;padding:0;float:none;background:var(--sd-sun-50);border:0}
body.sd .content_list .photo a.img{display:block;width:100%;aspect-ratio:16/10;height:auto;background-size:cover;background-position:center;border-radius:0}
body.sd .content_list .photo img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;border-radius:0;margin:0}
body.sd .content_list .photo img.no-photo{object-fit:contain;padding:28px;opacity:.35}
body.sd .content_list .info_bar,body.sd .content_list .photo .info_bar{position:static;background:none;padding:12px 18px 0;margin:0;color:var(--sd-muted);display:flex;flex-wrap:wrap;gap:4px 14px;font-size:16px;opacity:1;transform:none;height:auto;bottom:auto}
body.sd .content_list .info_bar a,body.sd .content_list .info_bar *{color:var(--sd-muted);font-size:16px;text-shadow:none}
body.sd .content_list .fields{padding:8px 18px 20px;background:none;position:static;color:var(--sd-ink)}
body.sd .content_list .field{margin:0;padding:0;background:none}
body.sd .content_list .f_title h2,body.sd .content_list .f_title .value{font-size:21px;line-height:1.25;margin:0 0 6px;font-weight:800;text-transform:none}
body.sd .content_list .f_title a,body.sd .content_list a.title{color:var(--sd-ink);text-decoration:none;text-shadow:none}
body.sd .content_list .f_title a:hover{color:var(--sd-coral-d)}
body.sd .content_list .f_anons,body.sd .content_list .f_anons p,body.sd .content_list .teaser{font-size:16px;line-height:1.5;color:var(--sd-muted);margin:0 0 4px}
body.sd .content_list .tile.inside .fields{position:static;background:none}
body.sd .content_list .tile.inside .fields *{color:inherit;text-shadow:none}
body.sd .content_list .tile.inside .f_title a{color:var(--sd-ink)}
body.sd .content_list .tile.inside .f_anons{color:var(--sd-muted)}
body.sd .content_list .photo,body.sd .content_list .photo.vertical{padding:0 !important;height:auto !important}
body.sd .content_list .photo a.img{position:static !important;padding:0 !important}
body.sd .content_list .photo > a{position:static !important;display:block;width:auto;height:auto}
body.sd .content_list .photo > a > img{width:100%;aspect-ratio:16/10;object-fit:cover;position:static !important}
body.sd .content_list .photo .info_bar{position:static !important;background:none !important;left:auto;right:auto;top:auto;bottom:auto;width:auto}
body.sd .content_list .photo img.no-photo{position:static !important;height:auto !important}
/* альбомы */
body.sd .albums_list .photos_album_title{padding:14px 18px 0;font-size:20px;font-weight:800;line-height:1.25}
body.sd .albums_list .photos_album_title a{color:var(--sd-ink);text-decoration:none}
body.sd .albums_list .photos_album_title sup{font-size:15px;color:var(--sd-muted);background:var(--sd-sun-50);border-radius:999px;padding:1px 8px;margin-left:4px;vertical-align:3px}
body.sd .albums_list .photos_album_description{padding:4px 18px 0;color:var(--sd-muted);font-size:16px}
body.sd .albums_list .info_bar{padding:10px 18px 18px}
body.sd .albums_list .clear{clear:none;display:block}

/* полоса информации (дата, автор, комментарии) */
body.sd .info_bar{background:none;border:0;padding:0;margin:0 0 14px;color:var(--sd-muted);font-size:16px;display:flex;flex-wrap:wrap;gap:4px 16px;box-shadow:none}
body.sd .info_bar .bar_item{float:none;margin:0;padding:0;color:var(--sd-muted);font-size:16px;background:none;border:0}
body.sd .info_bar .bar_item:before{color:var(--sd-coral)}
body.sd .info_bar a{color:var(--sd-coral-d)}

/* запись (статья) */
body.sd .content_item{background:var(--sd-card);border-radius:var(--sd-r);padding:28px 32px;box-shadow:0 2px 0 var(--sd-line);border:0;margin-bottom:28px}
body.sd .content_item .field{margin:0 0 16px;background:none;padding:0}
body.sd .content_item .ft_image img{border-radius:22px;display:block;margin:0 auto}
body.sd .content_item .f_content,body.sd .content_item .ft_html .value{font-size:18px;line-height:1.7;color:var(--sd-ink)}
body.sd .content_item .ft_html .value p{margin:0 0 1em}
body.sd .content_item .ft_html .value h2,body.sd .content_item .ft_html .value h3{margin:1.4em 0 .5em;line-height:1.25}
body.sd .content_item .ft_html .value ul,body.sd .content_item .ft_html .value ol{padding-left:1.4em}
body.sd .content_item .ft_html .value li{margin:.25em 0;list-style:inherit;background:none;padding-left:0}
body.sd .content_item .ft_html .value blockquote{margin:1em 0;padding:14px 20px;background:var(--sd-sun-50);border-left:5px solid var(--sd-sun);border-radius:0 18px 18px 0}
body.sd .content_item .ft_html .value img{border-radius:16px}
body.sd .content_item .ft_html .value table{border-collapse:collapse;width:100%;font-size:16px}
body.sd .content_item .ft_html .value td,body.sd .content_item .ft_html .value th{border:1px solid var(--sd-line);padding:8px 10px}
body.sd .content_item iframe{max-width:100%;border-radius:18px}
body.sd .content_item .ft_file a,body.sd .content_item .f_files a{font-weight:800}
body.sd .content_item .tags_bar{margin-top:10px}

/* комментарии */
body.sd #comments_widget{margin-top:8px}
body.sd #comments_widget ul.tabbed{display:flex;gap:8px;margin:0 0 14px;padding:0;list-style:none;border:0;background:none}
body.sd #comments_widget ul.tabbed li{list-style:none;margin:0;background:none;border:0;float:none}
body.sd #comments_widget ul.tabbed li a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:var(--sd-ink);color:#fff;text-decoration:none;font-weight:800;font-size:17px;border:0}
body.sd #comments_widget .tab{background:none;border:0;padding:0}
body.sd #comments_list .comment{background:var(--sd-card);border-radius:22px;padding:16px 18px;margin:0 0 12px;box-shadow:0 2px 0 var(--sd-line);border:0}
body.sd #comments_list .comment .info{font-size:16px;color:var(--sd-muted);background:none;border:0;padding:0;margin:0 0 6px}
body.sd #comments_list .comment .info .name a,body.sd #comments_list .comment .info .name{font-weight:800;color:var(--sd-ink)}
body.sd #comments_list .comment .text{font-size:17px;line-height:1.6}
body.sd #comments_list .no_comments{color:var(--sd-muted);font-size:17px;padding:4px 0 14px}
body.sd #comments_add_link a{margin:0 0 14px}
body.sd #comments_add_link a:before{margin-right:6px}

/* формы */
body.sd form fieldset{background:var(--sd-card);border:0;border-radius:var(--sd-r);padding:24px 26px 10px;margin:0 0 18px;box-shadow:0 2px 0 var(--sd-line)}
body.sd form fieldset legend{font-size:20px;font-weight:900;color:var(--sd-ink);padding:0;margin:0 0 12px;float:left;width:100%}
body.sd form fieldset legend + *{clear:left}
body.sd .field{margin:0 0 16px}
body.sd .field label{display:block;font-weight:800;font-size:17px;color:var(--sd-ink);margin:0 0 6px}
body.sd .field .hint{font-size:16px;color:var(--sd-muted);margin-top:4px}
body.sd .reguired_field > label:after{color:var(--sd-coral)}
body.sd .form-control,body.sd input.input,body.sd select,body.sd textarea{width:100%;max-width:100%;min-height:50px;padding:10px 16px;border:2px solid #E6D3BD;border-radius:16px;background:#fff;color:var(--sd-ink);font:17px/1.4 var(--sd-f);box-shadow:none;outline:0;height:auto}
body.sd textarea.form-control{min-height:140px}
body.sd .form-control:focus,body.sd input.input:focus,body.sd select:focus,body.sd textarea:focus{border-color:var(--sd-coral);box-shadow:0 0 0 4px var(--sd-coral-50)}
body.sd input[type=checkbox],body.sd input[type=radio]{width:22px;height:22px;min-height:0;accent-color:var(--sd-coral);vertical-align:-5px;margin-right:8px}
body.sd .ft_checkbox label,body.sd .ft_checkbox .auth_remember{display:inline;font-weight:700}
body.sd .auth_restore_link{display:inline-block;margin-left:12px;font-weight:700}
body.sd form .buttons{display:flex;gap:12px;flex-wrap:wrap;margin:6px 0 0;padding:0;background:none;border:0}
body.sd .form-tabs .tab{display:block !important}
body.sd .left_cell,body.sd .right_cell{float:none;width:auto;max-width:640px}
body.sd .sm-captcha{background:var(--sd-bg);border-radius:18px;padding:14px}
body.sd .sm-captcha-title{font-weight:800}
body.sd .sm-captcha-img{border-radius:12px;overflow:hidden}

/* поиск */
body.sd #search_form form > div{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
body.sd #search_form input.form-control{flex:1 1 260px;width:auto}
body.sd #search_form select{flex:1 1 200px;width:auto}
body.sd #search_form button{min-width:56px;min-height:50px;border-radius:999px;background:var(--sd-coral);color:#fff;border:0}

/* пагинация */
body.sd .pagebar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:20px 0;padding:0;background:none;border:0}
body.sd .pagebar a,body.sd .pagebar span,body.sd .pagebar .pagebar_page,body.sd .pagebar .pagebar_current{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border-radius:999px;background:#fff;color:var(--sd-ink);font-weight:800;text-decoration:none;box-shadow:0 2px 0 var(--sd-line);border:0;font-size:16px}
body.sd .pagebar .pagebar_current,body.sd .pagebar span.active{background:var(--sd-ink);color:#fff}
body.sd .pagination{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
body.sd .pagination li a,body.sd .pagination li span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:999px;background:#fff;font-weight:800;text-decoration:none;border:0;color:var(--sd-ink)}
body.sd .pagination li.active span,body.sd .pagination li.active a{background:var(--sd-ink);color:#fff}

/* форум (контроллер topic) */
body.sd .categories_list_items{display:grid;gap:14px;margin:0 0 24px}
body.sd .categories_list_items .main_title,body.sd .categories_list_items .list_item,body.sd .topic_list_item{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;background:var(--sd-card);border-radius:24px;padding:18px 20px;box-shadow:0 2px 0 var(--sd-line);border:0;margin:0;position:relative;float:none;width:auto}
body.sd .categories_list_items .icon,body.sd .topic_list_item .icon{flex:none;width:52px;height:52px;border-radius:18px;background:var(--sd-green-50) none;float:none;margin:0;position:relative}
body.sd .categories_list_items .icon:before,body.sd .topic_list_item .icon:before{content:"";position:absolute;inset:14px;border:2.5px solid var(--sd-green);border-radius:6px 6px 6px 2px}
body.sd .categories_list_items h2,body.sd .categories_list_items h3{flex:1 1 260px;order:1;margin:0;font-size:22px;line-height:1.25;font-weight:900;padding:0;border:0;background:none}
body.sd .categories_list_items h2 a,body.sd .categories_list_items h3 a,body.sd .topic_list_item .title > a{color:var(--sd-ink);text-decoration:none}
body.sd .categories_list_items h2 div,body.sd .categories_list_items .item_description{font-size:16px;font-weight:600;color:var(--sd-muted);margin-top:2px}
body.sd .categories_list_items .icon{order:0}
body.sd .categories_list_items .last_message,body.sd .topic_list_item .last_message{order:3;flex:1 1 100%;display:flex;align-items:center;gap:10px;float:none;width:auto;margin:6px 0 0;padding:10px 12px;background:var(--sd-bg);border-radius:16px;font-size:16px;border:0}
body.sd .last_message .last_message_icon{flex:none;float:none;margin:0}
body.sd .last_message .last_message_icon img{width:36px;height:36px;border-radius:50%;object-fit:cover}
body.sd .last_message .title{font-weight:800;font-size:16px;float:none}
body.sd .last_message .title a{color:var(--sd-ink)}
body.sd .last_message .description{color:var(--sd-muted);font-size:16px;float:none}
body.sd .categories_list_items .clear,body.sd .topic_list_item .clear{display:none}
body.sd .categories_list_items .sub_cat_list{order:4;flex:1 1 100%;font-size:16px}
body.sd .topic_list{display:grid;gap:12px}
body.sd .topic_list_item > .title{order:1;flex:1 1 260px;float:none;width:auto;margin:0;font-size:20px;font-weight:800;line-height:1.3}
body.sd .topic_list_item > .title > div{font-size:16px;font-weight:600;color:var(--sd-muted);margin-top:4px;display:flex;gap:14px}
body.sd .topic_list_item .post_count,body.sd .topic_list_item .hits_count{color:var(--sd-muted);background:none;padding:0}
body.sd .topic_list_item .desc{order:2;font-size:16px;color:var(--sd-muted);float:none;width:auto}
body.sd p.is_lock{background:var(--sd-sun-50);border-radius:18px;padding:14px 18px;font-weight:700}
body.sd .topic_posts .post,body.sd .topic_post,body.sd .post_item{background:var(--sd-card);border-radius:22px;box-shadow:0 2px 0 var(--sd-line);border:0}
body.sd .widget_topic_list > div{padding:10px 0;border-top:1px solid var(--sd-line)}

body.sd .categories_list_items *,body.sd .topic_list_item *{word-break:normal;overflow-wrap:break-word}
/* фото */
body.sd #album-photo-item{padding:20px}
body.sd #album-photo-item .left,body.sd #album-photo-item .right{float:none;width:auto;margin:0}
body.sd #album-photo-item .inside{background:none;padding:0}
body.sd #photo_container{border-radius:22px;overflow:hidden;background:#1F1712}
body.sd #photo_container img{display:block;margin:0 auto;max-height:80vh;width:auto}
body.sd #album-photo-item .right{margin-top:16px}
body.sd dl.photo_details{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:16px}
body.sd dl.photo_details dt{color:var(--sd-muted)}
body.sd dl.photo_details dd{margin:0}
body.sd .album-photos-wrap{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
body.sd .album-photos-wrap > *{width:auto !important;height:auto !important;float:none !important;margin:0 !important;border-radius:18px;overflow:hidden;position:relative}
body.sd .album-photos-wrap img{width:100%;aspect-ratio:1;object-fit:cover;display:block}

/* профиль, списки пользователей, рейтинги — мягкие карточки */
body.sd #user_profile_header,body.sd .profile_header,body.sd #user_profile_title{background:var(--sd-card);border-radius:var(--sd-r);box-shadow:0 2px 0 var(--sd-line);border:0}
body.sd .rating_widget .arrow{border-radius:50%}

/* модальные окна */
body.sd .nyroModalCont,body.sd .icms-modal{border-radius:24px}

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width:1100px){
  .sd-header ul.menu li.level1 > a{padding:0 10px;font-size:16px}
}
@media (max-width:1000px){
  .sd-mainnav{display:none}
  .sd-usernav{margin-left:auto}
  .sd-hero,.sd-two{grid-template-columns:1fr}
  .sd-with-sidebar .sd-page{grid-template-columns:minmax(0,1fr)}
  .sd-counters{grid-template-columns:1fr 1fr}
  .sd-life{grid-template-columns:1fr 1fr}
  .sd-ph.big{grid-column:span 2;grid-row:auto}
  .sd-ph.big img{height:auto;aspect-ratio:16/9;min-height:0}
  .sd-path{grid-template-columns:repeat(4,1fr);row-gap:24px}
  .sd-path:before{display:none}
  .sd-why{grid-template-columns:1fr 1fr}
  .sd-todo,.sd-news{grid-template-columns:1fr 1fr}
  .sd-fg{grid-template-columns:1fr}
  body.sd{padding-bottom:84px}
  .sd-tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:150;background:#fff;border-top:1px solid var(--sd-line);padding-bottom:env(safe-area-inset-bottom)}
  body.sd .sd-tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;font-size:14px;font-weight:800;color:var(--sd-muted);text-decoration:none}
  body.sd .sd-tabbar a.on{color:var(--sd-coral)}
  body.sd .sd-tabbar a.sos{color:var(--sd-coral-d)}
}
@media (max-width:640px){
  body.sd{font-size:17px}
  .sd-hb{min-height:64px;gap:10px}
  body.sd .sd-logo{font-size:18px}
  .sd-logo svg{width:38px;height:38px}
  .sd-usernav ul.menu li.key{display:none}
  .sd-usernav ul.menu li.level1 > a{padding:0 14px;min-height:44px;font-size:16px}
  .sd-usernav ul.menu li.level1 > a:before{display:none}
  .sd-logo small{font-size:15px}
  body.sd .last_message .title{display:none}
  .sd-main{padding-top:16px}
  .sd-hero{gap:12px}
  .sd-illo{order:-1;max-height:260px}
  .sd-hero p{font-size:18px}
  .sd-hero .sd-row .sd-btn{flex:1 1 100%}
  .sd-counters{gap:10px}
  .sd-cnt{padding:12px 14px}
  .sd-cnt b{font-size:24px}
  .sd-note,.sd-join,.sd-blob,.sd-pos-main > .sd-widget.sd-card,.sd-two .sd-widget.sd-card{padding:20px;border-radius:24px}
  .sd-two,.sd-pos-main,.sd-pos-main > * + *{margin-top:36px}
  .sd-life{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:0 -20px;padding:0 20px 6px;scrollbar-width:none}
  .sd-life .sd-ph{flex:0 0 72%;scroll-snap-align:start}
  .sd-life .sd-ph img,.sd-life .sd-ph.big img{aspect-ratio:4/3;height:auto;min-height:0;border-radius:22px}
  .sd-path{grid-template-columns:1fr;row-gap:0}
  .sd-path li{display:grid;grid-template-columns:52px 1fr;gap:12px;text-align:left;padding:0 0 14px;align-items:start}
  .sd-path li:not(:last-child):after{content:"";position:absolute;left:24px;top:52px;bottom:0;width:4px;background:#E9D8C3}
  .sd-path li.done:not(:last-child):after{background:var(--sd-green)}
  .sd-dot{width:52px;height:52px;margin:0}
  .sd-here{justify-self:start}
  .sd-why{grid-template-columns:1fr}
  .sd-todo,.sd-news,.sd-more{grid-template-columns:1fr}
  .sd-bub:nth-child(even){margin-left:14px}
  .sd-footer{border-radius:28px 28px 0 0}
  /* внутренние */
  body.sd .content_item{padding:20px 18px;border-radius:22px}
  body.sd form fieldset{padding:18px 16px 6px;border-radius:22px}
  body.sd .subscribe_wrap{float:none;margin:0 0 12px}
  body.sd .content_list{grid-template-columns:1fr}
  body.sd .content_item .f_content,body.sd .content_item .ft_html .value{font-size:17px}
}

/* =========================================================================
   Правки по результатам проверки живого сайта (26.10.2026)
   ========================================================================= */

/* плитки списков: ultimate красит поля «inside»-плиток в белый */
body.sd .content_list .fields,body.sd .content_list .fields .f_title,body.sd .content_list .fields .f_title *{color:var(--sd-ink) !important}
body.sd .content_list .fields .f_anons,body.sd .content_list .fields .f_anons *{color:var(--sd-muted) !important}
body.sd .content_list .fields .f_title a:hover{color:var(--sd-coral-d) !important}

/* служебные подписи: время, даты, счётчики — 16 px и нормальный контраст */
body.sd .sd-main time,body.sd .sd-main .time,body.sd .sd-main .link_date,body.sd .sd-main .date,
body.sd .sd-main .photo-counts span,body.sd .sd-main .photo-counts a,body.sd .sd-main .updated,
body.sd .sd-main .users_online_list,body.sd .sd-main .users_online_list a,
body.sd .sd-main .categories_list_items h2 div,body.sd .sd-main .categories_list_items h3 div{font-size:16px !important;color:var(--sd-muted) !important}
body.sd .sd-main .info_bar .time{margin-left:4px}

/* форум: список разделов — единые иконки и цвет ссылок вместо inline-стилей */
body.sd .categories_list_items .icon,body.sd .topic_list_item .icon{background-image:none !important}
body.sd .categories_list_items h2 a,body.sd .categories_list_items h3 a{color:var(--sd-ink) !important}
body.sd .categories_list_items .item_description{order:2;flex:1 1 100%}

/* форум: сообщения в теме */
body.sd .thread_item{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 22px;background:var(--sd-card);border-radius:24px;padding:18px 22px 22px;margin:0 0 16px;box-shadow:0 2px 0 var(--sd-line);border:0}
body.sd .thread_item .topic_head{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:none;border:0;border-bottom:1px solid var(--sd-line);padding:0 0 10px;margin:0;font-size:16px;color:var(--sd-muted)}
body.sd .thread_item .topic_head > a{color:var(--sd-muted);text-decoration:none;font-weight:700;font-size:16px}
body.sd .thread_item .topic_head .links{margin-left:auto}
body.sd .thread_item .topic_head .rating{float:none;margin:0}
body.sd .thread_item .left_panel{float:none;width:auto;margin:0;padding:0;text-align:center;font-size:16px;background:none;border:0}
body.sd .thread_item .left_panel .nickname{font-weight:800;margin-bottom:6px}
body.sd .thread_item .left_panel .nickname a{color:var(--sd-ink);text-decoration:none}
body.sd .thread_item .avatar_image img{width:84px;height:84px;border-radius:50%;object-fit:cover;margin:0 auto}
body.sd .thread_item .left_panel .offline,body.sd .thread_item .left_panel .online,body.sd .thread_item .left_panel .desc,body.sd .thread_item .left_panel .groups{font-size:15px;color:var(--sd-muted)}
body.sd .thread_item .right_panel{float:none;width:auto;margin:0;padding:0;background:none;border:0;min-width:0}
body.sd .thread_item .right_panel .content{font-size:18px;line-height:1.7;color:var(--sd-ink)}
body.sd .thread_item .right_panel .content img{border-radius:14px;max-width:100%;height:auto}
body.sd .thread_item .clear{display:none}
body.sd .topic_share{margin:0 0 16px}
body.sd .topic_bottom_line{border:0;height:0}

/* комментарии */
body.sd #comments_list .comment .info{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
body.sd #comments_list .comment .info .name,body.sd #comments_list .comment .info .name *{font-size:17px !important;font-weight:800;color:var(--sd-ink) !important}
body.sd #comments_list .comment .info .nav a{font-size:16px;color:var(--sd-muted);text-decoration:none}
body.sd #comments_list .comment .body{display:flex;gap:14px;align-items:flex-start}
body.sd #comments_list .comment .avatar{flex:none;float:none;margin:0}
body.sd #comments_list .comment .avatar img{width:48px;height:48px;border-radius:50%;object-fit:cover}
body.sd #comments_list .comment .content{flex:1;min-width:0;margin:0;padding:0}
body.sd #comments_list .comment .text,body.sd #comments_list .comment .text p{font-size:17px;line-height:1.6;color:var(--sd-ink);margin:0 0 .5em}
body.sd #comments_list .comment .links a,body.sd #comments_list .comment a.reply{font-size:16px !important;font-weight:800;color:var(--sd-coral-d) !important}

/* альбом: сетка фото, сортировка */
body.sd .album-photos-wrap .info{padding:8px 4px 4px}
body.sd .album-photos-wrap .info h3{font-size:17px;margin:0 0 2px}
body.sd .album-photos-wrap .info h3 a{color:var(--sd-ink);text-decoration:none;font-size:17px}
body.sd .album-photos-wrap .photo-counts{display:flex;flex-wrap:wrap;gap:4px 12px}
body.sd .photo_filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
body.sd .photo_filter .box_menu{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;box-shadow:0 2px 0 var(--sd-line);font-size:16px !important;font-weight:800;color:var(--sd-ink);cursor:pointer}
body.sd .box_menu_dd{border-radius:16px;box-shadow:0 18px 40px -14px rgba(51,38,31,.35);border:0;padding:6px}
body.sd .box_menu_dd a{display:block;padding:8px 12px;border-radius:10px;font-size:16px;color:var(--sd-ink)}

/* фото: описание и кнопка «Скачать» */
body.sd .photo_content{font-size:18px !important;line-height:1.6;color:var(--sd-ink);margin:0 0 14px}
body.sd .download-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:999px;background:var(--sd-coral) !important;color:#fff !important;font:800 17px var(--sd-f);border:0;box-shadow:0 4px 0 var(--sd-coral-d);cursor:pointer;text-shadow:none}
body.sd #bubble{border-radius:16px;box-shadow:0 18px 40px -14px rgba(51,38,31,.35);border:0;font-size:16px}
body.sd dl.photo_details dt,body.sd dl.photo_details dd{font-size:16px}

/* формы: «Отмена» / «Нет аккаунта» — контурная кнопка; выпадающие списки chosen */
body.sd .button-cancel{border:2px solid var(--sd-ink) !important;background:#fff !important;color:var(--sd-ink) !important;background-image:none !important}
body.sd .chosen-container{font-size:17px;width:100% !important}
body.sd .chosen-container .chosen-single,body.sd .chosen-container .chosen-choices{min-height:50px;height:auto;display:flex;align-items:center;padding:6px 16px;border:2px solid #E6D3BD;border-radius:16px;background:#fff;box-shadow:none;color:var(--sd-ink);line-height:1.4}
body.sd .chosen-container .chosen-default,body.sd .chosen-container .chosen-default span{color:var(--sd-muted)}
body.sd .chosen-container .chosen-drop{border:2px solid #E6D3BD;border-top:0;border-radius:0 0 16px 16px}
body.sd .chosen-container .chosen-results li{font-size:17px;padding:8px 12px}
body.sd .chosen-container .chosen-results li.highlighted{background:var(--sd-coral);color:#fff}

/* телефон */
@media (max-width:640px){
  .sd-usernav ul.menu a span.wrap:before,.sd-usernav ul.menu a:before{display:none !important}
  .sd-usernav ul.menu li.level1 > a{padding:0 12px}
  body.sd .sd-logo{font-size:17px}
  .sd-hb{gap:8px}
  body.sd .thread_item{grid-template-columns:1fr;padding:14px 16px 18px}
  body.sd .thread_item .left_panel{display:flex;align-items:center;gap:10px;text-align:left}
  body.sd .thread_item .left_panel .nickname{order:2;margin:0}
  body.sd .thread_item .avatar_image img{width:44px;height:44px}
  body.sd .thread_item .left_panel .desc,body.sd .thread_item .left_panel .groups,body.sd .thread_item .left_panel .offline{display:none}
  body.sd .thread_item .right_panel .content{font-size:17px}
}

/* строка «дата · автор · комментарии» в плитках: ultimate делает ссылки белыми */
body.sd .content_list .info_bar a,body.sd .content_list .info_bar .bar_item a{color:var(--sd-coral-d) !important}
body.sd .content_list .info_bar .bar_item,body.sd .content_list .info_bar time{color:var(--sd-muted) !important}
/* картинки, вставленные в текст с локального диска автора (file:///…), браузер всё равно не покажет */
body.sd img[src^="file:"]{display:none !important}

/* --- правки, порция 2 --- */
/* форум: последнее сообщение в карточке раздела */
body.sd .last_message .title a,body.sd .last_message .description,body.sd .last_message .description *{font-size:16px !important}
/* форум: тема — ник, подпись, группа, цитаты */
body.sd .thread_item .left_panel .nickname,body.sd .thread_item .left_panel .nickname a{font-size:17px !important}
body.sd .thread_item .signature{font-size:15px !important;color:var(--sd-muted);border-top:1px dashed var(--sd-line);margin-top:12px;padding-top:8px}
body.sd .thread_item .groups > div{display:inline-block;margin-top:6px;padding:2px 10px;border-radius:999px;background:var(--sd-green-50);color:var(--sd-green-d) !important;font-size:15px;font-weight:700}
body.sd .sd-main blockquote,body.sd .sd-main blockquote *{color:var(--sd-ink) !important}
body.sd .sd-main blockquote{margin:12px 0;padding:12px 16px;background:var(--sd-sun-50);border:0;border-left:5px solid var(--sd-sun);border-radius:0 16px 16px 0;font-style:normal}
/* альбом: длинные подписи фото */
body.sd .album-photos-wrap .info h3,body.sd .album-photos-wrap .photo_page_link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
/* фото: характеристики и EXIF */
body.sd dl.photo_details{grid-template-columns:auto minmax(0,1fr)}
body.sd dl.photo_details dt,body.sd dl.photo_details dd{color:var(--sd-ink)}
body.sd dl.photo_details dt{color:var(--sd-muted)}
body.sd dl.photo_details dd,body.sd dl.photo_details dd a{overflow-wrap:anywhere;min-width:0}
body.sd .exif_info span{font-size:15px !important;color:var(--sd-muted)}
/* мелкие заголовки внутри контента */
body.sd .sd-content h4{font-size:20px;font-weight:800;color:var(--sd-ink)}
body.sd .sd-content h5,body.sd .sd-content h6{font-size:17px;font-weight:800;color:var(--sd-ink)}

/* --- правки, порция 3: шапка на средних ширинах, меню в шторке --- */
/* «Главная» в меню не нужна — её заменяет логотип */
.sd-mainnav ul.menu > li.level1:has(> a[href="/"]){display:none}
.sd-header ul.menu li.level1 > a{padding:0 12px}
.sd-usernav ul.menu li.key > a{border-color:transparent}
.sd-menubtn{display:none;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:2px solid var(--sd-ink);background:#fff;color:var(--sd-ink);font:800 17px var(--sd-f);cursor:pointer;flex:none}
@media (max-width:1300px){
  .sd-mainnav{display:none}
  .sd-usernav{margin-left:auto}
  .sd-menubtn{display:inline-flex}
}
@media (max-width:1000px){
  .sd-menubtn{display:none}
}
/* шторка: на широких экранах — панель справа, на телефоне — снизу */
.sd-sheet-panel{max-height:88vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
@media (min-width:1001px){
  .sd-sheet-panel{top:0;bottom:0;left:auto;right:0;width:400px;max-height:none;border-radius:28px 0 0 28px;padding:24px}
  .sd-sheet-panel .sd-grab{display:none}
}
.sd-sheet-menu ul.menu,.sd-sheet-menu ul.menu ul{list-style:none;margin:0;padding:0;background:none;border:0;display:block;position:static;box-shadow:none}
.sd-sheet-menu ul.menu li{list-style:none;margin:0;padding:0;float:none;background:none;border:0;width:auto}
body.sd .sd-sheet-menu ul.menu a{display:flex;align-items:center;min-height:50px;padding:0 6px;border-bottom:1px solid var(--sd-line);text-decoration:none;color:var(--sd-ink);font-weight:800;font-size:18px;background:none;line-height:1.25}
body.sd .sd-sheet-menu ul.menu a span.wrap{padding:0;background:none;color:inherit;font:inherit}
body.sd .sd-sheet-menu ul.menu a span.wrap:before,body.sd .sd-sheet-menu ul.menu a:before,body.sd .sd-sheet-menu ul.menu a:after{display:none}
body.sd .sd-sheet-menu ul.menu ul a{padding-left:24px;font-weight:700;font-size:17px;min-height:46px}
body.sd .sd-sheet-menu ul.menu ul ul a{padding-left:42px}
body.sd .sd-sheet-menu ul.menu li.active > a{color:var(--sd-coral-d)}
body.sd-sheet-open{overflow:hidden}
/* фото: в характеристиках ultimate запрещает перенос */
body.sd dl.photo_details dd{white-space:normal !important}

/* --- правки, порция 4 --- */
/* фон ultimate (s4_bg*.jpg) не нужен — и не скачиваем его */
body.sd::before,body.sd::after{background:none !important}
/* шапка сообщения форума — на всю ширину карточки */
body.sd .thread_item .topic_head{width:auto !important;float:none}
/* правая колонка «прилипает» при прокрутке длинных страниц */
@media (min-width:1001px){.sd-sidebar{align-self:start;position:sticky;top:96px}}
/* рейтинг комментариев и записей */
body.sd .rating .value,body.sd .rating_widget .score,body.sd .rating_widget .score span{font-size:16px !important;font-weight:800}
body.sd .positive,body.sd .rating .positive{color:var(--sd-green-d) !important}
body.sd .negative,body.sd .rating .negative{color:var(--sd-coral-d) !important}

/* --- правки, порция 5: текст статей и сообщений, вставленный из Word --- */
/* таблицы шире экрана — прокручиваются внутри карточки */
body.sd .content_item .ft_html .value table,body.sd .thread_item .content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-collapse:collapse}
body.sd .content_item .ft_html .value,body.sd .thread_item .content,body.sd #comments_list .comment .text{overflow-wrap:break-word}
body.sd .content_item .ft_html .value a,body.sd .thread_item .content a{overflow-wrap:anywhere}
/* мелкие inline-размеры шрифта из Word — к размеру основного текста */
body.sd .content_item .ft_html .value [style*="font"]:not(h1,h2,h3,h4,h5,h6),body.sd .content_item .ft_html .value font,
body.sd .thread_item .content [style*="font"]:not(h1,h2,h3,h4,h5,h6),body.sd .thread_item .content font,
body.sd #comments_list .comment .text [style*="font"]:not(h1,h2,h3,h4,h5,h6){font-size:inherit !important;line-height:inherit !important;font-family:inherit !important}
/* inline-цвета авторов: оттенок сохраняем (зелёный/оранжевый/красный несут смысл), но затемняем до читаемого контраста */
body.sd .content_item .ft_html .value [style*="color"]:not([style*="background"]):not(:has([style*="background"])),body.sd .content_item .ft_html .value font[color],
body.sd .thread_item .content [style*="color"]:not([style*="background"]):not(:has([style*="background"])),body.sd .thread_item .content font[color],
body.sd #comments_list .comment .text [style*="color"]:not([style*="background"]):not(:has([style*="background"])){filter:brightness(.55) saturate(1.3)}
/* таблицы в тексте: свои мелкие шрифты из чужих классов — к основному */
body.sd .content_item .ft_html .value td,body.sd .content_item .ft_html .value th,body.sd .content_item .ft_html .value td *,body.sd .content_item .ft_html .value th *{font-size:16px !important}
/* вложенные файлы */
body.sd .field_label,body.sd .field .title_left,body.sd .field .title_top{color:var(--sd-muted) !important;font-size:16px !important;font-weight:800}
body.sd .ft_file .size,body.sd .ft_file .size *,body.sd span.size{font-size:16px !important;color:var(--sd-muted) !important}
body.sd .ft_file a{font-weight:800}
/* теги */
body.sd .tags_bar{display:flex;flex-wrap:wrap;gap:8px;font-size:0 !important}
body.sd .tags_bar a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;font-size:16px;background:var(--sd-green-50);color:var(--sd-green-d) !important;font-weight:800;text-decoration:none}
/* блок реквизитов, вставленный в статью с сайта-справочника: шрифт 12px !important в inline-стиле не перебить — масштабируем блок */
body.sd .content_item .ft_html .value .rndBrdBlock{zoom:1.34;max-width:calc(100% / 1.34)}
/* отметка «Сейчас на сайте» у автора сообщения */
body.sd .thread_item .left_panel .online{display:inline-block;margin-top:6px;padding:2px 10px;border-radius:999px;background:var(--sd-green-50) !important;color:var(--sd-green-d) !important;font-size:15px;font-weight:700}
/* телефон: зоны нажатия не меньше 44px */
body.sd .sd-logo{min-height:44px}
body.sd .tags_bar a{min-height:44px}
body.sd .chosen-container .chosen-search input,body.sd .chosen-search-input{min-height:44px !important;font-size:16px !important;border-radius:12px}

/* --- правки, порция 6: меню вошедшего пользователя свёрнуто в один пункт «Мой кабинет» --- */
/* значки пунктов (класс пункта задаётся в админке: profile, messages, add, cpanel…) */
.sd-acc-menu li.level1,.sd-sheet-user li.level1{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.bell,.sd-sheet-user li.level1.bell{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 0 1 12 0v5l2 2H4z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.messages,.sd-sheet-user li.level1.messages{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.profile,.sd-sheet-user li.level1.profile{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.add,.sd-sheet-user li.level1.add{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.cpanel,.sd-sheet-user li.level1.cpanel{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M18 7h2M4 17h2M11 17h9'/%3E%3Ccircle cx='15.5' cy='7' r='2.5'/%3E%3Ccircle cx='8.5' cy='17' r='2.5'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.logout,.sd-sheet-user li.level1.logout{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4'/%3E%3Cpath d='m15 8 4 4-4 4M19 12H9'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.draft,.sd-sheet-user li.level1.draft{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.checklist,.sd-sheet-user li.level1.checklist{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h10M10 12h10M10 18h10'/%3E%3Cpath d='m3 6 1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.onchecklist,.sd-sheet-user li.level1.onchecklist{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.sd-acc-menu li.level1.group,.sd-sheet-user li.level1.group{--sd-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c0-3.5 3-5.5 7-5.5s7 2 7 5.5'/%3E%3Ccircle cx='17' cy='9' r='3'/%3E%3Cpath d='M17 14.5c3 0 5 1.8 5 4.5'/%3E%3C/svg%3E")}
body.sd .sd-acc-menu ul.menu li.level1 > a span.wrap::before,body.sd .sd-sheet-user ul.menu li.level1 > a span.wrap::before{content:"" !important;display:block !important;width:24px;height:24px;margin:0;flex:none;font-size:0;background:currentColor;-webkit-mask:var(--sd-ic) center/contain no-repeat;mask:var(--sd-ic) center/contain no-repeat}
/* кнопка «Мой кабинет»; красная точка — есть непрочитанное (счётчик у любого пункта) */
.sd-acc{position:relative}
body.sd .sd-acc-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:2px solid var(--sd-ink);border-radius:50%;background:#fff;color:var(--sd-ink);cursor:pointer}
body.sd .sd-acc-btn:hover{background:var(--sd-coral-50)}
body.sd .sd-acc-btn[aria-expanded="true"]{background:var(--sd-coral-50)}
.sd-acc:has(.counter) .sd-acc-btn:before{content:"";position:absolute;top:-2px;right:-2px;width:12px;height:12px;border-radius:50%;background:var(--sd-coral);border:2px solid #fff}
/* выпадающий список */
.sd-acc-menu[hidden]{display:none}
.sd-acc-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:20;width:300px;max-width:calc(100vw - 32px);max-height:calc(100vh - 110px);overflow-y:auto;background:#fff;border-radius:20px;padding:8px;box-shadow:0 18px 40px -14px rgba(51,38,31,.35),0 0 0 1px var(--sd-line)}
body.sd .sd-header .sd-acc-menu ul.menu{display:block}
body.sd .sd-header .sd-acc-menu ul.menu + ul.menu{border-top:1px solid var(--sd-line);margin-top:6px;padding-top:6px}
body.sd .sd-header .sd-acc-menu ul.menu li.level1 > a{display:flex;width:auto;height:auto;min-height:46px;padding:0 12px;border:0;border-radius:14px;font-weight:800;font-size:17px;background:none;color:var(--sd-ink);box-shadow:none}
body.sd .sd-header .sd-acc-menu ul.menu li.level1 > a:hover{background:var(--sd-coral-50)}
body.sd .sd-header .sd-acc-menu ul.menu a span.wrap{display:flex;align-items:center;gap:12px;width:100%}
body.sd .sd-header .sd-acc-menu ul.menu li.folder > a:after{display:none}
body.sd .sd-header .sd-acc-menu .counter{margin-left:auto}
body.sd .sd-header .sd-acc-menu ul.menu ul{display:block;position:static;min-width:0;margin:0;padding:0 0 4px 36px;box-shadow:none;border-radius:0;background:none}
body.sd .sd-header .sd-acc-menu ul.menu ul a{padding:8px 12px;font-size:16px}
body.sd .sd-header .sd-acc-menu ul.menu li.cpanel > ul{display:none}
body.sd .sd-header .sd-acc-menu ul.menu li.level1.logout > a{color:var(--sd-coral-d)}
/* телефон: список — от правого края экрана */
@media (max-width:640px){
  .sd-acc-menu{position:fixed;top:72px;right:16px}
}
/* шторка: раздел «Мой кабинет» */
.sd-sheet-h{margin:20px 6px 4px;font-size:15px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--sd-muted)}
body.sd .sd-sheet-user ul.menu li.level1 > a span.wrap{display:flex;align-items:center;gap:12px;width:100%}
body.sd .sd-sheet-user .counter{margin-left:auto}
body.sd .sd-sheet-user ul.menu li.cpanel > ul{display:none}
body.sd .sd-sheet-user ul.menu li.level1.logout > a{color:var(--sd-coral-d)}

/* --- правки, порция 7: меню действий (видно редакторам и админу) — строка кнопок со значками --- */
.sd-actions{margin:0 0 18px}
body.sd .sd-actions ul.menu{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;background:none;border:0}
body.sd .sd-actions ul.menu li{position:relative;list-style:none;margin:0;padding:0;background:none;border:0;float:none}
body.sd .sd-actions ul.menu li.level1 > a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid #E6D3BD;border-radius:999px;background:#fff;color:var(--sd-ink);font-weight:800;font-size:16px;line-height:1.2;text-decoration:none;white-space:nowrap}
body.sd .sd-actions ul.menu li.level1 > a:hover{border-color:var(--sd-coral);background:var(--sd-coral-50)}
body.sd .sd-actions ul.menu a span.wrap{display:inline-flex;align-items:center;gap:8px;padding:0;background:none;color:inherit;font:inherit}
body.sd .sd-actions ul.menu a span.wrap::before{margin:0;color:var(--sd-coral-d);font-size:16px}
body.sd .sd-actions ul.menu li.folder > a:after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-4px 0 0 10px}
body.sd .sd-actions ul.menu ul{display:none;position:absolute;top:100%;left:0;z-index:20;min-width:240px;margin:6px 0 0;padding:8px;list-style:none;background:#fff;border-radius:18px;box-shadow:0 18px 40px -14px rgba(51,38,31,.35),0 0 0 1px var(--sd-line)}
body.sd .sd-actions ul.menu li.folder:hover > ul,body.sd .sd-actions ul.menu li.folder:focus-within > ul,body.sd .sd-actions ul.menu li.folder.sd-open > ul{display:block}
body.sd .sd-actions ul.menu ul a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:12px;color:var(--sd-ink);font-weight:700;font-size:16px;text-decoration:none}
body.sd .sd-actions ul.menu ul a:hover{background:var(--sd-coral-50)}
/* телефон: действия — одна строка с прокруткой, а не столбик */
@media (max-width:640px){
  body.sd .sd-actions ul.menu{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -16px;padding:0 16px 4px}
  body.sd .sd-actions ul.menu::-webkit-scrollbar{display:none}
  body.sd .sd-actions ul.menu li{flex:none}
}

/* --- правки, порция 8: самые узкие телефоны (320 px) --- */
.sd-chat{grid-template-columns:minmax(0,1fr)}
.sd-bub b{min-width:0;overflow-wrap:anywhere}
@media (max-width:400px){
  body.sd .sd-bub{flex-wrap:wrap;gap:2px 12px}
}
@media (max-width:360px){
  body.sd:not(.sd-logged) .sd-logo svg{display:none}
}

/* ---------- плавное появление блоков главной ----------
   Класс sd-anim на <html> ставит sosedi.js (есть IntersectionObserver и не включено
   «уменьшить движение»). Без JS блоки видны сразу. Задержка --sd-delay — лесенка
   для блоков, попавших на экран одновременно. */
.sd-anim .sd-homepage .sd-widget{opacity:0;transform:translateY(32px) scale(.985);transition:opacity .7s ease var(--sd-delay,0s),transform .8s cubic-bezier(.2,.75,.25,1) var(--sd-delay,0s)}
.sd-anim .sd-homepage .sd-widget.sd-in{opacity:1;transform:none}
.sd-anim .sd-pos-hero .sd-widget{transform:translateY(16px)}
@media (prefers-reduced-motion:reduce){
  .sd-anim .sd-homepage .sd-widget{opacity:1;transform:none;transition:none}
}
@media print{
  .sd-anim .sd-homepage .sd-widget{opacity:1;transform:none}
}
