/* =========================================================
   Levski Spartak Gymnastics — Подготвителни групи (4–17 г.)
   Recreational groups for children aged 4–17.
   ---------------------------------------------------------
   Self-contained stylesheet. The top part is the shared design
   system (tokens, header/nav, buttons, sections, cards, footer,
   utilities); the bottom part is specific to this page.
   ========================================================= */
:root{
  --brand:#04489a;
  --brand-600:#0657b6;
  --brand-700:#033a7d;
  --brand-900:#062a55;
  --tint:#eef4fd;
  --tint-2:#dbe8fa;
  --ink:#0e1726;
  --body:#414d63;
  --muted:#6c788c;
  --line:#e4e9f1;
  --line-2:#eef1f6;
  --surface:#f7f9fc;
  --white:#fff;

  --r-sm:8px;
  --r:14px;
  --r-lg:22px;

  --sh-1:0 1px 2px rgba(14,23,38,.05), 0 6px 18px -8px rgba(14,23,38,.12);
  --sh-2:0 2px 4px rgba(14,23,38,.05), 0 18px 40px -18px rgba(14,23,38,.28);
  --sh-3:0 30px 70px -30px rgba(6,42,85,.45);

  --container:1180px;
  --gutter:clamp(18px,4vw,32px);

  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",
         "Noto Sans","DejaVu Sans",Arial,"PT Sans",sans-serif;

  --header-h:74px;
}

/* Global reset: consistent box sizing for every element */
*,*::before,*::after{box-sizing:border-box}

/* Document base: smooth scrolling; anchors stop below the sticky header */
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 16px)}

/* Body: base typography; text is justified by default */
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.7;
  text-align:justify;
  color:var(--body);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Media never overflow their container */
img,svg,iframe{display:block; max-width:100%}
img{height:auto; border:0}

/* Links */
a{color:var(--brand); text-decoration:none}
a:hover{color:var(--brand-700)}

/* Headings: shared size scale and wrapping */
h1,h2,h3,h4{
  color:var(--ink);
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:800;
  margin:0 0 .5em;
  overflow-wrap:break-word;
}
h1{font-size:clamp(2rem,1.2rem + 3vw,3.15rem)}
h2{font-size:clamp(1.55rem,1.15rem + 1.7vw,2.3rem)}
h3{font-size:clamp(1.2rem,1.05rem + .8vw,1.5rem)}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}

::selection{background:var(--tint-2); color:var(--brand-900)}

:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:3px;
  border-radius:4px;
}

/* Centred content column with responsive side padding */
.container{
  width:min(100% - var(--gutter) * 2, var(--container));
  margin-inline:auto;
}

/* Keyboard-only "skip to content" link */
.skip-link{
  position:absolute; left:12px; top:-60px; z-index:200;
  background:var(--brand); color:#fff; padding:10px 18px;
  border-radius:0 0 var(--r-sm) var(--r-sm); font-weight:600;
  transition:top .18s ease;
}
.skip-link:focus{top:0; color:#fff}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(160%) blur(10px);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header__inner{
  min-height:var(--header-h);
  display:flex; align-items:center; gap:20px;
}
.brand{display:flex; align-items:center; gap:12px; margin-right:auto; flex:0 1 auto; min-width:0}
.brand__logo{
  height:54px; width:auto;
  transition:transform .25s ease;
}
.brand:hover .brand__logo{transform:translateY(-1px)}
.brand__text{
  display:flex; flex-direction:column; line-height:1.15; gap:4px;
  min-width:0;
}
.brand__name{
  font-weight:800; color:var(--ink);
  font-size:.98rem; letter-spacing:-.01em; white-space:nowrap;
}
.brand__tag{
  font-size:.72rem; color:var(--muted);
  text-transform:uppercase; letter-spacing:.09em; white-space:nowrap;
}
@media (max-width:1080px){ .brand__text{display:none} }

/* Primary nav: desktop menu, active item, dropdown submenu */
.nav{display:flex; align-items:center; gap:2px}
.nav__list{
  display:flex; align-items:center; gap:2px;
  list-style:none; margin:0; padding:0;
}
.nav__item{position:relative}
.nav__link{
  display:flex; align-items:center; gap:6px;
  padding:10px 13px;
  font-size:.95rem; font-weight:600;
  color:var(--ink);
  border-radius:var(--r-sm);
  background:none; border:0; font-family:inherit;
  cursor:pointer; white-space:nowrap;
  transition:color .18s ease, background-color .18s ease;
}
.nav__link:hover{color:var(--brand); background:var(--tint)}
.nav__item.is-active > .nav__link{color:var(--brand)}
.nav__item.is-active > .nav__link::after{
  content:""; position:absolute; left:13px; right:13px; bottom:4px;
  height:2px; background:var(--brand); border-radius:2px;
}
.nav__caret{
  width:9px; height:9px; flex:none;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg) translate(-2px,-2px);
  transition:transform .2s ease; opacity:.55;
}
.nav__item.has-sub:hover .nav__caret,
.nav__item.is-open .nav__caret{transform:rotate(225deg) translate(-3px,-3px)}

.nav__sub{
  position:absolute; top:calc(100% + 8px); left:0;
  min-width:270px; margin:0; padding:8px;
  list-style:none;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--sh-2);
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
  z-index:90;
}
.nav__item.has-sub:hover > .nav__sub,
.nav__item.has-sub:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub{
  opacity:1; visibility:visible; transform:translateY(0);
}
.nav__sub .nav__link{
  padding:9px 12px; font-weight:500; font-size:.93rem;
  border-radius:var(--r-sm);
}
.nav__sub .nav__link::after{display:none}
.nav__sub .nav__item{display:block}
.nav__sub .nav__link:hover{background:var(--tint)}

/* Social icon buttons and the mobile menu toggle */
.header__social{display:flex; align-items:center; gap:6px; margin-left:6px}
.icon-link{
  display:grid; place-items:center;
  width:38px; height:38px; border-radius:50%;
  color:var(--brand); background:var(--tint);
  transition:background-color .18s ease, color .18s ease, transform .18s ease;
}
.icon-link:hover{background:var(--brand); color:#fff; transform:translateY(-2px)}
.icon-link svg{width:17px; height:17px; fill:currentColor}

.burger{
  display:none;
  width:44px; height:44px; padding:0;
  border:1px solid var(--line); border-radius:var(--r-sm);
  background:var(--white); cursor:pointer;
  align-items:center; justify-content:center;
}
.burger span{
  position:relative; display:block; width:20px; height:2px;
  background:var(--ink); border-radius:2px;
  transition:background-color .2s ease;
}
.burger span::before,.burger span::after{
  content:""; position:absolute; left:0; width:20px; height:2px;
  background:var(--ink); border-radius:2px;
  transition:transform .25s ease, top .25s ease;
}
.burger span::before{top:-6px}
.burger span::after{top:6px}
.burger[aria-expanded="true"] span{background:transparent}
.burger[aria-expanded="true"] span::before{top:0; transform:rotate(45deg)}
.burger[aria-expanded="true"] span::after{top:0; transform:rotate(-45deg)}

@media (max-width:980px){
  .burger{display:flex}
  .header__social{margin-left:auto}
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    display:block;
    background:var(--white);
    border-bottom:1px solid var(--line);
    box-shadow:var(--sh-2);
    max-height:calc(100vh - var(--header-h));
    overflow-y:auto;
    padding:12px var(--gutter) 22px;
    transform:translateY(-8px);
    opacity:0; visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open{opacity:1; visibility:visible; transform:translateY(0)}
  .nav__list{flex-direction:column; align-items:stretch; gap:0}
  .nav__item{border-bottom:1px solid var(--line-2)}
  .nav__item:last-child{border-bottom:0}
  .nav__link{
    justify-content:space-between; width:100%;
    padding:15px 4px; font-size:1.02rem;
    border-radius:0;
  }
  .nav__link:hover{background:transparent}
  .nav__item.is-active > .nav__link::after{display:none}
  .nav__item.is-active > .nav__link{color:var(--brand)}
  .nav__sub{
    position:static; min-width:0;
    border:0; box-shadow:none; border-radius:0;
    padding:0 0 6px 14px;
    background:var(--surface);
    display:none;
    opacity:1; visibility:visible; transform:none;
  }
  .nav__item.is-open > .nav__sub{display:block}
  .nav__sub .nav__link{padding:12px 8px}
}
@media (max-width:980px) and (min-width:0px){
  .nav__item.has-sub:hover > .nav__sub{display:none}
  .nav__item.has-sub.is-open > .nav__sub{display:block}
}

/* ---------- buttons: base button and colour variants ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:13px 26px;
  font-family:inherit; font-size:.97rem; font-weight:650;
  line-height:1.3; border-radius:10px;
  border:1px solid transparent; cursor:pointer;
  transition:background-color .2s ease, color .2s ease,
             border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn--primary{background:var(--brand); color:#fff; box-shadow:0 10px 24px -12px rgba(4,72,154,.9)}
.btn--primary:hover{background:var(--brand-700); color:#fff}
.btn--ghost{background:var(--white); color:var(--brand); border-color:var(--tint-2)}
.btn--ghost:hover{background:var(--tint); color:var(--brand-700); border-color:var(--brand)}
.btn--light{background:rgba(255,255,255,.14); color:#fff; border-color:rgba(255,255,255,.4)}
.btn--light:hover{background:#fff; color:var(--brand-900)}
.btn__arrow{transition:transform .2s ease}
.btn:hover .btn__arrow{transform:translateX(4px)}

/* ---------- page hero: breadcrumb + title (inner pages) ---------- */
.page-hero{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg,var(--tint) 0%,#fff 100%);
  border-bottom:1px solid var(--line);
  padding:clamp(38px,6vw,66px) 0;
}
.page-hero::after{
  content:""; position:absolute; right:-90px; top:-90px;
  width:320px; height:320px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%,rgba(4,72,154,.13),transparent 70%);
  pointer-events:none;
}
.page-hero__inner{position:relative; z-index:1; max-width:840px}
.breadcrumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  list-style:none; margin:0 0 14px; padding:0;
  font-size:.85rem; color:var(--muted);
}
.breadcrumb a{color:var(--muted); font-weight:600}
.breadcrumb a:hover{color:var(--brand)}
.breadcrumb li + li::before{content:"/"; margin-right:8px; color:var(--line); font-weight:700}
.page-hero h1{margin-bottom:.32em}
.page-hero__lead{
  font-size:clamp(1.02rem,.96rem + .35vw,1.18rem);
  color:var(--body); margin:0; max-width:66ch;
}

/* ---------- sections: vertical rhythm, tinted and navy variants ---------- */
.section{padding:clamp(52px,7vw,92px) 0}
.section--tight{padding:clamp(38px,5vw,64px) 0}
.section--tint{background:var(--surface); border-block:1px solid var(--line-2)}
.section--navy{
  background:linear-gradient(160deg,var(--brand-900) 0%,#04305f 100%);
  color:rgba(255,255,255,.86);
}
.section--navy h2,.section--navy h3{color:#fff}

.section__head{max-width:760px; margin-bottom:clamp(28px,4vw,46px)}
.section__head--center{margin-inline:auto; text-align:center}
.eyebrow{
  display:inline-block;
  font-size:.76rem; font-weight:750;
  text-transform:uppercase; letter-spacing:.14em;
  color:var(--brand); margin-bottom:14px;
}
.section--navy .eyebrow{color:#8dbdf5}
.section__title{margin-bottom:.42em}
.section__lead{font-size:1.06rem; color:var(--muted); margin:0}
.section--navy .section__lead{color:rgba(255,255,255,.78)}

/* ---------- cards: responsive grid of content cards ---------- */
.cards{
  display:grid; gap:clamp(16px,2.2vw,26px);
  grid-template-columns:repeat(auto-fit,minmax(min(255px,100%),1fr));
}
.card{
  position:relative; display:flex; flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:clamp(22px,2.4vw,30px);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{transform:translateY(-5px); box-shadow:var(--sh-2); border-color:var(--tint-2)}
.card__icon{
  display:grid; place-items:center;
  width:52px; height:52px; margin-bottom:18px;
  border-radius:14px;
  background:var(--tint); color:var(--brand);
}
.card__icon svg{width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round}
.card__title{font-size:1.14rem; margin-bottom:.4em}
.card__text{font-size:.96rem; color:var(--muted); margin-bottom:20px}
.card__link{
  margin-top:auto;
  display:inline-flex; align-items:center; gap:8px;
  font-weight:650; font-size:.93rem; color:var(--brand);
}
.card__link svg{width:15px; height:15px; stroke:currentColor; stroke-width:2.2;
  fill:none; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s ease}
.card:hover .card__link svg{transform:translateX(5px)}
.card--flat:hover{transform:none; box-shadow:none; background:var(--surface)}

/* ---------- figures: framed image with caption ---------- */
.figure{
  margin:0;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:12px;
  box-shadow:var(--sh-1);
}
.figure img{border-radius:calc(var(--r-lg) - 6px); width:100%}
.figure__caption{
  font-size:.88rem; color:var(--muted);
  padding:12px 6px 4px; text-align:center;
}

/* ---------- prose: long-form article text ---------- */
.prose{max-width:840px}
.prose > * + *{margin-top:1.15em}
.prose h2{margin-top:1.7em; margin-bottom:.45em; font-size:clamp(1.4rem,1.2rem + 1vw,1.9rem)}
.prose h3{margin-top:1.5em; margin-bottom:.4em}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose p{margin:0}
.prose > * + p{margin-top:1.15em}
.prose ul,.prose ol{margin:0; padding-left:1.3em}
.prose li + li{margin-top:.55em}
.prose strong{color:var(--ink); font-weight:700}
.prose a{font-weight:600; text-decoration:underline; text-underline-offset:3px}
.prose__subhead{
  font-size:.82rem; font-weight:750; text-transform:uppercase;
  letter-spacing:.11em; color:var(--brand);
  margin-top:2em !important; margin-bottom:.7em !important;
}
.prose img{border-radius:var(--r); border:1px solid var(--line)}

.lead{font-size:1.09rem; color:var(--body)}

/* ---------- contact details: phone list and map frame ---------- */
.contact-block + .contact-block{margin-top:34px}
.contact-block__head{
  display:flex; align-items:center; gap:14px;
  margin-bottom:16px;
}
.contact-block__icon{
  display:grid; place-items:center; flex:none;
  width:46px; height:46px; border-radius:50%;
  background:var(--brand); color:#fff;
}
.contact-block__icon svg{width:21px; height:21px; fill:currentColor}
.contact-block__head h2{margin:0; font-size:1.15rem}

.phone-list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));
}
.phone-list li{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:13px 18px;
}
.phone-list__who{font-weight:650; color:var(--ink); font-size:.97rem}
.phone-list__who small{
  display:block; font-weight:500; color:var(--muted);
  font-size:.8rem; text-transform:uppercase; letter-spacing:.06em;
}
.phone-list__num{
  font-weight:700; color:var(--brand); white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.phone-list__num:hover{color:var(--brand-700)}

.map-frame{
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--sh-1);
}
.map-frame iframe{width:100%; height:clamp(340px,52vh,520px); border:0}

/* ---------- CTA band: closing call to action ---------- */
.cta{
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:26px;
}
.cta__text{max-width:640px}
.cta h2{margin-bottom:.3em}
.cta p{margin:0; color:rgba(255,255,255,.8)}
.cta__actions{display:flex; flex-wrap:wrap; gap:12px}

/* ---------- footer: brand, link columns and legal row ---------- */
.site-footer{
  background:var(--brand-900);
  color:rgba(255,255,255,.74);
  font-size:.95rem;
}
.site-footer__top{
  display:grid; gap:clamp(28px,4vw,54px);
  grid-template-columns:1.4fr 1fr 1fr;
  padding:clamp(44px,6vw,68px) 0 clamp(30px,4vw,44px);
}
@media (max-width:860px){ .site-footer__top{grid-template-columns:1fr} }

.site-footer h3{
  color:#fff; font-size:.78rem; font-weight:750;
  text-transform:uppercase; letter-spacing:.14em;
  margin-bottom:18px;
}
.site-footer a{color:rgba(255,255,255,.78)}
.site-footer a:hover{color:#fff}
.site-footer__brand{display:flex; align-items:center; gap:14px; margin-bottom:18px}
.site-footer__brand img{
  height:56px; width:auto; background:#fff;
  padding:4px; border-radius:10px;
}
.site-footer__brand b{color:#fff; display:block; font-size:1.02rem; letter-spacing:-.01em}
.site-footer__brand span{
  font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:#8dbdf5;
}
.site-footer p{margin:0 0 .9em}
.footer-list{list-style:none; margin:0; padding:0; display:grid; gap:11px}
.footer-list a{display:inline-flex; align-items:center; gap:9px}
.footer-list a::before{
  content:""; width:5px; height:5px; border-radius:50%;
  background:var(--brand-600); flex:none;
  transition:background-color .2s ease, transform .2s ease;
}
.footer-list a:hover::before{background:#8dbdf5; transform:scale(1.5)}
.footer-mail{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:650; color:#fff !important;
  font-size:1.02rem;
}
.footer-mail svg{width:17px; height:17px; fill:currentColor; flex:none}
.footer-social{display:flex; gap:10px; margin-top:20px}
.footer-social .icon-link{background:rgba(255,255,255,.1); color:#fff}
.footer-social .icon-link:hover{background:#fff; color:var(--brand-900)}

.site-footer__bottom{
  border-top:1px solid rgba(255,255,255,.14);
  padding:20px 0;
  display:flex; flex-wrap:wrap; gap:10px 22px;
  align-items:center; justify-content:space-between;
  font-size:.88rem;
}
.site-footer__bottom p{margin:0}
.site-footer__legal{display:flex; flex-wrap:wrap; gap:8px 18px; list-style:none; margin:0; padding:0}

/* ---------- reveal animation: fade/slide elements in on scroll ---------- */
.js .reveal{opacity:0; transform:translateY(20px)}
.js .reveal.is-in{opacity:1; transform:none; transition:opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1 !important; transform:none !important; transition:none !important}
  *{animation-duration:.001ms !important; transition-duration:.001ms !important}
}

/* ---------- utilities: small shared helpers ---------- */
.btn svg{
  width:16px; height:16px; flex:none;
  fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round;
}
.btn--white{background:#fff; color:var(--brand-900); border-color:#fff;
  box-shadow:0 14px 32px -16px rgba(0,0,0,.75)}
.btn--white:hover{background:var(--tint-2); color:var(--brand-900); border-color:var(--tint-2)}
.btn-row{display:flex; flex-wrap:wrap; gap:12px; margin-top:26px}
/* stacked layout like the original site: centred text column with the image
   below it at its original size (~840px, the original rendered at ~836px) */
.split{display:block}
.split__text{min-width:0; max-width:840px; margin-inline:auto}
.split__media{margin:0}
.split--top{align-items:start}
.lead-list{list-style:none; margin:22px 0 0; padding:0; display:grid; gap:12px}
.lead-list li{
  position:relative; padding-left:30px; font-size:1rem; color:var(--body);
}
.lead-list li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:14px; height:8px; margin-left:2px;
  border-left:2.5px solid var(--brand); border-bottom:2.5px solid var(--brand);
  transform:rotate(-45deg);
}
.hint{font-size:.9rem; color:var(--muted); display:flex; align-items:center; gap:9px}
.hint svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; flex:none}
.hint--block{margin-bottom:26px}
.site-footer h3.spaced{margin-top:28px}

/* no-JS fallback: keep navigation reachable without JavaScript */
.no-js .site-header__inner{flex-wrap:wrap; padding-bottom:12px}
@media (max-width:980px){
  .no-js .burger{display:none}
  .no-js .header__social{margin-left:auto}
  .no-js .nav{
    position:static; width:100%; padding:6px 0 0;
    opacity:1; visibility:visible; transform:none;
    max-height:none; overflow:visible;
    background:transparent; border:0; box-shadow:none;
  }
  .no-js .nav__list{flex-direction:column; align-items:stretch}
  .no-js .nav__sub{
    display:block; position:static;
    opacity:1; visibility:visible; transform:none;
    padding:0 0 4px 14px; background:transparent;
    border:0; box-shadow:none;
  }
  .no-js .nav__link{justify-content:space-between; padding:12px 4px}
}

.facts{display:grid; gap:clamp(14px,2vw,20px); grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}
.fact{
  display:block; padding:20px 22px;
  background:var(--white); border:1px solid var(--line); border-radius:var(--r);
}
a.fact{transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}
a.fact:hover{transform:translateY(-4px); box-shadow:var(--sh-2); border-color:var(--brand)}
.fact__k{
  display:block; font-size:.73rem; font-weight:750;
  text-transform:uppercase; letter-spacing:.12em; color:var(--muted);
}
.fact__v{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-top:8px; font-size:1.05rem; font-weight:750; color:var(--ink);
}
a.fact .fact__v{color:var(--brand)}
.fact__v svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round; flex:none; transition:transform .2s ease}
a.fact:hover .fact__v svg{transform:translateX(5px)}
.figure--media{max-width:840px; margin:clamp(28px,3.4vw,44px) auto 0}

/* ---------- back-to-top button ---------- */
.to-top{
  position:fixed; right:clamp(16px,3vw,28px); bottom:clamp(16px,3vw,28px);
  z-index:90;
  display:grid; place-items:center;
  width:48px; height:48px; padding:0;
  border:1px solid var(--tint-2);
  border-radius:50%;
  background:var(--brand); color:var(--white);
  box-shadow:var(--sh-2);
  cursor:pointer;
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.to-top.is-visible{opacity:1; visibility:visible; transform:none}
.to-top:hover{background:var(--brand-700)}
.to-top:focus-visible{outline:3px solid var(--brand-600); outline-offset:3px}
.to-top svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round}
@media (prefers-reduced-motion: reduce){
  .to-top{transition:opacity .01ms, visibility .01ms}
}

/* reserve room for the back-to-top button */
.site-footer__bottom{padding-bottom:84px}

/* ---------- mobile: comfortable tap targets ---------- */
@media (max-width:640px){
  .icon-link{width:44px; height:44px}
  .footer-social{gap:12px}
  .footer-list a{padding:6px 0; margin:-6px 0}
  .footer-mail{padding:8px 0; margin:-8px 0}
  .site-footer__legal a{display:inline-block; padding:5px 0; margin:-5px 0}
}
