/* ==========================================================================
   AUDIT PARTNERS — design tokens & base
   Палитра: красный бренд + чернильный navy + холодный стальной синий
   на тёплой светлой "бумажной" подложке. Люкс через воздух и точность,
   не через градиенты и тени.
   ========================================================================== */

:root{
  /* --- color tokens --- */
  --red:        #E31E24;
  --red-dark:   #B8151B;
  --red-tint:   #FBE9EA;
  --ink:        #16212F;
  --ink-soft:   #2B3A4E;
  --steel:      #51637C;
  --steel-soft: #8593A5;
  --paper:      #FAF8F5;
  --white:      #FFFFFF;
  --line:       #E7E2DA;
  --line-dark:  rgba(255,255,255,.14);

  /* --- type --- */
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body:    "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* --- layout --- */
  --container: 1240px;
  --radius: 2px;
  --radius-lg: 4px;
  --header-h: 132px;
  --header-h-scrolled: 84px;

  /* --- motion --- */
  --ease: cubic-bezier(.4,0,.2,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 140px; }
body{
  margin:0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  padding-top: 132px;
}
@media (max-width: 540px){
  body{ padding-top: 116px; }
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family: var(--f-display); font-weight:600; line-height:1.12; margin:0; color: var(--ink); }
p{ margin:0; }

:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.eyebrow{
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: var(--red);
}

.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }
@media (max-width: 760px){
  .section{ padding: 64px 0; }
  .section--tight{ padding: 44px 0; }
}

.section-head{ max-width: 680px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head p{ color: var(--steel); margin-top: 16px; font-size: 17px; max-width: 560px; }

/* signature device: thin diagonal red slash, echoing the /AP mark.
   Used sparingly as a recurring motif across sections. */
.slash{
  position: relative;
  display:inline-block;
}
.slash::after{
  content:"";
  position:absolute;
  left:-4px; top: 6%;
  width: 3px; height: 92%;
  background: var(--red);
  transform: rotate(11deg);
  border-radius: 2px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 16px 28px;
  font-family: var(--f-body); font-weight:600; font-size:15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn--primary{ background: var(--red); color: var(--white); }
.btn--primary:hover{ background: var(--red-dark); transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover{ border-color: var(--red); color: var(--red); }
.btn--on-dark{ background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn--on-dark:hover{ border-color: var(--white); }
.btn--block{ width:100%; }

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 40px;
}
.topbar__contacts{ display:flex; align-items:center; gap:24px; }
.topbar__contacts a{ display:inline-flex; align-items:center; gap:7px; transition: color .15s; white-space:nowrap; }
.topbar__contacts a:hover{ color: var(--white); }
.topbar__contacts svg{ width:14px; height:14px; opacity:.85; flex-shrink:0; }
.tb-address{ display:flex; align-items:center; gap:7px; white-space:nowrap; }
.topbar__hours{ display:flex; align-items:center; gap:7px; color: rgba(255,255,255,.55); white-space:nowrap; }
@media (max-width: 900px){
  .topbar__hours{ display:none; }
}
@media (max-width: 640px){
  .topbar .container{ gap: 10px; }
  .topbar__contacts{ gap:14px; overflow-x:auto; -ms-overflow-style:none; scrollbar-width:none; }
  .topbar__contacts::-webkit-scrollbar{ display:none; }
  .topbar__contacts span.tb-address{ display:none; }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header-group{
  position: fixed; top:0; left:0; width:100%; z-index: 100;
}
.site-header{
  background: rgba(250,248,245,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height: 92px;
  gap: 28px;
}
.nav__logo{ flex-shrink:0; }

/* Brand lockup: round icon + "Audit Partners / аудиторские услуги",
   used identically everywhere the logo appears (header, mobile drawer, footer) */
.brand{ display:flex; align-items:center; gap:12px; }
.brand__icon{ width:44px; height:44px; border-radius:50%; flex-shrink:0; display:block; }
.brand__text{ display:flex; flex-direction:column; line-height:1.18; }
.brand__name{ font-family:var(--f-body); font-weight:700; font-size:19px; color:var(--ink); letter-spacing:-.01em; }
.brand__tagline{ font-family:var(--f-body); font-weight:500; font-size:11px; color:var(--steel); letter-spacing:.02em; margin-top:2px; }
.brand--on-dark .brand__name{ color:var(--white); }
.brand--on-dark .brand__tagline{ color:var(--steel-soft); }

.nav__menu{ display:flex; align-items:center; gap: 6px; flex:1; justify-content:center; }
.nav__item{ position:relative; }
.nav__link{
  display:flex; align-items:center; gap:6px;
  padding: 12px 16px;
  font-size: 15px; font-weight:500; color: var(--ink);
  border-radius: var(--radius);
}
.nav__link svg{ width:13px; height:13px; color: var(--steel-soft); transition: transform .2s; }
.nav__item:hover .nav__link{ color: var(--red); }
.nav__item:hover .nav__link svg{ transform: rotate(180deg); color: var(--red); }

.nav__cta{ flex-shrink:0; display:flex; align-items:center; gap:10px; }
.nav__phone{ display:flex; flex-direction:column; align-items:flex-end; font-family:var(--f-mono); }
.nav__phone a{ font-size:15px; font-weight:600; color:var(--ink); }
.nav__phone a:hover{ color:var(--red); }
.nav__phone span{ font-size:11px; color:var(--steel-soft); font-family:var(--f-body); }

.nav__burger{ display:none; }

/* Mega menu */
.mega{
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, 8px);
  width: min(900px, 92vw);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(22,33,47,.18);
  border-radius: var(--radius-lg);
  padding: 32px;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nav__item:hover .mega{ opacity:1; visibility:visible; pointer-events:auto; transform: translate(-50%, 0); }
.mega__col-title{
  font-family: var(--f-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase;
  color: var(--red); display:block; margin-bottom: 14px; padding-bottom:12px; border-bottom:1px solid var(--line);
}
.mega__col a{
  display:block; padding: 7px 0; font-size:14px; color: var(--ink-soft);
  border-radius: var(--radius);
}
.mega__col a:hover{ color: var(--red); padding-left:4px; }

.mega--about{ grid-template-columns: repeat(3,1fr); width:min(560px,92vw); }
.mega--simple{ grid-template-columns: 1fr; width: 248px; padding: 14px; left:0; transform: translate(0,8px); }
.nav__item:hover .mega--simple{ transform: translate(0,0); }
.mega--simple a{ padding: 11px 12px; border-radius: var(--radius); }
.mega--simple a:hover{ background: var(--paper); padding-left:12px; }

@media (max-width: 1080px){
  .nav__menu{ display:none; }
  .nav__burger{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border:1px solid var(--line); background:none; border-radius:var(--radius);
    flex-shrink:0;
  }
  .nav__burger svg{ width:20px; height:20px; }
  .nav__phone span{ display:none; }
}
@media (max-width: 680px){
  .nav__phone{ display:none; }
  .nav__cta .btn--primary{ display:none; }
}
@media (max-width: 540px){
  .nav{ height:76px; }
  .brand__icon{ width:36px; height:36px; }
  .brand__name{ font-size:16px; }
  .brand__tagline{ font-size:10px; }
}

/* Mobile drawer */
.mobile-nav{
  position: fixed; inset:0; z-index: 350;
  background: var(--ink);
  color: var(--white);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y:auto;
  padding: 24px 24px 100px;
}
.mobile-nav.is-open{ transform: translateX(0); }
.mobile-nav__top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.mobile-nav__close{ background:none; border:none; color:var(--white); width:40px; height:40px; }
.mobile-nav__close svg{ width:22px; height:22px; }
.mobile-nav details{ border-bottom: 1px solid var(--line-dark); }
.mobile-nav summary{
  list-style:none; cursor:pointer; padding:16px 4px; font-size:17px; font-weight:500;
  display:flex; justify-content:space-between; align-items:center;
}
.mobile-nav summary::-webkit-details-marker{ display:none; }
.mobile-nav summary svg{ width:14px; height:14px; transition: transform .2s; color:var(--steel-soft); }
.mobile-nav details[open] summary svg{ transform: rotate(180deg); }
.mobile-nav__sub{ padding: 4px 4px 18px 14px; }
.mobile-nav__sub-title{ font-family:var(--f-mono); font-size:11px; letter-spacing:.06em; color: var(--red); text-transform:uppercase; margin:14px 0 6px; }
.mobile-nav__sub a{ display:block; padding:8px 0; color: rgba(255,255,255,.78); font-size:15px; }
.mobile-nav__plain > a{ display:block; padding:16px 4px; font-size:17px; font-weight:500; border-bottom:1px solid var(--line-dark); }
.mobile-nav__cta{ margin-top:28px; display:flex; flex-direction:column; gap:12px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ padding: 72px 0 96px; overflow:hidden; }
.hero .container{ display:grid; grid-template-columns: 1.05fr .95fr; gap:56px; align-items:center; }
.hero__eyebrow{ margin-bottom: 22px; }
.hero h1{
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -.01em;
}
.hero h1 em{ font-style:normal; color: var(--red); }
.hero p.lede{ margin-top: 22px; font-size: 18px; color: var(--steel); max-width: 520px; }
.hero__cta{ margin-top: 36px; display:flex; flex-wrap:wrap; gap: 14px; }
.hero__cta .btn--ghost svg{ color: var(--red); }

.hero__trust{
  margin-top: 44px; padding-top:24px; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap: 28px 36px;
}
.hero__trust-item{ display:flex; align-items:baseline; gap:10px; }
.hero__trust-item b{ font-family:var(--f-mono); font-size:22px; color:var(--ink); }
.hero__trust-item span{ font-size:13px; color: var(--steel); max-width:160px; line-height:1.3; }

.hero__media{ position:relative; }
.hero__media-frame{
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  aspect-ratio: 4/5;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
}
.hero__media-frame img{ width:100%; height:100%; object-fit:cover; }
.hero__media-frame::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(195deg, rgba(22,33,47,0) 45%, rgba(22,33,47,.55) 100%);
}
.hero__media-card{
  position:absolute; left:-28px; bottom: 28px;
  background: var(--white); border:1px solid var(--line);
  padding: 18px 22px; border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -16px rgba(22,33,47,.22);
  display:flex; align-items:center; gap:14px;
  max-width: 260px;
}
.hero__media-card .ico{
  width:42px; height:42px; border-radius:50%; background: var(--red-tint); color:var(--red);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.hero__media-card .ico svg{ width:20px; height:20px; }
.hero__media-card b{ display:block; font-size:14px; }
.hero__media-card span{ font-size:12.5px; color:var(--steel); }

@media (max-width: 980px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero__media{ order:-1; max-width:420px; margin: 0 auto 8px; }
  .hero__media-card{ left:auto; right:16px; bottom:-22px; }
}
@media (max-width: 560px){
  .hero{ padding: 40px 0 64px; }
  .hero__trust{ gap:18px 26px; }
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why{ background: var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.why__grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.why__item{ background:var(--white); padding: 40px 36px; }
.why__item .ico{ width:46px; height:46px; color:var(--red); margin-bottom:20px; display:inline-flex; }
.why__item .ico svg{ width:100%; height:100%; }
.why__item h3{ font-size:18px; font-family:var(--f-body); font-weight:700; margin-bottom:10px; }
.why__item p{ color: var(--steel); font-size:15px; }
@media (max-width: 860px){
  .why__grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px){
  .why__grid{ grid-template-columns: 1fr; }
  .why__item{ padding: 30px 26px; }
}

/* ==========================================================================
   STATS BAND (dark, ledger style)
   ========================================================================== */
.stats{ background: var(--ink); color: var(--white); }
.stats__head{ max-width: 640px; margin-bottom: 52px; }
.stats__head .eyebrow{ color: #FF8D8F; }
.stats__head .eyebrow::before{ background:#FF8D8F; }
.stats__head h2{ color:var(--white); font-size: clamp(26px,3vw,34px); margin-top:14px; }
.stats__row{
  display:grid; grid-template-columns: repeat(5, 1fr);
  border-top:1px solid var(--line-dark);
}
.stats__item{
  padding: 28px 22px 0; border-right:1px solid var(--line-dark);
}
.stats__item:last-child{ border-right:none; }
.stats__num{
  font-family: var(--f-mono); font-size: clamp(30px,4vw,44px); font-weight:600;
  color: var(--white); display:flex; align-items:baseline; gap:2px;
}
.stats__num .unit{ font-size: 18px; color: var(--steel-soft); }
.stats__label{ margin-top:10px; font-size:13.5px; color: rgba(255,255,255,.6); line-height:1.4; max-width:180px; padding-bottom:26px; }
@media (max-width: 900px){
  .stats__row{ grid-template-columns: repeat(2,1fr); }
  .stats__item{ border-right:none; border-bottom:1px solid var(--line-dark); }
  .stats__item:nth-child(2n){ border-left:1px solid var(--line-dark); }
}
@media (max-width: 540px){
  .stats__row{ grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   SERVICES — 4 main blocks
   ========================================================================== */
.services__grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px;
  display:flex; flex-direction:column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover{ border-color: transparent; box-shadow: 0 28px 56px -24px rgba(22,33,47,.22); transform: translateY(-3px); }
.service-card__top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.service-card .ico{
  width:56px; height:56px; border-radius:50%; background: var(--red-tint); color: var(--red);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.service-card .ico svg{ width:26px; height:26px; }
.service-card__index{ font-family:var(--f-mono); font-size:13px; color: var(--line); }
.service-card h3{ font-size: 22px; margin-bottom:10px; }
.service-card > p{ color: var(--steel); font-size:15px; margin-bottom:22px; }
.service-card__list{ margin-top:auto; border-top:1px solid var(--line); padding-top:18px; display:flex; flex-direction:column; gap:10px; }
.service-card__list a{
  font-size:14.5px; color: var(--ink-soft); display:flex; align-items:center; gap:8px;
}
.service-card__list a svg{ width:12px; height:12px; color: var(--steel-soft); flex-shrink:0; }
.service-card__list a:hover{ color: var(--red); }
.service-card__more{ margin-top:18px; display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:14.5px; color:var(--red); }
.service-card__more svg{ width:14px; height:14px; transition: transform .2s; }
.service-card:hover .service-card__more svg{ transform: translateX(3px); }

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

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials{ background: var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.testi__grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card{ padding: 30px; border:1px solid var(--line); border-radius: var(--radius-lg); display:flex; flex-direction:column; height:100%; }
.testi-card__quote{ color: var(--red); width:30px; height:22px; margin-bottom:16px; }
.testi-card p.body{ font-size:15px; color: var(--ink-soft); flex:1; }
.testi-card__person{ display:flex; align-items:center; gap:12px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.testi-card__avatar{
  width:42px; height:42px; border-radius:50%; background:var(--ink); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-family:var(--f-mono); font-size:14px; flex-shrink:0;
}
.testi-card__person b{ display:block; font-size:14px; }
.testi-card__person span{ font-size:12.5px; color:var(--steel); }
@media (max-width: 860px){ .testi__grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ (compact, GEO/SEO helper)
   ========================================================================== */
.faq__list{ max-width: 760px; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  list-style:none; cursor:pointer; padding: 22px 0; font-family: var(--f-body); font-weight:600; font-size:16.5px;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary svg{ width:16px; height:16px; flex-shrink:0; color:var(--red); transition: transform .2s; }
.faq-item[open] summary svg{ transform: rotate(45deg); }
.faq-item__body{ padding: 0 0 22px; color: var(--steel); font-size:15px; max-width:640px; }

/* ==========================================================================
   FINAL CTA BAND
   ========================================================================== */
.cta-band{ background: var(--red-dark); color: var(--white); }
.cta-band .container{ display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.cta-band h2{ color: var(--white); font-size: clamp(26px,3.2vw,36px); max-width:480px; }
.cta-band p{ color: rgba(255,255,255,.85); margin-top:10px; max-width: 420px; }
.cta-band__actions{ display:flex; flex-wrap:wrap; gap: 12px; }
.cta-band__icon-btn{
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3);
  padding: 14px 20px; border-radius: var(--radius); color:var(--white); font-weight:600; font-size:14.5px;
  transition: background .2s;
}
.cta-band__icon-btn:hover{ background: rgba(255,255,255,.22); }
.cta-band__icon-btn svg{ width:18px; height:18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.65); }
.footer-top{ padding: 72px 0 48px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand{ margin-bottom:18px; }
.footer-brand p{ font-size:14px; line-height:1.6; max-width:280px; }
.footer-social{ display:flex; gap:12px; margin-top:20px; }
.footer-social a{ width:36px; height:36px; border:1px solid var(--line-dark); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.footer-social svg{ width:16px; height:16px; }
.footer-col h4{ color: var(--white); font-family: var(--f-body); font-size:14px; letter-spacing:.04em; text-transform:uppercase; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14.5px; }
.footer-col a:hover{ color: var(--white); }
.footer-contacts li{ display:flex; gap:10px; font-size:14.5px; align-items:flex-start; }
.footer-contacts svg{ width:16px; height:16px; flex-shrink:0; margin-top:2px; color: var(--red); }
.footer-bottom{ border-top:1px solid var(--line-dark); padding: 22px 0; font-size:12.5px; }
.footer-bottom .container{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-legal{ display:flex; flex-direction:column; gap:4px; max-width:560px; }

@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-top{ padding: 56px 0 32px; }
}

/* ==========================================================================
   FLOATING CONTACT BUTTONS
   ========================================================================== */
.float-contacts{
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display:flex; flex-direction:column; gap: 12px; align-items:flex-end;
}
.float-contacts__btn{
  width: 54px; height: 54px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -8px rgba(22,33,47,.4);
  color:var(--white); position:relative;
  transition: transform .18s var(--ease);
}
.float-contacts__btn:hover{ transform: scale(1.08); }
.float-contacts__btn svg{ width:24px; height:24px; }
.float-contacts__btn--call{ background: var(--red); }
.float-contacts__btn--wa{ background: #25D366; }
.float-contacts__btn--tg{ background: #229ED9; }
.float-contacts__tooltip{
  position:absolute; right: 64px; top:50%; transform: translateY(-50%);
  background: var(--ink); color:var(--white); font-size:12.5px; white-space:nowrap;
  padding: 7px 12px; border-radius: var(--radius); opacity:0; pointer-events:none; transition: opacity .15s;
}
.float-contacts__btn:hover .float-contacts__tooltip{ opacity:1; }
@media (max-width: 640px){
  .float-contacts{ right:14px; bottom:14px; gap:10px; }
  .float-contacts__btn{ width:48px; height:48px; }
  .float-contacts__btn svg{ width:21px; height:21px; }
  .float-contacts__tooltip{ display:none; }
}

/* Reveal-on-scroll utility */
[data-reveal]{ opacity:0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:13.5px; color: var(--steel); margin-bottom:22px;
}
.breadcrumb a{ color: var(--steel); }
.breadcrumb a:hover{ color: var(--red); }
.breadcrumb svg{ width:12px; height:12px; color: var(--steel-soft); flex-shrink:0; }
.breadcrumb span[aria-current]{ color: var(--ink); font-weight:600; }

/* ==========================================================================
   PAGE HEADER (non-homepage hero replacement)
   ========================================================================== */
.page-header{ padding: 48px 0 56px; border-bottom:1px solid var(--line); background: var(--white); }
.page-header h1{ font-size: clamp(30px,4vw,46px); margin-top:14px; max-width:780px; }
.page-header .lede{ margin-top:18px; font-size:17.5px; color:var(--steel); max-width:680px; }
.page-header__media{
  margin-top:32px; border-radius: var(--radius-lg); overflow:hidden; aspect-ratio: 16/6; position:relative;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 96% 100%, 0 100%);
}
.page-header__media img{ width:100%; height:100%; object-fit:cover; }

/* ==========================================================================
   ARTICLE / PROSE CONTENT
   ========================================================================== */
.article{ max-width: 760px; }
.article p{ color: var(--ink-soft); font-size:16.5px; margin-bottom:18px; }
.article h2{ font-size: clamp(22px,2.6vw,28px); margin-top:48px; margin-bottom:18px; }
.article h2:first-child{ margin-top:0; }
.article h3{ font-family:var(--f-body); font-size:18px; font-weight:700; margin-top:28px; margin-bottom:10px; color:var(--ink); }
.article ul{ margin-bottom:18px; display:flex; flex-direction:column; gap:12px; }
.article ul li{ padding-left:24px; position:relative; color:var(--ink-soft); font-size:16px; }
.article ul li::before{
  content:""; position:absolute; left:0; top:9px; width:8px; height:8px; border-radius:50%;
  background: var(--red-tint); border:2px solid var(--red);
}
.article ul li b, .article ul li strong{ color: var(--ink); }
.article strong{ color: var(--ink); }

/* Highlighted definition / key paragraph block (req. для всех внутр. страниц) */
.callout{
  background: var(--red-tint); border-left: 3px solid var(--red);
  padding: 24px 28px; border-radius: var(--radius-lg);
  margin: 28px 0 32px;
}
.callout p{ color: var(--ink); font-size:16.5px; margin:0; }
.callout p + p{ margin-top:12px; }
.callout--ink{ background: var(--paper); border-left-color: var(--ink); }

/* Benefit cards grid (reused on service pages for "что даёт услуга") */
.benefits-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:20px; margin: 28px 0 36px; }
.benefit-card{ background: var(--white); border:1px solid var(--line); border-radius: var(--radius-lg); padding:24px; }
.benefit-card h3{ margin-top:0; font-size:16px; }
.benefit-card p{ font-size:15px; margin-bottom:0; color:var(--steel); }
@media (max-width:760px){ .benefits-grid{ grid-template-columns:1fr; } }

/* Two-column article + sidebar layout */
.page-layout{ display:grid; grid-template-columns: 1fr 300px; gap:56px; align-items:start; }
@media (max-width:980px){ .page-layout{ grid-template-columns: 1fr; } }

.sidebar-box{ background: var(--white); border:1px solid var(--line); border-radius: var(--radius-lg); padding:26px; position:sticky; top:152px; }
.sidebar-box h4{ font-family:var(--f-body); font-size:14px; text-transform:uppercase; letter-spacing:.04em; color:var(--steel); margin-bottom:16px; }
.sidebar-box ul{ display:flex; flex-direction:column; gap:4px; }
.sidebar-box a{ display:flex; align-items:center; gap:8px; padding:10px 10px; border-radius:var(--radius); font-size:14.5px; color:var(--ink-soft); }
.sidebar-box a:hover{ background:var(--paper); color:var(--red); }
.sidebar-box a.is-active{ background:var(--red-tint); color:var(--red); font-weight:600; }
.sidebar-box svg{ width:14px; height:14px; flex-shrink:0; color:var(--steel-soft); }
.sidebar-cta{ margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.sidebar-cta p{ font-size:13.5px; color:var(--steel); margin-bottom:12px; }

/* Category page: subservice grid */
.subservice-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:32px 0 8px; }
.subservice-card{
  display:flex; align-items:flex-start; gap:16px; background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:22px; transition: box-shadow .2s, transform .2s;
}
.subservice-card:hover{ box-shadow:0 20px 40px -20px rgba(22,33,47,.2); transform:translateY(-2px); }
.subservice-card .ico{ width:42px;height:42px;border-radius:50%;background:var(--red-tint);color:var(--red);display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.subservice-card .ico svg{ width:20px;height:20px; }
.subservice-card h3{ font-size:16.5px; margin-bottom:6px; }
.subservice-card p{ font-size:14px; color:var(--steel); margin:0; }
@media (max-width:760px){ .subservice-grid{ grid-template-columns:1fr; } }

/* Simple card grid for team/blog/reviews listing pages */
.simple-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:980px){ .simple-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .simple-grid{ grid-template-columns:1fr; } }

.team-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; }
.team-card__photo{ aspect-ratio:1; background:var(--paper); display:flex; align-items:center; justify-content:center; color:var(--steel-soft); }
.team-card__photo svg{ width:34px; height:34px; }
.team-card__photo span{ font-family:var(--f-mono); font-size:13px; display:flex; }
.team-card__body{ padding:20px; }
.team-card h3{ font-size:17px; margin-bottom:4px; }
.team-card .role{ font-size:13.5px; color:var(--red); font-weight:600; margin-bottom:10px; display:block; }
.team-card p.bio{ font-size:14px; color:var(--steel); }

.blog-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; }
.blog-card__photo{ aspect-ratio:16/10; background:var(--red-tint); display:flex; align-items:center; justify-content:center; }
.blog-card__photo svg{ width:34px;height:34px; color:var(--red); }
.blog-card__body{ padding:22px; display:flex; flex-direction:column; flex:1; }
.blog-card .tag{ font-family:var(--f-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--red); margin-bottom:10px; }
.blog-card h3{ font-size:18px; margin-bottom:10px; }
.blog-card p{ font-size:14.5px; color:var(--steel); flex:1; }
.blog-card .meta{ margin-top:16px; padding-top:14px; border-top:1px solid var(--line); font-size:13px; color:var(--steel-soft); }

/* Contacts page */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-tile{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px; display:flex; gap:18px; align-items:flex-start; }
.contact-tile .ico{ width:48px;height:48px;border-radius:50%;background:var(--red-tint);color:var(--red);display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.contact-tile .ico svg{ width:22px;height:22px; }
.contact-tile h3{ font-size:16px; margin-bottom:6px; }
.contact-tile p, .contact-tile a{ font-size:15px; color:var(--steel); }
.contact-tile a:hover{ color:var(--red); }
.map-frame{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); aspect-ratio:16/9; }
.map-frame iframe{ width:100%; height:100%; border:0; }
