/*
Theme Name: LOYAL Legal Advisory — Template Parts
Theme URI: https://uzloyal.uz/
Author: Smartiee
Author URI: https://smartiee.agency/
Description: Классическая WordPress-тема LOYAL. Главная разбита на независимые template-parts; обычные страницы и записи редактируются через WordPress.
Version: 3.2.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: loyal-legal-advisory
*/

/* Original approved v11-light design */

:root{
  --navy:#071D36;
  --navy-2:#0D2A46;
  --cream:#F5F1E9;
  --paper:#FBFAF7;
  --white:#FFFFFF;
  --ink:#151515;
  --muted:#686B70;
  --terracotta:#B9683F;
  --gold:#C7A96B;
  --stone:#9AA2A0;
  --line:#D8D2C8;
  --shadow:0 24px 70px rgba(7,29,54,.12);
  --container:min(1420px,calc(100% - 72px));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,"Helvetica Neue",sans-serif;font-size:17px;line-height:1.58}
img{display:block;max-width:100%}
a{color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--terracotta);outline-offset:4px}
.container{width:var(--container);margin-inline:auto}
.skip-link{position:fixed;left:12px;top:12px;z-index:1000;transform:translateY(-170%);padding:10px 14px;background:#fff;color:#000;border:2px solid var(--navy)}
.skip-link:focus{transform:none}
.section{position:relative;padding:clamp(72px,8vw,116px) 0;overflow:hidden}
.section--cream{background:var(--cream)}
.section--white{background:#fff}
.section--navy{background:var(--navy);color:#fff}
.section-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.7fr);gap:clamp(36px,6vw,90px);align-items:end;margin-bottom:clamp(38px,5vw,64px);padding-top:20px;border-top:1px solid var(--line)}
.section-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.35rem,4.2vw,4.85rem);font-weight:500;line-height:1.02;letter-spacing:-.045em}
.section-head p{margin:0;color:var(--muted)}
.section--navy .section-head{border-color:rgba(255,255,255,.22)}
.section--navy .section-head p{color:rgba(255,255,255,.7)}
.eyebrow{margin:0 0 14px;color:var(--terracotta);font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:0 24px;border:1px solid var(--navy);background:var(--navy);color:#fff;text-decoration:none;font-weight:800;letter-spacing:.02em;transition:.2s ease}
.button:hover{background:var(--terracotta);border-color:var(--terracotta)}
.button--outline{background:transparent;color:var(--navy)}
.button--outline:hover{color:#fff}
.text-link{display:inline-flex;align-items:center;gap:11px;padding-bottom:3px;border-bottom:1px solid currentColor;text-decoration:none;font-weight:800;transition:gap .2s ease}
.text-link:hover{gap:17px}
.decor-line{width:82px;height:4px;background:var(--terracotta);margin-bottom:30px}
.section-motif{position:absolute;width:270px;height:270px;border:1px solid rgba(185,104,63,.12);transform:rotate(45deg);pointer-events:none}
.section-motif::before,.section-motif::after{content:"";position:absolute;inset:48px;border:1px solid rgba(7,29,54,.08)}
.section-motif::after{inset:96px}

/* header */
.top-shell{background:var(--navy);color:#fff;padding-bottom:32px}
.utility{border-bottom:1px solid rgba(255,255,255,.14)}
.utility__inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:.72rem;color:rgba(255,255,255,.65)}
.utility p{margin:0}
.lang-switch{position:relative}
.lang-switch summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:800;color:#fff}
.lang-switch summary::-webkit-details-marker{display:none}
.lang-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:40;min-width:150px;padding:8px;background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.lang-menu a{display:block;padding:9px 10px;text-decoration:none}
.lang-menu a:hover{background:var(--cream)}
.site-header{position:relative;z-index:30;background:var(--navy)}
.header-inner{min-height:110px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:38px}
.brand{display:inline-flex;flex-direction:column;text-decoration:none;line-height:1;color:#fff}
.brand__main{font-size:2.05rem;font-weight:900;letter-spacing:.08em}
.brand__sub{margin-top:6px;font-size:.62rem;font-weight:800;letter-spacing:.24em}
.brand__areas{margin-top:6px;color:#E0A278;font-size:.49rem;font-weight:800;letter-spacing:.14em}
.main-nav{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2vw,34px)}
.main-nav>a,.nav-dropdown>summary{min-height:48px;display:flex;align-items:center;list-style:none;text-decoration:none;color:#fff;font-size:.79rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase;cursor:pointer;white-space:nowrap}
.nav-dropdown>summary::-webkit-details-marker{display:none}
.nav-dropdown>summary::after{content:"⌄";margin-left:7px;color:#E0A278;font-size:.75rem}
.main-nav>a:hover,.nav-dropdown>summary:hover{color:#E0A278}
.nav-dropdown{position:relative}
.dropdown-panel{position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);z-index:50;width:min(520px,88vw);padding:14px;background:#fff;color:var(--ink);box-shadow:var(--shadow);border-top:3px solid var(--terracotta)}
.dropdown-panel a{display:grid;grid-template-columns:24px 1fr;gap:10px;padding:11px 12px;border-bottom:1px solid var(--line);text-decoration:none;font-size:.9rem}
.dropdown-panel a:last-child{border-bottom:0}
.dropdown-panel a::before{content:"+";color:var(--terracotta);font-weight:900}
.dropdown-panel a:hover{background:var(--cream)}
.header-actions{display:flex;align-items:center;gap:12px}
.search-button{width:54px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.58);background:transparent;color:#fff}
.search-button svg{width:27px;height:27px}
.header-actions .button{background:transparent;border-color:rgba(255,255,255,.65);text-transform:uppercase;font-size:.78rem;letter-spacing:.08em}
.header-actions .button:hover{background:#fff;color:var(--navy);border-color:#fff}
.menu-button{display:none;width:50px;height:50px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff}

/* search dialog */
.search-dialog{width:min(760px,calc(100% - 32px));border:0;padding:0;background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.search-dialog::backdrop{background:rgba(7,29,54,.82)}
.search-dialog__inner{padding:34px}
.search-dialog__top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.search-dialog h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:2.2rem;font-weight:500}
.search-dialog__close{width:44px;height:44px;border:1px solid var(--line);background:#fff;font-size:1.4rem}
.search-form{display:grid;grid-template-columns:1fr auto;border-bottom:2px solid var(--navy)}
.search-form input{min-height:64px;border:0;background:transparent;font-size:1.2rem;outline:0}
.search-form button{border:0;background:transparent;color:var(--navy);font-weight:800}

/* hero */
.hero-shell{width:min(1520px,calc(100% - 72px));margin-inline:auto;background:var(--cream);box-shadow:var(--shadow);overflow:hidden}
.hero{display:grid;grid-template-columns:minmax(0,.88fr) minmax(560px,1.12fr);min-height:665px}
.hero__copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(48px,6vw,84px)}
.hero__copy h1{max-width:720px;margin:0 0 27px;font-size:clamp(3rem,5.1vw,5.9rem);font-weight:650;line-height:.98;letter-spacing:-.057em}
.hero__lead{max-width:690px;margin:0 0 34px;color:#3F464D;font-size:clamp(1.02rem,1.25vw,1.18rem)}
.hero__actions{display:flex;flex-wrap:wrap;gap:14px}
.hero-art{position:relative;overflow:hidden;min-height:665px;background:linear-gradient(180deg,#F5F1E9,#EFE8DD)}
.hero-art::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(7,29,54,.15) 1.1px,transparent 1.1px);background-size:30px 30px;opacity:.23;mask-image:linear-gradient(to left,#000 0 76%,transparent 100%)}
.arch{position:absolute;bottom:-3%;border-radius:52% 52% 0 0/34% 34% 0 0;transition:transform .35s ease,filter .35s ease}
.arch--stone{right:58%;width:29%;height:74%;background:var(--stone)}
.arch--gold{right:40%;width:34%;height:82%;background:var(--gold)}
.arch--terra{right:18%;width:36%;height:80%;background:#91404B}
.arch--navy{right:1%;width:30%;height:74%;background:var(--navy)}
.arch--cream{right:-10%;width:27%;height:54%;background:#E8D7A8}
.arch--navy::after{content:"";position:absolute;inset:0;border-radius:inherit;background:repeating-linear-gradient(90deg,transparent 0 18px,rgba(255,255,255,.04) 18px 19px)}
.arch--gold::after{content:"";position:absolute;inset:0;border-radius:inherit;background:repeating-linear-gradient(90deg,rgba(255,255,255,.72) 0 10px,transparent 10px 40px);opacity:.55}
.art-zone{position:absolute;z-index:4;border:0;background:transparent;padding:0;color:#fff;text-align:left}
.art-zone--1{left:8%;top:22%;width:31%;height:55%}
.art-zone--2{left:30%;top:14%;width:30%;height:62%}
.art-zone--3{left:50%;top:22%;width:28%;height:58%}
.art-zone--4{left:70%;top:29%;width:25%;height:49%}
.art-zone__panel{position:absolute;right:18px;top:18px;width:54px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.8);background:rgba(7,29,54,.08);overflow:hidden;transition:width .28s ease,height .28s ease,background .28s ease}
.art-zone__plus{position:absolute;right:16px;top:12px;width:20px;height:20px}
.art-zone__plus::before,.art-zone__plus::after{content:"";position:absolute;left:50%;top:50%;background:#fff;transform:translate(-50%,-50%);transition:.25s ease}
.art-zone__plus::before{width:18px;height:1px}.art-zone__plus::after{width:1px;height:18px}
.art-zone__text{opacity:0;transform:translateY(12px);padding:22px 58px 18px 18px;font-weight:800;line-height:1.2;transition:.22s ease;white-space:nowrap}
.art-zone:hover .art-zone__panel,.art-zone:focus-visible .art-zone__panel,.art-zone.is-open .art-zone__panel{width:190px;height:108px;background:rgba(7,29,54,.9)}
.art-zone:hover .art-zone__text,.art-zone:focus-visible .art-zone__text,.art-zone.is-open .art-zone__text{opacity:1;transform:none}
.art-zone:hover .art-zone__plus::after,.art-zone:focus-visible .art-zone__plus::after,.art-zone.is-open .art-zone__plus::after{height:0}
.art-zone:hover~.arch,.art-zone.is-open~.arch{filter:saturate(1.12)}
.motif-divider{height:68px;background:var(--cream);position:relative;overflow:hidden}
.motif-divider::before{content:"";position:absolute;left:-2%;right:-2%;top:10px;height:54px;background:
 linear-gradient(135deg,transparent 36%,rgba(7,29,54,.22) 36% 39%,transparent 39% 61%,rgba(185,104,63,.34) 61% 64%,transparent 64%) 0 0/110px 54px repeat-x;
 opacity:.7}

/* insights */
.insights-grid{display:grid;grid-template-columns:1.08fr repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.insight-card{position:relative;min-height:360px;padding:28px;display:flex;flex-direction:column;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;text-decoration:none;overflow:hidden;transition:.22s ease}
.insight-card:first-child{background:var(--navy);color:#fff}
.insight-card:first-child::after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 2px 2px,rgba(255,255,255,.44) 1px,transparent 1.2px);background-size:26px 26px;opacity:.18;mask-image:linear-gradient(135deg,transparent 0,#000 80%)}
.insight-card>*{position:relative;z-index:1}
.insight-card__cat{color:var(--terracotta);font-size:.72rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.insight-card:first-child .insight-card__cat{color:#E8B997}
.insight-card h3{margin:auto 0 18px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.65rem,2vw,2.45rem);font-weight:500;line-height:1.12}
.insight-card p{margin:0 0 24px;color:var(--muted)}
.insight-card:first-child p{color:rgba(255,255,255,.72)}
.insight-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(7,29,54,.1)}
.insights-actions{margin-top:30px;display:flex;justify-content:flex-end}

/* local partner */
.partner-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:clamp(46px,7vw,105px);align-items:start}
.partner-copy{position:sticky;top:100px}
.partner-copy h2{margin:0 0 24px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.6rem,4.5vw,5rem);font-weight:500;line-height:1.02;letter-spacing:-.045em}
.partner-copy p{color:var(--muted)}
.scenario-list{border-top:1px solid var(--line)}
.scenario{border-bottom:1px solid var(--line)}
.scenario summary{list-style:none;display:grid;grid-template-columns:42px 1fr 44px;gap:18px;align-items:center;padding:23px 0;cursor:pointer}
.scenario summary::-webkit-details-marker{display:none}
.scenario__num{color:var(--terracotta);font-size:.75rem;font-weight:850}
.scenario summary strong{font-size:1.18rem}
.plus-box{width:40px;height:40px;position:relative;border:1px solid var(--line);transition:.2s ease}
.plus-box::before,.plus-box::after{content:"";position:absolute;left:50%;top:50%;background:var(--navy);transform:translate(-50%,-50%)}
.plus-box::before{width:16px;height:1px}.plus-box::after{width:1px;height:16px}
.scenario[open] .plus-box{background:var(--navy);border-color:var(--navy)}
.scenario[open] .plus-box::before{background:#fff}.scenario[open] .plus-box::after{height:0}
.scenario__body{padding:0 62px 24px;color:var(--muted)}

/* tax specialty */
.tax-panel{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);background:#fff;border:1px solid var(--line)}
.tax-intro{padding:clamp(38px,5vw,72px);background:var(--navy);color:#fff;position:relative;overflow:hidden}
.tax-intro::after{content:"";position:absolute;width:330px;height:330px;right:-190px;bottom:-200px;border:1px solid rgba(255,255,255,.14);transform:rotate(45deg);box-shadow:0 0 0 62px rgba(255,255,255,.035),0 0 0 124px rgba(255,255,255,.025)}
.tax-intro h2{margin:0 0 24px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.55rem,4.1vw,4.65rem);font-weight:500;line-height:1.02}
.tax-intro p{color:rgba(255,255,255,.73)}
.tax-list{padding:clamp(32px,5vw,68px)}
.tax-item{display:grid;grid-template-columns:42px 1fr;gap:18px;padding:22px 0;border-bottom:1px solid var(--line)}
.tax-item:first-child{padding-top:0}.tax-item:last-child{border-bottom:0}
.tax-item span{color:var(--terracotta);font-weight:850}
.tax-item h3{margin:0 0 8px;font-size:1.15rem}.tax-item p{margin:0;color:var(--muted)}
.tax-cta{margin-top:28px}

/* practices full */
.practice-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.practice-card{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.practice-card summary{list-style:none;min-height:185px;padding:28px;display:grid;grid-template-columns:1fr 46px;gap:20px;cursor:pointer}
.practice-card summary::-webkit-details-marker{display:none}
.practice-card__num{display:block;color:var(--terracotta);font-size:.72rem;font-weight:850;letter-spacing:.12em;margin-bottom:40px}
.practice-card h3{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.55rem,2.2vw,2.45rem);font-weight:500;line-height:1.12}
.practice-card__body{padding:0 28px 28px;color:var(--muted)}
.practice-card[open]{background:var(--cream)}
.practice-card[open] .plus-box{background:var(--navy);border-color:var(--navy)}
.practice-card[open] .plus-box::before{background:#fff}.practice-card[open] .plus-box::after{height:0}

/* clients */
.client-grid{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.client-card{min-height:310px;padding:26px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;position:relative;overflow:hidden}
.client-card::before{content:"";position:absolute;right:-64px;top:-64px;width:150px;height:150px;border:1px solid rgba(185,104,63,.18);transform:rotate(45deg)}
.client-card span{color:var(--terracotta);font-size:.72rem;font-weight:850}
.client-card h3{margin:75px 0 18px;font-family:Georgia,"Times New Roman",serif;font-size:1.75rem;font-weight:500;line-height:1.1}
.client-card p{margin:0;color:var(--muted);font-size:.93rem}

/* process */
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.process-step{min-height:320px;padding:28px;background:#fff;border-top:4px solid var(--terracotta)}
.process-step span{font-family:Georgia,"Times New Roman",serif;font-size:3.7rem;color:var(--gold)}
.process-step h3{margin:40px 0 15px;font-size:1.2rem}.process-step p{margin:0;color:var(--muted)}

/* about */
.about-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:stretch;background:#fff}
.about-photo{height:500px;overflow:hidden;background:#ddd}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:center 34%;filter:saturate(.72) contrast(1.02)}
.about-copy{padding:clamp(50px,6vw,88px)}
.about-copy h2{margin:0 0 26px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.5rem,4.2vw,4.8rem);font-weight:500;line-height:1.02;letter-spacing:-.045em}
.about-copy p{margin:0 0 18px;color:var(--muted)}
.about-points{margin-top:30px;border-top:1px solid var(--line)}
.about-points div{display:grid;grid-template-columns:38px 1fr;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.about-points span{color:var(--terracotta);font-size:.75rem;font-weight:850}

/* team */
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.team-card{background:#fff;border:1px solid var(--line);overflow:hidden}
.team-card__media{aspect-ratio:1/1;overflow:hidden;background:#dde1e6}
.team-card img{width:100%;height:100%;object-fit:cover;filter:grayscale(100%) contrast(1.05);transition:.35s ease}
.team-card:hover img{filter:grayscale(0%) contrast(1.02);transform:scale(1.015)}
.team-card__body{padding:22px}.team-card h3{margin:0 0 7px;font-family:Georgia,"Times New Roman",serif;font-size:1.45rem;font-weight:500}.team-card p{margin:0;color:var(--muted);font-size:.9rem}

/* frequent requests */
.request-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.request-link{min-height:86px;display:grid;grid-template-columns:1fr 42px;gap:20px;align-items:center;padding:18px 22px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;text-decoration:none;font-weight:750}
.request-link:hover{background:var(--cream)}
.request-link .plus-box{transform:scale(.88)}
.request-link:hover .plus-box{background:var(--navy);border-color:var(--navy)}
.request-link:hover .plus-box::before,.request-link:hover .plus-box::after{background:#fff}

/* cases */
.case-grid{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid rgba(255,255,255,.18);border-left:1px solid rgba(255,255,255,.18)}
.case-card{min-height:310px;padding:26px;border-right:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18);position:relative}
.case-card span{color:#E8B997;font-size:.72rem;font-weight:850}
.case-card h3{margin:80px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:1.6rem;font-weight:500;line-height:1.15}
.case-card::after{content:"↗";position:absolute;right:22px;bottom:18px;color:#E8B997;font-size:1.3rem}

/* contact */
.contact-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(520px,1.2fr);gap:clamp(38px,6vw,84px);align-items:start}
.contact-copy h2{margin:0 0 22px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.6rem,4.3vw,4.8rem);font-weight:500;line-height:1.02}.contact-copy>p{color:var(--muted)}
.contact-details{margin-top:28px;border-top:1px solid var(--line)}
.contact-details div{display:grid;grid-template-columns:95px 1fr;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.form{padding:24px;background:#fff;border:1px solid var(--line)}
.form h3{margin:0 0 18px;font-family:Georgia,"Times New Roman",serif;font-size:1.8rem;font-weight:500}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form label{display:block;margin-bottom:10px;font-size:.78rem;font-weight:800}.req{color:var(--terracotta)}
.form input,.form select,.form textarea{width:100%;margin-top:5px;border:1px solid var(--line);background:var(--paper);padding:10px 12px;min-height:44px}.form textarea{min-height:104px;resize:vertical}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:10px}.form-note{margin:0;color:var(--muted);font-size:.72rem}.form-status{display:none;margin-top:12px;color:var(--navy);font-weight:800}

/* footer */
.footer{position:relative;overflow:hidden;background:var(--navy);color:#fff;padding:72px 0 24px}
.footer::before{content:"";position:absolute;left:0;right:0;top:0;height:12px;background:repeating-linear-gradient(90deg,var(--gold) 0 24px,transparent 24px 42px,var(--terracotta) 42px 55px,transparent 55px 76px);opacity:.7}
.footer-pattern{position:absolute;right:-110px;bottom:-170px;width:540px;height:540px;border:1px solid rgba(255,255,255,.08);transform:rotate(45deg)}
.footer-pattern::before,.footer-pattern::after{content:"";position:absolute;inset:74px;border:1px solid rgba(255,255,255,.07)}.footer-pattern::after{inset:148px}
.footer-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:44px}.footer h4{margin:0 0 18px;color:#E8B997;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em}.footer p{color:rgba(255,255,255,.65)}.footer nav{display:grid;gap:9px}.footer nav a{text-decoration:none;color:rgba(255,255,255,.7)}.footer nav a:hover{color:#fff}.footer-bottom{position:relative;z-index:1;display:flex;justify-content:space-between;gap:20px;margin-top:48px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);font-size:.78rem;color:rgba(255,255,255,.52)}

.reveal{opacity:0;transform:translateY(18px);transition:.65s ease}.reveal.is-visible{opacity:1;transform:none}
@media(max-width:1180px){
  :root{--container:min(100% - 44px,1420px)}
  .hero-shell{width:calc(100% - 44px)}
  .header-inner{grid-template-columns:auto auto}.main-nav{display:none}.menu-button{display:block}.header-actions{justify-self:end}
  .hero{grid-template-columns:1fr 1fr}.insights-grid{grid-template-columns:1fr 1fr}.insight-card:first-child{grid-column:1/-1;min-height:410px}
  .client-grid{grid-template-columns:repeat(3,1fr)}.case-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .section-head,.partner-layout,.tax-panel,.about-grid,.contact-grid{grid-template-columns:1fr}.partner-copy{position:static}.about-photo{height:430px}
  .hero{grid-template-columns:1fr}.hero-art{min-height:540px}.hero-shell{width:100%}.top-shell{padding-bottom:0}
  .practice-grid,.team-grid,.process-grid{grid-template-columns:1fr 1fr}.client-grid{grid-template-columns:1fr 1fr}.case-grid{grid-template-columns:1fr 1fr}
  .utility p{display:none}.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  :root{--container:calc(100% - 28px)}body{font-size:16px}.header-inner{min-height:88px;gap:14px}.brand__main{font-size:1.55rem}.brand__sub{font-size:.5rem}.brand__areas{display:none}.header-actions>.button{display:none}.search-button{width:48px;height:48px}.menu-button{width:48px;height:48px}
  .hero__copy{padding:48px 22px}.hero__copy h1{font-size:clamp(2.55rem,13vw,4.2rem)}.hero-art{min-height:440px}.art-zone__panel{right:8px;top:8px}.art-zone:hover .art-zone__panel,.art-zone:focus-visible .art-zone__panel,.art-zone.is-open .art-zone__panel{width:145px;height:92px}.art-zone__text{font-size:.8rem;padding:18px 46px 14px 14px}
  .insights-grid,.practice-grid,.client-grid,.process-grid,.team-grid,.request-grid,.case-grid{grid-template-columns:1fr}.insight-card:first-child{grid-column:auto}.form-row{grid-template-columns:1fr}.form-actions{align-items:flex-start;flex-direction:column}.form-actions .button{width:100%}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}
  .dropdown-panel{position:fixed;left:14px;right:14px;top:105px;transform:none;width:auto;max-height:70vh;overflow:auto}.about-photo{height:340px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}}


/* === Compact editorial refinement v3 === */
:root{
  --container:min(1420px,calc(100% - 80px));
  --shadow:0 20px 55px rgba(7,29,54,.10);
}
body{font-size:16px;line-height:1.52}
.section{padding:clamp(58px,6.5vw,92px) 0}
.section-head{gap:clamp(28px,5vw,72px);margin-bottom:clamp(28px,4vw,46px);padding-top:16px}
.section-head h2{font-size:clamp(2.15rem,3.55vw,4.05rem);line-height:1.04;letter-spacing:-.038em}
.eyebrow{font-size:.68rem;margin-bottom:11px}
.button{min-height:46px;padding:0 20px;font-size:.82rem}
.decor-line{width:70px;height:3px;margin-bottom:24px}

.header-inner{min-height:96px}
.brand__main{font-size:1.9rem}
.main-nav>a,.nav-dropdown>summary{font-size:.75rem;letter-spacing:.085em}
.search-button{width:50px;height:50px}.search-button svg{width:25px;height:25px}

.hero-shell{width:min(1540px,calc(100% - 80px));box-shadow:none}
.hero{grid-template-columns:minmax(0,.82fr) minmax(520px,1.18fr);min-height:620px}
.hero__copy{padding:clamp(44px,5.2vw,72px)}
.hero__copy h1{max-width:650px;margin-bottom:22px;font-size:clamp(2.65rem,4.45vw,5rem);line-height:1.01;letter-spacing:-.047em}
.hero__lead{max-width:620px;margin-bottom:28px;font-size:clamp(.96rem,1.08vw,1.08rem)}
.hero-art{min-height:620px;background:linear-gradient(180deg,#F5F1E9 0%,#F1ECE3 100%)}
.hero-art::before{background-size:34px 34px;opacity:.15;mask-image:linear-gradient(to left,#000 0 70%,transparent 96%)}
.hero-geometry{position:absolute;inset:26px -34px 0 0;width:calc(100% + 34px);height:calc(100% - 26px);overflow:visible}
.shape-button{cursor:pointer;outline:none;transform-box:fill-box;transform-origin:center bottom}
.shape-fill,.shape-button path,.shape-content{transition:transform .32s ease,filter .32s ease,opacity .32s ease,fill .32s ease}
.shape-cross{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;transform-box:fill-box;transform-origin:center;transition:transform .25s ease}
.shape-cross.dark{stroke:var(--navy)}
.shape-label{font:800 16px Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;fill:#fff;opacity:0;transform:translateY(10px);transition:.25s ease}
.shape-label.dark{fill:var(--navy)}
.shape-button:hover,.shape-button:focus-visible,.shape-button.is-open{filter:brightness(1.04)}
.shape-button:hover .shape-fill,.shape-button:focus-visible .shape-fill,.shape-button.is-open .shape-fill{transform:translateY(-12px)}
.shape-button:hover .shape-cross,.shape-button:focus-visible .shape-cross,.shape-button.is-open .shape-cross{transform:rotate(45deg)}
.shape-button:hover .shape-label,.shape-button:focus-visible .shape-label,.shape-button.is-open .shape-label{opacity:1;transform:none}
.shape-button:focus-visible .shape-fill{stroke:var(--terracotta);stroke-width:5}
.motif-divider{height:52px}
.motif-divider::before{top:5px;height:42px;background-size:96px 42px}

.insights-grid{grid-template-columns:1.04fr repeat(3,1fr)}
.insight-card{min-height:300px;padding:22px}
.insight-card__cat{display:inline-flex;align-self:flex-start;padding:5px 8px;border-radius:999px;background:#F2E5DC;color:#8D4A31;font-size:.62rem;letter-spacing:.1em}
.insight-card--2 .insight-card__cat{background:#EEE6CF;color:#735F2B}
.insight-card--3 .insight-card__cat{background:#E7EBEA;color:#4D5F5B}
.insight-card--4 .insight-card__cat{background:#E8ECF0;color:#27435C}
.insight-card:first-child .insight-card__cat{background:rgba(255,255,255,.12);color:#F3D6C3;border:1px solid rgba(255,255,255,.16)}
.insight-card h3{font-size:clamp(1.35rem,1.65vw,2rem);margin:auto 0 14px}
.insight-card p{font-size:.9rem;margin-bottom:18px}

.partner-copy h2,.tax-intro h2,.contact-copy h2{font-size:clamp(2.2rem,3.6vw,4rem)}
.scenario summary{padding:18px 0}.scenario summary strong{font-size:1.04rem}.scenario__body{padding-bottom:20px}
.tax-intro,.tax-list{padding:clamp(30px,4vw,54px)}.tax-item{padding:17px 0}

.practice-key{display:flex;flex-wrap:wrap;gap:8px;margin:-12px 0 24px}
.practice-key__item{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border:1px solid var(--line);background:#fff;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.practice-key__item--terra{border-color:rgba(185,104,63,.35);color:#8D4A31;background:#F7EEE8}
.practice-key__item--gold{border-color:rgba(199,169,107,.45);color:#735F2B;background:#F5F0E4}
.practice-key__item--stone{border-color:rgba(154,162,160,.55);color:#4D5F5B;background:#EEF1F0}
.practice-grid{grid-template-columns:repeat(2,1fr)}
.practice-card{position:relative;overflow:hidden}
.practice-card::after{content:"";position:absolute;right:-30px;bottom:-42px;width:128px;height:180px;background:rgba(7,29,54,.035);clip-path:polygon(50% 0,100% 15%,100% 100%,0 100%,0 15%);transition:.3s ease;pointer-events:none}
.practice-card:nth-child(3n+1)::after{background:rgba(185,104,63,.07)}
.practice-card:nth-child(3n+2)::after{background:rgba(199,169,107,.11)}
.practice-card:nth-child(3n)::after{background:rgba(154,162,160,.12)}
.practice-card summary{position:relative;z-index:1;min-height:150px;padding:22px;grid-template-columns:1fr 40px}
.practice-card__num{margin-bottom:28px;font-size:.66rem}
.practice-card h3{font-size:clamp(1.35rem,1.85vw,2rem)}
.practice-card__body{position:relative;z-index:1;padding:0 22px 22px;font-size:.91rem}
.practice-card:hover::after,.practice-card[open]::after{transform:translate(-10px,-10px) scale(1.08)}
.plus-box{width:36px;height:36px}

.about-photo{height:410px}.about-photo img{filter:none;object-position:center 28%}
.about-copy{padding:clamp(34px,4vw,54px)}
.team-grid{gap:12px}.team-card img{filter:none;transition:transform .35s ease}.team-card:hover img{filter:none;transform:scale(1.018)}
.team-card__body{padding:18px}.team-card h3{font-size:1.25rem}.team-card p{font-size:.84rem}
.process-card,.client-card,.case-card{min-height:260px}
.request-link{font-size:.96rem;padding:18px 0}
.case-card h3{margin-top:58px;font-size:1.35rem}

.contact-grid{gap:clamp(30px,5vw,64px)}
.form{padding:20px}.form h3{font-size:1.55rem}.form-row{gap:10px}.form label{margin-bottom:8px}.form textarea{min-height:90px}
.footer{padding-top:64px}

@media(max-width:1180px){
  .hero-shell{width:calc(100% - 44px)}
  .hero{grid-template-columns:1fr 1fr}
  .hero-geometry{right:-70px}
}
@media(max-width:900px){
  .hero{grid-template-columns:1fr}.hero-art{min-height:500px}.hero-geometry{inset:12px -25px 0 auto;width:86%;height:calc(100% - 12px)}
}
@media(max-width:640px){
  :root{--container:calc(100% - 28px)}
  .section{padding:50px 0}.section-head h2{font-size:2.15rem}
  .hero__copy{padding:42px 22px}.hero__copy h1{font-size:clamp(2.3rem,11vw,3.55rem)}
  .hero-art{min-height:420px}.hero-geometry{width:112%;right:-82px}
  .shape-label{font-size:13px}.practice-key{margin-top:-5px}
}


/* v4 typography and team refinement */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body{
  font-family:Inter,Arial,"Helvetica Neue",sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,
.section-head h2,
.partner-copy h2,
.tax-intro h2,
.about-copy h2,
.contact-copy h2,
.insight-card h3,
.practice-card h3,
.client-card h3,
.team-card h3,
.case-card h3,
.form h3,
.search-dialog h2{
  font-family:Inter,Arial,"Helvetica Neue",sans-serif;
  font-weight:700;
  letter-spacing:-.035em;
}

.hero__copy h1{
  color:#071D36 !important;
  font-size:clamp(2.45rem,3.8vw,4.3rem);
  line-height:1.04;
  font-weight:760;
  max-width:640px;
  letter-spacing:-.052em;
}
.hero__lead{
  font-size:clamp(.94rem,1vw,1.04rem);
  line-height:1.6;
}

.section-head h2{
  font-size:clamp(1.95rem,3vw,3.35rem);
  line-height:1.08;
  font-weight:720;
  letter-spacing:-.045em;
}
.partner-copy h2,
.tax-intro h2,
.about-copy h2,
.contact-copy h2{
  font-size:clamp(2rem,3.1vw,3.45rem);
  line-height:1.08;
  font-weight:720;
}
.insight-card h3,
.practice-card h3{
  font-size:clamp(1.35rem,1.75vw,1.85rem);
  line-height:1.18;
  font-weight:680;
}
.client-card h3{font-size:1.45rem;font-weight:680}
.case-card h3{font-size:1.35rem;font-weight:680}
.process-step h3,.scenario-row h3,.tax-list h3{font-weight:680}

/* Team: six equal color portraits, compact cards */
.team-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.team-card__media{
  aspect-ratio:4/5;
  background:#e7e9ee;
}
.team-card img{
  filter:none !important;
  object-position:center top;
  transition:transform .3s ease;
}
.team-card:hover img{transform:scale(1.012)}
.team-card__body{padding:16px 16px 18px}
.team-card h3{font-size:1.08rem;font-weight:700;letter-spacing:-.02em}
.team-card p{font-size:.82rem;line-height:1.5}

/* Compact overall rhythm */
.section{padding-block:clamp(56px,6.2vw,88px)}
.section-head{margin-bottom:34px}
.eyebrow{font-size:.72rem;font-weight:750;letter-spacing:.16em}
.button{font-size:.78rem;font-weight:750}

@media (max-width:980px){
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  body{font-size:15px}
  .hero__copy h1{font-size:clamp(2.2rem,10vw,3.2rem)}
  .section-head h2{font-size:2rem}
  .partner-copy h2,.tax-intro h2,.about-copy h2,.contact-copy h2{font-size:2.15rem}
  .team-grid{grid-template-columns:1fr 1fr;gap:10px}
  .team-card__body{padding:13px}
  .team-card h3{font-size:.98rem}
  .team-card p{font-size:.76rem}
}

:where(
  .loyal-btn,
  .button,
  .wp-block-button__link,
  button[type="submit"],
  input[type="submit"],
  .loyal-contact-map__button a
){
  border-radius:6px!important;
}

/* v5 calm editorial refinement */
:root{
  --terracotta:#A65C3A;
  --gold:#D8C18B;
  --stone:#A3AAA7;
}

/* Less decoration, more editorial whitespace */
.section-motif{display:none}
.hero-art::before{opacity:.08;background-size:38px 38px}
.hero-geometry{inset:30px -12px 0 2%;width:100%;height:calc(100% - 30px)}
.shape-button:hover .shape-fill,
.shape-button:focus-visible .shape-fill,
.shape-button.is-open .shape-fill{transform:translateY(-8px)}
.shape-label{font-size:14px;letter-spacing:.075em}

/* One consistent category language instead of many competing colors */
.insight-card__cat,
.insight-card--2 .insight-card__cat,
.insight-card--3 .insight-card__cat,
.insight-card--4 .insight-card__cat{
  border:1px solid rgba(166,92,58,.22);
  background:#F4ECE6;
  color:#7D442F;
}
.insight-card:first-child .insight-card__cat{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.09);
  color:#F2D9CA;
}
.practice-key__item,
.practice-key__item--terra,
.practice-key__item--gold,
.practice-key__item--stone{
  border-color:var(--line);
  background:transparent;
  color:#4F555A;
}
.practice-key__item::before{
  content:"";
  width:5px;height:5px;margin-right:7px;border-radius:50%;background:var(--terracotta)
}
.practice-card::after,
.practice-card:nth-child(3n+1)::after,
.practice-card:nth-child(3n+2)::after,
.practice-card:nth-child(3n)::after{
  background:rgba(7,29,54,.035)
}
.client-card::before{border-color:rgba(7,29,54,.10)}
.process-step{border-top-color:var(--navy)}
.process-step span{color:#BDAA7D}

/* Keep photographs natural */
.about-photo img,.team-card img{filter:none!important}

/* A slightly tighter, more premium rhythm */
.section{padding:clamp(64px,6.8vw,98px) 0}
.section-head{margin-bottom:clamp(32px,4vw,52px)}
.motif-divider::before{opacity:.42}
.button:hover{background:var(--navy-2);border-color:var(--navy-2)}

@media(max-width:900px){
  .hero-geometry{width:92%;right:-22px;left:auto}
}
@media(max-width:640px){
  .hero-geometry{width:118%;right:-96px}
}



/* v6 — aligned editorial grid and partner cards */
:root{
  --page-gutter:60px;
  --content-max:1660px;
  --card-surface:#F0F2F5;
}
.container{
  width:min(var(--content-max),calc(100% - (var(--page-gutter) * 2)));
  margin-inline:auto;
}
.header-inner,.utility__inner,.footer .container{width:min(var(--content-max),calc(100% - (var(--page-gutter) * 2)));}
.aligned-section > .container,
.aligned-section .container{position:relative;}
.section{padding-block:clamp(56px,5.5vw,84px);}
.section-head{
  grid-template-columns:minmax(0,1.25fr) minmax(340px,.65fr);
  align-items:start;
  gap:clamp(42px,6vw,96px);
  margin-bottom:clamp(28px,3.8vw,46px);
  padding-top:18px;
}
.section-head h2{
  max-width:920px;
  font-size:clamp(2.1rem,3.25vw,3.8rem);
  font-weight:760;
  line-height:1.02;
  letter-spacing:-.045em;
}
.section-head p{max-width:620px;font-size:.98rem;line-height:1.7;}

/* Team / partner cards inspired by the strict editorial rhythm of large law-firm directories */
#team{background:#fff;}
#team .section-head{border-top:2px solid var(--navy);}
.team-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.team-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:var(--card-surface);
  border:0;
  border-bottom:3px solid transparent;
  overflow:hidden;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.team-card:hover{
  transform:translateY(-3px);
  border-bottom-color:var(--terracotta);
  box-shadow:0 16px 34px rgba(7,29,54,.08);
}
.team-card__media{
  aspect-ratio:4/4.35;
  background:#DCE1E6;
  overflow:hidden;
}
.team-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 22%;
  filter:none!important;
  transform:none;
  transition:transform .35s ease;
}
.team-card:hover img{transform:scale(1.018);}
.team-card__body{
  position:relative;
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:185px;
  padding:22px 24px 20px;
  background:var(--card-surface);
  border-top:1px solid rgba(7,29,54,.08);
}
.team-card__body::before{
  content:'LOYAL LEGAL ADVISORY';
  display:block;
  margin-bottom:12px;
  color:var(--terracotta);
  font-size:.67rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.13em;
}
.team-card h3{
  margin:0 0 10px;
  color:var(--navy);
  font-family:Inter,Arial,sans-serif;
  font-size:clamp(1.22rem,1.45vw,1.58rem);
  font-weight:800;
  line-height:1.16;
  letter-spacing:-.025em;
}
.team-card p{
  margin:0 0 22px;
  color:#44505D;
  font-size:.92rem;
  line-height:1.55;
}
.team-card__profile{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(7,29,54,.16);
  color:var(--navy);
  text-decoration:none;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.team-card__profile span{font-size:1.08rem;transition:transform .2s ease;}
.team-card:hover .team-card__profile span{transform:translate(2px,-2px);}

/* Keep all grids on the same left/right rails */
.insights-grid,.practice-grid,.client-grid,.process-grid,.request-grid,.case-grid,.team-grid{
  width:100%;
}
.insights-actions,.form-actions{align-items:flex-start;}

@media (max-width:1180px){
  :root{--page-gutter:36px;}
  .section-head{grid-template-columns:1fr;gap:18px;}
  .section-head p{max-width:820px;}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
  :root{--page-gutter:16px;}
  .container,.header-inner,.utility__inner,.footer .container{width:calc(100% - 32px);}
  .section{padding-block:46px;}
  .section-head h2{font-size:2rem;}
  .team-grid{grid-template-columns:1fr;gap:14px;}
  .team-card__media{aspect-ratio:4/4.1;}
  .team-card__body{min-height:0;padding:18px;}
}


/* v7 — balanced grid, compact team, two-office gallery and narrower form */
:root{
  --page-gutter:#E9E3D9;
}
main{
  background:var(--page-gutter);
  padding:26px 0;
}
main > .section,
main > .about-grid{
  margin:0 0 26px;
  box-shadow:0 1px 0 rgba(7,29,54,.06);
}
main > :last-child{margin-bottom:0;}

/* Stronger, smaller and more consistent section typography */
.section-head h2,
.about-copy h2,
.contact-copy h2{
  font-family:Inter,Arial,sans-serif!important;
  font-size:clamp(2rem,3.15vw,3.55rem)!important;
  font-weight:760!important;
  line-height:1.06!important;
  letter-spacing:-.045em!important;
}
.section-head{
  padding-top:18px;
  margin-bottom:clamp(30px,3.5vw,46px);
}
.section-head p{font-size:.94rem;line-height:1.66;}
.section{padding-block:clamp(62px,5.8vw,86px)!important;}

/* About: align to the same page grid and show exterior + interior without a long-table crop */
#about{
  width:var(--container);
  margin-inline:auto;
  grid-template-columns:minmax(0,1.04fr) minmax(420px,.96fr);
  align-items:stretch;
  overflow:hidden;
}
.office-gallery{
  display:grid;
  grid-template-rows:1.12fr .88fr;
  gap:10px;
  min-height:560px;
  padding:0;
  background:var(--page-gutter);
}
.office-shot{
  position:relative;
  margin:0;
  min-height:0;
  overflow:hidden;
  background:#d9d9d9;
}
.office-shot img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:none!important;
}
.office-shot--exterior img{object-position:center 54%;}
.office-shot--interior img{object-position:center 30%;}
.office-shot figcaption{
  position:absolute;
  left:16px;
  bottom:14px;
  padding:7px 10px;
  background:rgba(7,29,54,.88);
  color:#fff;
  font-size:.68rem;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.about-copy{padding:clamp(38px,4.2vw,64px);}
.about-copy p{font-size:.95rem;line-height:1.68;}
.about-points{margin-top:24px;}
.about-points div{padding:13px 0;}

/* Team cards: smaller portraits and a Paul Weiss-like grid */
#team .container{max-width:1360px;}
.team-grid{
  max-width:1280px;
  margin-inline:auto;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
}
.team-card:nth-child(5){grid-column:2;}
.team-card:nth-child(6){grid-column:3;}
.team-card__media{
  aspect-ratio:5/4!important;
  min-height:0!important;
  overflow:hidden;
}
.team-card img{
  object-fit:cover!important;
  object-position:center 18%!important;
  filter:none!important;
}
.team-card__body{
  min-height:142px!important;
  padding:15px 16px 16px!important;
}
.team-card h3{
  font-size:1.02rem!important;
  font-weight:760!important;
  margin-bottom:5px!important;
}
.team-card p{font-size:.78rem!important;line-height:1.45!important;}
.team-card__profile{margin-top:auto;padding-top:10px;font-size:.72rem;}

/* Compact frequent requests */
.request-link{min-height:74px;padding:14px 18px;font-size:.94rem;}

/* Contact: the form occupies roughly half the content width, not the whole page */
.contact-grid{
  grid-template-columns:minmax(280px,.9fr) minmax(430px,600px)!important;
  justify-content:space-between;
  gap:clamp(42px,6vw,92px)!important;
}
.form{
  width:100%;
  max-width:600px;
  justify-self:end;
  padding:22px!important;
}
.form h3{font-family:Inter,Arial,sans-serif!important;font-size:1.45rem!important;font-weight:760!important;}
.form input,.form select{min-height:42px!important;}
.form textarea{min-height:96px!important;}
.form-row{gap:10px!important;}
.form-actions{align-items:flex-start!important;flex-direction:column!important;gap:10px!important;}
.form-note{max-width:460px;}

/* Publications later in the page and a little denser */
#insights .insight-card{min-height:280px;}

@media(max-width:1180px){
  #about{grid-template-columns:1fr 1fr;}
  .team-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .team-card:nth-child(5),.team-card:nth-child(6){grid-column:auto;}
}
@media(max-width:900px){
  main{padding:18px 0;}
  main > .section,main > .about-grid{margin-bottom:18px;}
  #about{grid-template-columns:1fr;}
  .office-gallery{min-height:560px;}
  .contact-grid{grid-template-columns:1fr!important;}
  .form{justify-self:start;max-width:620px;}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:620px){
  .section{padding-block:46px!important;}
  .office-gallery{min-height:460px;grid-template-rows:1fr 1fr;}
  .team-grid{grid-template-columns:1fr!important;gap:14px!important;}
  .team-card__media{aspect-ratio:6/5!important;}
  .form-row{grid-template-columns:1fr!important;}
}


/* v8 — Paul Weiss-style rails, coherent portal, compact offices and editorial insight cards */
:root{
  --rail-max:1600px;
  --rail-gutter:clamp(28px,5.4vw,104px);
  --section-gap:28px;
  --page-gutter:#EEE9E1;
}
body{font-size:16px;background:var(--page-gutter);}
.container,
.header-inner,
.utility__inner,
.footer .container{
  width:min(var(--rail-max),calc(100% - (var(--rail-gutter) * 2)))!important;
  max-width:none!important;
  margin-inline:auto!important;
}
.hero-shell{
  width:min(var(--rail-max),calc(100% - (var(--rail-gutter) * 2)))!important;
  max-width:none!important;
  margin-inline:auto!important;
}
main{padding:var(--section-gap) 0;background:var(--page-gutter);}
main > .section,
main > .about-grid{
  margin:0 auto var(--section-gap)!important;
  box-shadow:none!important;
  border:0;
}
main > .section{width:100%;}
main > .section:last-child{margin-bottom:0!important;}
.section{padding-block:clamp(66px,5.5vw,92px)!important;}
.section-head{margin-bottom:clamp(30px,3.3vw,50px)!important;}
.section-head h2,.about-copy h2,.contact-copy h2{font-size:clamp(2rem,2.85vw,3.35rem)!important;font-weight:800!important;}
.section-head p{max-width:620px;}

/* One logical Uzbekistan-inspired gateway rather than separate blades */
.hero{grid-template-columns:minmax(0,.94fr) minmax(520px,1.06fr)!important;min-height:600px!important;}
.hero__copy{padding:clamp(46px,5vw,72px)!important;}
.hero__copy h1{font-size:clamp(2.75rem,4vw,4.65rem)!important;max-width:690px!important;font-weight:800!important;line-height:1.01!important;}
.hero-art{min-height:600px!important;}
.hero-art::before{opacity:.09!important;background-size:38px 38px!important;}
.hero-portal{inset:22px -12px 0 0!important;width:100%!important;height:calc(100% - 22px)!important;overflow:visible;}
.portal-layer{cursor:pointer;text-decoration:none;outline:none;}
.portal-fill{transition:transform .24s ease,filter .24s ease,opacity .24s ease;transform-origin:center bottom;}
.portal-layer:hover .portal-fill,.portal-layer:focus-visible .portal-fill{filter:brightness(1.05);transform:translateY(-7px);}
.portal-marker circle{fill:rgba(245,241,233,.13);stroke:#F5F1E9;stroke-width:1.2;transition:fill .2s ease;}
.portal-marker path{stroke:#F5F1E9;stroke-width:1.3;fill:none;transition:transform .22s ease;transform-origin:center;}
.portal-marker text{fill:#F5F1E9;font-family:Inter,Arial,sans-serif;font-size:15px;font-weight:800;letter-spacing:.03em;opacity:.82;}
.portal-layer:hover .portal-marker circle,.portal-layer:focus-visible .portal-marker circle{fill:rgba(245,241,233,.27);}
.portal-layer:hover .portal-marker path,.portal-layer:focus-visible .portal-marker path{transform:rotate(45deg);}

/* About / offices: two restrained images, not a full-screen table */
#about{
  width:min(var(--rail-max),calc(100% - (var(--rail-gutter) * 2)))!important;
  grid-template-columns:minmax(0,.92fr) minmax(460px,1.08fr)!important;
  min-height:0!important;
  background:#fff;
}
.office-gallery{
  display:grid!important;
  grid-template-columns:1.16fr .84fr!important;
  grid-template-rows:340px!important;
  gap:12px!important;
  min-height:0!important;
  height:340px!important;
  padding:0!important;
  align-self:center;
}
.office-shot{height:340px!important;min-height:0!important;}
.office-shot--exterior img{object-position:center 56%!important;}
.office-shot--interior img{object-position:center 18%!important;}
.about-copy{padding:clamp(38px,4vw,62px)!important;}
.about-copy p{font-size:.93rem!important;}

/* Team: exactly three compact partners per row */
#team .container{max-width:none!important;}
.team-grid{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
}
.team-card:nth-child(5),.team-card:nth-child(6){grid-column:auto!important;}
.team-card__media{aspect-ratio:1.2/1!important;max-height:340px!important;}
.team-card img{object-position:center 19%!important;}
.team-card__body{min-height:132px!important;padding:16px 18px 17px!important;}
.team-card__body::before{margin-bottom:9px!important;font-size:.61rem!important;}
.team-card h3{font-size:1.12rem!important;font-weight:800!important;}
.team-card p{font-size:.78rem!important;margin-bottom:14px!important;}
.team-card__profile{padding-top:9px!important;font-size:.69rem!important;}

/* Actual content rails also govern dense lists */
.request-grid,.scenario-list,.practice-grid,.client-grid,.process-grid,.case-grid,.insights-grid{min-width:0;}
.request-link{overflow:hidden;}

/* Editorial publications with topical stock photos */
.insights-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
  border:0!important;
}
.insight-card,
.insight-card:first-child{
  min-height:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  color:var(--ink)!important;
  background:#fff!important;
  border:1px solid rgba(7,29,54,.12)!important;
  transform:none;
}
.insight-card:first-child::after{display:none!important;}
.insight-card__media{display:block;height:210px;overflow:hidden;background:#DCE1E6;}
.insight-card__media img{width:100%;height:100%;object-fit:cover;filter:saturate(.82) contrast(1.02);transition:transform .35s ease,filter .35s ease;}
.insight-card:hover .insight-card__media img{transform:scale(1.025);filter:saturate(1) contrast(1.02);}
.insight-card__body{display:flex;flex:1;flex-direction:column;padding:20px 20px 18px;}
.insight-card__cat,.insight-card:first-child .insight-card__cat{align-self:flex-start;background:transparent!important;border:0!important;border-radius:0!important;padding:0 0 8px!important;color:var(--terracotta)!important;font-size:.65rem!important;}
.insight-card h3{margin:0 0 13px!important;font-family:Inter,Arial,sans-serif!important;font-size:clamp(1.08rem,1.15vw,1.35rem)!important;font-weight:800!important;line-height:1.18!important;}
.insight-card p,.insight-card:first-child p{margin:0 0 18px!important;color:var(--muted)!important;font-size:.82rem!important;line-height:1.5!important;}
.insight-card .text-link{margin-top:auto;font-size:.76rem;}
.insight-card:hover{transform:translateY(-3px)!important;box-shadow:0 14px 34px rgba(7,29,54,.08)!important;}

/* The enquiry form remains deliberately narrow */
.contact-grid{grid-template-columns:minmax(300px,.9fr) minmax(420px,520px)!important;}
.form{max-width:520px!important;padding:20px!important;}
.form h3{font-size:1.32rem!important;}
.form input,.form select{min-height:40px!important;}
.form textarea{min-height:88px!important;}

@media(max-width:1200px){
  .insights-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .team-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  #about{grid-template-columns:1fr!important;}
  .office-gallery{grid-template-rows:300px!important;height:300px!important;}
  .office-shot{height:300px!important;}
}
@media(max-width:900px){
  :root{--rail-gutter:24px;--section-gap:18px;}
  .hero{grid-template-columns:1fr!important;}
  .hero-art{min-height:470px!important;}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .contact-grid{grid-template-columns:1fr!important;}
  .form{justify-self:start!important;}
}
@media(max-width:640px){
  :root{--rail-gutter:16px;}
  .office-gallery{grid-template-columns:1fr!important;grid-template-rows:230px 190px!important;height:432px!important;}
  .office-shot{height:auto!important;}
  .team-grid,.insights-grid{grid-template-columns:1fr!important;}
  .team-card__media{aspect-ratio:6/5!important;max-height:none!important;}
  .hero-portal{width:122%!important;right:-90px!important;}
}


/* v9 — final editorial refinement */
:root{
  --rail-max:1640px;
  --rail-gutter:clamp(34px,6.2vw,118px);
  --section-gap:34px;
  --soft-grey:#F0F2F4;
}
body{
  font-family:Inter,"Helvetica Neue",Arial,sans-serif;
  letter-spacing:-.006em;
}
main{padding-top:var(--section-gap);}
.section{padding-block:clamp(62px,5vw,84px)!important;}
.section-head{
  grid-template-columns:minmax(0,1.05fr) minmax(310px,.62fr)!important;
  align-items:start!important;
  padding-top:18px!important;
  border-top:2px solid var(--navy)!important;
}
.section-head h2,.about-copy h2,.contact-copy h2,.partner-copy h2,.tax-intro h2{
  font-family:Inter,"Helvetica Neue",Arial,sans-serif!important;
  font-weight:820!important;
  letter-spacing:-.045em!important;
  line-height:1.02!important;
}
.section-head h2{max-width:920px;}
.section-head p{font-size:.93rem;line-height:1.55;}
.eyebrow{color:var(--terracotta);letter-spacing:.14em;}
.button{
  min-height:48px;
  border-radius:0;
  padding-inline:22px;
  letter-spacing:.045em;
  text-transform:uppercase;
  font-size:.75rem;
}
.button:hover{transform:translateY(-1px);}

/* Header: calmer and more intentional */
.top-shell{padding-bottom:24px;}
.header-inner{min-height:92px!important;}
.main-nav>a,.nav-dropdown>summary{position:relative;font-size:.73rem!important;}
.main-nav>a::after,.nav-dropdown>summary::before{
  content:"";position:absolute;left:0;right:0;bottom:7px;height:2px;background:#E0A278;
  transform:scaleX(0);transform-origin:left;transition:transform .2s ease;
}
.main-nav>a:hover::after,.nav-dropdown>summary:hover::before,.nav-dropdown[open]>summary::before{transform:scaleX(1);}
.nav-dropdown--services .dropdown-panel{
  width:min(760px,92vw)!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:0 16px!important;
  padding:18px!important;
}
.nav-dropdown--insights .dropdown-panel{width:min(420px,88vw)!important;}
.dropdown-panel a{font-size:.83rem!important;line-height:1.3;}
.search-button{transition:background .2s ease,color .2s ease;}
.search-button:hover{background:#fff;color:var(--navy);}

/* Hero: less bulky, more breathing room, more coherent portal */
.hero{min-height:560px!important;grid-template-columns:minmax(0,1fr) minmax(500px,.96fr)!important;}
.hero__copy{padding:clamp(42px,4.6vw,68px)!important;}
.hero__copy h1{
  max-width:650px!important;
  font-size:clamp(2.55rem,3.75vw,4.25rem)!important;
  line-height:1.02!important;
  margin-bottom:20px!important;
}
.hero__lead{max-width:600px!important;font-size:1rem!important;line-height:1.58!important;}
.hero-art{min-height:560px!important;background:#F3EEE6!important;}
.hero-portal{
  inset:40px -8px 0 28px!important;
  width:calc(100% - 12px)!important;
  height:calc(100% - 40px)!important;
  transform:scale(.92);
  transform-origin:center bottom;
}
.portal-marker text{font-size:14px!important;}
.portal-marker circle{fill:rgba(245,241,233,.18)!important;}

/* Useful practice rail under hero */
.hero-practice-rail{
  width:min(var(--rail-max),calc(100% - (var(--rail-gutter) * 2)));
  margin:0 auto;
  display:grid;
  grid-template-columns:1.08fr 1.35fr 1.18fr 1fr;
  background:#fff;
  border-top:6px solid #C6D2DC;
  border-left:1px solid var(--line);
}
.hero-practice-rail a{
  min-height:92px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 24px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--navy);
  text-decoration:none;
  font-size:1rem;
  font-weight:800;
  line-height:1.25;
  transition:background .2s ease,color .2s ease;
}
.hero-practice-rail a span{color:var(--terracotta);font-size:.68rem;letter-spacing:.1em;}
.hero-practice-rail a:hover{background:var(--navy);color:#fff;}
.hero-practice-rail a:hover span{color:#E8B997;}
.motif-divider--slim{height:26px!important;background:var(--page-gutter)!important;}
.motif-divider--slim::before{top:5px!important;height:16px!important;background-size:78px 22px!important;opacity:.38!important;}

/* About and office gallery */
#about{grid-template-columns:minmax(0,.9fr) minmax(480px,1.1fr)!important;}
.office-gallery{height:300px!important;grid-template-rows:300px!important;gap:10px!important;}
.office-shot{height:300px!important;position:relative;}
.office-shot::after{
  content:"";position:absolute;inset:auto 0 0;height:54px;
  background:linear-gradient(180deg,transparent,rgba(7,29,54,.28));pointer-events:none;
}
.office-shot img{filter:none!important;}
.about-copy{padding:clamp(36px,3.7vw,58px)!important;}
.about-points div{padding:13px 0!important;}

/* Team cards: compact, aligned and premium */
.team-grid{gap:24px!important;}
.team-card{
  border:0!important;
  border-top:4px solid var(--navy)!important;
  background:var(--soft-grey)!important;
  box-shadow:0 0 0 1px rgba(7,29,54,.08);
}
.team-card__media{aspect-ratio:1.28/1!important;max-height:315px!important;background:#DDE2E6!important;}
.team-card img{filter:none!important;transform:none!important;}
.team-card:hover img{transform:scale(1.012)!important;}
.team-card__body{min-height:142px!important;padding:18px 20px 16px!important;background:var(--soft-grey)!important;}
.team-card h3{
  font-family:Inter,"Helvetica Neue",Arial,sans-serif!important;
  font-size:1.16rem!important;
  font-weight:820!important;
  letter-spacing:-.025em!important;
}
.team-card p{font-size:.8rem!important;line-height:1.45!important;}
.team-card__profile{border-top:1px solid rgba(7,29,54,.12)!important;}

/* Dense content is easier to scan */
.scenario summary{min-height:70px;}
.scenario summary strong,.request-link{font-size:.98rem!important;}
.practice-card summary{min-height:158px!important;padding:24px!important;}
.practice-card h3{font-family:Inter,"Helvetica Neue",Arial,sans-serif!important;font-size:1.25rem!important;font-weight:800!important;}
.practice-card__num{margin-bottom:28px!important;}
.client-card{min-height:270px!important;}
.client-card h3{font-family:Inter,"Helvetica Neue",Arial,sans-serif!important;font-size:1.35rem!important;font-weight:800!important;margin-top:58px!important;}
.process-step{min-height:280px!important;}
.case-card{min-height:270px!important;}
.case-card h3{font-family:Inter,"Helvetica Neue",Arial,sans-serif!important;font-size:1.18rem!important;font-weight:760!important;}

/* Insights are editorial, not catalogue-like */
.insight-card__media{height:190px!important;}
.insight-card__body{padding:18px 18px 17px!important;}
.insight-card h3{font-size:1.12rem!important;}
.insight-card:hover{transform:none!important;border-color:rgba(7,29,54,.28)!important;box-shadow:none!important;}
.insight-card:hover .insight-card__media img{transform:scale(1.018)!important;}

/* Contact: stronger direct-contact hierarchy */
.contact-grid{grid-template-columns:minmax(300px,.92fr) minmax(400px,500px)!important;gap:clamp(48px,6vw,92px)!important;}
.contact-actions{display:grid;gap:8px;margin-top:26px;}
.contact-actions a{
  min-height:58px;display:grid;grid-template-columns:90px 1fr;align-items:center;gap:18px;
  padding:12px 14px;border:1px solid var(--line);background:#fff;text-decoration:none;
  transition:background .2s ease,border-color .2s ease;
}
.contact-actions a span{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;font-weight:800;}
.contact-actions a strong{font-size:.9rem;}
.contact-actions a:hover{background:var(--navy);border-color:var(--navy);color:#fff;}
.contact-actions a:hover span{color:#E8B997;}
.form{max-width:500px!important;padding:22px!important;}
.form input,.form select,.form textarea{background:#fff!important;}
.form-actions{align-items:flex-end!important;}

/* Footer remains the visual anchor */
.footer{padding-top:68px!important;}
.footer-grid{gap:56px!important;}
.footer nav a{font-size:.88rem;}

@media(max-width:1100px){
  .hero-practice-rail{grid-template-columns:1fr 1fr;}
  .hero-practice-rail a{min-height:76px;}
  .nav-dropdown--services .dropdown-panel{grid-template-columns:1fr!important;}
}
@media(max-width:900px){
  .hero{grid-template-columns:1fr!important;}
  .hero-art{min-height:430px!important;}
  .hero-portal{inset:15px -35px 0 10px!important;width:110%!important;}
  #about{grid-template-columns:1fr!important;}
  .contact-grid{grid-template-columns:1fr!important;}
  .form{max-width:560px!important;}
}
@media(max-width:640px){
  .hero-practice-rail{grid-template-columns:1fr;}
  .hero-practice-rail a{min-height:62px;padding:14px 16px;}
  .office-gallery{height:420px!important;grid-template-rows:225px 185px!important;}
  .team-grid{grid-template-columns:1fr!important;}
  .team-card__media{aspect-ratio:6/5!important;max-height:none!important;}
  .contact-actions a{grid-template-columns:78px 1fr;}
}


/* v10 — clearer portal labels and cleaner team heading */
#team .section-head{grid-template-columns:1fr!important;max-width:980px!important;}
#team .section-head>div{max-width:760px;}

.portal-label-card{
  pointer-events:none;
  transition:transform .22s ease;
}
.portal-label-card__surface{
  fill:rgba(245,241,233,.96);
  stroke:rgba(7,29,54,.18);
  stroke-width:1;
  filter:drop-shadow(0 8px 18px rgba(7,29,54,.10));
  transition:fill .22s ease,stroke .22s ease;
}
.portal-label-card__num{
  fill:#B9683F;
  font-family:Inter,Arial,sans-serif;
  font-size:11px;
  font-weight:850;
  letter-spacing:.14em;
}
.portal-label-card__text{
  fill:#071D36;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  font-weight:850;
  letter-spacing:.055em;
}
.portal-label-card__arrow{
  fill:none;
  stroke:#071D36;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .22s ease;
  transform-box:fill-box;
  transform-origin:center;
}
.portal-layer:hover .portal-label-card,
.portal-layer:focus-visible .portal-label-card{
  transform:translateY(-7px);
}
.portal-layer:hover .portal-label-card__surface,
.portal-layer:focus-visible .portal-label-card__surface{
  fill:#FFFFFF;
  stroke:#B9683F;
}
.portal-layer:hover .portal-label-card__arrow,
.portal-layer:focus-visible .portal-label-card__arrow{
  transform:translateX(4px);
}

@media (max-width:760px){
  .portal-label-card__text{font-size:12px;letter-spacing:.035em;}
  .portal-label-card__num{font-size:9px;}
}


/* v11 — abstract legal pathways; warmer palette, no temple silhouette */
.hero-art{
  background:linear-gradient(180deg,#FBF7F0 0%,#F3ECE2 100%)!important;
}
.hero-art::before{
  opacity:.10!important;
  background-size:42px 42px!important;
  mask-image:linear-gradient(to left,#000 0 64%,transparent 96%)!important;
}
.hero-pathways{
  position:absolute;
  inset:14px -8px 0 0;
  width:calc(100% + 8px);
  height:calc(100% - 14px);
  overflow:visible;
}
.pathway-layer{
  cursor:pointer;
  outline:none;
  text-decoration:none;
}
.pathway-card{
  transform-box:fill-box;
  transform-origin:center bottom;
  transition:transform .28s ease,filter .28s ease;
}
.pathway-fill{
  transition:filter .28s ease,opacity .28s ease;
}
.pathway-layer:hover .pathway-card,
.pathway-layer:focus-visible .pathway-card{
  transform:translateY(-8px);
}
.pathway-layer:hover .pathway-fill,
.pathway-layer:focus-visible .pathway-fill{
  filter:brightness(1.035) saturate(1.03);
}
.pathway-layer:focus-visible .pathway-fill{
  stroke:#B9683F;
  stroke-width:4;
}
.pathway-num{
  fill:#7A6242;
  font:800 10px Inter,Arial,sans-serif;
  letter-spacing:.16em;
}
.pathway-title{
  fill:#071D36;
  font:800 17px Inter,Arial,sans-serif;
  letter-spacing:.055em;
}
.pathway-sub{
  fill:#31404E;
  font:600 10px Inter,Arial,sans-serif;
  letter-spacing:.035em;
  opacity:.84;
}
.pathway-num--light,
.pathway-title--light,
.pathway-sub--light{
  fill:#FFF8EF;
}
.pathway-sub--light{opacity:.78}

/* replace cold grey accents with warm stone throughout */
:root{
  --stone-warm:#D8D0C4;
  --stone-light:#F0EBE3;
}
.practice-key__item--stone{
  border-color:#D8CFC2!important;
  color:#5B5045!important;
  background:#F2EDE6!important;
}
.team-card__media{
  background:#E7E0D7!important;
}

@media(max-width:1180px){
  .hero-pathways{right:-44px;width:108%}
}
@media(max-width:900px){
  .hero-pathways{inset:8px -18px 0 auto;width:92%;height:calc(100% - 8px)}
}
@media(max-width:640px){
  .hero-pathways{width:118%;right:-92px}
  .pathway-title{font-size:15px}
  .pathway-sub{font-size:9px}
}



/* Approved v11 layout update: reordered content and compact partner portraits */
#team .team-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;
}
#team .team-card__media{
  aspect-ratio:1.42/1!important;
  max-height:275px!important;
  min-height:0!important;
  background:#E7E0D7!important;
}
#team .team-card img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center top!important;
  transform:none!important;
}
#team .team-card:hover img{
  transform:scale(1.008)!important;
}
#team .team-card__body{
  min-height:132px!important;
  padding:16px 18px 15px!important;
}
#team .team-card h3{
  font-size:1.08rem!important;
}
#team .team-card p{
  font-size:.77rem!important;
}
#team .section-head{
  margin-bottom:34px!important;
}

@media(max-width:980px){
  #team .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:640px){
  #team .team-grid{grid-template-columns:1fr!important;}
  #team .team-card__media{aspect-ratio:1.28/1!important;max-height:320px!important;}
}


/* v11-light — same approved page, lighter contemporary hero graphic */
.hero-art{
  background:linear-gradient(180deg,#F8F4ED 0%,#F2ECE2 100%)!important;
}
.hero-art::before{
  opacity:.10!important;
  background-size:34px 34px!important;
}
.hero-pathways-modern{
  inset:44px 8px 0 5%!important;
  width:92%!important;
  height:calc(100% - 44px)!important;
  overflow:visible!important;
}
.modern-guides{opacity:.32}
.modern-guides path{fill:none;stroke:#DCCFBE;stroke-width:1}
.modern-card{
  transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .32s ease;
  transform-origin:center bottom;
}
.modern-fill,.modern-fold{transition:filter .32s ease,opacity .32s ease}
.modern-layer:hover .modern-card,
.modern-layer:focus-visible .modern-card{
  transform:none;
}
.modern-layer:hover .modern-fill,
.modern-layer:focus-visible .modern-fill{
  filter:brightness(1.025) saturate(1.015);
}
.modern-layer:focus-visible .modern-fill{
  stroke:#B9683F;
  stroke-width:3;
}

.modern-base{fill:none;stroke-linecap:square}
.modern-base--navy{stroke:#071D36;stroke-width:4}
.modern-base--terra{stroke:#B9683F;stroke-width:1.2;opacity:.72}
.hero-pathways-modern .pathway-num{font-size:9px;letter-spacing:.18em}
.hero-pathways-modern .pathway-title{font-size:15px;letter-spacing:.07em}
.hero-pathways-modern .pathway-sub{display:none}

@media(max-width:1180px){
  .hero-pathways-modern{right:-20px!important;left:auto!important;width:98%!important}
}
@media(max-width:900px){
  .hero-pathways-modern{inset:20px -20px 0 auto!important;width:90%!important;height:calc(100% - 20px)!important}
}
@media(max-width:640px){
  .hero-pathways-modern{width:116%!important;right:-92px!important}
  .hero-pathways-modern .pathway-title{font-size:13px}
}


/* WordPress templates and editor content */

/* ==========================================================
   WordPress integration
   ========================================================== */

.top-shell--inner {
  background: #071D36;
}

.top-shell--inner .site-header {
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.wp-primary-menu,
.wp-primary-menu .sub-menu,
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-primary-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.wp-primary-menu > li {
  position: relative;
}

.wp-primary-menu > li > a {
  display: block;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wp-primary-menu .menu-item-has-children > a::after {
  content: "⌄";
  margin-left: 7px;
  color: #B9683F;
}

.wp-primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  z-index: 80;
  display: none;
  min-width: 310px;
  padding: 14px;
  background: #F7F2E9;
  border: 1px solid rgba(7,29,54,.12);
  box-shadow: 0 20px 44px rgba(7,29,54,.18);
}

.wp-primary-menu li:hover > .sub-menu,
.wp-primary-menu li:focus-within > .sub-menu {
  display: grid;
}

.wp-primary-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  color: #071D36;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-transform: none;
}

.wp-primary-menu .sub-menu a:hover {
  background: rgba(185,104,63,.08);
}

.footer-menu {
  display: grid;
  gap: 9px;
}

.footer-menu a {
  text-decoration: none;
}

.loyal-inner-page,
.loyal-blog-index {
  padding: clamp(64px, 8vw, 112px) 0;
  background: #F7F2E9;
}

.loyal-inner-page__container {
  max-width: 1180px;
}

.loyal-entry {
  max-width: 920px;
  margin: 0 auto;
}

.loyal-entry__header {
  margin-bottom: 42px;
}

.loyal-entry__kicker {
  margin: 0 0 14px;
  color: #B9683F;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.loyal-entry__kicker a {
  color: inherit;
  text-decoration: none;
}

.loyal-entry__header h1,
.loyal-index-header h1 {
  max-width: 920px;
  margin: 0;
  color: #071D36;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.loyal-entry__featured {
  margin: 0 0 44px;
}

.loyal-entry__featured img {
  width: 100%;
  height: auto;
  display: block;
}

.loyal-entry__content {
  color: #282B30;
  font-size: 18px;
  line-height: 1.72;
}

.loyal-entry__content > * {
  max-width: 820px;
}

.loyal-entry__content > .alignwide {
  max-width: 1120px;
  margin-left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 48px));
}

.loyal-entry__content > .alignfull {
  max-width: none;
  margin-left: calc(50% - 50vw);
  width: 100vw;
}

.loyal-entry__content h2,
.loyal-entry__content h3 {
  margin-top: 1.8em;
  color: #071D36;
}

.loyal-entry__content a {
  color: #9B4F31;
}

.loyal-entry__content img {
  max-width: 100%;
  height: auto;
}

.loyal-child-pages {
  margin-top: 70px;
  padding-top: 38px;
  border-top: 1px solid rgba(7,29,54,.16);
}

.loyal-child-pages h2 {
  margin: 0 0 24px;
  color: #071D36;
}

.loyal-child-pages__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.loyal-child-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  color: #071D36;
  border: 1px solid rgba(7,29,54,.16);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.loyal-child-card:hover {
  color: #fff;
  border-color: #071D36;
  background: #071D36;
}

.loyal-index-header {
  margin-bottom: 50px;
}

.loyal-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.loyal-post-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7,29,54,.12);
}

.loyal-post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.loyal-post-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.loyal-post-card:hover .loyal-post-card__image img {
  transform: scale(1.025);
}

.loyal-post-card__body {
  padding: 24px;
}

.loyal-post-card__meta {
  color: #B9683F;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.loyal-post-card h2 {
  margin: 10px 0 14px;
  color: #071D36;
  font-size: 25px;
  line-height: 1.15;
}

.loyal-post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.navigation.pagination {
  margin-top: 48px;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 980px) {
  .wp-primary-menu {
    gap: 20px;
  }

  .loyal-post-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .main-nav.mobile-open .wp-primary-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.mobile-open .wp-primary-menu > li > a {
    padding: 12px 0;
  }

  .main-nav.mobile-open .wp-primary-menu .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 4px 0 12px 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-nav.mobile-open .wp-primary-menu .sub-menu a {
    color: rgba(255,255,255,.78);
  }

  .loyal-child-pages__grid,
  .loyal-post-grid {
    grid-template-columns: 1fr;
  }

  .admin-bar .site-header {
    top: 46px;
  }
}



/* ==========================================================
   v2.1 — exact approved service names in hero graphic
   ========================================================== */

.hero-pathways-modern .pathway-title--service {
  font-size: 10.4px;
  font-weight: 800;
  letter-spacing: .018em;
  line-height: 1.12;
}

.hero-pathways-modern .pathway-title--corporate {
  font-size: 9.7px;
  letter-spacing: .012em;
}

.hero-pathways-modern .pathway-title--tax {
  font-size: 11.2px;
  letter-spacing: .018em;
}

.hero-pathways-modern .pathway-title--ip {
  font-size: 9.8px;
  letter-spacing: .008em;
}

.hero-practice-rail > a {
  min-width: 0;
  line-height: 1.3;
}

.hero-practice-rail > a:nth-child(3) {
  font-size: 14px;
}



@media (max-width: 1180px) {
  .hero-pathways-modern .pathway-title--service {
    font-size: 9.5px;
  }

  .hero-pathways-modern .pathway-title--corporate {
    font-size: 8.8px;
  }

  .hero-pathways-modern .pathway-title--tax {
    font-size: 10.3px;
  }

  .hero-pathways-modern .pathway-title--ip {
    font-size: 9px;
  }
}

@media (max-width: 760px) {
  .hero-practice-rail > a:nth-child(3) {
    font-size: 13px;
  }
}


/* ==========================================================
   v2.2 — original logo, stable labels, optimized portraits
   ========================================================== */

.brand--original {
  display: inline-flex;
  width: 194px;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
}

.brand--original .brand__logo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand--footer {
  width: 222px;
  margin-bottom: 18px;
}

.hero-pathways-modern .modern-label {
  pointer-events: none;
}

.hero-pathways-modern .modern-card,
.modern-layer:hover .modern-card,
.modern-layer:focus-visible .modern-card {
  transform: none;
}

.team-card img {
  content-visibility: auto;
}

@media (max-width: 980px) {
  .brand--header {
    width: 172px;
  }
}

@media (max-width: 640px) {
  .brand--header {
    width: 148px;
  }

  .brand--footer {
    width: 190px;
  }
}


/* ==========================================================
   v2.3 — original logo, stable hero labels, faster rendering
   ========================================================== */

/* SVG coordinates remain controlled by the transform attributes
   inside hero.php. No CSS transform is allowed on the cards or labels. */
.hero-pathways-modern .modern-card,
.hero-pathways-modern .pathway-card,
.hero-pathways-modern .modern-layer:hover .modern-card,
.hero-pathways-modern .modern-layer:focus-visible .modern-card,
.hero-pathways-modern .pathway-layer:hover .pathway-card,
.hero-pathways-modern .pathway-layer:focus-visible .pathway-card {
  transform: none !important;
}

.hero-pathways-modern .modern-label,
.hero-pathways-modern .modern-layer:hover .modern-label,
.hero-pathways-modern .modern-layer:focus-visible .modern-label {
  pointer-events: none;
}

/* Hover keeps the graphic alive without moving its geometry or text. */
.hero-pathways-modern .modern-fill,
.hero-pathways-modern .modern-fold {
  transform: none !important;
  transition: filter .22s ease, opacity .22s ease !important;
}

.hero-pathways-modern .modern-layer:hover .modern-fill,
.hero-pathways-modern .modern-layer:focus-visible .modern-fill {
  transform: none !important;
  filter: brightness(1.035) saturate(1.02);
}

/* The exact original logo is an image, not recreated typography. */
.brand--original {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.brand--header {
  width: 178px;
}

.brand--footer {
  width: 222px;
}

.brand__logo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Improve initial rendering of sections below the fold.
   Images remain separate cacheable WebP files and load lazily. */
main > .section {
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

.team-card img,
.insight-card img {
  content-visibility: auto;
}

@media (max-width: 980px) {
  .brand--header {
    width: 168px;
  }
}

@media (max-width: 640px) {
  .brand--header {
    width: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pathways-modern .modern-fill,
  .hero-pathways-modern .modern-fold {
    transition: none !important;
  }
}


/* ==========================================================
   v2.4 — exact original logo and subtle shape-only animation
   ========================================================== */

/* Exact logo supplied by the client.
   It must stay compact and proportional inside the 92px header. */
.site-header .brand--header {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
  overflow: visible !important;
}

.site-header .brand--header .brand__logo-image {
  width: 150px !important;
  height: auto !important;
  max-width: 150px !important;
  max-height: 74px !important;
  display: block !important;
  object-fit: contain !important;
}

.footer .brand--footer {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
}

.footer .brand--footer .brand__logo-image {
  width: 190px !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* Never move the SVG card or its labels. */
.hero-pathways-modern .modern-card,
.hero-pathways-modern .modern-label,
.hero-pathways-modern .modern-layer:hover .modern-card,
.hero-pathways-modern .modern-layer:focus-visible .modern-card,
.hero-pathways-modern .modern-layer:hover .modern-label,
.hero-pathways-modern .modern-layer:focus-visible .modern-label {
  transform: none !important;
}

/* Animate only the architectural form.
   The movement is deliberately small: 4px, not the old 8px jump. */
.hero-pathways-modern .modern-shape {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: translateY(0) scale(1);
  transition:
    transform .26s cubic-bezier(.2,.75,.25,1),
    filter .26s ease;
  will-change: transform;
}

.hero-pathways-modern .modern-layer:hover .modern-shape,
.hero-pathways-modern .modern-layer:focus-visible .modern-shape {
  transform: translateY(-4px) scale(1.006);
  filter: drop-shadow(0 10px 12px rgba(7,29,54,.10));
}

/* Slight colour response, without moving any individual path. */
.hero-pathways-modern .modern-fill,
.hero-pathways-modern .modern-fold {
  transition: filter .26s ease, opacity .26s ease !important;
}

.hero-pathways-modern .modern-layer:hover .modern-fill,
.hero-pathways-modern .modern-layer:focus-visible .modern-fill {
  filter: brightness(1.045) saturate(1.025);
}
.contact-phone-list {
  display: grid;
  gap: 6px;
}

.contact-phone-list a {
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.contact-phone-list a {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.contact-phone-list a:hover {
  color: #b9683f;
}

@media (max-width: 980px) {
  .site-header .brand--header,
  .site-header .brand--header .brand__logo-image {
    width: 142px !important;
    min-width: 142px !important;
    max-width: 142px !important;
  }
}

@media (max-width: 640px) {
  .site-header .brand--header,
  .site-header .brand--header .brand__logo-image {
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
  }

  .footer .brand--footer,
  .footer .brand--footer .brand__logo-image {
    width: 172px !important;
    min-width: 172px !important;
    max-width: 172px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pathways-modern .modern-shape {
    transition: none !important;
  }

  .hero-pathways-modern .modern-layer:hover .modern-shape,
  .hero-pathways-modern .modern-layer:focus-visible .modern-shape {
    transform: none !important;
    filter: none !important;
  }
}


/* ==========================================================
   v2.5 — contacts, testimonials, news and graphic labels
   ========================================================== */

/* Larger, more legible labels inside the first two hero forms. */
.hero-pathways-modern .pathway-num {
  font-size: 10.4px !important;
  font-weight: 800 !important;
}

.hero-pathways-modern .pathway-title--corporate {
  font-size: 11.1px !important;
  letter-spacing: .006em !important;
  line-height: 1.08 !important;
}

.hero-pathways-modern .pathway-title--tax {
  font-size: 12.1px !important;
  letter-spacing: .006em !important;
}

.hero-pathways-modern .pathway-title--ip {
  font-size: 10.3px !important;
}

/* Testimonials */
.testimonials-section {
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  min-width: 0;
  padding: 28px;
  background: #F7F2E9;
  border: 1px solid rgba(7,29,54,.13);
}

.testimonial-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.testimonial-card__mark {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: .7;
}

.testimonial-card__sector {
  max-width: 180px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.testimonial-card h3 {
  min-height: 58px;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.24;
}

.testimonial-card > p,
.testimonial-card details p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.62;
}

.testimonial-card details {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(7,29,54,.12);
}

.testimonial-card summary {
  color: var(--navy);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  list-style: none;
}

.testimonial-card summary::-webkit-details-marker {
  display: none;
}

.testimonial-card summary::after {
  content: " +";
  color: var(--terracotta);
}

.testimonial-card details[open] summary::after {
  content: " −";
}

/* Footer messenger icons */
.footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.footer-messengers a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none;
}

.footer-messengers a:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.06);
}

.footer-messengers svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.footer-messengers span {
  font-size: .72rem;
  font-weight: 700;
}

.footer-phone-group {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-phone-group svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  fill: currentColor;
}

.footer-phone-group b {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-phone-group a {
  display: block !important;
  padding: 2px 0 !important;
  color: rgba(255, 255, 255, .76) !important;
  border: 0 !important;
  font-size: .78rem;
  line-height: 1.4;
}

.footer-phone-group a:hover {
  color: #fff !important;
}

/* New local editorial images */
#insights .insight-card__media img {
  background: #F5F1E9;
}

/* Avoid green/grey browser-preview effects coming from old screenshot. */
.theme-card-preview,
.screenshot {
  background: #071D36;
}

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card h3 {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .hero-pathways-modern .pathway-title--corporate {
    font-size: 10px !important;
  }

  .hero-pathways-modern .pathway-title--tax {
    font-size: 11px !important;
  }

  .testimonial-card {
    padding: 22px;
  }
}


/* ==========================================================
   v2.6 — team names, clean section heads and form option
   ========================================================== */

.section-head--single {
  display: block !important;
}

.section-head--single > div {
  max-width: 1040px;
}

.team-card__body {
  min-height: 176px !important;
}

.team-card h3 {
  font-size: 1rem !important;
  line-height: 1.23 !important;
  min-height: 2.46em;
  margin-bottom: 10px !important;
}

.team-card__role {
  color: var(--muted);
  font-size: .82rem !important;
  line-height: 1.48 !important;
}

@media (max-width: 760px) {
  .team-card__body {
    min-height: 0 !important;
  }

  .team-card h3 {
    min-height: 0;
    font-size: .94rem !important;
  }
}


/* ==========================================================
   v2.7 — source-based concise insight topics
   ========================================================== */

#insights .insight-card h3 {
  min-height: 2.35em;
  font-size: 1.08rem;
  line-height: 1.18;
}

#insights .insight-card__body > p {
  min-height: 4.55em;
}

@media (max-width: 760px) {
  #insights .insight-card h3,
  #insights .insight-card__body > p {
    min-height: 0;
  }
}


/*
 * LOYAL — стили только для template-parts/home/insights.php
 * Добавить в конец основного style.css темы.
 */

.loyal-insights {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 116px);
  padding-bottom: clamp(72px, 8vw, 112px);
  background: #fff;
}

.loyal-insights__header {
  max-width: 1040px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.loyal-insights__header .eyebrow {
  margin-bottom: 12px;
}

.loyal-insights__header h2 {
  max-width: 1050px;
  margin: 0;
  color: #151515;
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.loyal-insights__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.loyal-insights-card {
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(7, 29, 54, .14);
  transition:
    border-color .24s ease,
    box-shadow .24s ease,
    transform .24s ease;
}

.loyal-insights-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.loyal-insights-card__media {
  display: block;
  height: 218px;
  overflow: hidden;
  background: #e7e9ec;
}

.loyal-insights-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.84) contrast(1.02);
  transition:
    transform .38s ease,
    filter .38s ease;
}

.loyal-insights-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 20px;
}

.loyal-insights-card__category {
  margin-bottom: 12px;
  color: #b9683f;
  font-size: .69rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.loyal-insights-card h3 {
  margin: 0 0 14px;
  color: #151515;
  font-size: clamp(1.12rem, 1.22vw, 1.36rem);
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.loyal-insights-card p {
  margin: 0 0 22px;
  color: #686b70;
  font-size: .88rem;
  line-height: 1.55;
}

.loyal-insights-card__read {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  color: #151515;
  border-top: 1px solid rgba(7, 29, 54, .25);
  font-size: .78rem;
  font-weight: 800;
}

.loyal-insights-card__read span {
  color: #b9683f;
  transition: transform .22s ease;
}

.loyal-insights-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 29, 54, .3);
  box-shadow: 0 16px 38px rgba(7, 29, 54, .08);
}

.loyal-insights-card:hover .loyal-insights-card__media img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

.loyal-insights-card:hover .loyal-insights-card__read span {
  transform: translateX(4px);
}

.loyal-insights__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
}

.footer-contact-links .footer-phone-group a {
  display: block !important;
  width: max-content !important;
  max-width: 100% !important;
  padding: 2px 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
  grid-template-columns: none !important;
}

.footer-phone-group > div {
  min-width: 190px;
}

/* Верхняя строка: контакты и языки */

.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility__text {
  margin: 0;
}

.utility__right {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.utility-contacts {
  display: flex;
  align-items: center;
  gap: 4px;
}

.utility-contact {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .78);
  text-decoration: none !important;
  border: 0 !important;
  transition: color .2s ease;
}

.utility-contact svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.utility-contact:hover {
  color: #b9683f;
}

.utility-phone {
  position: relative;
}

.utility-phone > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 4px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}

.utility-phone > summary::-webkit-details-marker {
  display: none;
}

.utility-phone > summary svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: currentColor;
}

.utility-phone > summary:hover {
  color: #b9683f;
}

.utility-phone__dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 9999;
  width: 205px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(3, 18, 38, .24);
}

.utility-phone__dropdown a {
  display: block;
  padding: 8px 0;
  color: #071d36;
  border: 0 !important;
  border-bottom: 1px solid #e4ded5 !important;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none !important;
}

.utility-phone__dropdown a:last-child {
  border-bottom: 0 !important;
}

.utility-phone__dropdown a:hover {
  color: #b9683f;
}

.utility__right > .lang-switch {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

@media (max-width: 820px) {
  .utility__text {
    display: none;
  }

  .utility__inner {
    justify-content: flex-end;
  }

  .utility-phone > summary span {
    display: none;
  }

  .utility__right {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 1180px) {
  .loyal-insights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loyal-insights-card__media {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .loyal-insights__header h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .loyal-insights__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .loyal-insights-card__media {
    height: 220px;
  }

  .loyal-insights-card__content {
    padding: 20px 19px 18px;
  }

  .loyal-insights-card:hover {
    transform: none;
    box-shadow: none;
  }

  .loyal-insights__actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loyal-insights-card,
  .loyal-insights-card__media img,
  .loyal-insights-card__read span {
    transition: none;
  }

  .loyal-insights-card:hover,
  .loyal-insights-card:hover .loyal-insights-card__media img {
    transform: none;
  }
}



/* ==========================================================
   v2.9 — balanced insights, fixed hero labels, compact contacts
   ========================================================== */

/* The SVG label positions are now encoded as absolute coordinates
   inside hero.php. Do not apply transforms to the labels. */
.hero-pathways-modern .modern-label,
.hero-pathways-modern .modern-layer:hover .modern-label,
.hero-pathways-modern .modern-layer:focus-visible .modern-label {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}

/* Only the architectural forms move on hover. */
.hero-pathways-modern .modern-shape {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: translateY(0) scale(1);
  transition:
    transform .26s cubic-bezier(.2,.75,.25,1),
    filter .26s ease;
}

.hero-pathways-modern .modern-layer:hover .modern-shape,
.hero-pathways-modern .modern-layer:focus-visible .modern-shape {
  transform: translateY(-4px) scale(1.006);
  filter: drop-shadow(0 10px 12px rgba(7,29,54,.10));
}

/* Insights heading should not compete with the page hero. */
.loyal-insights__header {
  max-width: 820px !important;
  margin-bottom: clamp(32px, 4vw, 48px) !important;
}

.loyal-insights__header h2 {
  max-width: 820px !important;
  font-size: clamp(36px, 3.2vw, 52px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
}

/* A more editorial card proportion with real stock photography. */
.loyal-insights-card__media {
  height: 205px !important;
}

.loyal-insights-card__media img {
  filter: none !important;
}

.loyal-insights-card h3 {
  font-size: clamp(1.06rem, 1.1vw, 1.24rem) !important;
  line-height: 1.2 !important;
}

.loyal-insights-card p {
  font-size: .85rem !important;
  line-height: 1.52 !important;
}

/* Restore the cleaner contact block: no large messenger cards. */
.contact-copy .contact-details {
  margin-top: 30px;
}

/* Compact messenger list belongs in the footer. */
.footer-contact-links {
  display: grid;
  gap: 5px;
}

.footer-contact-links a {
  display: grid;
  grid-template-columns: 20px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: rgba(255,255,255,.76);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.footer-contact-links a:hover {
  color: #fff;
}

.footer-contact-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-contact-links span {
  min-width: 0;
  font-size: .77rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.footer-contact-links b {
  display: block;
  margin-bottom: 1px;
  color: #fff;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ==========================================================
   LOYAL — карусель отзывов
   ========================================================== */

.testimonials-carousel {
  position: relative;
}

.testimonials-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.testimonials-carousel__arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #071d36;
  background: transparent;
  border: 1px solid rgba(7, 29, 54, 0.25);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.testimonials-carousel__arrow:hover {
  color: #ffffff;
  background: #b9683f;
  border-color: #b9683f;
}

.testimonials-carousel__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.testimonials-carousel__arrow:disabled:hover {
  color: #071d36;
  background: transparent;
  border-color: rgba(7, 29, 54, 0.25);
}

/* На компьютере видно два отзыва */

.testimonials-carousel .testimonials-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 22px) / 2);
  gap: 22px;

  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.testimonials-carousel .testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonials-carousel .testimonial-card {
  min-width: 0;
  scroll-snap-align: start;
}

.testimonials-carousel__bottom {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.testimonials-carousel__show-all {
  padding: 13px 22px;
  color: #071d36;
  background: transparent;
  border: 1px solid #071d36;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.testimonials-carousel__show-all:hover {
  color: #ffffff;
  background: #071d36;
}

/* После нажатия «Показать все отзывы» */

.testimonials-carousel.is-expanded .testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
  scroll-snap-type: none;
}

.testimonials-carousel.is-expanded .testimonials-carousel__controls {
  display: none;
}

/* Планшет */

@media (max-width: 1000px) {
  .testimonials-carousel.is-expanded .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Телефон: видно по одному отзыву */

@media (max-width: 720px) {
  .testimonials-carousel .testimonials-grid {
    grid-auto-columns: 100%;
  }

  .testimonials-carousel.is-expanded .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .testimonials-carousel__controls {
    justify-content: flex-start;
  }

  .testimonials-carousel__arrow {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1180px) {
  .loyal-insights__header h2 {
    font-size: clamp(36px, 4.3vw, 48px) !important;
  }
}

@media (max-width: 640px) {
  .loyal-insights__header h2 {
    font-size: clamp(34px, 9vw, 43px) !important;
  }

  .loyal-insights-card__media {
    height: 215px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pathways-modern .modern-shape {
    transition: none !important;
  }

  .hero-pathways-modern .modern-layer:hover .modern-shape,
  .hero-pathways-modern .modern-layer:focus-visible .modern-shape {
    transform: none !important;
    filter: none !important;
  }
}


/* ==========================================================
   v3.0 — cookie consent banner
   ========================================================== */

.cookie-dialog-open {
  overflow: hidden;
}

.loyal-cookie[hidden] {
  display: none !important;
}

.loyal-cookie {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  opacity: 0;
  transition: opacity .22s ease;
}

.loyal-cookie.is-open {
  opacity: 1;
}

.loyal-cookie__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 38, .42);
  backdrop-filter: blur(3px);
}

.loyal-cookie__panel {
  position: relative;
  z-index: 1;
  width: min(590px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px;
  color: #282b30;
  background: #f7f2e9;
  border: 1px solid rgba(7, 29, 54, .16);
  box-shadow: 0 26px 80px rgba(3, 18, 38, .28);
  transform: translateY(18px);
  transition: transform .22s ease;
}

.loyal-cookie.is-open .loyal-cookie__panel {
  transform: translateY(0);
}

.loyal-cookie__eyebrow {
  margin: 0 0 10px;
  color: #b9683f;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.loyal-cookie h2 {
  max-width: 500px;
  margin: 0 0 16px;
  color: #071d36;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.loyal-cookie__summary > p:not(.loyal-cookie__eyebrow),
.loyal-cookie__settings > p:not(.loyal-cookie__eyebrow) {
  margin: 0;
  color: #5f6267;
  font-size: .94rem;
  line-height: 1.62;
}

.loyal-cookie a {
  color: #8f472d;
  text-underline-offset: 3px;
}

.loyal-cookie__actions,
.loyal-cookie__settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.loyal-cookie__actions .button,
.loyal-cookie__settings-actions .button {
  min-height: 46px;
  padding: 0 18px;
  font-size: .76rem;
}

.loyal-cookie__settings-button,
.loyal-cookie__back,
.cookie-settings-link {
  appearance: none;
  padding: 0;
  color: #071d36;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.loyal-cookie__settings-button {
  min-height: 46px;
  padding: 0 8px;
  font-size: .78rem;
  font-weight: 800;
}

.loyal-cookie__back {
  margin-bottom: 20px;
  color: #686b70;
  font-size: .78rem;
  font-weight: 700;
}

.loyal-cookie__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(7, 29, 54, .13);
}

.loyal-cookie__category h3,
.loyal-cookie__category strong {
  display: block;
  margin: 0 0 5px;
  color: #071d36;
  font-size: .94rem;
}

.loyal-cookie__category p,
.loyal-cookie__category small {
  display: block;
  margin: 0;
  color: #686b70;
  font-size: .78rem;
  line-height: 1.5;
}

.loyal-cookie__required {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #526458;
  background: #e9efe9;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.loyal-cookie__category--toggle {
  cursor: pointer;
}

.loyal-cookie-toggle {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 27px;
}

.loyal-cookie-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.loyal-cookie-toggle > span {
  position: absolute;
  inset: 0;
  background: #c4c7ca;
  border-radius: 999px;
  transition: background .2s ease;
}

.loyal-cookie-toggle > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(7, 29, 54, .2);
  transition: transform .2s ease;
}

.loyal-cookie-toggle input:checked + span {
  background: #b9683f;
}

.loyal-cookie-toggle input:checked + span::after {
  transform: translateX(21px);
}

.loyal-cookie-toggle input:focus-visible + span {
  outline: 3px solid rgba(185, 104, 63, .28);
  outline-offset: 3px;
}

.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cookie-settings-link {
  color: rgba(255, 255, 255, .52);
  font-size: .78rem;
}

.cookie-settings-link:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .loyal-cookie {
    padding: 10px;
  }

  .loyal-cookie__panel {
    max-height: calc(100vh - 20px);
    padding: 23px 19px;
  }

  .loyal-cookie__actions,
  .loyal-cookie__settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .loyal-cookie__actions .button,
  .loyal-cookie__settings-actions .button,
  .loyal-cookie__settings-button {
    width: 100%;
  }

  .loyal-cookie__category {
    gap: 14px;
    padding: 15px;
  }

  .footer-bottom__links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}



@media (prefers-reduced-motion: reduce) {
  .loyal-cookie,
  .loyal-cookie__panel,
  .loyal-cookie-toggle > span,
  .loyal-cookie-toggle > span::after {
    transition: none;
  }
}


/* ==========================================================
   v3.1 — mobile typography and section layout fix
   ========================================================== */

@media (max-width: 640px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section,
  .aligned-section,
  .section > .container,
  .section-head,
  .section-head > div {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .section {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .section > .container,
  .loyal-insights > .container {
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .section-head,
  #practices .section-head,
  #process .section-head,
  #clients .section-head,
  #testimonials .section-head,
  #requests .section-head {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
    margin-bottom: 28px !important;
    padding-top: 14px !important;
  }

  /* На мобильном оставляем только заголовки секций */
  .section-head > p {
    display: none !important;
  }

  .section-head h2,
  #practices .section-head h2,
  #process .section-head h2,
  #clients .section-head h2,
  #testimonials .section-head h2,
  #requests .section-head h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(32px, 9vw, 39px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.038em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  .section-head .eyebrow,
  .loyal-insights__header .eyebrow {
    margin-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  /* Новости и обзоры */
  .loyal-insights {
    padding-top: 46px !important;
    padding-bottom: 50px !important;
  }

  .loyal-insights__header {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }

  .loyal-insights__header h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 32px !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  /* Контактный блок: без длинного вводного текста */
  .contact-copy > p:not(.eyebrow) {
    display: none !important;
  }

  .contact-copy h2 {
    max-width: 100% !important;
    font-size: 34px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
  }

  /* Мобильные сетки */
  .practice-grid,
  .process-grid,
  .client-grid,
  .testimonials-grid,
  .request-grid,
  .loyal-insights__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .practice-card,
  .process-step,
  .client-card,
  .testimonial-card,
  .request-item,
  .loyal-insights-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .loyal-insights-card__media {
    height: 210px !important;
  }

  .loyal-insights-card h3 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .loyal-insights-card p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}


/*
 * LOYAL v3.2 — local mobile rail/header fix
 * Добавить В САМЫЙ КОНЕЦ style.css.
 */

.lang-switch--mobile,
.mobile-nav-tools {
  display: none;
}

@media (max-width: 820px) {

  /* 1. Третья практика больше не выглядит мельче остальных */
  .hero-practice-rail > a:nth-child(3) {
    font-size: 17px !important;
    line-height: 1.22 !important;
    white-space: normal !important;
  }

  /* 2. Верхнюю служебную строку на мобильном убираем */
  .utility {
    display: none !important;
  }

  /* 3. В шапке оставляем: логотип, язык справа, бургер */
  .header-inner {
    position: relative !important;
    min-height: 82px !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 14px !important;
  }

  .header-actions {
    justify-self: end !important;
    gap: 10px !important;
  }

  .header-actions > .search-button,
  .header-actions > .button {
    display: none !important;
  }

  .lang-switch--mobile {
    position: relative;
    z-index: 120;
    display: block !important;
  }

  .lang-switch--mobile summary {
    min-width: 46px;
    min-height: 46px;
    display: grid !important;
    place-items: center;
    padding: 0 10px;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.45);
    font-size: 13px;
    font-weight: 800;
  }

  .lang-switch--mobile .lang-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 9999 !important;
    width: 176px !important;
    min-width: 176px !important;
    max-height: none !important;
    padding: 8px !important;
    overflow: visible !important;
    color: #071d36 !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(3,18,38,.24) !important;
  }

  .lang-switch--mobile .lang-menu a {
    display: block !important;
    padding: 10px 11px !important;
    color: #071d36 !important;
  }

  .menu-button {
    display: grid !important;
    place-items: center;
    width: 46px !important;
    height: 46px !important;
    font-size: 22px;
  }

  /* 4. Всё остальное открывается внутри бургер-меню */
  .main-nav {
    display: none !important;
  }

  .main-nav.mobile-open {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 110 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    max-height: calc(100vh - 82px) !important;
    padding: 14px 20px 24px !important;
    overflow-y: auto !important;
    color: #fff !important;
    background: #071d36 !important;
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 20px 40px rgba(3,18,38,.25);
  }

  .main-nav.mobile-open > a,
  .main-nav.mobile-open > details > summary,
  .main-nav.mobile-open .wp-primary-menu > li > a {
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 0 !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: normal !important;
  }

  .main-nav.mobile-open .wp-primary-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .main-nav.mobile-open .wp-primary-menu .sub-menu,
  .main-nav.mobile-open .dropdown-panel {
    position: static !important;
    display: grid;
    width: 100% !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 4px 0 12px 14px !important;
    overflow: visible !important;
    transform: none !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .main-nav.mobile-open .wp-primary-menu .sub-menu a,
  .main-nav.mobile-open .dropdown-panel a {
    padding: 9px 0 !important;
    color: rgba(255,255,255,.78) !important;
    border-bottom: 0 !important;
    font-size: 13px !important;
  }

  .mobile-nav-tools {
    display: grid !important;
    gap: 10px;
    margin-top: 18px;
  }

.mobile-search-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}



  .mobile-contact-button {
    color: #fff;
    background: #b9683f;
    border: 1px solid #b9683f;
  }

  .mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  .hero-practice-rail > a:nth-child(3) {
    font-size: 16px !important;
  }
}

/* Мобильный первый экран: отступы, линия и положение графики */
@media (max-width: 640px) {

  /* Больше воздуха сверху, но меньше пустоты снизу */
  .hero__copy {
    justify-content: flex-start !important;
    padding: 50px 20px 12px !important;
  }

  /* Возвращаем хорошо заметную оранжевую линию */
  .hero__copy .decor-line {
    display: block !important;
    flex: 0 0 auto !important;
    width: 64px !important;
    height: 3px !important;
    margin: 0 0 18px !important;
    background: #B9683F !important;
    opacity: 1 !important;
  }

  .hero__copy h1 {
    margin: 0 0 18px !important;
  }

  .hero__lead {
    margin: 0 0 22px !important;
  }

  .hero__actions {
    margin: 0 !important;
  }

  /* Уменьшаем пустое пространство между текстом и деревьями */
  .hero-art {
    min-height: 355px !important;
    margin-top: -4px !important;
  }

  .hero-pathways-modern {
    top: -28px !important;
    right: -88px !important;
    bottom: auto !important;
    left: auto !important;
    width: 118% !important;
    height: calc(100% + 28px) !important;
  }
}

/* ==========================================================
   LOYAL — одинаковые подзаголовки на десктопе
   и читаемый текст внутри мобильной графики
   ========================================================== */


/* МАЛЕНЬКИЕ ПОДЗАГОЛОВКИ НА ДЕСКТОПЕ:
   УСЛУГИ, КОМАНДА, ЛОКАЛЬНАЯ ЭКСПЕРТИЗА и т. д. */

@media (min-width: 821px) {

  .eyebrow,
  .section-head .eyebrow,
  .contact-copy .eyebrow,
  .loyal-insights__header .eyebrow {
    margin: 0 0 12px !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.16em !important;

    text-transform: uppercase !important;
  }
}


/* На десктопе дополнительные мобильные подписи не показываем */

.hero-mobile-practice-labels {
  display: none;
}


/* МОБИЛЬНАЯ ГРАФИКА */

@media (max-width: 640px) {

  .hero-art {
    position: relative !important;
  }

  /* Скрываем слишком мелкие оригинальные подписи внутри SVG */
  .hero-pathways-modern .modern-label {
    display: none !important;
  }

  /* Выводим отдельные читаемые подписи поверх фигур */
  .hero-mobile-practice-labels {
    position: absolute;
    right: 13px;
    bottom: 33px;
    left: 13px;
    z-index: 10;

    display: grid;
    grid-template-columns:
      minmax(0, 0.92fr)
      minmax(0, 0.92fr)
      minmax(0, 1.05fr);
    gap: 7px;

    align-items: end;
    pointer-events: none;
  }

  .hero-mobile-practice-labels span {
    display: block;
    min-width: 0;

    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -0.01em;

    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  /* Первая светлая фигура */
  .hero-mobile-practice-labels span:nth-child(1) {
    padding-left: 5px;
    color: #071d36;
  }

  /* Оранжевая фигура */
  .hero-mobile-practice-labels span:nth-child(2) {
    padding-left: 4px;
    color: #ffffff;
  }

  /* Синяя фигура */
  .hero-mobile-practice-labels span:nth-child(3) {
    color: #ffffff;
    font-size: 10px;
  }
}


/* Самые узкие телефоны */

@media (max-width: 390px) {

  .hero-mobile-practice-labels {
    right: 9px;
    bottom: 30px;
    left: 9px;
    gap: 5px;
  }

  .hero-mobile-practice-labels span {
    font-size: 9.5px;
  }

  .hero-mobile-practice-labels span:nth-child(3) {
    font-size: 9px;
  }
}
@media (max-width: 640px) {
  .hero-mobile-practice-labels,
  .hero-mobile-practice-markers,
  .hero-pathways-modern .pathway-title,
  .hero-pathways-modern .modern-label path {
    display: none !important;
  }
}

/* ==========================================================
   LOYAL — ABOUT PAGE
========================================================== */

.loyal-about-page {
  background: #fff;
}

.loyal-about-page h1,
.loyal-about-page h2,
.loyal-about-page h3,
.loyal-about-page p {
  box-sizing: border-box;
}


/* HERO */

.loyal-about-hero {
  padding: 96px 0 86px;
  background: var(--bg, #f5f6f8);
  border-bottom: 1px solid var(--line, #dfe3e8);
}

.loyal-about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: 76px;
  align-items: center;
}

.loyal-about-hero__content h1 {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--ink, #111827);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.loyal-about-hero__lead {
  max-width: 650px;
  margin: 0 0 36px;
  color: var(--text, #4b5563);
  font-size: 20px;
  line-height: 1.65;
}

.loyal-about-hero__visual {
  position: relative;
  min-height: 590px;
}

.loyal-about-hero__visual::before {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 58%;
  height: 44%;
  border: 1px solid var(--brand-orange, #c76b38);
  content: "";
}

.loyal-about-hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
}

.loyal-about-hero__image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 21, 0) 45%,
      rgba(15, 17, 21, .42) 100%
    );
  content: "";
}

.loyal-about-hero__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(330px, 76%);
  padding: 28px 30px;
  background: var(--brand-navy, #132f55);
  color: #fff;
}

.loyal-about-hero__caption span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.loyal-about-hero__caption strong {
  display: block;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.loyal-about-hero__contact {
  border-color: var(--line, #dfe3e8);
  color: var(--ink, #111827);
  background: transparent;
}


/* INTRO */

.loyal-about-intro {
  padding: 104px 0;
  background: #fff;
}

.loyal-about-intro__grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 100px;
}

.loyal-about-intro__heading h2 {
  max-width: 510px;
  margin: 0;
  color: var(--ink, #111827);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.loyal-about-intro__text {
  max-width: 760px;
}

.loyal-about-intro__text p {
  margin: 0 0 25px;
  color: var(--text, #4b5563);
  font-size: 19px;
  line-height: 1.75;
}

.loyal-about-intro__text p:first-child {
  color: var(--ink, #111827);
  font-size: 23px;
  line-height: 1.6;
}


/* FACTS */

.loyal-about-facts {
  background: var(--bg-soft, #f4f6f8);
}

.loyal-about-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.loyal-about-fact {
  min-height: 290px;
  padding: 42px 34px;
  border-right: 1px solid var(--line, #dfe3e8);
  background: #fff;
}

.loyal-about-fact:first-child {
  border-left: 1px solid var(--line, #dfe3e8);
}

.loyal-about-fact > span {
  display: block;
  margin-bottom: 76px;
  color: var(--brand-navy, #132f55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
}

.loyal-about-fact strong {
  display: block;
  margin-bottom: 16px;
  color: var(--ink, #111827);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
}

.loyal-about-fact p {
  margin: 0;
  color: var(--text, #4b5563);
  font-size: 16px;
  line-height: 1.6;
}

.loyal-about-fact--accent {
  background: var(--brand-navy, #132f55);
}

.loyal-about-fact--accent > span,
.loyal-about-fact--accent strong,
.loyal-about-fact--accent p {
  color: #fff;
}


/* APPROACH */

.loyal-about-approach {
  padding: 108px 0;
  background: #fff;
}

.loyal-about-approach__grid {
  display: grid;
  grid-template-columns: minmax(370px, .9fr) minmax(0, 1.1fr);
  gap: 92px;
  align-items: stretch;
}

.loyal-about-approach__photo {
  min-height: 760px;
  overflow: hidden;
}

.loyal-about-approach__photo img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
}

.loyal-about-approach__content h2 {
  max-width: 660px;
  margin: 0 0 50px;
  color: var(--ink, #111827);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.loyal-about-approach__items {
  border-top: 1px solid var(--line, #dfe3e8);
}

.loyal-about-approach__items article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line, #dfe3e8);
}

.loyal-about-approach__items article > span {
  color: var(--brand-orange, #c76b38);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.loyal-about-approach__items h3 {
  margin: 0 0 9px;
  color: var(--ink, #111827);
  font-size: 21px;
  font-weight: 500;
}

.loyal-about-approach__items p {
  max-width: 590px;
  margin: 0;
  color: var(--text, #4b5563);
  font-size: 16px;
  line-height: 1.65;
}


/* OFFICE */

.loyal-about-office {
  padding: 100px 0;
  background: var(--bg-soft, #f4f6f8);
}

.loyal-about-office__intro {
  max-width: 380px;
  margin: 0;
  color: var(--text, #4b5563);
  font-size: 17px;
  line-height: 1.6;
}

.loyal-about-office__gallery {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 310px 310px;
  gap: 20px;
}

.loyal-about-office__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #dfe4e9;
}

.loyal-about-office__item--large {
  grid-row: 1 / span 2;
}

.loyal-about-office__item--wide {
  display: none;
}

.loyal-about-office__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.loyal-about-office__item:hover img {
  transform: scale(1.025);
}


/* LOCATION */

.loyal-about-location {
  padding: 0;
  background: #fff;
}

.loyal-about-location__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  min-height: 620px;
}

.loyal-about-location__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 82px 72px 82px 0;
}

.loyal-about-location__details h2 {
  margin: 0 0 38px;
  color: var(--ink, #111827);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.1;
}

.loyal-about-location__details address {
  margin-bottom: 32px;
  color: var(--text, #4b5563);
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
}

.loyal-about-location__details address strong {
  display: block;
  margin-bottom: 16px;
  color: var(--ink, #111827);
  font-size: 20px;
  font-weight: 500;
}

.loyal-about-location__details address p {
  margin: 0 0 14px;
}

.loyal-about-location__details address a {
  color: var(--brand-navy, #132f55);
  text-decoration: none;
}

.loyal-about-location__map {
  min-height: 620px;
  background: #e6e9ed;
}

.loyal-about-location__map iframe {
  display: block;
  min-height: 620px;
  filter: grayscale(1) contrast(.92);
}


/* RESPONSIVE */

@media (max-width: 1100px) {
  .loyal-about-hero__grid,
  .loyal-about-intro__grid,
  .loyal-about-approach__grid,
  .loyal-about-location__grid {
    grid-template-columns: 1fr;
  }

  .loyal-about-hero__grid,
  .loyal-about-intro__grid,
  .loyal-about-approach__grid {
    gap: 54px;
  }

  .loyal-about-hero__visual {
    min-height: 520px;
  }

  .loyal-about-facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .loyal-about-fact {
    border-bottom: 1px solid var(--line, #dfe3e8);
  }

  .loyal-about-approach__photo,
  .loyal-about-approach__photo img {
    min-height: 520px;
  }

  .loyal-about-location__details {
    padding: 74px 0;
  }

  .loyal-about-location__map,
  .loyal-about-location__map iframe {
    min-height: 500px;
  }
}

@media (max-width: 680px) {
  .loyal-about-hero,
  .loyal-about-intro,
  .loyal-about-approach,
  .loyal-about-office {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .loyal-about-hero__content h1 {
    font-size: 42px;
  }

  .loyal-about-hero__lead {
    font-size: 18px;
  }

  .loyal-about-hero__visual {
    min-height: 410px;
  }

  .loyal-about-hero__visual::before {
    display: none;
  }

  .loyal-about-hero__caption {
    width: calc(100% - 24px);
    padding: 22px;
  }

  .loyal-about-intro__text p:first-child {
    font-size: 20px;
  }

  .loyal-about-facts__grid {
    grid-template-columns: 1fr;
  }

  .loyal-about-fact {
    min-height: 250px;
    border-left: 1px solid var(--line, #dfe3e8);
  }

  .loyal-about-fact > span {
    margin-bottom: 48px;
  }

  .loyal-about-approach__photo,
  .loyal-about-approach__photo img {
    min-height: 390px;
  }

  .loyal-about-approach__items article {
    grid-template-columns: 36px 1fr;
    gap: 15px;
  }

  .loyal-about-office__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .loyal-about-office__item,
  .loyal-about-office__item--large {
    grid-row: auto;
    min-height: 280px;
  }

  .loyal-about-location__details {
    padding: 64px 0;
  }

  .loyal-about-location__map,
  .loyal-about-location__map iframe {
    min-height: 410px;
  }
}


/* =========================================================
   LOYAL — быстрый фикс шрифтов и верхнего меню
   ========================================================= */

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

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

/* Заголовки без искусственной чрезмерной жирности */
h1,
h2,
h3,
h4,
.hero h1,
.hero__copy h1,
.section-head h2,
.page-hero h1 {
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em;
}

/* Размер основных заголовков секций */
.section-head h2 {
  font-size: clamp(36px, 3.7vw, 58px) !important;
  line-height: 1.04 !important;
}

/* Заголовки карточек */
.card h3,
.practice-card h3,
.insight-card h3,
.testimonial-card h3 {
  font-weight: 600 !important;
}

/* Верхнее меню */
.main-nav,
.wp-primary-menu {
  gap: 24px;
}

.main-nav > a,
.main-nav summary,
.wp-primary-menu > li > a {
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

/* Немного больше места для логотипа и кнопок */
.header-inner {
  gap: 28px;
}

.main-nav {
  min-width: 0;
}

/* Для экранов, где меню начинает не помещаться */
@media (max-width: 1320px) {
  .main-nav,
  .wp-primary-menu {
    gap: 15px;
  }

  .main-nav > a,
  .main-nav summary,
  .wp-primary-menu > li > a {
    font-size: 12px !important;
    letter-spacing: 0.035em;
  }

  .header-inner {
    gap: 18px;
  }

  .header-actions {
    gap: 8px;
  }
}

/* Мобильные заголовки */
@media (max-width: 640px) {
  h1,
  .hero h1,
  .hero__copy h1,
  .page-hero h1 {
    font-size: clamp(35px, 10vw, 46px) !important;
    line-height: 1.02 !important;
  }

  .section-head h2 {
    font-size: 34px !important;
    line-height: 1.06 !important;
  }
}


/* Верхняя строка: крупные фирменные иконки */

.utility-contact {
  width: 36px;
  height: 36px;
}

.utility-contact svg {
  width: 21px;
  height: 21px;
}

/* Telegram */
.utility-contact[title="Telegram"] {
  color: #229ed9 !important;
}

/* WhatsApp */
.utility-contact[title="WhatsApp"] {
  color: #25d366 !important;
}

/* WeChat */
.utility-contact[title="WeChat"] {
  color: #07c160 !important;
}

.utility-contact:hover {
  color: #b9683f !important;
}

/* Бургер на планшетной и промежуточной ширине */
@media (max-width: 1180px) {
  .main-nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
  }

  .main-nav.mobile-open .wp-primary-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }
}

 /* Размер и цвета иконок в верхней строке */
.utility-contact svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.utility-contact[title="Telegram"] {
  color: #229ed9 !important;
}

.utility-contact[title="WhatsApp"] {
  color: #25d366 !important;
}

.utility-contact[title="WeChat"] {
  color: #07c160 !important;
}

/* Фирменные цвета иконок мессенджеров в подвале */

.footer .footer-contact-links > a > svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px;
}

/* Telegram */
.footer .footer-contact-links > a:nth-of-type(1) > svg {
  color: #229ed9 !important;
}

/* WhatsApp */
.footer .footer-contact-links > a:nth-of-type(2) > svg {
  color: #25d366 !important;
}

/* WeChat */
.footer .footer-contact-links > a:nth-of-type(3) > svg {
  color: #07c160 !important;
}

.footer .footer-contact-links > a:nth-of-type(-n+3) > svg path {
  fill: currentColor !important;
}


/* ==========================================================
   LOYAL — сводная страница услуг
   ========================================================== */

.loyal-services-page {
  padding: 0 !important;
  overflow: hidden;
}

.loyal-services-hero {
  background: #f5f1e9;
  border-bottom: 24px solid #ebe6dd;
}

.loyal-services-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 640px;
}

.loyal-services-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 70px 88px 0;
}

.loyal-services-hero__content h1 {
  max-width: 850px;
  margin: 18px 0 28px;
  color: #151515;
  font-size: clamp(3.2rem, 5.4vw, 6.3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.loyal-services-hero__lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #36393d;
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  line-height: 1.55;
}

.loyal-services-hero__text {
  max-width: 720px;
  margin: 0;
  color: #686b70;
  font-size: 1.05rem;
  line-height: 1.75;
}

.loyal-services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.loyal-services-hero__visual {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #071d36;
}

.loyal-services-hero__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loyal-services-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 29, 54, 0.08),
      rgba(7, 29, 54, 0.42)
    );
  pointer-events: none;
}

.loyal-services-hero__caption {
  position: absolute;
  right: 36px;
  bottom: 32px;
  left: 36px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.38);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loyal-services-hero__fallback {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 640px;
  padding: 48px;
  color: #fff;
  background:
    linear-gradient(135deg, #071d36, #163a5d);
}

.loyal-services-hero__fallback span {
  font-size: 11rem;
  font-weight: 800;
  line-height: 0.8;
}

.loyal-services-hero__fallback p {
  max-width: 300px;
  margin: 28px 0 0;
  font-size: 1.3rem;
  line-height: 1.35;
}

.loyal-services-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #071d36;
  border-left: 1px solid #d8d2c8;
}

.loyal-services-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 30px;
  color: #151515;
  text-decoration: none;
  background: #fff;
  border-right: 1px solid #d8d2c8;
  border-bottom: 1px solid #d8d2c8;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.loyal-services-card:hover {
  color: #fff;
  background: #071d36;
}

.loyal-services-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
}

.loyal-services-card__number {
  color: #b9683f;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.loyal-services-card__group {
  color: #686b70;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.loyal-services-card:hover .loyal-services-card__group {
  color: rgba(255,255,255,.68);
}

.loyal-services-card h3 {
  margin: 0 0 20px;
  color: inherit;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
}

.loyal-services-card p {
  margin: 0 0 34px;
  color: #686b70;
  font-size: 0.98rem;
  line-height: 1.65;
}

.loyal-services-card:hover p {
  color: rgba(255,255,255,.76);
}

.loyal-services-card__link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #d8d2c8;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.loyal-services-card:hover .loyal-services-card__link {
  border-color: rgba(255,255,255,.28);
}

.loyal-services-scenarios {
  padding: clamp(80px, 9vw, 140px) 0;
  color: #fff;
  background: #071d36;
}

.loyal-services-scenarios__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(60px, 8vw, 130px);
}

.loyal-services-scenarios__intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.loyal-services-scenarios__intro h2 {
  margin: 18px 0 26px;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.loyal-services-scenarios__intro p {
  max-width: 520px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}

.text-link--light {
  color: #fff !important;
}

.loyal-services-scenario {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.26);
}

.loyal-services-scenario:last-child {
  border-bottom: 1px solid rgba(255,255,255,.26);
}

.loyal-services-scenario > span {
  color: #b9683f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.loyal-services-scenario h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.loyal-services-scenario p {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
}

.loyal-services-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #071d36;
}

.loyal-services-process__item {
  min-height: 280px;
  padding: 28px 26px;
  border-right: 1px solid #d8d2c8;
}

.loyal-services-process__item:last-child {
  border-right: 0;
}

.loyal-services-process__item > span {
  display: block;
  margin-bottom: 54px;
  color: #b9683f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.loyal-services-process__item h3 {
  margin: 0 0 14px;
  color: #151515;
  font-size: 1.4rem;
}

.loyal-services-process__item p {
  margin: 0;
  color: #686b70;
  line-height: 1.65;
}

.loyal-services-team-link__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: end;
  padding-top: 30px;
  border-top: 2px solid #071d36;
}

.loyal-services-team-link h2 {
  max-width: 820px;
  margin: 16px 0 0;
}

.loyal-services-team-link__grid > div:last-child p {
  margin: 0 0 28px;
  color: #686b70;
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .loyal-services-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  }

  .loyal-services-hero__content {
    padding-right: 40px;
  }

  .loyal-services-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loyal-services-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loyal-services-process__item {
    border-bottom: 1px solid #d8d2c8;
  }
}

@media (max-width: 820px) {
  .loyal-services-hero__grid {
    display: flex;
    flex-direction: column;
  }

  .loyal-services-hero__content {
    padding: 64px 0 54px;
  }

  .loyal-services-hero__content h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .loyal-services-hero__visual,
  .loyal-services-hero__fallback {
    min-height: 420px;
  }

  .loyal-services-catalog__grid {
    grid-template-columns: 1fr;
  }

  .loyal-services-card {
    min-height: 320px;
  }

  .loyal-services-scenarios__grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .loyal-services-scenarios__intro {
    position: static;
  }

  .loyal-services-process__grid {
    grid-template-columns: 1fr;
  }

  .loyal-services-process__item {
    min-height: auto;
    border-right: 0;
  }

  .loyal-services-process__item > span {
    margin-bottom: 30px;
  }

  .loyal-services-team-link__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .loyal-services-hero__actions {
    flex-direction: column;
  }

  .loyal-services-hero__actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .loyal-services-hero__caption {
    right: 22px;
    bottom: 22px;
    left: 22px;
    flex-direction: column;
    gap: 6px;
  }

  .loyal-services-card {
    padding: 24px 20px;
  }
}



.loyal-client-review__sector {
    font-size: 10px !important;
    line-height: 1.35 !important;
    letter-spacing: .07em !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.testimonials-carousel__show-all {
    padding: 12px 22px;
}

.loyal-client-reviews__head {
    border-top: 0 !important;
    padding-top: 0 !important;
	
}
.team-full-line {
    width: 100%;
    height: 2px;
    margin-bottom: 24px;
    background: #071d36;
}

.team-section-head {
    border-top: 0 !important;
    padding-top: 0 !important;
}
	
	
	/* ==========================================================
   LOYAL HEADER CONTACT — FINAL FIX
   ========================================================== */

.header-contact-choice {
    position: relative !important;
    display: block;
    margin: 0 !important;
}

.header-contact-choice > summary {
    list-style: none !important;
    cursor: pointer;
}

.header-contact-choice > summary::-webkit-details-marker {
    display: none !important;
}


/* ---------- DESKTOP ---------- */

.header-contact-choice--desktop {
    position: relative !important;
    display: block !important;
}

.header-contact-choice--mobile {
    display: none !important;
}

.header-contact-choice--desktop > summary.button {
    min-height: 50px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 9px !important;

    margin: 0 !important;
    padding: 0 22px !important;

    border: 1px solid rgba(255,255,255,.65) !important;
    border-radius: 6px !important;

    color: #fff !important;
    background: transparent !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    letter-spacing: .08em !important;
    text-transform: uppercase !important;

    cursor: pointer !important;
}

.header-contact-choice--desktop > summary.button:hover,
.header-contact-choice--desktop[open] > summary.button {
    color: #071D36 !important;
    background: #fff !important;
}


/* Стрелка */

.header-contact-choice__arrow {
    width: 10px !important;
    height: 7px !important;

    min-width: 10px !important;
    max-width: 10px !important;

    flex: 0 0 10px !important;

    display: block !important;
}

.header-contact-choice[open] .header-contact-choice__arrow {
    transform: rotate(180deg);
}


/* ---------- DROPDOWN ---------- */

.header-contact-choice__panel {
    position: absolute !important;

    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;

    z-index: 99999 !important;

    width: 255px !important;
    min-width: 255px !important;
    max-width: 255px !important;

    display: grid !important;
    grid-template-columns: 1fr !important;

    gap: 7px !important;

    margin: 0 !important;
    padding: 8px !important;

    border: 1px solid #D8D2C8 !important;
    border-radius: 8px !important;

    color: #071D36 !important;
    background: #fff !important;

    box-shadow: 0 16px 38px rgba(7,29,54,.18) !important;
}


/* ---------- TELEGRAM / WHATSAPP ---------- */

.header-contact-choice__panel .header-contact-option {
    width: 100% !important;
    min-height: 58px !important;

    display: grid !important;
    grid-template-columns: 30px minmax(0,1fr) !important;

    align-items: center !important;

    gap: 11px !important;

    margin: 0 !important;
    padding: 10px 11px !important;

    border: 1px solid #D8D2C8 !important;
    border-radius: 6px !important;

    color: #071D36 !important;
    background: #fff !important;

    text-decoration: none !important;
}

.header-contact-choice__panel .header-contact-option:hover {
    border-color: #B9683F !important;
    background: #FBFAF7 !important;
}


/* КРИТИЧНО: не даём SVG разрастаться */

.header-contact-choice__panel .header-contact-option__icon {
    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    color: #071D36 !important;
}

.header-contact-choice__panel .header-contact-option__icon svg {
    width: 21px !important;
    height: 21px !important;

    min-width: 21px !important;
    max-width: 21px !important;
    min-height: 21px !important;
    max-height: 21px !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Текст */

.header-contact-choice__panel .header-contact-option__text {
    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    gap: 2px !important;

    color: #071D36 !important;
}

.header-contact-choice__panel .header-contact-option__text strong {
    display: block !important;

    margin: 0 !important;

    color: #071D36 !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.header-contact-choice__panel .header-contact-option__text small {
    display: block !important;

    margin: 0 !important;

    color: #686B70 !important;

    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 820px) {

    .header-contact-choice--desktop {
        display: none !important;
    }

    .header-contact-choice--mobile {
        width: 100% !important;
        display: block !important;
    }

    .header-contact-choice--mobile > summary {
        width: 100% !important;
        min-height: 48px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        gap: 10px !important;

        padding: 0 16px !important;

        border: 1px solid rgba(255,255,255,.45) !important;
        border-radius: 6px !important;

        color: #fff !important;
        background: transparent !important;

        font-size: 13px !important;
        font-weight: 800 !important;

        letter-spacing: .05em !important;
        text-transform: uppercase !important;
    }

    .header-contact-choice--mobile .header-contact-choice__panel {
        position: static !important;

        top: auto !important;
        right: auto !important;
        left: auto !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        margin: 8px 0 0 !important;
        padding: 8px !important;

        border: 1px solid rgba(255,255,255,.18) !important;

        background: rgba(255,255,255,.06) !important;

        box-shadow: none !important;
    }

    .header-contact-choice--mobile .header-contact-option {
        min-height: 56px !important;
        background: #fff !important;
    }
}
	
	/* 1. Вернуть всю шапку в одну строку */
@media (min-width:821px){
  .header-inner{display:flex!important;align-items:center!important}
  .main-nav{margin-left:auto!important}
  .header-actions{margin-left:auto!important;display:flex!important;align-items:center!important}
}

/* 2. Выпадающее окно не должно раздвигать шапку */
.header-contact-choice__panel{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  right:0!important;
  width:240px!important;
  z-index:9999!important;
}

/* 3. Telegram / WhatsApp никогда не больше 22 px */
.header-contact-choice a[href*="t.me"] svg,
.header-contact-choice a[href*="wa.me"] svg{
  width:22px!important;
  height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
}

/* линия + нормальный воздух под основной шапкой */
.site-header{
  border-bottom:1px solid rgba(255,255,255,.14)!important;
}

.top-shell{
  padding-bottom:28px!important;
}

/* компактный dropdown "Связаться" */
.header-contact-choice__panel{
  width:210px!important;
  padding:7px!important;
  background:#fff!important;
}

.header-contact-option{
  min-height:46px!important;
  padding:8px 10px!important;
}

/* убрать вторую строку */
.header-contact-option small{
  display:none!important;
}

/* фирменные цвета соцсетей */
.header-contact-option:first-child .header-contact-option__icon{
  color:#229ED9!important; /* Telegram */
}

.header-contact-option:nth-child(2) .header-contact-option__icon{
  color:#25D366!important; /* WhatsApp */
}


