/* ============================================================
   ASTERA LEGAL — styles
   ============================================================ */

:root{
  --dark:#061512;
  --dark-green:#003C31;
  --green:#0A5A49;
  --soft-green:#6FA08F;
  --white:#F7F7F4;
  --paper:#F3F3EF;
  --line:rgba(0,60,49,.18);
  --text:#121917;
  --muted:#6F7673;
  --accent:var(--green);
  --gold:#C9A96A;

  --container:1360px;
  --radius:4px;
  --ease:cubic-bezier(.4,.15,.15,1);
  --shadow-sm:0 1px 2px rgba(6,21,18,.04);
  --shadow-md:0 18px 50px -24px rgba(6,21,18,.22);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

body{
  font-family:'Manrope',system-ui,sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.no-scroll{overflow:hidden}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}

.serif{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;letter-spacing:.01em}
.gold{color:var(--gold)}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 40px}
.section{padding:110px 0}

/* headings */
.h2{
  font-size:clamp(30px,3.6vw,48px);
  font-weight:600;
  line-height:1.12;
  letter-spacing:-.02em;
}

/* eyebrow labels */
.eyebrow{
  display:flex;align-items:center;gap:14px;
  font-size:12px;font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--green);
  margin-bottom:26px;
}
.dash{display:inline-block;width:34px;height:1px;background:var(--green);flex:none}
.dash--anim{transform-origin:left;transform:scaleX(0)}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:12px;
  padding:15px 26px;border-radius:var(--radius);
  font-size:15px;font-weight:600;letter-spacing:.01em;
  transition:all .35s var(--ease);white-space:nowrap;
}
.btn .arrow{transition:transform .35s var(--ease);display:inline-block}
.btn:hover .arrow{transform:translateX(5px)}

.btn--primary{background:var(--dark-green);color:var(--white)}
.btn--primary:hover{background:var(--green)}
.btn--wide{padding:17px 34px}
.btn--block{width:100%;justify-content:center;padding:18px}

.btn--ghost{border:1px solid var(--line);color:var(--text);background:transparent}
.btn--ghost:hover{border-color:var(--green);background:rgba(10,90,73,.05)}
.btn--ghost-light{border-color:rgba(247,247,244,.28);color:var(--white)}
.btn--ghost-light:hover{border-color:var(--soft-green);background:rgba(247,247,244,.06)}

.link-arrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:14px;font-weight:600;color:var(--text);
  border-top:1px solid var(--line);padding-top:20px;margin-top:8px;
}
.link-arrow .arrow{transition:transform .35s var(--ease);color:var(--green)}
.link-arrow:hover .arrow{transform:translateX(6px)}

/* ---------- brand ---------- */
.brand{display:inline-flex;align-items:center;gap:12px}
.brand-mark{color:var(--white);display:inline-flex}
.brand-name{font-size:19px;font-weight:300;letter-spacing:.26em;color:var(--white)}
.brand--light .brand-mark{color:var(--soft-green)}

/* ============================================================
   HEADER
   ============================================================ */
.header{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .4s var(--ease),box-shadow .4s var(--ease),border-color .4s var(--ease);border-bottom:1px solid transparent}
.header__inner{display:flex;align-items:center;gap:36px;height:82px}
.header .nav{margin-left:auto}
.nav__list{display:flex;gap:34px;list-style:none}
.nav__list a{font-size:15px;font-weight:500;color:rgba(247,247,244,.82);transition:color .3s,opacity .3s;position:relative}
.nav__list a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:1px;background:var(--soft-green);transition:width .3s var(--ease)}
.nav__list a:hover{color:var(--white)}
.nav__list a:hover::after{width:100%}
.header__cta{color:var(--white);border-color:rgba(247,247,244,.28)}

/* scrolled state */
.header.is-scrolled{background:rgba(6,21,18,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom-color:rgba(111,160,143,.18);box-shadow:0 10px 40px -20px rgba(0,0,0,.5)}

.burger{display:none;width:40px;height:40px;flex-direction:column;justify-content:center;gap:6px;padding:8px}
.burger span{height:1.5px;background:var(--white);border-radius:2px;transition:transform .3s,opacity .3s}
.burger.is-open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.burger.is-open span:nth-child(2){opacity:0}
.burger.is-open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

.mobile-menu{position:fixed;top:82px;left:0;right:0;background:rgba(6,21,18,.96);backdrop-filter:blur(14px);padding:28px 40px 40px;transform:translateY(-120%);transition:transform .45s var(--ease);z-index:99}
.mobile-menu.is-open{transform:translateY(0)}
.mobile-menu ul{list-style:none;display:flex;flex-direction:column;gap:4px;margin-bottom:24px}
.mobile-menu a{display:block;padding:14px 0;font-size:19px;color:var(--white);border-bottom:1px solid rgba(111,160,143,.14)}
.mobile-menu .btn{width:100%;justify-content:center}

/* ============================================================
   HERO
   ============================================================ */
.hero{position:relative;background:radial-gradient(120% 120% at 80% 0%,var(--dark-green) 0%,var(--dark) 62%);color:var(--white);overflow:hidden;min-height:max(500px,calc(100vh - 82px - 54px));display:flex;align-items:center;padding:80px 0 30px}
.hero__bg{position:absolute;inset:0;pointer-events:none}
.hero .waves,.cta .waves{position:absolute;inset:0;width:100%;height:100%}
.wave-line{stroke-dasharray:1400;animation:waveShift 18s linear infinite}
.wave-line:nth-child(2){animation-duration:22s}
.wave-line:nth-child(3){animation-duration:26s}
.wave-line:nth-child(4){animation-duration:30s}
.wave-line:nth-child(5){animation-duration:20s}
@keyframes waveShift{to{stroke-dashoffset:-1400}}

.hero__compass{position:absolute;top:10%;right:6%;opacity:.9;animation:pulseStar 6s ease-in-out infinite}
@keyframes pulseStar{0%,100%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.03)}}
.hero__glow{position:absolute;top:8%;right:8%;width:420px;height:420px;background:radial-gradient(circle,rgba(111,160,143,.22),transparent 65%);filter:blur(20px)}

.hero__inner{position:relative;max-width:1120px;margin:0;width:100%;padding-left:clamp(24px,7vw,100px);padding-right:40px}
.hero__eyebrow{display:flex;align-items:center;gap:14px;font-size:14px;color:var(--soft-green);margin-bottom:22px;font-weight:500}
.hero__eyebrow .dash{background:var(--soft-green)}
.hero__title{font-size:clamp(40px,6vw,82px);font-weight:600;line-height:1.05;letter-spacing:-.03em;margin-bottom:26px;max-width:22ch}
.hero__title .line{display:block;overflow:hidden}
.hero__title .line>span{display:block}
.hero__title .line>span{animation:heroTitleLineFast .95s var(--ease) both}
.hero__title .line:nth-child(2)>span{animation-delay:.16s}
@keyframes heroTitleLineFast{from{transform:translateY(105%);opacity:0}to{transform:translateY(0);opacity:1}}
.hero__subtitle{max-width:58ch;font-size:clamp(16px,1.4vw,19px);color:rgba(247,247,244,.78);margin-bottom:34px;line-height:1.6}
.hero__actions{display:flex;gap:16px;flex-wrap:wrap;margin-left:clamp(0px,13vw,210px)}
.hero__actions .btn--primary{background:var(--white);color:var(--dark)}
.hero__actions .btn--primary:hover{background:var(--paper)}

/* ============================================================
   STATS
   ============================================================ */
.stats{background:var(--dark-green);color:var(--white)}
.stats__grid{display:grid;grid-template-columns:repeat(4,1fr);position:relative}
.stat{display:grid;grid-template-columns:26px 1fr;align-items:center;gap:0 10px;padding:22px 28px;position:relative}
.stat+.stat::before{content:"";position:absolute;left:0;top:20%;height:0;width:1px;background:rgba(111,160,143,.32);transition:height .8s var(--ease)}
.stats.is-in .stat+.stat::before{height:60%}
.stat__icon{grid-row:1/3;color:var(--soft-green);display:inline-flex;align-items:center;opacity:0;margin-bottom:0}
.stat__icon svg{width:22px;height:22px}
.stats.is-in .stat__icon{opacity:1;transition:opacity .6s ease .2s}
.stat__num{font-size:clamp(24px,2.3vw,32px);font-weight:700;letter-spacing:-.02em;line-height:1}
.stat__num--text{font-size:clamp(14px,1.3vw,18px);font-weight:600}
.stat__label{color:rgba(247,247,244,.66);font-size:14px;margin-top:3px}

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner{display:grid;grid-template-columns:1.1fr .9fr;gap:90px;align-items:start}
.about__title{max-width:18ch}
.about__title .line{display:block;overflow:hidden}
.about__title .line>span{display:block}
.about__right{padding-top:60px;max-width:52ch}
.about__right p{color:var(--muted);margin-bottom:20px;font-size:17px}
.about__right p:first-child{color:var(--text)}

/* ============================================================
   SERVICES
   ============================================================ */
.services__intro-row{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:end;margin-bottom:52px}
.services__intro-row .h2{max-width:20ch}
.services__lead-text{color:var(--muted);font-size:17px;line-height:1.65;max-width:52ch;padding-top:6px}
.services__layout{display:grid;grid-template-columns:280px 1fr;gap:40px;align-items:start}
.services__tabs{display:flex;flex-direction:column;gap:12px}
.service-tab{display:flex;align-items:center;gap:14px;padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);font-size:16px;font-weight:600;text-align:left;color:var(--text);transition:all .3s var(--ease);position:relative;overflow:hidden}
.service-tab__icon{color:var(--green);display:inline-flex;transition:color .3s}
.service-tab::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--green);transform:scaleY(0);transform-origin:top;transition:transform .3s var(--ease)}
.service-tab:hover::before{transform:scaleY(1)}
.service-tab.is-active{background:var(--dark-green);color:var(--white);border-color:var(--dark-green)}
.service-tab.is-active .service-tab__icon{color:var(--soft-green)}
.service-tab.is-active::before{display:none}

.services__contact-hint{margin-top:24px;padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);display:flex;gap:12px;align-items:flex-start}
.services__contact-hint-ic{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);color:var(--green);display:inline-flex;align-items:center;justify-content:center;flex:none}
.services__contact-hint p{font-size:13px;color:var(--muted);line-height:1.5}
.link-inline{color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;background:none;border:none;font-family:inherit;font-size:inherit;padding:0}

.services__panels{position:relative}
.service-list{list-style:none;display:none}
.service-list.is-active{display:block}
.plus{position:relative;width:16px;height:16px;flex:none}
.plus::before,.plus::after{content:"";position:absolute;background:var(--green);transition:transform .3s var(--ease)}
.plus::before{left:0;top:7.5px;width:16px;height:1.5px}
.plus::after{top:0;left:7.25px;width:1.5px;height:16px}

/* услуги — аккордеон */
.service-item{border-bottom:1px solid var(--line)}
.service-item:first-child{border-top:1px solid var(--line)}
.service-item__head{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;text-align:left;padding:22px 6px;font-size:17px;font-weight:500;color:var(--text);transition:padding .3s var(--ease),color .3s}
.service-item__head:hover{padding-left:14px;color:var(--green)}
.service-item.is-open .service-item__head{color:var(--green)}
.service-item.is-open .plus{transform:rotate(45deg)}
.service-item__body{height:0;overflow:hidden;transition:height .4s var(--ease)}
.service-item__body>div{padding:0 6px 22px;opacity:0;transition:opacity .35s ease}
.service-item.is-open .service-item__body>div{opacity:1}
.service-item__body p{color:var(--muted);font-size:15px;line-height:1.6;max-width:56ch}

/* ============================================================
   WHY US
   ============================================================ */
.why{background:var(--paper)}
.why__title{margin-bottom:56px;max-width:18ch}
.why__rows{display:flex;flex-direction:column;gap:26px;overflow:hidden}
.why__row{display:flex;gap:26px;padding:0 40px;will-change:transform}
.why-card{flex:0 0 clamp(300px,32vw,420px);background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:36px 34px;box-shadow:var(--shadow-sm);transition:box-shadow .35s,transform .35s var(--ease)}
.why-card:hover{box-shadow:var(--shadow-md);transform:translateY(-4px)}
.why-card h3{font-size:21px;font-weight:600;margin-bottom:14px;letter-spacing:-.01em}
.why-card p{color:var(--muted);font-size:16px;line-height:1.6}

/* ============================================================
   TEAM
   ============================================================ */
.team__head{margin-bottom:50px}
.team__head .h2{margin-bottom:18px}
.team__sub{color:var(--muted);font-size:18px;max-width:64ch}

.team__block{
  display:grid;grid-template-columns:1fr 1fr;
  border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--white);
  transition:box-shadow .4s var(--ease);position:relative;
}
.team__block:hover{box-shadow:var(--shadow-md)}
.team__left{padding:56px 52px}
.team__left .eyebrow{margin-bottom:22px}
.team__left .dash{background:var(--green)}
.team__title{font-size:clamp(30px,3vw,42px);line-height:1.08;margin-bottom:22px}
.team__desc{color:var(--muted);font-size:16px;max-width:48ch;margin-bottom:34px}
.team__list{list-style:none}
.team__list li{position:relative;display:flex;align-items:center;gap:26px;padding:20px 14px 20px 8px;border-bottom:1px solid var(--line);font-size:19px;font-weight:500;transition:padding .35s var(--ease),color .35s;cursor:default}
.team__list li:first-child{border-top:1px solid var(--line)}
.team__num{color:var(--green);font-weight:600;font-size:15px;min-width:26px;transition:color .35s,transform .35s var(--ease)}
/* accent line that grows from the left on hover */
.team__li-line{position:absolute;left:0;bottom:-1px;height:1px;width:0;background:var(--green);transition:width .45s var(--ease)}
.team__list li:hover{padding-left:20px;color:var(--green)}
.team__list li:hover .team__num{color:var(--gold);transform:scale(1.15)}
.team__list li:hover .team__li-line{width:100%}

/* right dark panel */
.team__right{background:linear-gradient(160deg,var(--dark-green),var(--dark));color:var(--white);padding:44px 48px;position:relative;overflow:hidden}
.team__photo{border-radius:6px;overflow:hidden;border:1px solid rgba(201,169,106,.35);margin-bottom:28px;aspect-ratio:16/11}
.team__photo img{width:100%;height:100%;object-fit:cover}
.team__name{font-size:clamp(30px,3vw,42px);line-height:1.05;margin-bottom:12px}
.team__role{font-size:12px;letter-spacing:.22em;font-weight:600;margin-bottom:22px;position:relative;padding-left:34px}
.team__role::before{content:"";position:absolute;left:0;top:50%;width:24px;height:1px;background:var(--gold)}
.team__quote{color:rgba(247,247,244,.78);font-size:16px;line-height:1.65;max-width:44ch;position:relative;z-index:2}
/* decorative elements in the right dark panel */
.team__decor{position:absolute;right:-70px;bottom:-70px;width:320px;pointer-events:none;transform-origin:center;animation:spinSlow 60s linear infinite}
@keyframes spinSlow{to{transform:rotate(360deg)}}
.team__decor2{position:absolute;left:0;top:12%;width:240px;opacity:.7;pointer-events:none}
.team__decor2 .path-anim,.team__decor2 path{stroke-dasharray:600;animation:waveShift 24s linear infinite}
/* thin animated accent line under the section eyebrow / down the left edge */
.team__left{position:relative}
.team__left::before{content:"";position:absolute;left:0;top:56px;bottom:56px;width:2px;background:linear-gradient(180deg,var(--green),transparent);opacity:.5}

/* ============================================================
   PRACTICES
   ============================================================ */
.practices__head{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:52px}
.practices__head .h2{line-height:1.1}
.practices__lead{color:var(--muted);font-size:17px;max-width:48ch;justify-self:end}
.practices__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.practice-card{border:1px solid var(--line);border-radius:6px;padding:34px 32px 28px;background:var(--white);transition:transform .35s var(--ease),box-shadow .35s;display:flex;flex-direction:column;min-height:250px}
.practice-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md)}
.practice-card__icon{width:56px;height:56px;border-radius:50%;background:var(--green);color:var(--white);display:inline-flex;align-items:center;justify-content:center;margin-bottom:26px;transition:transform .35s var(--ease)}
.practice-card:hover .practice-card__icon{transform:scale(1.08)}
.practice-card h3{font-size:20px;font-weight:600;margin-bottom:14px;letter-spacing:-.01em}
.practice-card p{color:var(--muted);font-size:15px;line-height:1.6;margin-bottom:24px}
.practice-card__arrow{margin-top:auto;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--green);transition:all .3s var(--ease)}
.practice-card__arrow .arrow{transition:transform .3s var(--ease)}
.practice-card__arrow:hover{background:var(--dark-green);border-color:var(--dark-green);color:var(--white)}
.practice-card__arrow:hover .arrow{transform:translateX(4px)}
/* accent cards — dark-green background */
.practice-card--accent{background:var(--dark-green);border-color:var(--dark-green);color:var(--white)}
.practice-card--accent p{color:rgba(247,247,244,.72)}
.practice-card--accent h3{color:var(--white)}
.practice-card--accent .practice-card__icon{background:rgba(111,160,143,.22);color:var(--soft-green)}
.practice-card--accent .practice-card__arrow{border-color:rgba(247,247,244,.22);color:var(--soft-green)}
.practice-card--accent .practice-card__arrow:hover{background:var(--green);border-color:var(--green);color:var(--white)}
.practice-card--accent:hover{transform:translateY(-5px);box-shadow:0 20px 60px -20px rgba(0,0,0,.5)}

/* accent (green) practice cards */
.practice-card--accent{background:var(--dark-green);border-color:var(--dark-green);color:var(--white)}
.practice-card--accent h3{color:var(--white)}
.practice-card--accent p{color:rgba(247,247,244,.72)}
.practice-card--accent .practice-card__icon{background:rgba(247,247,244,.14);color:var(--white)}
.practice-card--accent .practice-card__arrow{border-color:rgba(247,247,244,.3);color:var(--white);background:rgba(247,247,244,.08)}
.practice-card--accent .practice-card__arrow:hover{background:var(--white);border-color:var(--white);color:var(--dark-green)}
.practice-card--accent:hover{box-shadow:0 18px 50px -24px rgba(0,0,0,.55)}

/* ============================================================
   CASES
   ============================================================ */
.cases{background:var(--paper);position:relative;overflow:hidden}
/* diagonal bg line starts BELOW the heading row */
.cases__diag{position:absolute;top:240px;left:0;right:0;bottom:0;pointer-events:none;z-index:0}
.cases__diag svg{position:absolute;inset:0;width:100%;height:100%}
.cd-line{opacity:.5;stroke-dasharray:600 1200;stroke-width:2;animation:cdMove 16s linear infinite}
.cd-line--b{opacity:.28;stroke-dasharray:340 1400;stroke-width:1.5;animation-duration:26s;animation-direction:reverse}
@keyframes cdMove{from{stroke-dashoffset:0}to{stroke-dashoffset:-1800}}
.cases .container{position:relative;z-index:1}
.cases__head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:44px;gap:30px}
.cases__nav{display:flex;gap:12px;flex:none}
.cases__arrow{width:52px;height:52px;border:1px solid var(--line);border-radius:var(--radius);display:inline-flex;align-items:center;justify-content:center;font-size:18px;color:var(--text);transition:all .3s var(--ease);background:var(--white)}
.cases__arrow .arrow{display:inline-block;transition:transform .3s var(--ease)}
.cases__arrow:hover{border-color:var(--green)}
.cases__arrow#casePrev:hover .arrow{transform:translateX(-4px)}
.cases__arrow#caseNext:hover .arrow{transform:translateX(4px)}
.cases__arrow:disabled{opacity:.4;cursor:not-allowed}

.cases__viewport{overflow:hidden}
.cases__track{display:flex;gap:24px;transition:transform .6s var(--ease)}
.case-card{flex:0 0 calc((100% - 48px)/3);background:var(--white);border:1px solid var(--line);border-radius:6px;padding:36px 34px}
.case-card__cat{font-size:11px;letter-spacing:.16em;color:var(--green);font-weight:600;margin-bottom:20px}
.case-card__name{font-size:22px;font-weight:600;margin-bottom:26px;letter-spacing:-.01em;min-height:2.4em}
.case-card__row{margin-bottom:18px}
.case-card__key{display:block;font-size:13px;font-weight:600;color:var(--text);margin-bottom:6px}
.case-card__row p{color:var(--muted);font-size:15px;line-height:1.55}
/* result row highlight */
.case-card__row--result{background:rgba(10,90,73,.05);border-left:2px solid var(--green);border-radius:0 4px 4px 0;padding:12px 14px;margin:0 -14px -14px;margin-top:4px}
.case-card__row--result .case-card__key{color:var(--green)}
.case-card__row--result p{color:var(--text);font-weight:500}
.cases__dots{display:none;gap:8px;justify-content:center;margin-top:30px}
.cases__dots button{width:8px;height:8px;border-radius:50%;background:var(--line)}
.cases__dots button.is-active{background:var(--green);width:22px;border-radius:4px}

/* ============================================================
   PROCESS
   ============================================================ */
.process .h2{margin-bottom:56px}
.process__steps{display:grid;grid-template-columns:repeat(4,1fr);gap:40px;position:relative}
/* connecting line sits BELOW the number/icon row, not across the digits */
.process-line{position:absolute;top:70px;left:0;right:0;height:1px;background:var(--line)}
.process-line span{position:absolute;inset:0;background:var(--green);transform-origin:left;transform:scaleX(0)}
.process-step{position:relative;padding-top:0}
.process-step__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px;padding-right:6px}
.process-step__num{font-size:46px;font-weight:300;color:var(--soft-green);letter-spacing:-.02em;line-height:1}
.process-step__icon{color:var(--green)}
.process-step h3{font-size:19px;font-weight:600;margin-bottom:12px}
.process-step p{color:var(--muted);font-size:15px;line-height:1.6;max-width:26ch}

/* ============================================================
   CTA
   ============================================================ */
.cta{position:relative;background:radial-gradient(120% 140% at 75% 20%,var(--dark-green),var(--dark) 65%);color:var(--white);overflow:hidden;padding:96px 0}
.cta__bg{position:absolute;inset:0;pointer-events:none}
.cta__compass{position:absolute;right:8%;top:50%;transform:translateY(-50%);opacity:.8;animation:pulseStar 7s ease-in-out infinite}
.cta__inner{position:relative;max-width:620px}
.cta__inner .h2{margin-bottom:20px}
.cta__inner p{color:rgba(247,247,244,.78);font-size:18px;margin-bottom:36px;max-width:46ch}
.cta__inner .btn--primary{background:var(--white);color:var(--dark)}
.cta__inner .btn--primary:hover{background:var(--gold);color:var(--dark)}

/* ============================================================
   FAQ
   ============================================================ */
.faq__inner{display:grid;grid-template-columns:.85fr 1.15fr;gap:60px;align-items:start}
.faq__left .h2{line-height:1.1}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item:first-child{border-top:1px solid var(--line)}
.faq-item__q{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;text-align:left;padding:26px 4px;font-size:18px;font-weight:600;color:var(--text);transition:color .3s}
.faq-item__q:hover{color:var(--green)}
.faq-item.is-open .faq-item__q{color:var(--green)}
.faq-item__q .plus{transition:transform .35s var(--ease)}
.faq-item.is-open .plus{transform:rotate(45deg)}
.faq-item__a{height:0;overflow:hidden;transition:height .45s var(--ease)}
.faq-item__a>div{padding:0 4px 28px;opacity:0;transition:opacity .4s ease}
.faq-item.is-open .faq-item__a>div{opacity:1}
.faq-item__a p{color:var(--muted);font-size:16px;line-height:1.65;max-width:60ch}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts__inner{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:50px;align-items:start}
.contacts__left .h2{margin-bottom:14px}
.contacts__sub{color:var(--muted);font-size:17px;margin-bottom:30px}
.contacts__mid{display:flex;flex-direction:column;gap:24px;padding-top:8px}
.contact-line{display:flex;align-items:flex-start;gap:16px;font-size:18px;font-weight:500;transition:color .3s}
.contact-line:hover{color:var(--green)}
.contact-line--addr{align-items:flex-start;color:var(--muted);font-weight:400;font-size:16px;line-height:1.5}
.contact-line--info{align-items:flex-start;color:var(--muted);font-weight:400;font-size:16px;line-height:1.5}
.contact-line__badge{display:inline-block;margin-top:6px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--green);background:rgba(10,90,73,.08);border:1px solid rgba(10,90,73,.18);border-radius:3px;padding:3px 8px}
.contact-line__ic{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--green);flex:none}

.contacts__map{border:1px solid var(--line);border-radius:6px;overflow:hidden;height:280px}
.map-ph{position:relative;width:100%;height:100%;background:var(--paper);overflow:hidden;transition:transform .5s var(--ease)}
.contacts__map:hover .map-ph{transform:scale(1.05)}
.map-ph__grid{position:absolute;inset:0;width:100%;height:100%}
.map-ph__pin{position:absolute;top:44%;left:56%;color:var(--green)}
.map-ph__pulse{position:absolute;top:8px;left:2px;width:22px;height:22px;border-radius:50%;background:rgba(10,90,73,.3);animation:pinPulse 2.4s ease-out infinite}
@keyframes pinPulse{0%{transform:scale(.6);opacity:.8}100%{transform:scale(2.6);opacity:0}}
.map-ph__label{position:absolute;top:46%;left:62%;font-size:12px;font-weight:600;color:var(--text);background:var(--white);padding:6px 10px;border-radius:4px;box-shadow:var(--shadow-sm);line-height:1.3}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{background:linear-gradient(180deg,var(--dark-green),var(--dark));color:var(--white)}
.footer__inner{display:grid;grid-template-columns:0.8fr 2.8fr;gap:90px;padding-top:72px;padding-bottom:58px}
.footer__socials{display:flex;gap:12px;margin-top:30px}
.footer__socials a{width:40px;height:40px;border:1px solid rgba(111,160,143,.28);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--soft-green);transition:all .3s}
.footer__socials a:hover{background:var(--green);color:var(--white);border-color:var(--green)}
.footer__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:44px}
.footer__col h4{font-size:15px;font-weight:600;margin-bottom:20px}
.footer__col ul{list-style:none;display:flex;flex-direction:column;gap:13px}
.footer__col a,.footer__col li{color:rgba(247,247,244,.6);font-size:14px;transition:color .3s;line-height:1.5}
.footer__col a:hover{color:var(--white)}
.footer__bottom{border-top:1px solid rgba(111,160,143,.16)}
.footer__bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;padding-bottom:24px;flex-wrap:wrap}
.footer__bottom span{color:rgba(247,247,244,.5);font-size:13px}
.footer__legal{display:flex;gap:28px}
.footer__legal a{color:rgba(247,247,244,.5);font-size:13px;transition:color .3s}
.footer__legal a:hover{color:var(--white)}
.footer__hours{display:inline-flex;align-items:center;gap:9px}
.footer__hours .dot{width:7px;height:7px;border-radius:50%;background:var(--soft-green);display:inline-block}

/* ============================================================
   MODALS
   ============================================================ */
.modal{position:fixed;inset:0;z-index:200;display:none}
.modal.is-open{display:block}
.modal__overlay{position:absolute;inset:0;background:rgba(6,21,18,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .25s ease}
.modal.is-visible .modal__overlay{opacity:1}
.modal__dialog{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(.96);opacity:0;transition:opacity .3s var(--ease),transform .3s var(--ease);width:min(920px,92vw);max-height:92vh;background:var(--white);border-radius:8px;overflow:hidden;display:grid;grid-template-columns:1fr 120px;box-shadow:0 40px 100px -30px rgba(0,0,0,.6)}
.modal.is-visible .modal__dialog{opacity:1;transform:translate(-50%,-50%) scale(1)}
.modal__dialog--form{grid-template-columns:1fr;width:min(640px,92vw)}

.modal__close{position:absolute;top:20px;right:20px;width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--text);z-index:5;transition:background .3s}
.modal__dialog--form .modal__close{color:var(--text)}
.modal__close:hover{background:rgba(6,21,18,.06)}

.modal__body{padding:48px 52px;overflow-y:auto;max-height:92vh}
.modal__brand{display:flex;align-items:center;gap:10px;margin-bottom:30px}
.modal__brand .brand-mark{color:var(--green)}
.modal__brand .brand-name{color:var(--text);font-size:16px;letter-spacing:.22em;font-weight:400}
.modal__title{font-size:clamp(30px,3.4vw,44px);line-height:1.08;margin-bottom:22px;letter-spacing:0}
.modal__title--sm{font-size:clamp(24px,2.4vw,30px);font-family:'Manrope';font-weight:700;margin-bottom:14px;letter-spacing:-.01em}
.modal__lead{color:var(--muted);font-size:16px;line-height:1.6;margin-bottom:16px;max-width:52ch}
.modal__conf{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--green);font-weight:600;margin-bottom:24px}
.modal__subtitle{font-size:19px;font-weight:700;margin:14px 0 20px}
.modal__checks{list-style:none;display:flex;flex-direction:column;gap:16px;margin-bottom:30px}
.modal__checks li{display:flex;align-items:center;gap:14px;font-size:16px;font-weight:500}
.check{width:30px;height:30px;border-radius:50%;border:1px solid var(--soft-green);color:var(--green);display:inline-flex;align-items:center;justify-content:center;flex:none}
.modal__hint{display:flex;gap:14px;align-items:flex-start;padding:20px 0;border-top:1px solid var(--line);margin-bottom:26px}
.modal__hint-ic{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);color:var(--green);display:inline-flex;align-items:center;justify-content:center;flex:none}
.modal__hint p{color:var(--muted);font-size:15px;line-height:1.5}
.modal__foot{color:var(--muted);font-size:13px;margin-top:16px}

/* modal decorative panel — vertical gradient, green (top) → dark-green (bottom) */
.modal__panel{position:relative;background:linear-gradient(180deg,var(--green) 0%,var(--dark-green) 60%,var(--dark) 100%);overflow:hidden}

/* form */
.form{display:flex;flex-direction:column;gap:14px}
.form__field input,.form__field textarea{width:100%;padding:15px 18px;border:1px solid var(--line);border-radius:var(--radius);font-family:inherit;font-size:15px;color:var(--text);background:var(--white);transition:border-color .3s}
.form__field textarea{resize:vertical;min-height:88px}
.form__field input:focus,.form__field textarea:focus{outline:none;border-color:var(--green)}
.form__check{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--muted);line-height:1.4;margin:4px 0}
.form__check input{margin-top:2px;accent-color:var(--green);flex:none}
.form__check a{color:var(--green);font-weight:600}
.form__actions{display:flex;gap:12px;margin-top:8px}
.form__success{color:var(--green);font-weight:600;font-size:14px;margin-top:6px}

/* ============================================================
   REVEAL ANIMATIONS (base states; GSAP handles most)
   ============================================================ */
.reveal{opacity:0;transform:translateY(24px)}
.reveal.is-in{opacity:1;transform:none;transition:opacity .7s var(--ease),transform .7s var(--ease)}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* -- 1080px: tablet landscape -------------------------------- */
@media(max-width:1080px){
  .services__intro-row{grid-template-columns:1fr;gap:20px;margin-bottom:36px}
  .services__layout{grid-template-columns:260px 1fr;gap:30px}
  .practices__grid{grid-template-columns:repeat(2,1fr);gap:20px}
  .process__steps{grid-template-columns:repeat(2,1fr);gap:40px}
  .process-line{display:none}
  .footer__inner{grid-template-columns:1fr;gap:40px}
  .faq__inner{grid-template-columns:1fr;gap:32px}
}

/* -- 860px: tablet portrait / large phone ------------------- */
@media(max-width:860px){
  .container{padding:0 24px}
  .section{padding:72px 0}

  /* header */
  .nav,.header__cta{display:none}
  .burger{display:flex}

  /* hero */
  .hero{padding:96px 0 20px}
  .hero__inner{padding-left:24px;padding-right:24px;max-width:100%}
  .hero__title{font-size:clamp(36px,8vw,58px);margin-bottom:20px}
  .hero__subtitle{font-size:clamp(15px,2.4vw,18px);margin-bottom:28px}
  .hero__actions{margin-left:0;gap:12px}
  .hero__compass{right:-2%;top:14%;opacity:.7}
  .hero__compass svg{width:220px;height:220px}

  /* stats */
  .stats__grid{grid-template-columns:repeat(2,1fr)}
  .stat+.stat::before{display:none}
  .stat{border-bottom:1px solid rgba(111,160,143,.18);padding:16px 20px}
  .stat:nth-child(3),.stat:nth-child(4){border-bottom:none}

  /* about */
  .about__inner{grid-template-columns:1fr;gap:24px}
  .about__right{padding-top:0;max-width:100%}
  .about__right p{font-size:16px}

  /* services */
  .services__intro-row{grid-template-columns:1fr;gap:16px;margin-bottom:28px}
  .services__layout{grid-template-columns:1fr;gap:20px}
  .services__tabs{flex-direction:row;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:8px;padding-bottom:4px;scrollbar-width:none}
  .services__tabs::-webkit-scrollbar{display:none}
  .service-tab{flex:0 0 auto;min-width:auto;padding:14px 18px;font-size:15px;white-space:nowrap}
  .services__contact-hint{margin-top:12px}

  /* why us */
  .why__title{margin-bottom:32px}
  .why__row{padding:0 24px}
  .why-card{flex:0 0 clamp(240px,68vw,320px);padding:28px 24px}
  .why-card h3{font-size:18px}

  /* team */
  .team__head{margin-bottom:32px}
  .team__sub{font-size:16px}
  .team__block{grid-template-columns:1fr}
  .team__left{padding:36px 28px}
  .team__left::before{display:none}
  .team__right{padding:30px 28px}
  .team__list li{font-size:17px;padding:16px 12px 16px 8px}
  .team__decor{right:-40px;bottom:-40px;width:220px}

  /* practices */
  .practices__head{grid-template-columns:1fr;gap:14px;margin-bottom:30px}
  .practices__lead{justify-self:start;max-width:100%;font-size:16px}
  .practices__grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .practice-card{padding:26px 22px 20px;min-height:auto}
  .practice-card h3{font-size:18px}
  .practice-card p{font-size:14px}
  .practice-card__icon{width:48px;height:48px;margin-bottom:20px}

  /* cases */
  .cases__head{flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:32px}
  .cases__nav{align-self:flex-end}
  .cases__dots{display:flex}
  .case-card{flex:0 0 calc((100% - 24px)/2)}
  .case-card__name{font-size:19px;min-height:auto}

  /* process */
  .process .h2{margin-bottom:36px}
  .process__steps{grid-template-columns:repeat(2,1fr);gap:32px}
  .process-line{display:none}
  .process-step__num{font-size:36px}
  .process-step h3{font-size:17px}

  /* cta */
  .cta{padding:72px 0}
  .cta__inner{max-width:100%}
  .cta__inner .h2{font-size:clamp(26px,5vw,38px)}
  .cta__inner p{font-size:16px;margin-bottom:28px}
  .cta__compass{display:none}

  /* faq */
  .faq__inner{grid-template-columns:1fr;gap:24px}
  .faq-item__q{font-size:17px;padding:20px 4px}
  .faq-item__a p{font-size:15px}

  /* contacts */
  .contacts__inner{grid-template-columns:1fr;gap:28px}
  .contacts__map{height:280px}
  .contacts__sub{font-size:16px}
  .contact-line{font-size:16px}

  /* footer */
  .footer__inner{grid-template-columns:1fr;gap:32px;padding-top:48px;padding-bottom:36px}
  .footer__cols{grid-template-columns:repeat(2,1fr);gap:28px 24px}
  .footer__col h4{font-size:14px}
  .footer__col a,.footer__col li{font-size:13px}
  .footer__bottom-inner{flex-direction:column;align-items:flex-start;gap:10px}

  /* modals */
  .modal__dialog{width:83vw;max-height:85vh;grid-template-columns:1fr}
  .modal__dialog--form{width:83vw;max-height:85vh;grid-template-columns:1fr}
  .modal__panel{display:none}
  .modal__body{padding:36px 28px;max-height:85vh}
  .modal__title{font-size:clamp(22px,5vw,34px)}
}

/* -- 560px: small phone -------------------------------------- */
@media(max-width:560px){
  .container{padding:0 20px}
  .section{padding:60px 0}

  /* hero */
  .hero{padding:94px 0 16px}
  .hero__inner{padding-left:20px;padding-right:20px}
  .hero__title{font-size:clamp(30px,9.5vw,44px)}
  .hero__subtitle{font-size:15px;max-width:100%}
  .hero__compass{opacity:.45;right:-6%;top:18%}
  .hero__compass svg{width:160px;height:160px}
  .hero__actions .btn{font-size:14px;padding:13px 20px}

  /* stats */
  .stat__num--text{font-size:15px}
  .stat__num{font-size:clamp(22px,6vw,30px)}

  /* services */
  .services__tabs{gap:6px}
  .service-tab{padding:12px 14px;font-size:14px}
  .service-item__head{font-size:15px;padding:18px 4px}
  .service-item__body p{font-size:14px}

  /* practices */
  .practices__grid{grid-template-columns:1fr}
  .practices__head{gap:12px}
  .practice-card{padding:22px 18px 18px}
  .practice-card h3{font-size:17px}

  /* cases */
  .case-card{flex:0 0 100%}
  .case-card__name{font-size:17px}
  .case-card__row p{font-size:14px}
  .case-card__row--result{margin:0 -10px -10px;padding:10px 12px}

  /* process */
  .process__steps{grid-template-columns:1fr;gap:24px}
  .process-step__top{margin-bottom:12px}
  .process-step h3{font-size:16px}
  .process-step p{font-size:14px;max-width:100%}

  /* team */
  .team__left{padding:28px 20px}
  .team__right{padding:24px 20px}
  .team__list li{font-size:16px;gap:18px}
  .team__title{font-size:clamp(24px,6vw,32px)}
  .team__name{font-size:clamp(24px,6vw,32px)}
  .team__quote{font-size:15px}

  /* cta */
  .cta{padding:60px 0}
  .cta__inner .h2{font-size:clamp(22px,7vw,32px)}
  .cta__inner p{font-size:15px}
  .btn--wide{padding:14px 24px}

  /* faq */
  .faq-item__q{font-size:16px;gap:16px;padding:18px 4px}
  .faq-item__a p{font-size:14px}

  /* contacts */
  .contacts__map{height:240px}
  .contact-line{font-size:15px}

  /* footer */
  .footer__cols{grid-template-columns:1fr}
  .footer__col{border-bottom:1px solid rgba(111,160,143,.12);padding-bottom:20px}
  .footer__col:last-child{border-bottom:none;padding-bottom:0}

  /* modals */
  .modal__dialog{width:92vw;max-height:88vh;border-radius:8px}
  .modal__dialog--form{width:92vw;max-height:88vh;border-radius:8px}
  .modal__body{padding:28px 20px}
  .modal__title{font-size:clamp(20px,6vw,28px)}
  .modal__lead{font-size:14px}
  .modal__checks li{font-size:14px}
  .form__field input,.form__field textarea{font-size:16px;padding:13px 16px}
  .form__actions{flex-direction:column}
  .form__actions .btn{width:100%;justify-content:center}

  /* why us */
  .why__row{padding:0 20px}
  .why-card{flex:0 0 clamp(220px,78vw,300px);padding:22px 18px}
  .why-card h3{font-size:16px;margin-bottom:10px}
  .why-card p{font-size:14px}
}

/* touch active press feedback */
@media(hover:none){
  .practice-card:active{transform:scale(.97);box-shadow:none;transition:transform .15s}
  .why-card:active{transform:scale(.98);transition:transform .15s}
  .case-card:active{transform:scale(.99);transition:transform .12s}
  .btn:active{opacity:.82;transition:opacity .1s}
  .faq-item__q:active{background:rgba(10,90,73,.04)}
}

/* reduced motion */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
  .wave-line{animation:none}
  .team__decor{animation:none}
}

/* ============================================================
   RESPONSIVE READABILITY PATCH
   Добавлено: крупнее мобильная типографика, нормальная сетка на
   телефонах, безопасные отступы и защита от горизонтального скролла.
   ============================================================ */

html{
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
}

body{
  font-size:16px;
}

main,section,.container,
.header__inner,.hero__inner,.services__layout,.team__block,
.practices__grid,.cases__viewport,.contacts__inner,.footer__inner{
  min-width:0;
}

p,li,h1,h2,h3,a,button,span{
  overflow-wrap:break-word;
}

.btn,button,a,input,textarea{
  -webkit-tap-highlight-color:transparent;
}

.btn,.burger,.cases__arrow,.practice-card__arrow,.modal__close{
  min-height:44px;
}

@media(max-width:1180px){
  .container{padding-left:32px;padding-right:32px}
  .header__inner{gap:24px}
  .nav__list{gap:22px}
  .brand-name{font-size:17px;letter-spacing:.22em}
  .contacts__inner{grid-template-columns:1fr 1fr;gap:36px}
  .contacts__map{grid-column:1/-1;height:320px}
}

@media(max-width:860px){
  :root{--mobile-pad:24px}

  .container{padding-left:var(--mobile-pad);padding-right:var(--mobile-pad)}
  .section{padding:76px 0}
  .h2{font-size:clamp(32px,7vw,46px);line-height:1.08}
  .eyebrow{font-size:13px;line-height:1.4;margin-bottom:18px;gap:12px;letter-spacing:.14em}

  .header__inner{height:72px}
  .brand{min-width:0;gap:10px}
  .brand-mark svg{width:30px;height:30px}
  .brand-name{font-size:16px;letter-spacing:.18em;white-space:nowrap}
  .burger{width:48px;height:48px;margin-left:auto}
  .mobile-menu{top:72px;padding:22px var(--mobile-pad) 32px;max-height:calc(100dvh - 72px);overflow:auto}
  .mobile-menu a{font-size:20px;padding:16px 0}

  .hero{min-height:auto;padding:118px 0 58px;align-items:flex-start}
  .hero__inner{padding-left:var(--mobile-pad);padding-right:var(--mobile-pad)}
  .hero__eyebrow{font-size:15px;line-height:1.45;margin-bottom:18px;max-width:32ch}
  .hero__title{font-size:clamp(38px,10vw,58px);line-height:1.04;margin-bottom:22px;max-width:12ch}
  .hero__subtitle{font-size:18px;line-height:1.55;max-width:36ch;margin-bottom:30px}
  .hero__actions{width:100%;max-width:420px;margin-left:0;gap:12px}
  .hero__actions .btn{justify-content:center}

  .stats__grid{gap:0}
  .stat{padding:20px 22px;grid-template-columns:34px 1fr;gap:0 12px}
  .stat__icon svg{width:26px;height:26px}
  .stat__num{font-size:30px}
  .stat__num--text{font-size:18px;line-height:1.15}
  .stat__label{font-size:16px;line-height:1.35}

  .about__right p,
  .services__lead-text,
  .team__sub,
  .team__desc,
  .practices__lead,
  .cta__inner p,
  .contacts__sub{
    font-size:17px;
    line-height:1.65;
  }

  .services__tabs{display:grid;grid-template-columns:1fr;overflow:visible;padding-bottom:0;gap:10px}
  .service-tab{width:100%;white-space:normal;font-size:16px;line-height:1.35;padding:17px 18px}
  .services__contact-hint{padding:18px;margin-top:14px}
  .services__contact-hint p{font-size:15px;line-height:1.55}
  .service-item__head{font-size:17px;line-height:1.4;padding:22px 4px}
  .service-item__body p{font-size:16px;line-height:1.65;max-width:100%}

  .why__rows{gap:16px;overflow:visible;padding:0 var(--mobile-pad)}
  .why__row{display:grid;grid-template-columns:1fr;gap:16px;padding:0;transform:none!important;will-change:auto}
  .why-card{flex:none;width:100%;padding:28px 24px}
  .why-card--dup{display:none}
  .why-card h3{font-size:20px;line-height:1.25}
  .why-card p{font-size:16px;line-height:1.6}

  .team__head{margin-bottom:30px}
  .team__left,.team__right{padding:34px 28px}
  .team__title,.team__name{font-size:clamp(30px,7vw,40px)}
  .team__list li{font-size:18px;line-height:1.35;align-items:flex-start}
  .team__quote{font-size:16px;line-height:1.65}
  .team__photo{aspect-ratio:4/3}

  .practices__grid{grid-template-columns:1fr 1fr;gap:16px}
  .practice-card{padding:28px 24px;min-height:auto}
  .practice-card h3{font-size:20px;line-height:1.25}
  .practice-card p{font-size:16px;line-height:1.6}

  .cases__head{gap:20px}
  .cases__nav{align-self:flex-start}
  .cases__arrow{width:48px;height:48px}
  .cases__track{gap:20px}
  .case-card{flex-basis:calc((100% - 20px)/2);padding:30px 26px}
  .case-card__cat{font-size:12px;line-height:1.35}
  .case-card__name{font-size:21px;line-height:1.2;min-height:auto}
  .case-card__key{font-size:14px}
  .case-card__row p{font-size:16px;line-height:1.6}

  .process__steps{gap:24px}
  .process-step{border:1px solid var(--line);border-radius:6px;padding:24px;background:var(--white)}
  .process-step__top{margin-bottom:18px}
  .process-step__num{font-size:42px}
  .process-step h3{font-size:20px;line-height:1.25}
  .process-step p{font-size:16px;line-height:1.6;max-width:100%}

  .faq-item__q{font-size:18px;line-height:1.35;padding:22px 4px}
  .faq-item__a p{font-size:16px;line-height:1.65;max-width:100%}

  .contacts__inner{grid-template-columns:1fr;gap:26px}
  .contacts__map{grid-column:auto;height:300px}
  .contact-line,.contact-line--addr,.contact-line--info{font-size:17px;line-height:1.55}
  .contact-line__ic{width:44px;height:44px}

  .footer__cols{grid-template-columns:repeat(2,1fr)}
  .footer__col h4{font-size:16px}
  .footer__col a,.footer__col li{font-size:15px;line-height:1.55}
  .footer__bottom span,.footer__legal a{font-size:14px;line-height:1.5}

  .modal__body{padding:38px 30px}
  .modal__lead,.modal__checks li,.modal__hint p{font-size:16px;line-height:1.6}
}

@media(max-width:640px){
  :root{--mobile-pad:20px}

  .section{padding:66px 0}
  .h2{font-size:clamp(31px,9vw,40px)}

  .brand-name{font-size:15px;letter-spacing:.14em}
  .hero{padding-top:106px;padding-bottom:54px}
  .hero__title{font-size:clamp(36px,11vw,48px);max-width:11ch}
  .hero__subtitle{font-size:17px}
  .hero__actions{max-width:none}
  .hero__actions .btn{width:100%;padding:16px 18px;font-size:16px;white-space:normal;text-align:center}

  .stats__grid{grid-template-columns:1fr}
  .stat{border-bottom:1px solid rgba(111,160,143,.18)!important;padding:22px 0}
  .stat:last-child{border-bottom:none!important}

  .services__intro-row .h2 br,
  .practices__head .h2 br,
  .cases__head .h2 br,
  .faq__left .h2 br{
    display:none;
  }

  .practices__grid{grid-template-columns:1fr}
  .practice-card{padding:26px 22px}
  .practice-card__icon{width:52px;height:52px}

  .case-card{flex-basis:100%;padding:28px 22px}
  .cases__track{gap:16px}
  .case-card__name{font-size:20px}
  .case-card__row--result{margin-left:0;margin-right:0;margin-bottom:0}

  .team__left,.team__right{padding:30px 22px}
  .team__list li{font-size:17px;gap:16px;padding:18px 6px}
  .team__num{font-size:16px;min-width:30px}
  .team__photo{aspect-ratio:1/1}

  .cta{padding:66px 0}
  .cta__inner .btn{width:100%;justify-content:center;white-space:normal;text-align:center}

  .footer__cols{grid-template-columns:1fr;gap:24px}
  .footer__legal{flex-direction:column;gap:10px}

  .modal__dialog,.modal__dialog--form{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
  .modal__body{padding:34px 22px;max-height:calc(100dvh - 24px)}
  .modal__brand .brand-name{font-size:14px}
  .form__field input,.form__field textarea{font-size:16px;line-height:1.4}
  .form__actions{flex-direction:column}
  .form__actions .btn{width:100%;justify-content:center;white-space:normal}
}

@media(max-width:420px){
  :root{--mobile-pad:18px}

  .section{padding:58px 0}
  .h2{font-size:clamp(29px,9.4vw,36px)}
  .eyebrow{font-size:12px;letter-spacing:.12em}
  .dash{width:28px}

  .header__inner{height:66px}
  .mobile-menu{top:66px;max-height:calc(100dvh - 66px)}
  .brand-name{font-size:13px;letter-spacing:.12em}
  .brand-mark svg{width:28px;height:28px}

  .hero{padding-top:96px;padding-bottom:46px}
  .hero__eyebrow{font-size:14px}
  .hero__title{font-size:clamp(34px,11.5vw,43px);line-height:1.05}
  .hero__subtitle{font-size:16px;line-height:1.6}
  .hero__compass{display:none}

  .about__right p,
  .services__lead-text,
  .team__sub,
  .team__desc,
  .practices__lead,
  .cta__inner p,
  .contacts__sub,
  .why-card p,
  .practice-card p,
  .case-card__row p,
  .process-step p,
  .faq-item__a p{
    font-size:16px;
  }

  .service-tab,.service-item__head,.team__list li,.contact-line,.contact-line--addr,.contact-line--info{
    font-size:16px;
  }

  .why__rows{padding:0 var(--mobile-pad)}
  .why-card,.practice-card,.process-step{padding:24px 20px}
  .why-card h3,.practice-card h3,.process-step h3{font-size:19px}

  .map-ph__label{left:50%;top:auto;bottom:24px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px)}

  .modal__close{top:12px;right:12px;background:rgba(6,21,18,.04)}
}

@media(max-width:360px){
  :root{--mobile-pad:16px}
  .brand-name{max-width:180px;overflow:hidden;text-overflow:ellipsis}
  .hero__title{font-size:32px}
  .btn{font-size:15px;padding-left:16px;padding-right:16px}
  .case-card,.team__left,.team__right,.practice-card,.why-card,.process-step{padding-left:18px;padding-right:18px}
}


/* ============================================================
   ADAPTIVE FIXES — footer, services hint, stats and hero
   ============================================================ */
.services__contact-hint--after{
  max-width:520px;
  width:fit-content;
  margin:28px auto 0;
  align-items:center;
}

.hero__eyebrow,
.hero__subtitle,
.hero__actions{
  opacity:1;
  transform:none;
}

@media(max-width:1080px){
  .services__contact-hint--after{margin-left:auto;margin-right:auto}
}

@media(max-width:860px){
  .services__contact-hint--after{
    max-width:none;
    margin-left:0;
    margin-top:22px;
  }

  .hero__eyebrow{max-width:24ch}
  .hero__subtitle{max-width:30ch}

  .stats__grid{font-size:85%}
  .stat{
    padding:17px 19px;
    grid-template-columns:29px 1fr;
    gap:0 10px;
  }
  .stat__icon svg{width:22px;height:22px}
  .stat__num{font-size:26px}
  .stat__num--text{font-size:15px}
  .stat__label{font-size:14px;line-height:1.3}

  .footer__hours{display:none}
}

@media(max-width:640px){
  .stats__grid{grid-template-columns:1fr}
  .stat{padding:18px 0;grid-template-columns:29px 1fr}
  .hero__title{max-width:12ch}
}

@media(max-width:420px){
  .hero__subtitle{font-size:16px;max-width:29ch}
  .stat__num{font-size:25px}
  .stat__label{font-size:14px}
}

@media(prefers-reduced-motion:reduce){
  .hero__title .line>span{animation:none!important;transform:none!important;opacity:1!important}
}


/* ============================================================
   V3 FIXES — modal practices, mobile stats, why animation, no practice flash
   ============================================================ */
.practice-card,
.practice-card--accent{
  filter:none!important;
}

@media(max-width:860px){
  /* Статистика после hero: ещё компактнее, примерно -15% от прошлой мобильной версии */
  .stats__grid{font-size:72%}
  .stat{
    padding:14px 16px;
    grid-template-columns:25px 1fr;
    gap:0 9px;
  }
  .stat__icon svg{width:19px;height:19px}
  .stat__num{font-size:22px;line-height:1.05}
  .stat__num--text{font-size:13px;line-height:1.15}
  .stat__label{font-size:12px;line-height:1.25;margin-top:2px}

  .services__contact-hint--after{
    max-width:520px;
    width:fit-content;
    margin:24px auto 0;
  }

  /* Модальное окно практик: короче и спокойнее на телефоне/планшете */
  #practiceModal .modal__body{padding:28px 24px;max-height:calc(100dvh - 28px)}
  #practiceModal .modal__brand{margin-bottom:20px}
  #practiceModal .modal__title{font-size:clamp(22px,5.4vw,30px);margin-bottom:14px;line-height:1.08}
  #practiceModal .modal__lead{font-size:14px;line-height:1.5;margin-bottom:12px}
  #practiceModal .modal__subtitle{font-size:16px;margin:10px 0 12px}
  #practiceModal .modal__checks{gap:10px;margin-bottom:16px}
  #practiceModal .modal__checks li{font-size:14px;line-height:1.42;gap:10px}
  #practiceModal .modal__hint{padding:14px 0;margin-bottom:16px;gap:10px}
  #practiceModal .modal__hint-ic{width:30px;height:30px}
  #practiceModal .modal__hint p{font-size:13px;line-height:1.42}
  #practiceModal .modal__foot{display:none}

  /* Мобильная анимация для блока "Почему выбирают нас" */
  .why__row{gap:14px}
  .why-card{
    position:relative;
    overflow:hidden;
    opacity:0;
    transform:translateY(24px) scale(.985);
    box-shadow:0 12px 30px -24px rgba(6,21,18,.45);
  }
  .why-card::before{
    content:"";
    position:absolute;
    left:20px;
    top:0;
    width:0;
    height:3px;
    border-radius:0 0 999px 999px;
    background:linear-gradient(90deg,var(--green),var(--gold));
  }
  .why-card::after{
    content:"";
    position:absolute;
    inset:-35% auto auto -30%;
    width:62%;
    height:160%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);
    transform:translateX(-130%) rotate(16deg);
    pointer-events:none;
    opacity:0;
  }
  .why-card.is-mobile-in{
    animation:whyMobileCardIn .72s cubic-bezier(.16,1,.3,1) both;
  }
  .why-card.is-mobile-in::before{
    animation:whyMobileLine .72s cubic-bezier(.16,1,.3,1) .16s both;
  }
  .why-card.is-mobile-in::after{
    animation:whyMobileSheen .9s ease .28s both;
  }
  .why-card:nth-child(even).is-mobile-in{
    animation-name:whyMobileCardInAlt;
  }
}

@media(max-width:640px){
  .stat{padding:15px 0;grid-template-columns:24px 1fr}
  .stat__num{font-size:21px}
  .stat__num--text{font-size:12px}
  .stat__label{font-size:12px}

  .services__contact-hint--after{
    width:100%;
    max-width:520px;
    justify-content:center;
    text-align:left;
  }
}

@media(max-width:420px){
  .stat{padding:13px 0;grid-template-columns:23px 1fr}
  .stat__icon svg{width:18px;height:18px}
  .stat__num{font-size:20px}
  .stat__label{font-size:12px}

  #practiceModal .modal__body{padding:24px 18px}
  #practiceModal .modal__title{font-size:clamp(20px,6vw,26px)}
  #practiceModal .modal__brand{margin-bottom:16px}
  #practiceModal .modal__lead,
  #practiceModal .modal__checks li{font-size:13px}
  #practiceModal .modal__hint p{font-size:12.5px}
}

@keyframes whyMobileCardIn{
  from{opacity:0;transform:translateX(-18px) translateY(22px) scale(.985)}
  to{opacity:1;transform:translateX(0) translateY(0) scale(1)}
}
@keyframes whyMobileCardInAlt{
  from{opacity:0;transform:translateX(18px) translateY(22px) scale(.985)}
  to{opacity:1;transform:translateX(0) translateY(0) scale(1)}
}
@keyframes whyMobileLine{
  from{width:0;opacity:.4}
  to{width:74px;opacity:1}
}
@keyframes whyMobileSheen{
  0%{opacity:0;transform:translateX(-130%) rotate(16deg)}
  18%{opacity:.55}
  100%{opacity:0;transform:translateX(260%) rotate(16deg)}
}

@media(prefers-reduced-motion:reduce){
  .why-card{opacity:1!important;transform:none!important;animation:none!important}
  .why-card::before,.why-card::after{animation:none!important}
}

/* ============================================================
   V4 FIXES — modal font restore, footer spacing, hero/why polish
   ============================================================ */

/* hero: медленнее, но без возврата к лагам/морганию */
.hero__title .line > span{
  animation-duration:1.35s;
}
.hero__title .line:nth-child(2) > span{
  animation-delay:.24s;
}

/* обычный формат: hero выше примерно на 30px */
@media(min-width:861px){
  .hero{
    min-height:max(530px,calc(100vh - 82px - 24px));
  }

  /* в блоке «Почему выбирают» даём место hover-линии и теням */
  .why__rows{
    overflow:visible;
    padding-top:14px;
    padding-bottom:34px;
  }
  .why__row{
    padding-top:8px;
    padding-bottom:8px;
  }
}

/* убираем возможный стартовый flash у карточек практик до полной инициализации */
body:not(.is-ready) .practice-card,
body:not(.is-ready) .practice-card *{
  transition:none!important;
  animation:none!important;
}
.practice-card,
.practice-card--accent{
  filter:none!important;
  opacity:1!important;
}

/* подсказка после услуг теперь находится внутри правой колонки и короче */
.services__panels .services__contact-hint--after{
  width:100%;
  max-width:390px;
  margin:28px auto 0;
  justify-content:center;
  align-items:center;
  padding:16px 18px;
}
.services__panels .services__contact-hint--after p{
  font-size:14px;
  line-height:1.45;
}

/* футер: больше воздуха около графика и нижней строки */
.footer__schedule{
  margin-bottom:12px;
}
@media(max-width:860px){
  .footer__schedule{
    margin-bottom:18px;
  }
  .footer__bottom-inner{
    padding-top:30px;
    padding-bottom:30px;
    gap:14px;
  }
  .footer__bottom-inner > span:first-child{
    margin-bottom:4px;
  }
  .footer__legal{
    margin-top:6px;
  }
}

@media(max-width:860px){
  /* модалка практик шире примерно на 30px и без глобального уменьшения шрифтов */
  #practiceModal .modal__dialog{
    width:min(950px,calc(100vw - 16px));
    max-height:calc(100dvh - 16px);
  }
  #practiceModal .modal__body{
    padding:34px 28px;
    max-height:calc(100dvh - 16px);
  }
  #practiceModal .modal__brand{
    margin-bottom:24px;
  }
  #practiceModal .modal__title{
    font-size:clamp(24px,6vw,34px);
    line-height:1.1;
    margin-bottom:18px;
  }
  #practiceModal .modal__lead{
    font-size:16px;
    line-height:1.6;
    margin-bottom:16px;
  }
  #practiceModal .modal__subtitle{
    font-size:19px;
    margin:14px 0 18px;
  }
  #practiceModal .modal__checks{
    gap:14px;
    margin-bottom:22px;
  }
  #practiceModal .modal__checks li{
    font-size:16px;
    line-height:1.5;
    gap:12px;
  }
  #practiceModal .modal__hint{
    padding:16px 0;
    margin-bottom:18px;
    gap:12px;
  }
  #practiceModal .modal__hint-ic{
    width:34px;
    height:34px;
  }
  #practiceModal .modal__hint p{
    font-size:13px;
    line-height:1.42;
  }
  #practiceModal .modal__foot{
    display:none;
  }

  .services__panels .services__contact-hint--after{
    max-width:520px;
    margin-top:22px;
  }
}

@media(max-width:420px){
  #practiceModal .modal__body{
    padding:30px 20px;
  }
  #practiceModal .modal__title{
    font-size:clamp(22px,7vw,28px);
  }
  #practiceModal .modal__lead,
  #practiceModal .modal__checks li{
    font-size:14px;
    line-height:1.55;
  }
  #practiceModal .modal__hint p{
    font-size:12.5px;
  }
}
