/*
Theme Name: Progress Legal
Theme URI: https://progress-legal.ru
Author: Progress Legal
Author URI: https://progress-legal.ru
Description: Тема для юридического агентства Прогресс
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: progress-legal
*/

/* Utility classes */
.no-scroll {
    overflow: hidden;
}

:root{
    --bg:#0B3B8C; /* синий фон */
    --bg: linear-gradient(182.54deg, #1F50E8 20.95%, #7996F0 134.42%);; /* синий фон */
    --fg:#ffffff; /* белый текст */
    --fg-dim:rgba(255,255,255,.8);
    --glass:rgba(255,255,255,.1);
    --glass-2:rgba(255,255,255,.15);
    --brand:#ffffff; /* для кнопок */
    --ink:#0B3B8C;  /* синий текст на светлом */
    --radius:20px;
    --radius-lg:24px;
    --shadow:0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
    margin:0; 
    font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif; 
    color:var(--fg); 
    background:var(--bg);
    line-height:1.6; 
    overflow-x:hidden;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}
main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
}
header {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}
footer {
    flex-shrink: 0;
}

.service-expanded__body li {
    list-style-type: none !important;
}

.container{max-width:1200px; margin:0 auto; padding:0 16px}
header.sticky{position:sticky; top:0; z-index:50; backdrop-filter:blur(10px); background:rgba(11,59,140,.3); border-bottom:1px solid rgba(255,255,255,.1)}
header .bar{
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    padding:0;
    gap: 20px;
}
header .bar > *:not(nav) {
    flex-shrink: 0;
}
nav.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}
.custom-logo-link img {
    max-height: 65px;
    max-width: 65px;
    margin-top: 5px;
}
.logo-description {
    font-size: 1.3em;
    font-weight: 600;
}
@media (max-width: 960px) {
    nav.main-navigation {
        flex: 0 0 auto;
        order: 3;
        /* margin-left: auto; */
    }
}

/* Primary Menu Styles */
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.primary-menu li {
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--fg);
    opacity: 0.9;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.primary-menu a:hover {
    opacity: 1;
}

.primary-menu .current-menu-item > a {
    opacity: 1;
    position: relative;
}

.primary-menu .current-menu-item > a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

/* Sub-menu styles */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li {
    display: block;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 8px 16px;
    margin: 0;
}

#menu-footer a {
    color: var(--fg);
    opacity: 0.9;
    text-decoration: none;
}
#menu-footer li {
    list-style: none;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    padding: 8px;
    cursor: pointer;
}

/* Burger Menu Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 100;
    width: 40px;
    height: 40px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--fg);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile styles */
@media (max-width: 960px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav.main-navigation {
        order: 3;
        /* width: 100%; */
        width: auto;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: var(--shadow);
    }

    .primary-menu.active {
        display: flex;
    }

    .primary-menu li {
        width: 100%;
    }

    .primary-menu a {
        display: block;
        padding: 12px 0;
        margin: 0;
    }

    .primary-menu .sub-menu {
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        display: none;
    }

    .primary-menu .sub-menu.active {
        display: block;
    }

    .primary-menu .sub-menu a {
        padding: 8px 0;
    }
    
    header .bar {
        flex-wrap: wrap;
    }
    
    .dropdown-arrow {
        display: inline-block;
        margin-left: 4px;
        transition: transform 0.3s ease;
    }
    
    .submenu-open .dropdown-arrow {
        transform: rotate(180deg);
    }
}
.btn{font-size:17px; inline-flex; align-items:center; gap:10px; background:var(--brand); color:var(--ink); padding:12px 18px; border:none; border-radius:14px; font-weight:600; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.15)}
.btn.ghost{background:transparent; border:1px solid rgba(255,255,255,.4); color:#fff; box-shadow:none; text-align: center; white-space: nowrap;}
.badge{display:inline-flex; align-items:center; gap:6px; background:#fff; color:var(--ink); border-radius:999px; padding:6px 10px; font-size:12px; font-weight:600}
.button_text {display: flex; justify-content: space-between; flex-wrap: wrap; margin-top: 20px; background: var(--bg) !important;}
/* hero */
.hero{padding:80px 0}
.hero-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:40px}
.h1{font-size:44px; line-height:1.1; letter-spacing:-.02em; font-weight:700}
.lead{font-size:18px; color:var(--fg-dim)}
.stats{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:28px}
.stat{ text-align:center }
.stat .v{font-size:28px; font-weight:700}
.card{background:var(--glass); border:1px solid rgba(255,255,255,.15); border-radius:var(--radius); box-shadow:var(--shadow)}
.hero-image{position:relative}
.hero-image .frame{aspect-ratio:1; overflow:hidden; border-radius:26px; border:1px solid rgba(255,255,255,.1)}
.hero-image img{width:100%; height:100%; object-fit:cover}
.note{position:absolute; left:-90px; bottom:-24px; background:#fff; color:var(--ink); padding:14px; border-radius:16px; box-shadow:var(--shadow); width:240px}
.hero-alt{position: absolute; right: 15px; bottom: 10px; font-size: 0.8em;}
/* image band */
.band{display:grid; grid-template-columns:repeat(4,1fr); gap:12px}
.band .tile{position:relative; height:auto; aspect-ratio:1; overflow:hidden; border-radius:16px; border:1px solid rgba(255,255,255,.1); margin:0; background:rgba(3,21,58,.4); transition:transform .3s ease, box-shadow .3s ease}
.band .tile:focus{outline:none}
.band .tile:focus-visible{outline:2px solid var(--brand); outline-offset:3px}
.band .tile--interactive{cursor:pointer}
.band .tile__media{width:100%; height:100%}
.band .tile__media .tile__image{width:100%; height:100%; object-fit:cover; display:block}
.band .tile__caption{position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; gap:12px; padding:16px; color:#fff; background:linear-gradient(180deg, rgba(9,21,54,0) 0%, rgba(6,14,33,.85) 90%); transition:background .3s ease; overflow:hidden}
.band .tile__title{font-size:18px; line-height:1.2; font-weight:600; text-shadow:0 2px 6px rgba(0,0,0,.35)}
.band .tile__description{max-height:0; opacity:0; transform:translateY(12px); overflow:hidden; font-size:15px; line-height:1.4; transition:max-height .4s ease, opacity .3s ease, transform .3s ease; padding-right:2px; margin-right:-6px}
.band .tile__description p{margin:0}
.band .tile__description::-webkit-scrollbar{width:4px}
.band .tile__description::-webkit-scrollbar-track{background:rgba(255,255,255,.05); border-radius:999px; margin:6px}
.band .tile__description::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3); border-radius:999px; transition:background .2s ease}
.band .tile__description::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.45)}
.band .tile__description{scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.3) rgba(255,255,255,.05)}
.band .tile--interactive:hover .tile__caption,
.band .tile--interactive:focus .tile__caption,
.band .tile--interactive:focus-visible .tile__caption,
.band .tile--interactive:focus-within .tile__caption{background:linear-gradient(180deg, rgba(9,21,54,.2) 0%, rgba(6,14,33,.95) 95%)}
.band .tile--interactive:hover .tile__description,
.band .tile--interactive:focus .tile__description,
.band .tile--interactive:focus-visible .tile__description,
.band .tile--interactive:focus-within .tile__description{max-height:100%; opacity:1; transform:translateY(0); overflow:auto}
.band .tile--interactive .tile__description{touch-action:pan-y}
.band-section__inner{margin-bottom:16px}
.band-section[data-surface="light"] .band .tile{border:1px solid rgba(11,59,140,.12); box-shadow:0 8px 20px rgba(9,30,66,.08)}

section{padding:64px 0}

[data-surface="light"]{
    --fg:#0F1C3F;
    --fg-dim:#516187;
    --glass:rgba(11,59,140,.05);
    --glass-2:rgba(11,59,140,.1);
    background: radial-gradient(190.84% 122.46% at 70.68% 0%, #ffecec, #edf2fe 59.33%);
    color:var(--fg);
}
section:not([data-surface="light"]) {
    background: var(--bg);
}
section[data-surface="dark"]{
    background: #1F50E8;
}
[data-surface="light"] a{
    color:#0B3B8C;
}
[data-surface="light"] .btn:not(.light){
    background:#0B3B8C;
    color:#fff;
    border:none;
    box-shadow:0 10px 24px rgba(11,59,140,.18);
}
[data-surface="light"] .btn.ghost{
    background:transparent;
    border:1px solid rgba(11,59,140,.25);
    color:#0B3B8C;
    box-shadow:none;
}
[data-surface="light"] .badge{
    background:rgba(11,59,140,.08);
    color:#0B3B8C;
}
[data-surface="light"] .card,
[data-surface="light"] .service,
[data-surface="light"] .case,
[data-surface="light"] .price,
[data-surface="light"] .team{
    background:#fff;
    border:1px solid rgba(11,59,140,.12);
    box-shadow:0 1px 12px rgba(9,30,66,.08);
    color:inherit;
}
[data-surface="light"] .service .icon{
    background:rgba(11,59,140,.1);
}
[data-surface="light"] .service:hover,
[data-surface="light"] .service:focus,
[data-surface="light"] .service:focus-visible{
    box-shadow:0 18px 36px rgba(15,41,90,.15);
}
[data-surface="light"] .team .role,
[data-surface="light"] .case p,
[data-surface="light"] .service-summary,
[data-surface="light"] .sub,
[data-surface="light"] .lead{
    color:var(--fg-dim);
}
[data-surface="light"] .price .tag{
    background:#0B3B8C;
    color:#fff;
}
[data-surface="light"] .cases-accordion .case a{
    color:#0B3B8C;
}
[data-surface="light"] .accordion-icon{
    background:rgba(11,59,140,.12);
}
[data-surface="light"] .accordion-panel-inner{
    border-top:1px solid rgba(11,59,140,.12);
}
[data-surface="light"] .accordion-trigger:focus-visible{
    box-shadow:0 0 0 2px rgba(11,59,140,.2);
}
[data-surface="light"] input,
[data-surface="light"] textarea{
    border:1px solid rgba(11,59,140,.2);
    background:#fff;
    color:#0F1C3F;
}
[data-surface="light"] .contact .card .wpcf7 input,
[data-surface="light"] .contact .card .wpcf7 textarea{
    border:1px solid rgba(11,59,140,.2);
    background:#fff;
    color:#0F1C3F;
}
[data-surface="light"] .contact-map{
    border:1px solid rgba(11,59,140,.12);
    background:rgba(11,59,140,.05);
    box-shadow:0 12px 28px rgba(9,30,66,.08);
}
[data-surface="light"] .contact-map:hover,
[data-surface="light"] .contact-map:focus-visible{
    box-shadow:0 16px 34px rgba(15,41,90,.18);
}
[data-surface="light"] .contact-map__hint{
    background:rgba(11,59,140,.9);
}

h2{font-size:36px; margin:0 0 10px 0}
.sub{color:var(--fg-dim); max-width:760px}

.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:16px}
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}

.slider{position:relative; --slider-gap:16px; --slider-visible:3; --slider-item-width:calc((100% - (var(--slider-visible) - 1) * var(--slider-gap)) / var(--slider-visible))}
.slider__track{display:flex; gap:var(--slider-gap); overflow-x:auto; overflow-y:hidden; padding-bottom:4px; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none}
.slider__track::-webkit-scrollbar{display:none}
.slider__track>*{flex:0 0 var(--slider-item-width); scroll-snap-align:start}
.slider__controls{display:flex; gap:8px; justify-content:flex-end; margin-top:12px}
.slider__btn{width:40px; height:40px; border-radius:999px; border:1px solid rgba(11,59,140,.2); background:#fff; color:#0B3B8C; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s ease, color .2s ease, border-color .2s ease}
.slider__btn span{display:flex; align-items:center; justify-content:center}
.slider__btn:hover:not(:disabled){background:#0B3B8C; color:#fff; border-color:#0B3B8C}
.slider__btn:disabled{opacity:.4; cursor:not-allowed}
.slider--band{--slider-gap:12px; --slider-visible:4}
.slider--pricing{--slider-visible:3}
.slider--team{--slider-visible:3}

@media (max-width:1024px){
.slider{--slider-visible:2}
.slider--band{--slider-visible:3}
}
@media (max-width:768px){
.slider{--slider-visible:1.5}
}
@media (max-width:640px){
.slider{--slider-visible:1}
.logo-description {display: none;}
}

/* For whom */
#forwhom .forwhom-columns{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; margin-top:36px}
/* #forwhom .forwhom-column{border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.06); padding:32px; box-shadow:0 16px 36px rgba(0,0,0,.22); backdrop-filter:blur(6px)} */
#forwhom .forwhom-column__title{margin:0 0 18px; font-size:22px; letter-spacing:-0.01em}
#forwhom .forwhom-list{list-style:none; margin:0; padding:0; display:grid; gap:18px}
#forwhom .forwhom-list > li{padding:20px 22px; border-radius:18px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.07); box-shadow:0 10px 28px rgba(0,0,0,.18); position:relative; overflow:hidden}
#forwhom .forwhom-list > li::before{content:""; position:absolute; inset:0; background:linear-gradient(155deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 65%); opacity:0; transition:opacity .3s ease}
#forwhom .forwhom-list > li:hover::before,#forwhom .forwhom-list > li:focus-within::before{opacity:1}
#forwhom .forwhom-list > li strong{position:relative; z-index:1; display:flex; align-items:center; gap:10px; font-size:18px; margin-bottom:12px}
#forwhom .forwhom-list > li ul{position:relative; z-index:1; margin:0; padding:0; display:grid; gap:6px; color:var(--fg-dim)}
#forwhom .forwhom-list > li ul li{list-style:none; position:relative; padding-left:16px; font-size:15px}
#forwhom .forwhom-list > li ul li::before{content:"—"; position:absolute; left:0; color:rgba(255,255,255,.6)}
#forwhom[data-surface="light"] .forwhom-list > li{background:rgba(11,59,140,.05); border:1px solid rgba(11,59,140,.12); box-shadow:0 12px 26px rgba(9,30,66,.08)}
#forwhom[data-surface="light"] .forwhom-list > li::before{background:linear-gradient(155deg, rgba(11,59,140,.12) 0%, rgba(11,59,140,0) 65%)}
#forwhom[data-surface="light"] .forwhom-list > li strong{color:var(--fg)}
#forwhom[data-surface="light"] .forwhom-list > li ul{color:var(--fg-dim)}
#forwhom[data-surface="light"] .forwhom-list > li ul li::before{color:rgba(11,59,140,.45)}
#forwhom[data-surface="light"] .forwhom-callout{background:rgba(11,59,140,.05); border:1px solid rgba(11,59,140,.12); box-shadow:0 14px 30px rgba(9,30,66,.08)}
#forwhom .forwhom-callout{margin-top:48px; padding:28px 32px; border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; box-shadow:0 14px 34px rgba(0,0,0,.22)}
#forwhom .forwhom-callout .sub{margin:0; color: #fff; /*flex:1 1 420px*/}
#forwhom .forwhom-callout .btn{flex:0 0 auto}
#forwhom .forwhom-callout.green-reveal {background: linear-gradient(103deg, #37821C 12.24%, #A0E42D 97.02%); color: #fff; border: none;}
#forwhom .forwhom-callout.green-reveal ul {margin: 0;}

.service,.case,.price,.team{background:var(--glass); border:1px solid rgba(255,255,255,.15); border-radius:var(--radius); padding:18px}
.service h3,.case h3,.price h3{margin:0 0 8px 0}

/* Cases accordion */
.cases-accordion{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.cases-accordion .case{
    padding:0;
    overflow:hidden;
}
.cases-accordion .case a{
    /*color: #fff;*/
    font-weight: 600;
    color: #000;
    padding-top: 10px;
    display: block;
}

.accordion-trigger{
    width:100%;
    display:flex;
    align-items:center;
    gap:12px;
    justify-content:flex-start;
    background:transparent;
    color:inherit;
    border:none;
    padding:18px;
    font:inherit;
    text-align:left;
    cursor:pointer;
    transition:background 0.2s ease, color 0.2s ease;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible{
    background:var(--glass-2);
    outline:none;
}

.accordion-trigger:focus-visible{
    box-shadow:0 0 0 2px rgba(255,255,255,.25);
}

.accordion-trigger .case-title{
    flex:1;
    font-weight:600;
    font-size:18px;
    min-width:0;
}

.accordion-trigger .case-result{
    margin-left:auto;
    white-space:nowrap;
}

.accordion-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    width:32px;
    height:32px;
    flex-shrink:0;
    transition:transform 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon{
    transform:rotate(180deg);
}

.accordion-panel{
    height:0;
    overflow:hidden;
    transition:height 0.35s ease;
    will-change:height;
}

.accordion-panel-inner{
    padding:0 18px 18px 18px;
    border-top:1px solid rgba(255,255,255,.1);
}

.accordion-panel-inner p:last-child{
    margin-bottom:0;
}
.service p{color:var(--fg-dim)}

.services-grid{
    margin-top:16px;
    position:relative;
}

.services-list{
    position:relative;
    z-index:1;
}

.services-list.grid-3{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:24px;
}

.service{
    --tile-gradient-start:#eef3ff;
    --tile-gradient-end:#f6f1ff;
    --service-accent:#3056d3;
    --service-accent-soft:rgba(48,86,211,0.16);
    --service-accent-softer:rgba(48,86,211,0.08);
    cursor:pointer;
    position:relative;
    display:flex;
    flex-direction:column;
    height:100%;
    border-radius:24px;
    padding:0;
    background:linear-gradient(160deg,var(--tile-gradient-start),var(--tile-gradient-end));
    border:1px solid var(--service-accent-softer);
    box-shadow:0 10px 28px rgba(11,59,140,0.08);
    transition:transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow:hidden;
    color:#0B2559;
}

.service::after{
    content:"";
    position:absolute;
    inset:auto -20% -40% 40%;
    height:60%;
    background:radial-gradient(60% 60% at 50% 40%, var(--service-accent-soft) 0%, rgba(255,255,255,0) 80%);
    opacity:.8;
    pointer-events:none;
}

.services-list .service:nth-child(4n+2){
    --tile-gradient-start:#f0f7ff;
    --tile-gradient-end:#fff2ea;
    --service-accent:#ed7a3c;
    --service-accent-soft:rgba(237,122,60,0.18);
    --service-accent-softer:rgba(237,122,60,0.12);
}

.services-list .service:nth-child(4n+3){
    --tile-gradient-start:#f5fff4;
    --tile-gradient-end:#f2f4ff;
    --service-accent:#32a07d;
    --service-accent-soft:rgba(50,160,125,0.18);
    --service-accent-softer:rgba(50,160,125,0.12);
}

.services-list .service:nth-child(4n){
    --tile-gradient-start:#fff3f8;
    --tile-gradient-end:#f3f7ff;
    --service-accent:#c94fc2;
    --service-accent-soft:rgba(201,79,194,0.18);
    --service-accent-softer:rgba(201,79,194,0.12);
}

.services-list .service:nth-child(4n+1){
    --tile-gradient-start:#eef3ff;
    --tile-gradient-end:#f6f1ff;
    --service-accent:#3056d3;
    --service-accent-soft:rgba(48,86,211,0.16);
    --service-accent-softer:rgba(48,86,211,0.08);
}

.service:focus,
.service:focus-visible,
.service:hover{
    outline:none;
    transform:translateY(-6px);
    box-shadow:0 28px 46px rgba(12,53,128,0.18);
    border-color:var(--service-accent-soft);
}

.service[data-expanded="true"]{
    box-shadow:none;
    transform:none;
}

.service-card__inner{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:24px 24px 28px;
    height:100%;
}

.service-card__icon{
    width:72px;
    height:72px;
    border-radius:24px;
    background:linear-gradient(150deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:inset 0 0 0 1px var(--service-accent-softer);
    color:var(--service-accent);
}

.service-icon__image{
    width:48px;
    height:48px;
    display:block;
}

.service-card__icon svg *[stroke]{
    stroke:var(--service-accent);
}

.service-card__icon svg [fill="#0B2559"],
.service-card__icon svg [fill="#0b2559"]{
    fill:var(--service-accent);
}

.service .service-summary{
    color:rgba(11,59,140,0.82);
    margin:0;
    font-size:15px;
    line-height:1.5;
}

.service .service-title{
    margin:0;
    font-size:18px;
    line-height:1.35;
    color:#0B2559;
}

.service-full{display:none}
.service-full[hidden]{display:none}

.benefit{background:var(--glass); border:1px solid rgba(255,255,255,.15); border-radius:var(--radius); padding:16px}

.practice .item{padding:16px; border-radius:16px; border:1px solid rgba(255,255,255,.15); background:var(--glass)}

.service-expanded{
    position:absolute;
    inset:0;
    display:flex;
    align-items:stretch;
    justify-content:center;
    padding:16px;
    background:linear-gradient(170deg, rgba(255,255,255,0.97) 0%, var(--tile-gradient-start, #f7f9ff) 65%, var(--tile-gradient-end, #ffffff) 100%);
    border:1px solid var(--service-accent-softer, rgba(11,59,140,0.12));
    border-radius:var(--radius);
    opacity:0;
    pointer-events:none;
    transition:opacity 0.35s ease;
    z-index:5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - 120px);
    height: fit-content;
    backdrop-filter:blur(12px);
    box-shadow:0 24px 48px rgba(12,53,128,0.12);
    color:#0B2559;
    /*открытие по высоте экрана*/
    border-radius:16px;
    padding:12px;
    position: fixed;
    top: 100px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(11, 59, 140, .12);
    box-shadow: 0 1px 12px rgba(9, 30, 66, .08);
    max-width: 1200px;
    margin: auto;
}

.overlay-service-expanded {
    position: fixed;
    inset: 0;
    background: rgba(7, 23, 62, 0.3);
    backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
    z-index: 4;
}

.service-expanded-open .overlay-service-expanded {
    opacity: 1;
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.services-grid.service-expanded-open .service-expanded{
    opacity:1;
    pointer-events:auto;
}

.services-grid.service-expanded-open .services-list{
    filter:blur(4px);
    pointer-events:none;
}

.service-expanded__card{
    width:100%;
    max-width:820px;
    background:var(--glass);
    border:1px solid rgba(255,255,255,.2);
    border-radius:var(--radius-lg);
    padding:32px;
    box-shadow:0 24px 60px rgba(0,0,0,.35);
    position:relative;
    display:flex;
    flex-direction:column;
    gap:18px;
    transform:translateY(12px);
    opacity:0;
    transition:opacity 0.35s ease, transform 0.35s ease;
}

.services-grid.service-expanded-open .service-expanded__card{
    transform:translateY(0);
    opacity:1;
}

.service-expanded__close{
    position:absolute;
    top:18px;
    right:18px;
    background:var(--service-accent-softer, rgba(11,59,140,0.08));
    color:var(--service-accent, #0B2559);
    border:none;
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    cursor:pointer;
    transition:background 0.2s ease, transform 0.2s ease;
}

.service-expanded__close:hover,
.service-expanded__close:focus-visible{
    background:var(--service-accent-soft, rgba(11,59,140,0.18));
    transform:scale(1.05);
    outline:none;
}

.service-expanded__header{
    display:flex;
    align-items:center;
    gap:16px;
}

.service-expanded__icon .icon{
    width:88px;
    height:88px;
    border-radius:28px;
    background:linear-gradient(150deg, rgba(255,255,255,0.94) 0%, var(--service-accent-soft, rgba(238,243,255,0.72)) 100%);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:inset 0 0 0 1px var(--service-accent-softer, rgba(11,59,140,0.12));
}

.service-expanded__icon:empty{
    display:none;
}

.service-expanded__title{
    font-size: 24px;
    margin:0;
    margin-right: 45px;
    line-height: 1.3em;
    color:#0B2559;
}
.service-expanded__icon svg{
    width:64px;
    height:64px;
    display:block;
}

.service-expanded__icon svg *[stroke]{
    stroke:var(--service-accent,#3056d3);
}

.service-expanded__icon svg [fill="#0B2559"],
.service-expanded__icon svg [fill="#0b2559"]{
    fill:var(--service-accent,#3056d3);
}

.service-expanded__body p{
    margin-top:0;
    color:rgba(11,59,140,0.85);
}

.service-expanded__body p + p{
    margin-top:12px;
}
.service-expanded__body {
    overflow: auto;
    margin-top: 20px;
    color:rgba(11,59,140,0.87);
    padding-bottom: 30px;
}

.service-expanded__body li:before,
#forwhom b:before {
    content: "•";
    margin-right: 5px;
}

.service-expanded__body a{
    color:var(--service-accent,#3056d3);
}

.service-expanded__body strong{
    color:#0B2559;
}

.price .tag{position:absolute; right:12px; top:12px; background:#fff; color:var(--ink); border-radius:999px; font-size:12px; font-weight:700; padding:6px 10px}
.price{position:relative}
.price ul{padding-left:18px; margin:8px 0 0 0; list-style: none;}

.team img{width:100%; /*height:305px;*/ object-fit:cover; border-radius:14px; aspect-ratio:1;}
.team .role{color:var(--fg-dim)}

.contact{display:grid; grid-template-columns:1.1fr .9fr; gap:18px}
form .row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
label{font-size:14px; color:var(--fg-dim)}
input,textarea{width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.9); color:#0a2a66; font:inherit}
textarea{min-height:110px; resize:vertical}
.help{font-size:13px; color:#c8f7d0}

/* Contact map */
.contact-map{
    display:block;
    margin:16px 0;
    border-radius:16px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.08);
    position:relative;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-map:hover,
.contact-map:focus-visible{
    transform:translateY(-2px);
    box-shadow:0 12px 32px rgba(0,0,0,.25);
    outline:none;
}

.contact-map img{
    width:100%;
    height:auto;
    display:block;
    pointer-events:none;
}

.contact-map__hint{
    position:absolute;
    left:12px;
    bottom:12px;
    background:rgba(11,59,140,.8);
    color:#fff;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    letter-spacing:0.01em;
    pointer-events:none;
}

/* Contact form 7 */
.contact .card {
    padding: 24px;
}
.card_item {
    display:flex; 
    align-items:flex-start; 
    gap:8px;
    text-decoration: none;
    color: #fff;
}
.card_item .icon {
    line-height: 1;
    align-self: center;
}
.card_item svg {
    height: 16px;
    width: 16px;
    fill: #fff;
}

#contact .card.reveal.visible {
    align-items: center;
    display: flex;
}

.contact .card .wpcf7 {
    display: block;
}

.contact .card .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact .card .wpcf7 form .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact .card .wpcf7 form .row > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact .card .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
}

.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item {
    margin-left: 0;
}

.contact .card .wpcf7 label {
    display: block;
    font-size: 14px;
    color: var(--fg-dim);
}

.contact .card .wpcf7-form-control-wrap {
    display: block;
}

.contact .card .wpcf7 input,
.contact .card .wpcf7 textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.9);
    color: #0a2a66;
    /*font: inherit;*/
}

.contact .card .wpcf7 textarea {
    min-height: 110px;
    resize: vertical;
}

.contact .card .wpcf7 .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--fg-dim);
}

.contact .card .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
}

.contact .card .wpcf7 .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ffb4c2;
    margin-top: 4px;
}

.contact .card .wpcf7 .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #c8f7d0;
}
.cf_form_buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

footer{border-top:1px solid rgba(255,255,255,.12); padding:28px 0; color:rgba(255,255,255,.8)}

/* анимации */
.reveal{opacity:0; transform:translateY(14px); transition:opacity .7s ease, transform .7s ease}
.reveal.visible{opacity:1; transform:translateY(0); list-style: none;}
.blob{
    position:fixed; 
    width:320px; 
    height:320px; 
    filter:blur(40px); 
    opacity:.22; 
    pointer-events:none; 
    background:radial-gradient(closest-side, rgba(255,255,255,.28), rgba(255,255,255,0)); 
    border-radius:40% 60% 70% 30% / 40% 30% 70% 60%; 
    animation:blob 12s ease-in-out infinite;
    z-index: 0;
}
@keyframes blob{0%{transform:translate(0,0) rotate(0) scale(.95)}25%{transform:translate(16px,-10px) rotate(10deg) scale(1.05)}50%{transform:translate(-10px,10px) rotate(-8deg) scale(.98)}100%{transform:translate(0,0) rotate(0) scale(1)}}

/* адаптив */
@media (max-width: 960px){
    .hero-grid,.contact{grid-template-columns:1fr}
    .grid-3{grid-template-columns:1fr 1fr}
    .grid-4{grid-template-columns:1fr 1fr}
    .band{grid-template-columns:1fr 1fr}
    #forwhom .forwhom-columns{grid-template-columns:1fr; gap:24px}
    #forwhom .forwhom-column{padding:28px}
    .services-grid.service-expanded-open .services-list{
        filter:none;
    }
    .service-expanded{
        border-radius:16px;
        padding:12px;
        position: fixed;
        top: 100px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        backdrop-filter: blur(5px);
    }
    .service-expanded__card{
        padding:24px;
    }
}
@media (max-width: 640px){
    .h1{font-size:34px}
    .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
    .stats{grid-template-columns:1fr 1fr}
    .primary-menu{display:none}
    .note{position:static; margin-top:12px}
    .hero-alt {bottom: 95px;}
    #forwhom .forwhom-column{padding:24px}
    .contact .card .wpcf7 form .row{grid-template-columns: repeat(1, 1fr);}
    .cf_form_buttons{flex-direction: column;gap:0;}
    #forwhom .forwhom-callout{padding:24px; flex-direction:column; align-items:stretch; text-align:left}
    #forwhom .forwhom-callout .btn{width:100%}
}

/* === Cooperation & Timeline Base === */
.section.cooperation, .section.cooperation-flow { padding: 64px 0; }
.checklist { list-style: none; padding-left: 0; margin: 12px 0 24px; }
.checklist li { position: relative; padding-left: 20px; margin: 8px 0; }
.checklist li::before { content: "•"; position: absolute; left: 0; top: 0; line-height: 1; font-weight: 600; }


/* === Centered Alternating Timeline (fixed) === */
#cooperation-flow .v-timeline { list-style:none!important; padding:0!important; margin:24px 0 0!important; counter-reset:vstep; position:relative; }
#cooperation-flow .v-timeline.v-timeline--centered::before { content:""; position:absolute; top:0; bottom:0; left:50%; transform:translateX(-50%); width:2px; background:currentColor; opacity:.2; z-index:0; }

#cooperation-flow .v-timeline__item { counter-increment:vstep; display:grid; grid-template-columns:1fr 120px 1fr; align-items:center; gap:16px; min-height:130px; margin:8px 0; position:relative; z-index:1; }

#cooperation-flow .v-timeline__axis { grid-column:2; position:relative; height:100%; display:flex; align-items:center; justify-content:center; }
#cooperation-flow .v-timeline__axis::after { content:counter(vstep); display:grid; place-items:center; width:84px; height:84px; border-radius:50%; border:3px solid currentColor; background:linear-gradient(103deg, #37821C 12.24%, #A0E42D 97.02%); font-weight:600; font-size:1.1rem; line-height:1; }

#cooperation-flow .v-timeline__content { background:transparent; box-shadow:none; padding:8px 24px; grid-column:1; text-align:right; }
#cooperation-flow .v-timeline__item:nth-child(even) .v-timeline__content { grid-column:3; text-align:left; }
#cooperation-flow .v-timeline__content h3 { font-size:1.6rem; margin:0 0 12px; line-height: 1.3em;}
#cooperation-flow .v-timeline__content p { margin:0; /*max-width:42ch;*/ opacity:.9; }

@media (max-width:820px){
  #cooperation-flow .v-timeline__item { grid-template-columns:16px 64px 1fr; min-height:100px; }
  #cooperation-flow .v-timeline.v-timeline--centered::before { left:48px; transform:none; }
  #cooperation-flow .v-timeline__axis::after { width:56px; height:56px; font-size:1rem; }
  #cooperation-flow .v-timeline__content { grid-column:3!important; text-align:left!important; padding:4px 8px; }
  body #cooperation-flow .v-timeline__item .v-timeline__content:before {content: "<"; left: -10px; }
}


/* === Timeline hotfix v1.9.3 ===
   Keep axis and content on the SAME GRID ROW to avoid wrapping.
   Also normalize mobile stacking.
*/
#cooperation-flow .v-timeline__item { align-items: center; }
#cooperation-flow .v-timeline__axis { grid-column: 2; grid-row: 1; }
#cooperation-flow .v-timeline__content { grid-row: 1; }
#cooperation-flow .v-timeline__item:nth-child(even) .v-timeline__content { grid-column: 3; grid-row: 1; }
#cooperation-flow .v-timeline__item:nth-child(odd) .v-timeline__content { grid-column: 1; grid-row: 1; }

/* Guard against external li::before bullets interfering */
#cooperation-flow .v-timeline__item::before { content: none !important; }

@media (max-width: 820px) {
  #cooperation-flow .v-timeline__item {
    grid-template-columns: 0 64px 1fr; /* center line + circle + content */
  }
  #cooperation-flow .v-timeline__axis { grid-column: 2; grid-row: 1; }
  #cooperation-flow .v-timeline__content { grid-column: 3 !important; grid-row: 1 !important; text-align: left !important; }
}

/* timeline clouds */
#cooperation-flow .v-timeline__content {
    border: 1px solid #ffffff50;
    border-radius: 15px;
    position: relative;
}

#cooperation-flow .v-timeline__item .v-timeline__content:before {
    content: ">";
    left: calc(100% + 0px);
    position: absolute;
    top: 39%;
    color: #ffffff50;
}

#cooperation-flow .v-timeline__item:nth-child(even) .v-timeline__content:before {
    left: -10px;
    content:
    "<";
}

/* === Mobile menu blur (matches sticky header) === */
@media (max-width: 960px) {
  .primary-menu {
    background: rgba(11,59,140,.3) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .primary-menu.active { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
}


/* === Mobile Fullscreen Menu (v1.9.5) === */
@media (max-width: 960px) {
  /* Base overlay (hidden by default) */
  .primary-menu {
    position: fixed !important;
    inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */
    z-index: 100; /* above header (header z-index:50) */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px; /* leave space for header area */
    gap: 6px;
    background: rgba(11,59,140,.30);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: none;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(85px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s step-end;
  }
  /* Visible state */
  .primary-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(85px);
    transition: opacity .32s ease, transform .32s ease, visibility 0s;
    background: var(--bg) !important;
    height: fit-content;
    backdrop-filter: blur(15px);
  }
  /* Links look better as "list" items */
  .primary-menu > li {
    width: 100%;
    transform: translateY(6px);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
  }
  .primary-menu.active > li {
    transform: translateY(0);
    opacity: 1;
  }
  /* Stagger animation */
  .primary-menu.active > li:nth-child(1) { transition-delay: .05s; }
  .primary-menu.active > li:nth-child(2) { transition-delay: .10s; }
  .primary-menu.active > li:nth-child(3) { transition-delay: .15s; }
  .primary-menu.active > li:nth-child(4) { transition-delay: .20s; }
  .primary-menu.active > li:nth-child(5) { transition-delay: .25s; }
  .primary-menu.active > li:nth-child(6) { transition-delay: .30s; }
  .primary-menu.active > li:nth-child(7) { transition-delay: .35s; }
  .primary-menu.active > li:nth-child(8) { transition-delay: .40s; }
  .primary-menu.active > li:nth-child(9) { transition-delay: .45s; }
  .primary-menu.active > li:nth-child(10){ transition-delay: .50s; }

  /* Link hit areas */
  .primary-menu a {
    display: block;
    padding: 14px 2px;
    font-size: 18px;
    line-height: 1.3;
  }

  /* Submenus expand inline with subtle bg */
  .primary-menu .sub-menu {
    display: none;
    position: static;
    padding: 6px 0 6px 12px;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    margin: 6px 0 8px;
  }

  /* Close area scroll lock already handled by body.no-scroll in JS */
  body.no-scroll {
    overflow: hidden;
    touch-action: none;
  }
}

@media (min-width: 961px) {
    .service-expanded{
        top: 100px;
        left: 100px;
        right: 100px;
        bottom: 100px;
    }
}
