/* Строим Просто 2.4 — иконки, фото-шапки, анимации, раскрывающиеся блоки */

/* --- Шапка: прозрачная поверх фото на всех страницах, при прокрутке — тёмная с размытием --- */
#sreda-site .nav.nav--home{position:absolute;top:0;left:0;right:0;z-index:50;transition:background-color .35s,box-shadow .35s,transform .35s}
#sreda-site .nav.is-scrolled{position:fixed;height:68px;background:rgba(24,28,23,.82);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 6px 30px rgba(0,0,0,.18);border-bottom-color:rgba(255,255,255,.08);animation:sp-drop .35s ease both}
@keyframes sp-drop{from{transform:translateY(-100%)}to{transform:none}}
.admin-bar #sreda-site .nav.is-scrolled{top:32px}
@media(max-width:782px){.admin-bar #sreda-site .nav.is-scrolled{top:0}}

/* --- Фото-шапка внутренних страниц --- */
#sreda-site .inner-head--photo{position:relative;background-color:#222820;background-size:cover;background-position:center 55%;padding-top:170px;padding-bottom:84px;color:#f5f2ec;overflow:hidden}
#sreda-site .inner-head--photo:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#d8c6a5 0,#d8c6a5 120px,transparent 120px)}
#sreda-site .inner-head--photo .eyebrow{color:#d8c6a5}
#sreda-site .inner-head--photo h1{color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.25)}
#sreda-site .inner-head--photo > *{animation:sp-rise .8s cubic-bezier(.2,.7,.2,1) both}
#sreda-site .inner-head--photo > *:nth-child(2){animation-delay:.08s}
#sreda-site .inner-head--photo > *:nth-child(3){animation-delay:.16s}
#sreda-site .inner-lead{font-size:17px;line-height:1.65;color:rgba(255,255,255,.84);max-width:640px;margin:18px 0 0}
#sreda-site .foto-head{padding-top:170px}
@keyframes sp-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  #sreda-site .inner-head--photo,#sreda-site .foto-head{padding-top:120px;padding-bottom:52px}
  #sreda-site .inner-lead{font-size:15px}
}

/* --- Иконки --- */
#sreda-site .ico{display:block;width:40px;height:40px;margin:0 0 18px;color:#59644e;transition:transform .45s cubic-bezier(.2,.7,.2,1),color .3s}
#sreda-site .why .ico{color:#d8c6a5}
#sreda-site .pain-grid article:hover .ico,#sreda-site .standard-grid article:hover .ico,#sreda-site .step:hover .ico{transform:translateY(-3px) rotate(-4deg)}
#sreda-site .ico path,#sreda-site .ico rect,#sreda-site .ico circle{stroke-dasharray:160;stroke-dashoffset:0}
#sreda-site .fx-ready .ico path,#sreda-site .fx-ready .ico rect,#sreda-site .fx-ready .ico circle{stroke-dashoffset:160;transition:stroke-dashoffset 1.4s ease .15s}
#sreda-site .fx-ready.is-in .ico path,#sreda-site .fx-ready.is-in .ico rect,#sreda-site .fx-ready.is-in .ico circle{stroke-dashoffset:0}

/* --- Карточки: подъём при наведении --- */
#sreda-site .pain-grid article,#sreda-site .standard-grid article{transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s,background .4s;position:relative}
#sreda-site .pain-grid article:hover{transform:translateY(-6px);background:rgba(26,31,25,.6);box-shadow:0 18px 40px rgba(0,0,0,.25)}
#sreda-site .standard-grid article:hover{transform:translateY(-6px);background:rgba(255,255,255,.75);box-shadow:0 18px 40px rgba(32,37,31,.12)}
#sreda-site .pain-grid article:before,#sreda-site .standard-grid article:before{content:"";position:absolute;left:0;top:0;height:2px;width:100%;background:#d8c6a5;transform:scaleX(0);transform-origin:0 50%;transition:transform .5s ease}
#sreda-site .standard-grid article:before{background:#59644e}
#sreda-site .pain-grid article:hover:before,#sreda-site .standard-grid article:hover:before{transform:scaleX(1)}

/* Карточки статей: увеличение фото */
#sreda-site .post-card .thumb{display:block;overflow:hidden;margin-bottom:14px}
#sreda-site .post-card .thumb img{margin:0;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
#sreda-site .post-card:hover .thumb img{transform:scale(1.05)}
#sreda-site .post-card h3 a{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .4s}
#sreda-site .post-card:hover h3 a{background-size:100% 1px}

/* --- Шаги: линия-таймлайн --- */
#sreda-site #process .steps{position:relative}
#sreda-site .step{position:relative}
#sreda-site .step .num{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid #59644e;color:#59644e;font:13px Arial,sans-serif;margin-bottom:16px;background:#fbfaf7;position:relative;z-index:1;transition:background .3s,color .3s}
#sreda-site .step:hover .num{background:#59644e;color:#fff}
#sreda-site .step:before{content:"";position:absolute;top:50px;left:0;right:0;height:1px;background:#59644e;transform:scaleX(0);transform-origin:left;transition:transform 1.2s cubic-bezier(.2,.7,.2,1) .2s}
#sreda-site .step.is-in:before,#sreda-site .step:not(.fx-ready):before{transform:scaleX(1)}
#sreda-site .step:last-child:before{right:auto;width:44px}
#sreda-site .steps{border-top:0!important}

/* --- Раскрывающиеся подробности --- */
#sreda-site details.more{margin-top:18px;border-top:1px solid rgba(32,37,31,.18)}
#sreda-site details.more summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;font:600 12px Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#20251f}
#sreda-site details.more summary::-webkit-details-marker{display:none}
#sreda-site details.more summary:after{content:"+";font:300 24px/1 Arial,sans-serif;color:#59644e;transition:transform .35s}
#sreda-site details.more[open] summary:after{transform:rotate(45deg)}
#sreda-site details.more summary:hover{color:#59644e}
#sreda-site details.more[open] > *:not(summary){animation:sp-open .45s ease both}
#sreda-site details.more p,#sreda-site details.more li{font-size:13px;line-height:1.75;color:#5f645b}
#sreda-site details.more ul{margin:0 0 10px;padding-left:18px}
@keyframes sp-open{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* --- Появление при прокрутке --- */
.fx-on #sreda-site .fx-ready{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
.fx-on #sreda-site .fx-ready.is-in{opacity:1;transform:none}

/* Фото в статьях: мягкое увеличение */
#sreda-site .prose figure{overflow:hidden}
#sreda-site .prose figure img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
#sreda-site .prose figure:hover img{transform:scale(1.025)}

/* Полоса прогресса чтения */
#sreda-site .sp-progress{position:fixed;top:0;left:0;height:3px;width:100%;background:#d8c6a5;transform:scaleX(0);transform-origin:left;z-index:60;pointer-events:none}

/* Кнопки: блик */
#sreda-site .button,#sreda-site button[type=submit]{position:relative;overflow:hidden}
#sreda-site .button:after,#sreda-site button[type=submit]:after{content:"";position:absolute;top:0;left:0;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);transform:translateX(-150%) skewX(-20deg);transition:transform .7s}
#sreda-site .button:hover:after,#sreda-site button[type=submit]:hover:after{transform:translateX(330%) skewX(-20deg)}

/* Ссылка «Все статьи» на светлом фоне */
#sreda-site .why-link.why-link--dark{color:#20251f!important;border-color:#20251f}

/* Без анимаций для тех, кто их отключил */
@media (prefers-reduced-motion:reduce){
  #sreda-site *,#sreda-site *:before,#sreda-site *:after{animation:none!important;transition:none!important}
  .fx-on #sreda-site .fx-ready{opacity:1;transform:none}
  #sreda-site .fx-ready .ico path,#sreda-site .fx-ready .ico rect,#sreda-site .fx-ready .ico circle{stroke-dashoffset:0}
}
@media(max-width:760px){
  #sreda-site .step:before{display:none}
  #sreda-site .ico{width:34px;height:34px;margin-bottom:12px}
}
#sreda-site .post-card .eyebrow{color:#7a6a4f}

/* Логотип: «СТРОИМ … ПРОСТО», под «СТРОИМ» — «АГЕНТ РЕМОНТА» той же ширины */
#sreda-site .brand{display:inline-block!important;line-height:0;letter-spacing:0!important;font-size:0!important}
#sreda-site .brand .brand-logo{display:block;height:40px;width:auto}
#sreda-site .nav.is-scrolled .brand .brand-logo{height:34px}
@media(max-width:760px){#sreda-site .brand .brand-logo{height:30px}}
@media(max-width:480px){#sreda-site .navcta{display:none!important}#sreda-site .brand .brand-logo{height:29px}}
#sreda-site .site-footer{flex-wrap:wrap}
#sreda-site .foot-owner{flex:0 0 100%;width:100%;font-size:11px;color:rgba(233,230,221,.5);margin-top:18px}
/* Рубрики на странице статей */
#sreda-site .stati-cats{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 38px}
#sreda-site .stati-cats a{border:1px solid rgba(32,37,31,.25);padding:9px 15px;font:12px Arial,sans-serif;letter-spacing:.04em;color:#20251f;text-decoration:none;transition:background .25s,color .25s,border-color .25s}
#sreda-site .stati-cats a:hover{border-color:#59644e;color:#59644e}
#sreda-site .stati-cats a.is-active{background:#20251f;border-color:#20251f;color:#f5f2ec}
#sreda-site .stati-intro{margin-bottom:30px}
#sreda-site .inner-body .cta-box{margin-top:56px}
@media(max-width:760px){#sreda-site .stati-cats{flex-wrap:nowrap;overflow-x:auto;margin-left:-7vw;margin-right:-7vw;padding:0 7vw 6px;scrollbar-width:none}#sreda-site .stati-cats a{white-space:nowrap}}
/* Картинки и подписи в статьях: подпись всегда под картинкой, без наезда */
#sreda-site .prose figure{margin:1.8em 0!important;max-width:100%}
#sreda-site .prose figure img{display:block;width:100%;height:auto}
#sreda-site .prose figcaption{margin:.75em 0 0!important;padding:0 0 0 12px;border-left:2px solid #d8c6a5;text-align:left!important;font:italic 14px/1.5 Georgia,serif!important;color:#6b6f66!important}
#sreda-site .prose figure:hover img{transform:none}
#sreda-site .prose figure:hover > img,#sreda-site .prose figure:hover > a img{transform:scale(1.02)}

/* Юридические документы */
#sreda-site .legal-doc{font-size:15px;line-height:1.65;color:#2a2e28}
#sreda-site .legal-doc .legal-meta{display:flex;justify-content:flex-end;margin:0 0 28px}
#sreda-site .legal-doc .legal-approved{font:12px/1.6 Arial,sans-serif;letter-spacing:.06em;text-align:left;border-left:2px solid #d8c6a5;padding:2px 0 2px 14px;color:#4a4e46}
#sreda-site .legal-doc .legal-title{font:700 17px/1.4 Arial,sans-serif;letter-spacing:.04em;text-align:center;margin:0 0 10px;color:#20251f}
#sreda-site .legal-doc .legal-edition{text-align:center;font-size:13px;color:#6b6f66;margin:0 0 6px}
#sreda-site .legal-doc .legal-print{text-align:center;font-size:12px;margin:0 0 34px}
#sreda-site .legal-doc h2{font:700 15px/1.4 Arial,sans-serif!important;letter-spacing:.02em;text-transform:none;margin:34px 0 12px!important;color:#20251f;padding-top:16px;border-top:1px solid rgba(32,37,31,.12)}
#sreda-site .legal-doc p{margin:0 0 10px;text-align:justify;hyphens:auto}
#sreda-site .legal-doc ul{margin:0 0 12px;padding-left:22px}
#sreda-site .legal-doc li{margin:0 0 6px;text-align:justify}
#sreda-site .legal-table{overflow-x:auto;margin:12px 0 0;-webkit-overflow-scrolling:touch}
#sreda-site .legal-table table{border-collapse:collapse;min-width:760px;font-size:13px;line-height:1.5}
#sreda-site .legal-table th,#sreda-site .legal-table td{border:1px solid rgba(32,37,31,.22);padding:10px;vertical-align:top;text-align:left}
#sreda-site .legal-table th{background:#20251f;color:#f5f2ec;font-weight:600}
@media(max-width:760px){#sreda-site .legal-doc{font-size:14px}#sreda-site .legal-doc p,#sreda-site .legal-doc li{text-align:left}}
@media print{
  #sreda-site .nav,#sreda-site .site-footer,.sp-cookie,#sreda-site .sp-progress,#sreda-site .legal-print,#wpadminbar{display:none!important}
  #sreda-site .inner-head{background:none!important;color:#000;padding:0 0 10px!important}
  #sreda-site .inner-head h1{color:#000;font-size:20px}
  #sreda-site .inner-head .eyebrow,#sreda-site .inner-head:after{display:none}
  #sreda-site .legal-doc{font-size:11pt;color:#000}
  #sreda-site .legal-table table{min-width:0}
  #sreda-site .fx-ready{opacity:1!important;transform:none!important}
}
/* Шапка «Фото с объектов»: отступ под прозрачное меню (перебивает foto.css) */
#sreda-site .inner-head.foto-head{padding-top:170px}
@media(max-width:760px){#sreda-site .inner-head.foto-head{padding-top:120px}}
#sreda-site details.more .more-note{margin:12px 0 4px;padding:12px 14px;background:rgba(216,198,165,.22);border-left:2px solid #d8c6a5;font-size:13px;line-height:1.7;color:#4a4e46}

/* Защита фото от сохранения: запрет перетаскивания и меню «Сохранить» при долгом нажатии на телефоне */
#sreda-site img{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}
#sreda-site .foto-grid img,#sreda-site .prose figure img,#sreda-site .lb__img{-webkit-user-select:none;user-select:none}
