@charset "UTF-8";

/* ========================================================================
   Montserrat — self-hosted (no dependency on Google Fonts)
   ======================================================================== */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(assets/fonts/montserrat-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(assets/fonts/montserrat-400-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(assets/fonts/montserrat-400-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(assets/fonts/montserrat-400-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(assets/fonts/montserrat-500-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(assets/fonts/montserrat-500-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(assets/fonts/montserrat-500-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(assets/fonts/montserrat-500-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(assets/fonts/montserrat-600-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(assets/fonts/montserrat-600-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(assets/fonts/montserrat-600-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(assets/fonts/montserrat-600-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(assets/fonts/montserrat-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(assets/fonts/montserrat-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(assets/fonts/montserrat-700-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(assets/fonts/montserrat-700-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}


/* ========================================================================
   Design tokens
   ======================================================================== */
:root {
    --bg: #0b1723;
    --bg-card: #1c2836;
    /* Card surfaces: static (non-clickable) cards use the flat --bg-card;
       clickable cards use a distinctly brighter gradient + active tone, for
       clear visual separation. */
    --card-clickable: linear-gradient(135deg, #243a57 0%, #2f4c70 100%);
    --card-clickable-active: #37577f;
    --card-shadow: inset 0 2px 0 var(--border), inset -2px 0 0 var(--border);
    /* Clickable cards: a light top/right bevel (white, so it reads on the
       brighter surface — #2e3a54 would look muddy there) plus a drop shadow
       to lift them off the page. */
    --card-shadow-clickable:
        inset 0 2px 0 rgba(255, 255, 255, .13),
        inset -2px 0 0 rgba(255, 255, 255, .07),
        0 4px 12px rgba(0, 0, 0, .28);
    /* Drop shadows: resting + hover lift, shared by cards/buttons/socials */
    --shadow: 0 4px 10px rgba(0, 0, 0, .25);
    --shadow-hover: 0 6px 14px rgba(0, 0, 0, .35);
    --text: #fff;
    --text-muted: #5a7088;
    --icon-soft: rgba(255, 255, 255, .8);   /* muted icon strokes on accent tiles */
    --accent: #2a68ac;
    --accent-bright: #3487e2;
    --accent-soft: #4f97e3;
    /* Diagonal accent gradients — reused on social buttons, hover states,
       and icon tiles. -rev flips light-to-dark for hover/active surfaces. */
    --grad-accent: linear-gradient(135deg, var(--accent), var(--accent-bright));
    --grad-accent-rev: linear-gradient(135deg, var(--accent-bright), var(--accent));
    /* Links — one consistent treatment everywhere */
    --link: var(--accent-bright);
    --link-hover: var(--text);
    /* Surfaces / overlays beyond the base cards */
    --bg-header-scrolled: #0b1723e6;        /* sticky mobile header */
    --bg-popup: #fff;                       /* credentials tooltip */
    --bg-overlay: rgba(11, 23, 35, .92);    /* lightbox backdrop */
    /* Text on coloured / overlay surfaces */
    --text-on-accent: #fff;
    --text-on-overlay: rgba(255, 255, 255, .75);
    /* Lines, bevels, rings */
    --border: #2e3a54;
    --emboss-groove: rgba(0, 0, 0, .28);
    --bevel-light: rgba(255, 255, 255, .06);
    --ring-light: rgba(255, 255, 255, .12);
    /* Accent extras */
    --accent-light: #6cabf1;
    --focus-ring: rgba(42, 104, 172, .18);
    --underline-soft: rgba(79, 151, 227, .35);
    --star: #f5b50a;
    /* Elevation — drop shadows for specific surfaces */
    --shadow-menu: 0 12px 30px rgba(0, 0, 0, .4);
    --shadow-card-open: 0 12px 30px rgba(0, 0, 0, .25);
    --shadow-popup: 0 20px 60px rgba(0, 0, 0, .65);
    --shadow-lightbox: 0 30px 80px rgba(0, 0, 0, .6);
    --shadow-avatar-rim: inset 0 0 0 1px rgba(0, 0, 0, .28), inset 0 2px 3px -1px rgba(0, 0, 0, .26);
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --container: 1050px;
    --container-md: 690px;
    --gutter: 25px;
    /* Responsive grid: columns shrink and gutters get proportionally
       smaller as the screen narrows (overridden per breakpoint below). */
    --container-w: 1050px;
    --grid-cols: 12;
    --grid-gap: 24px;
    --transition: .15s ease-out;
    --font-main: 'Montserrat', sans-serif;
    --font-head: var(--font-main);
}

/* SVG icon sprite — kept out of layout flow.
   Yandex.Metrika tracking pixel — pulled offscreen instead of display:none
   so the request still fires for the <noscript> fallback. */
.svg-sprite { position: absolute; }
.ym-pixel { position: absolute; left: -9999px; }

/* ========================================================================
   Reset / base
   ======================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    /* `clip` hides horizontal overflow WITHOUT turning <html> into a
       scroll container — `hidden` here breaks iOS momentum scrolling and
       makes vertical scroll feel like it sticks. `hidden` is the fallback
       for browsers without `clip` (Safari < 16). */
    overflow-x: hidden;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
}

body {
    margin: 0;
    min-width: 360px;
    overflow-x: hidden;
    overflow-x: clip;
    font-family: var(--font-main);
    font-weight: 500;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><path transform='translate(12.2 12) scale(.1)' fill='%23ffffff' fill-opacity='.04' d='M17.876 40l-.738-.323C7.943 35.656 0 32.183 0 20.203V0h35.753v20.203c0 11.98-7.942 15.453-17.138 19.474l-.739.323z'/></svg>");
    background-size: 28px 28px;
}

body * {
    font-family: inherit;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
}

a {
    background-color: transparent;
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--link-hover);
}

button {
    font: inherit;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
}

details {
    display: block;
}

main {
    display: block;
}

.h2 {
    color: var(--text);
    font-family: var(--font-head);
    font-size: 35px;
    line-height: 43px;
    margin: 0;
    font-weight: 600;
}

/* ========================================================================
   Layout: site wrapper + body container
   ======================================================================== */
/* Responsive grid tokens — columns + gutter + container width per range.
   Desktop 12 / tablet 8 / mobile 4 columns; gutter 24 → 20 → 16 → 12. */
@media (max-width: 1279px) {
    :root {
        --container-w: min(960px, calc(100vw - 48px));
        --grid-cols: 8;
        --grid-gap: 20px;
    }
}
@media (max-width: 1023px) {
    :root {
        /* Fluid tablet width (caps at 920px) — no narrow column with huge gutters. */
        --container-w: min(920px, calc(100vw - 64px));
    }
}
@media (max-width: 767px) {
    :root {
        --container-w: 100%;
        --grid-cols: 4;
        --grid-gap: 16px;
    }
}
@media (max-width: 479px) {
    :root { --grid-gap: 12px; }
}

.site-wrapper {
    width: var(--container-w);
    min-width: 320px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .h2 {
        font-size: 20px;
        line-height: 28px;
    }
}

/* ========================================================================
   Header
   ======================================================================== */
.header {
    position: relative;
    z-index: 5;
    padding-bottom: 7px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 10px;
    text-decoration: none;
    border-radius: 4px;
}

.logo:focus-visible,
.menu__link:focus-visible,
.contacts__link:focus-visible,
.contacts__phone:focus-visible,
.header__burger:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

.menu__link {
    color: var(--link);
    font-size: 15px;
    line-height: 1.2;
    padding: 14px 12px;
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition);
    white-space: nowrap;
}

.menu__link:hover {
    color: var(--text);
}

/* ---------- Burger button + mobile menu overlay ---------- */
.header__burger {
    display: none;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
}

.header__burger span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease-out, opacity .2s ease-out, top .2s ease-out;
}

.header__burger span:nth-child(1) { top: 11px; }
.header__burger span:nth-child(2) { top: 17px; }
.header__burger span:nth-child(3) { top: 23px; }

.header__burger[aria-expanded="true"] span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}
.header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.header__burger[aria-expanded="true"] span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

.header .site-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 30px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 0;
    transform: translateY(3px);
}

@keyframes phone-shine {
    0%    { background-position: 0% 0, 0 0; }
    33.3% { background-position: 100% 0, 0 0; }
    100%  { background-position: 100% 0, 0 0; }
}

@media (max-width: 1279px) {
    .menu {
        position: absolute;
        top: 100%;
        /* Full viewport width on every mobile/tablet size (break out of the
           centered container, which is narrower than the viewport above
           768px). */
        left: 50%;
        right: auto;
        width: 100vw;
        transform: translateX(-50%);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px var(--gutter) 16px;
        background-color: var(--bg);
        border-top: 1px solid var(--bg-card);
        box-shadow: var(--shadow-menu);
    }

    .menu.menu--open {
        display: flex;
    }

    .menu__link {
        margin: 0;
        padding: 14px 4px;
        font-size: 16px;
        line-height: 1.2;
        color: var(--text);
        border-bottom: 1px solid var(--bg-card);
    }

    .menu__link:last-child {
        border-bottom: 0;
    }

    .header__burger {
        display: block;
    }

    .header .site-wrapper {
        position: relative;
    }

    /* When the mobile menu is open, extend its solid panel up over the
       header so the whole top area reads as one surface instead of a
       dropdown under a transparent bar. */
    .header:has(.menu--open) {
        background-color: var(--bg);
    }

    /* Header already carries the panel bg — drop the dropdown's own
       border so the two halves visually merge into a single sheet. */
    .menu.menu--open {
        border-top: 0;
    }
}

/* ========================================================================
   Contacts (phone + social links)
   ======================================================================== */
.contacts {
    display: flex;
    align-items: center;
}

.contacts__phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
    line-height: 1.2;
}

.contacts__caption {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
}

/* Diagonal blue shine that sweeps across the phone digits. Two layers
   are clipped to the text: a solid base in the original color, and a
   narrow blue band that travels from right to left across that base. */
.contacts__phone {
    color: var(--text);
    font-size: 22px;
    line-height: 27px;
    text-align: right;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
    cursor: default;
    background-image:
        linear-gradient(115deg,
            transparent 0%, transparent 44%,
            var(--accent) 48%,
            var(--accent) 52%,
            transparent 56%, transparent 100%),
        linear-gradient(currentColor, currentColor);
    background-size: 350% 100%, 100% 100%;
    background-position: 0% 0, 0 0;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: phone-shine 4.5s linear infinite;
}

.contacts__phone:hover {
    color: var(--text);
}

.contacts__link {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--grad-accent);
    box-shadow: var(--card-shadow-clickable);
    margin-right: 8px;
    position: relative;
}

.contacts__link:hover {
    background: var(--accent-bright);
}

.contacts__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}

.contacts__link:last-child {
    margin-right: 0;
}

.contacts__link--wa::before { background-image: url(assets/icons/whatsapp.svg); }

@media (max-width: 767px) {
    .header {
        background-color: var(--bg-header-scrolled);
    }

    .header .site-wrapper {
        padding: 12px var(--gutter);
        flex-wrap: nowrap;
        gap: 10px;
    }

    .logo {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .logo img {
        width: 130px;
        height: auto;
    }

    .contacts {
        margin-left: auto;
        gap: 6px;
    }

    .contacts__phone-wrap {
        align-items: center;
        margin-right: 10px;   /* space between the phone and the WhatsApp icon */
    }

    .contacts__caption {
        display: none;
    }

    .contacts__phone {
        /* Blue pill — reset the desktop shine/text-clip effect and use the
           same brand gradient as the WhatsApp button so the two match. */
        background-color: transparent;
        background-image: var(--grad-accent);
        background-clip: border-box;
        -webkit-background-clip: border-box;
        -webkit-text-fill-color: currentColor;
        animation: none;
        color: var(--text);
        font-size: 15px;
        line-height: 18px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;   /* keep the number on a single line */
        border-radius: 16px;
        padding: 7px 14px;     /* height matches the 32px WhatsApp circle */
        /* Same embossed/volumetric shadow as the social buttons (inset white
           bevels on the top/right edges + a drop shadow), not the flat
           --shadow, so the resting pill reads three-dimensional like them. */
        box-shadow: var(--card-shadow-clickable);
        pointer-events: auto;
        cursor: pointer;
    }

    .contacts__phone:hover,
    .contacts__phone:focus,
    .contacts__phone:active {
        /* Match the social buttons exactly: a plain solid-bright swap —
           no gradient flip, no shadow lift, no scale. */
        color: var(--text);
        background: var(--accent-bright);
    }

    .contacts__link {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 479px) {
    .header .site-wrapper {
        padding: 10px 14px;
        gap: 8px;
    }
    .logo img { width: 96px; }
    .contacts { gap: 4px; }
    .contacts__phone {
        font-size: 13px;
        line-height: 16px;
        padding: 7px 11px;
        border-radius: 14px;
    }
    .contacts__link {
        width: 30px;
        height: 30px;
    }
    /* Size the icon (on ::before) — NOT the element's gradient background,
       which would tile and distort the circle. */
    .contacts__link::before {
        background-size: 14px 14px;
    }
    .header__burger {
        width: 32px;
        height: 32px;
        margin-left: 4px;
    }
    .header__burger span { left: 6px; right: 6px; }
    /* Re-center the three lines for the shorter 32px button (the base 11/17/23
       positions are tuned for the 36px button and would otherwise sit ~2px
       below the logo / phone / WhatsApp, which all center on the row). */
    .header__burger span:nth-child(1) { top: 9px; }
    .header__burger span:nth-child(2) { top: 15px; }
    .header__burger span:nth-child(3) { top: 21px; }
    /* Keep the open "X" centered too. */
    .header__burger[aria-expanded="true"] span:nth-child(1),
    .header__burger[aria-expanded="true"] span:nth-child(3) { top: 15px; }
}

/* ========================================================================
   Hero (titling)
   ======================================================================== */
.titling {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.titling__left {
    flex-basis: 54%;
    margin-top: 90px;
}

.titling__right {
    flex-basis: 45%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    min-height: 620px;
}

@media (min-width: 1024px) {
    /* Header floats over the hero (it's transparent on desktop), so the
       hero owns the full viewport height — no header space is reserved. */
    .header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    .titling {
        /* Fill the screen, but don't over-stretch on tall desktop monitors. */
        --hero-h: min(100dvh, 1080px);
        min-height: var(--hero-h);
        align-items: stretch;
        margin-top: 0;
    }
    .titling__left {
        /* Section spans the whole screen, so centering lands the text on
           the true vertical center of the viewport (50vh). */
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px 0;
    }
    .titling__right {
        margin-top: 0;
        flex-grow: 1;
        min-height: 0;
    }
    /* Scoped one level deeper than the base `.titling__photo` rule so these
       desktop caps win the cascade — the base rule (max-width: 80%) appears
       later in source order and would otherwise clobber an equal-specificity
       override here. */
    .titling__right .titling__photo {
        /* Capped so the photo's top stays below the floating header. */
        max-height: calc(var(--hero-h) - var(--header-h, 107px));
        /* Desktop hero photo runs 10% larger than the base cap (80% → 88%). */
        max-width: 88%;
        width: auto;
    }
}

.titling__photo {
    max-width: 80%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: 40px;
    vertical-align: bottom;
}

.scroll-hint {
    position: fixed;
    bottom: 44px;
    /* Align the icon to the container's left edge (the grid). */
    left: calc((100vw - var(--container-w)) / 2);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 4;
    transition: opacity .12s ease-out;
}

.scroll-hint__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 38px;
    background: url(assets/icons/mouse.svg) no-repeat center / contain;
}

.scroll-hint.is-hidden {
    opacity: 0;
}

@media (max-width: 1023px) {
    .scroll-hint { display: none; }
}

/* The hero caps at 1080px tall, so on taller screens the scroll hint
   (icon + CTA line) would float detached at the bottom — hide it. */
@media (min-height: 1081px) {
    .scroll-hint { display: none; }
}

.pros {
    position: relative;
    z-index: 3;
}

.titling__title {
    margin-bottom: 25px;
    font-size: 38px;
    line-height: 1.15;
}

.titling__title span {
    display: block;
}

.titling__description {
    color: var(--text);
    font-size: 18px;
    line-height: 1.55;
}

.titling__intro {
    margin: 0 0 14px;
}

.titling__cta-line {
    /* Sits at the bottom of the hero text with a clear gap above it. */
    margin: 48px 0 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Drop the CTA line a little lower on desktop. */
@media (min-width: 1024px) {
    .titling__cta-line {
        margin-top: 64px;
    }
}

.titling__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.titling__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.titling__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-bright);
    animation: bullet-pulse 1.8s ease-in-out infinite;
}

/* Pulsing halo around the hero bullets. */
@keyframes bullet-pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--focus-ring); }
    50%      { box-shadow: 0 0 0 6px var(--focus-ring); }
}

@media (max-width: 1023px) {
    .titling {
        margin-top: 0;
        /* Just enough clearance for the photo's translateY(32px) drop, so the
           regalia card butts right up against the photo (no visible gap). */
        margin-bottom: 32px;
    }

    .titling__title {
        font-size: 30px;
        margin-bottom: 18px;
    }

    .titling__left {
        margin-top: 48px;
        flex-basis: 60%;
    }

    .titling__right {
        margin-top: 20px;
        flex-basis: 36%;
        min-height: 0;
        /* Drop the photo lower (it's bottom-aligned, so a margin won't move
           it — shift it visually). The matching 32px margin-bottom above lets
           the regalia card sit flush against the photo. */
        transform: translateY(32px);
    }

    .titling__description {
        font-size: 15px;
        line-height: 1.45;
    }

    .titling__intro,
    .titling__cta-line {
        margin-bottom: 12px;
    }

    .titling__list {
        margin-bottom: 14px;
    }

    .titling__list li {
        margin-bottom: 6px;
    }
}

@media (max-width: 767px) {
    .titling {
        margin-top: 24px;       /* push the hero away from the header */
        margin-bottom: 0;       /* photo sits right above the regalia card */
        flex-direction: column;
        align-items: center;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }

    .titling__right {
        order: 1;
        flex-basis: auto;
        max-width: 150px;
        width: 100%;
        height: auto;
        aspect-ratio: 470 / 765;
        margin: 18px auto 0;    /* no gap between the photo and the regalia */
        /* Reset the tablet (≤1023) translateY drop — in the stacked phone
           layout it only pushes the photo down over the regalia card. With
           it gone (and titling margin-bottom: 0) the card sits flush. */
        transform: none;
        overflow: hidden;
    }

    .titling__photo {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin-left: 0;
        margin-right: 0;
        object-position: center top;
    }

    .titling__right::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 72%, var(--bg) 100%);
        pointer-events: none;
    }

    .titling__left {
        order: 0;
        flex-basis: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
        width: 100%;
    }

    .titling__title {
        font-size: 28px;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .titling__description {
        font-size: 14px;
        line-height: 1.4;
    }

    .titling__intro,
    .titling__cta-line {
        margin-bottom: 10px;
    }

    .titling__list {
        margin-bottom: 12px;
    }

    .titling__list li {
        margin-bottom: 4px;
        padding-left: 20px;
    }

    .titling__list li::before {
        width: 7px;
        height: 7px;
        top: .5em;
    }
}

/* ========================================================================
   Pros (counters)
   ======================================================================== */
.pros__about {
    flex-basis: 100%;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 24px;
    color: var(--text);
}

.pros__name {
    font-size: 22px;
    line-height: round(1.2em, 1px);
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}

.pros__credentials {
    font-size: 14px;
    line-height: round(1.7em, 1px);
    margin: 0;
    color: var(--text);
}

.pros__credentials:last-child {
    margin-bottom: 0;
}

.pros__cred {
    position: relative;
    display: inline-block;
}

.pros__cred-link {
    cursor: pointer;
    color: var(--text);
    /* Two stacked underlines: a faint static base (always visible, so the
       word still reads as interactive) and a bright blue line that draws
       in from the left on hover/open. */
    background-image:
        linear-gradient(var(--link), var(--link)),
        linear-gradient(var(--underline-soft), var(--underline-soft));
    background-repeat: no-repeat;
    background-size: 0% 2px, 100% 1px;
    background-position: 0 100%, 0 100%;
    padding-bottom: 3px;
    /* The bright bar "loads" left→right while the image is being revealed. */
    transition: background-size .5s ease-out;
}

.pros__cred.is-open .pros__cred-link {
    background-size: 100% 2px, 100% 1px;
}

.pros__cred-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 4px);
    background: var(--bg-popup);
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-popup);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease-out, transform .15s ease-out, visibility .15s;
    z-index: 50;
}

/* Flipped variant: shown below the link when there's no room above. */
.pros__cred-popup--below {
    bottom: auto;
    top: calc(100% + 14px);
    transform: translate(-50%, -4px);
}

.pros__cred-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    /* --arrow-x keeps the arrow over the link when the popup is nudged
       sideways to stay within the viewport (set by JS). */
    transform: translateX(calc(-50% + var(--arrow-x, 0px)));
    border: 8px solid transparent;
    border-top-color: var(--bg-popup);
}

/* Arrow points up when the popup is below the link. */
.pros__cred-popup--below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--bg-popup);
}

.pros__cred-popup img {
    display: block;
    width: 500px;
    max-width: 90vw;
    height: auto;
    border-radius: 4px;
}

.pros__cred-popup--xl img { width: 560px; }
.pros__cred-popup--md img { width: 440px; }

/* Portrait A4 certificates (Поощрялся / Награждался) — equal size */
.pros__cred-popup--portrait img {
    width: 230px;
    max-height: 54vh;
    object-fit: contain;
}

.pros__cred.is-open .pros__cred-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    /* Wait for the underline bar to finish "loading" before revealing. */
    transition-delay: .5s;
}

@media (max-width: 767px) {
    .pros__about {
        padding-bottom: 14px;
        margin-bottom: 16px;
    }

    .pros__name {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .pros__credentials {
        font-size: 12px;
        line-height: round(1.7em, 1px);
    }
}

.pros__container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 25px;
    /* Static (non-clickable) card — flat surface. */
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
}

.pros-item {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-basis: 30%;
}

/* Desktop & tablet-landscape (≥1024): laurels row on the left, name +
   credentials text on the right — one level. */
@media (min-width: 1024px) {
    .pros__container {
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        gap: 24px;
        padding: 32px 32px;
    }

    .pros__items {
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: flex-start;
        flex: 0 0 auto;
    }

    .pros__about {
        flex: 0 0 auto;
        text-align: right;
        padding: 0;
        margin: 0;
        border-bottom: 0;
    }

    .pros__name {
        font-size: 24px;
        margin-bottom: 12px;
        white-space: nowrap;
    }

    .pros__credentials {
        line-height: round(1.75em, 1px);
        white-space: nowrap;
    }

    .pros-item {
        flex: 0 0 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        text-align: center;
        width: 160px;
    }

    .pros-item__descr {
        line-height: round(1.35em, 1px);
    }
}

.pros-item__digit {
    width: 258px;
    height: 113px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin-bottom: 4px;
    padding-bottom: 4px;
}

.pros-item__num {
    font-size: 35px;
    font-weight: 700;
    line-height: round(1em, 1px);
    background-image: linear-gradient(135deg, var(--accent-light), var(--accent-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.pros-item__digit--second { background-image: url(assets/icons/laurel1.svg); }
.pros-item__digit--third  { background-image: url(assets/icons/laurel2.svg); }
.pros-item__digit--fourth { background-image: url(assets/icons/laurel3.svg); }

/* The 4th laurel holds "300+" (4 glyphs incl. the plus) — keep it visually
   inside the wreath arcs by tightening glyph spacing and dialing the size
   down to ~80% of the 2-digit siblings at every breakpoint. */
.pros-item__digit--fourth .pros-item__num {
    font-size: 28px;             /* ≥1280 desktop (siblings 35) */
    letter-spacing: -.02em;
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .pros-item__digit--fourth .pros-item__num { font-size: 24px; }   /* siblings 30 */
}
@media (max-width: 1023px) {
    .pros-item__digit--fourth .pros-item__num { font-size: 22px; }   /* siblings 28 */
}
@media (max-width: 767px) {
    .pros-item__digit--fourth .pros-item__num { font-size: 16px; }   /* siblings 20 */
}

.pros-item__descr {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
    line-height: round(1.4em, 1px);
    color: var(--text-muted);
}

@media (max-width: 1023px) {
    .pros__container {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: 20px 24px 24px;
        gap: 24px;   /* more breathing room below the embossed divider */
    }

    .pros__about {
        margin-bottom: 0;
        padding-bottom: 16px;
        flex-basis: auto;
        /* Right-align the regalia text in the stacked layout (tablet-portrait,
           768–1023) — phones (≤767) override this back to left below. */
        text-align: right;
        /* Embossed/pressed-in divider between the regalia text and the
           counters. Only in the stacked layout (tablet/mobile) — on desktop
           the about block is a side column and the divider looks out of place. */
        border-bottom: 1px solid var(--emboss-groove);
        box-shadow: 0 1px 0 var(--bevel-light);
    }

    .pros__items {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .pros-item {
        flex: 0 1 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .pros-item__digit {
        flex-basis: auto;
        width: 210px;
        height: 92px;
        margin-bottom: 4px;
    }

    .pros-item__num {
        font-size: 28px;
    }
}

/* 1024–1279: same one-level row layout as desktop, but the container is only
   960px wide here — scale the laurels down and tighten gaps so the wreaths +
   the nowrap credentials column fit without overflowing. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .pros__container {
        gap: 24px;
        padding: 24px 24px;
    }

    .pros-item {
        width: 150px;
    }

    .pros-item__digit {
        width: 185px;
        height: 81px;
    }

    .pros-item__num {
        font-size: 30px;
    }

    .pros-item__descr {
        font-size: 11px;
    }

    .pros__credentials {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .pros {
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }

    .pros__container {
        padding: 16px 10px 18px;
        gap: 20px;   /* more breathing room below the embossed divider */
    }

    .pros__about {
        padding-bottom: 12px;
        text-align: left;   /* left-align the regalia text on mobile */
        /* Inset the text to match the review-card text (gutter + card padding),
           while the laurels keep the wider container. The ≤479 rule overrides
           this with its own value. */
        padding-left: 8px;
        padding-right: 8px;
    }

    .pros__items {
        gap: 4px;
    }

    .pros-item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .pros-item__digit {
        width: 100%;
        max-width: 132px;   /* let the wreath fill the available item width */
        height: 58px;
        padding-bottom: 3px;
        margin-bottom: 3px;
        flex-basis: auto;
    }

    .pros-item__num {
        font-size: 20px;
    }

    .pros-item__descr {
        font-size: 10px;
        line-height: round(1.25em, 1px);
        letter-spacing: .04em;
    }
}

/* Small phones: give the laurel medals more room (trim padding/gaps,
   drop the width cap, taller box) so the wreaths read bigger — the
   number size stays the same. */
@media (max-width: 479px) {
    .pros {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pros__container {
        padding-left: 4px;
        padding-right: 4px;
    }

    /* Keep the container narrow so the laurels stay wide, but inset the
       regalia text itself so it doesn't hug the card edge. */
    .pros__about {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pros__items {
        gap: 2px;
    }

    .pros-item__digit {
        max-width: none;
        height: 66px;
        /* The item is already full-width here, so grow the wreath past the
           box edges (its art has side whitespace) to read larger. */
        background-size: 118%;
    }
}

/* ========================================================================
   Practices accordion
   ======================================================================== */
.practices {
    margin-top: 150px;
}

.practices__title {
    margin-bottom: 12px;
}

.practices__undertitle {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 27px;
    margin-bottom: 24px;
}

.practices__items {
    display: block;
    width: 100%;
}

.practice-item {
    display: block;
    /* Clickable card — diagonal gradient surface. */
    background: var(--card-clickable);
    border-radius: var(--radius-lg);
    /* The transparent 4th layer matches the expanded state's layer count so
       the box-shadow transition interpolates cleanly (mismatched layer
       counts leave a "stuck" shadow). */
    box-shadow: var(--card-shadow-clickable), 0 12px 30px transparent;
    margin-bottom: 12px;
    overflow: hidden;
    transition: background .2s ease-out, box-shadow .2s ease-out;
    position: relative;
}

.practice-item:not(.is-closed) {
    /* Expanded keeps the normal (non-hover) gradient surface — only the
       drop shadow lifts to signal the card is open. */
    background: var(--card-clickable);
    box-shadow: var(--card-shadow-clickable), var(--shadow-card-open);
}

.practice-item__summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 50px 18px 22px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 16px;
    position: relative;
    color: var(--text);
    user-select: none;
}

.practice-item__summary::-webkit-details-marker {
    display: none;
}

.practice-item__summary:hover {
    background-color: var(--card-clickable-active);
}

.practice-item__title {
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    flex: 1 1 60%;
    min-width: 0;
}

.practice-item__result {
    color: var(--accent-soft);
    font-size: 14px;
    line-height: 1.4;
    flex: 0 0 auto;
    margin-right: 8px;
    white-space: nowrap;
}

/* + / − accordion glyph */
.practice-item__icon {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border: none;
}

.practice-item__icon::before,
.practice-item__icon::after {
    content: '';
    position: absolute;
    background: var(--accent-soft);
    border-radius: 1px;
    transition: transform .2s ease-out, opacity .2s ease-out;
}

.practice-item__icon::before {
    /* horizontal bar */
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    margin-top: -1px;
}

.practice-item__icon::after {
    /* vertical bar */
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
}

.practice-item:not(.is-closed) .practice-item__icon::after {
    transform: scaleY(0);
}

/* The body height is animated by JS via the .is-closed class + inline
   height. When collapsed the body is also `inert` (out of the tab order and
   the a11y tree) and the summary's aria-expanded reflects the real state. */
.practice-item__body {
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    transition: height .35s cubic-bezier(.2,.0,.2,1);
}

.practice-item.is-closed .practice-item__body {
    height: 0;
}

.practice-item__body-inner {
    /* Two columns: copy on the left, PDF button pinned right. The copy keeps
       to its own column and never runs under the button. */
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 18px;
    align-items: start;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--border);
}

.practice-item__body-inner > p,
.practice-item__body-inner > ul {
    grid-column: 1;
}

.practice-item__body p {
    margin: 0 0 12px;
}

.practice-item__body ul {
    margin: 0 0 12px 18px;
    padding: 0;
}

.practice-item__body li {
    margin-bottom: 4px;
}

.practice-item__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Pinned to the right column so the copy never runs under it. */
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 12px 22px;
    width: fit-content;
    border-radius: 6px;
    background: var(--grad-accent);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: var(--shadow);
    transition: box-shadow .15s ease-out, background .15s ease-out;
}

/* Leading document icon — makes it obvious the link opens a real file. */
.practice-item__btn::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M9 13h6M9 17h6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* The old standalone arrow glyph is replaced by the document icon above. */
.practice-item__btn .icon {
    display: none;
}

.practice-item__btn:hover {
    background: var(--grad-accent-rev);
    color: var(--text);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 1279px) {
    .practices {
        margin-top: 110px;
    }
}

@media (max-width: 767px) {
    .practices {
        margin-top: 80px;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }
}

@media (max-width: 767px) {
    .practice-item__summary {
        padding: 14px 42px 14px 16px;
        gap: 6px 12px;
        flex-wrap: wrap;
    }

    .practice-item__title {
        font-size: 15px;
        flex-basis: 100%;
    }

    .practice-item__result {
        font-size: 13px;
        flex-basis: 100%;
        white-space: normal;
    }

    .practice-item__icon {
        right: 16px;
    }

    .practice-item__body {
        font-size: 14px;
        line-height: 1.55;
    }

    .practice-item__body-inner {
        /* Stack on mobile: button on top, copy below. */
        display: block;
    }

    .practice-item__btn {
        margin: 0 0 16px;
        font-size: 14px;
        padding: 8px 18px;
    }
}

/* "More cases" reveal button + extra-cases wrapper */
.practices__more[hidden] {
    display: none;
}

.practices__more-btn {
    display: block;
    margin: 32px auto 0;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-soft);
    font: inherit;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.practices__more-btn:hover {
    background: var(--grad-accent-rev);
    color: var(--text);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}

.practices__more-btn[hidden] {
    display: none;
}

/* ========================================================================
   Reviews
   ======================================================================== */
.reviews {
    margin: 150px 0 0;
}

.reviews__head {
    margin-bottom: 24px;
}

.reviews__title {
    margin-bottom: 12px;
}

.reviews__description {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 27px;
    max-width: 620px;
    margin: 0;
}

/* Overall-rating card — lives in the reviews grid after the 5th review,
   same footprint as a review card. Blue gradient on hover (like buttons). */
.rating-card {
    grid-column: span 4;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    /* Clickable card — diagonal gradient surface. */
    background: var(--card-clickable);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow-clickable);
    padding: 22px;
    color: var(--text);
    text-decoration: none;
}

.rating-card:hover {
    background: var(--card-clickable-active);
    color: var(--text);
}

.rating-card__value {
    font-size: 24px;
    font-weight: 600;
    line-height: round(1.1em, 1px);
    color: var(--text);
}

.rating-card__label {
    font-size: 11px;
    font-weight: 500;
    line-height: round(1.35em, 1px);
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .85;
}

/* Corner arrow. Selector also includes .icon so its size wins over the
   base .icon rule that's declared later in the file. */
.rating-card__icon.icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 21px;
    height: 21px;
    color: var(--icon-soft);
    transition: transform .2s ease-out;
}

/* Corner arrow nudges up-right on hover — the original "Все отзывы" dynamic. */
.rating-card:hover .rating-card__icon {
    transform: translate(2px, -2px);
}


.icon-star {
    display: inline-block;
    width: 16px;
    height: 16px;
    fill: var(--star);
    stroke: none;
    flex: 0 0 16px;
}

/* Lucide outline icons (stroke-based) */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--grid-gap);
}

.reviews__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.review-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Static (non-clickable) card — flat surface, same as the regalia card. */
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 22px;
    color: inherit;
    position: relative;
}

.review-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__head-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.review-card__avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background-color: var(--avatar-bg, var(--accent));
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    overflow: hidden;
    /* Lit lower lip of the engraved rim — same light value as the regalia
       divider. The dark groove itself is drawn on ::after (above the photo). */
    box-shadow: 0 1px 0 var(--bevel-light);
}

/* Pressed-in / engraved rim, matching the regalia divider. Drawn on ::after
   so it sits ON TOP of the avatar photo — an inset shadow on the parent would
   be hidden behind the (opaque, z-index:1) image, leaving photo avatars flat. */
.review-card__avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    box-shadow: var(--shadow-avatar-rim);
}

.review-card__avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.review-card__avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card__author {
    color: var(--text);
    font-size: 15px;
    line-height: round(1.2em, 1px);
}

.review-card__stars {
    display: flex;
    gap: 3px;
    margin-top: 2px;
}

.review-card__stars .icon-star {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.review-card__text {
    color: var(--text);
    font-size: 14px;
    line-height: round(1.55em, 1px);
    margin: 0;
    /* Clamp to 5 lines + "…" */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1279px) {
    .reviews {
        margin: 110px 0 0;
    }

    .reviews__head {
        flex-direction: column;
        gap: 12px;
    }
    /* card stays span 4 → 2 per row on the 8-column tablet grid */
}

@media (max-width: 767px) {
    .reviews {
        margin: 80px 0 0;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }

    .reviews__title {
        margin-bottom: 10px;
    }

    /* card span 4 on the 4-column mobile grid → 1 per row */
    .review-card { padding: 18px; }
    .rating-card { padding: 22px 18px; }
}

/* ========================================================================
   Qualification list
   ======================================================================== */
.qualification {
    margin-top: 150px;
    margin-bottom: 0;
}

.qualification__head {
    margin-bottom: 12px;
}

.qualification__undertitle {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 27px;
    margin-bottom: 30px;
}

.qualification__list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Real grid so the tiles line up with the site's 12-col grid exactly
       (a repeat(N,1fr) grid with the same gap == N/… spans of the site grid;
       6 tiles = 2 cols each). */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--grid-gap);
}

.qualification__item {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.qualification__link {
    display: flex;
    flex-direction: column;
    color: var(--text);
    /* Clickable card — diagonal gradient surface. */
    background: var(--card-clickable);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--card-shadow-clickable);
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: background .2s ease-out;
}

.qualification__link:hover {
    /* `background` (not -color) so it replaces the gradient on hover. */
    background: var(--card-clickable-active);
}

.qualification__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.qualification__thumb {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    /* Thin outline ring, matching the review-card avatars. */
    box-shadow: 0 0 0 1px var(--ring-light);
}

.qualification__see-all {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    /* Fill the <li>, which flex-stretches to the certificate tiles' height
       in the same row — so the tile matches them exactly (no aspect-ratio). */
    height: 100%;
    padding: 12px;
    /* Clickable card — diagonal gradient surface; the blue accent gradient
       is reserved for the hover state. */
    background: var(--card-clickable);
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow-clickable);
    color: var(--text);
    font: inherit;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.qualification__see-all:hover {
    /* Calm hover — same as the practice cards: just the active surface. */
    background: var(--card-clickable-active);
    color: var(--text);
}

.qualification__see-all-count {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.qualification__see-all-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .85;
}


@media (max-width: 1279px) {
    .qualification {
        margin-top: 110px;
        margin-bottom: 0;
    }

    .qualification__head {
        margin-bottom: 20px;
    }

    .qualification__list {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Hide last 2 visible certs (4th, 5th) on tablet & smaller — keep 3 + see-all = 4 tiles, 1 row */
    .qualification__list > .qualification__item:nth-child(4),
    .qualification__list > .qualification__item:nth-child(5) {
        display: none;
    }
}

@media (max-width: 767px) {
    .qualification {
        margin-top: 80px;
        margin-bottom: 0;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }

    /* 2 per row → each tile spans 2 of the 4 grid columns (stays on grid). */
    .qualification__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================================================
   Certificate lightbox
   ======================================================================== */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-lightbox[hidden] {
    display: none;
}

/* The container only holds focus for a11y — no visible ring on it. */
.cert-lightbox:focus {
    outline: none;
}

.cert-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.cert-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 900px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cert-lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-lightbox);
    background: var(--bg-card);
    display: block;
}

.cert-lightbox__counter {
    color: var(--text-on-overlay);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .03em;
    font-variant-numeric: tabular-nums;
}

.cert-lightbox__close,
.cert-lightbox__btn {
    position: absolute;
    z-index: 2;
    background: var(--grad-accent);
    box-shadow: var(--card-shadow-clickable);
    color: var(--text);
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* No background transition: swapping the gradient for a flat colour can't
       be tweened (the gradient vanishes instantly), which flickered. Swap it
       instantly like the footer socials; only the shadow eases. */
    transition: box-shadow .15s ease-out;
}

/* Hover matches the footer social circles: flat bright accent fill. */
.cert-lightbox__close:hover,
.cert-lightbox__btn:hover:not(:disabled) {
    background: var(--accent-bright);
}

.cert-lightbox__btn .icon,
.cert-lightbox__close .icon {
    width: 24px;
    height: 24px;
    stroke-width: 3;
}

.cert-lightbox__close .icon {
    width: 22px;
    height: 22px;
}

.cert-lightbox__close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    /* Bare icon by default — the blue circle + lift appear only on hover. */
    background: none;
    box-shadow: none;
}

.cert-lightbox__close:hover {
    box-shadow: var(--card-shadow-clickable);
}

.cert-lightbox__btn {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

.cert-lightbox__btn--prev { left: 24px; }
.cert-lightbox__btn--next { right: 24px; }

/* Chevrons aren't visually centered in their viewBox — shift each
   slightly in the direction they point so the arrowhead sits at
   the optical centre of the round button. */
.cert-lightbox__btn--prev .icon { transform: translateX(-2px); }
.cert-lightbox__btn--next .icon { transform: translateX(2px); }

body.cert-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cert-lightbox__btn {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    .cert-lightbox__btn--prev { left: 8px; }
    .cert-lightbox__btn--next { right: 8px; }
    .cert-lightbox__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .cert-lightbox__inner {
        max-width: 94vw;
        gap: 10px;
    }
    .cert-lightbox__img {
        max-height: 72vh;
    }
}

/* ========================================================================
   Footer
   ======================================================================== */
.footer {
    position: relative;
    margin-top: 180px;
    margin-bottom: 40px;
    padding-top: 40px;
    background-color: var(--bg);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100vw;
    right: -100vw;
    bottom: -40px;
    background-color: var(--bg);
    z-index: -1;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--grid-gap);
    margin-bottom: 0;
}

/* 12 cols: 3 across (4+4+4). Tablet 8 cols: brand full row, then 4+4.
   Mobile 4 cols: everything stacks (span 4). */
.footer__col--brand { grid-column: span 4; }
.footer__col:nth-child(2) { grid-column: span 4; }
.footer__col:nth-child(3) { grid-column: span 4; }

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__logo {
    width: 170px;
    height: 40px;
    display: block;
    margin: 0;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 13px;
    line-height: round(1.45em, 1px);
    max-width: 260px;
    margin: 0;
}

.footer__heading {
    color: var(--text);
    font-size: 14px;
    line-height: round(1.2em, 1px);
    margin: 0;
    height: 40px;
    padding-bottom: 1px;
    display: flex;
    align-items: flex-end;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer__item {
    color: var(--text-muted);
    font-size: 14px;
    line-height: round(1.45em, 1px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color var(--transition);
}

.footer__item:hover {
    color: var(--text);
}

/* Phone link is dialable only on phones; inert on desktop/tablet. */
.footer__item[href^="tel:"] {
    pointer-events: none;
    cursor: default;
}

.footer__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    color: var(--accent);
    stroke: var(--accent);
    transition: color var(--transition), stroke var(--transition);
}

.footer__item:hover .footer__icon {
    color: var(--accent-bright);
    stroke: var(--accent-bright);
}

.footer__socials {
    display: flex;
    gap: 18px;
    margin-top: 4px;
}

.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-accent);
    box-shadow: var(--card-shadow-clickable);
    position: relative;
}

.footer__social:hover {
    background: var(--accent-bright);
}

.footer__social::before {
    content: '';
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}

.footer__social--wa::before { background-image: url(assets/icons/whatsapp.svg); }
.footer__social--tg::before { background-image: url(assets/icons/telegram.svg); }
.footer__social--vk::before {
    background-image: url(assets/icons/vk.svg);
    background-size: 20px 20px;
}

@media (max-width: 1279px) {
    .footer {
        margin-top: 130px;
    }

    /* 8-column tablet grid: brand full row, links/contacts 4 + 4 */
    .footer__col--brand { grid-column: span 8; }
    .footer__col:nth-child(2) { grid-column: span 4; }
    .footer__col:nth-child(3) { grid-column: span 4; }
}

@media (max-width: 767px) {
    .footer {
        margin-top: 90px;
        margin-bottom: 20px;
        padding-top: 30px;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }

    /* 4-column mobile grid: every column spans the full row → stacked.
       (Resets the tablet `brand span 8`, which would otherwise create
       implicit columns and break the layout.) */
    .footer__col--brand,
    .footer__col:nth-child(2),
    .footer__col:nth-child(3) {
        grid-column: span 4;
    }

    /* On phones the number can actually be dialed. */
    .footer__item[href^="tel:"] {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* Tighter gap between section heads and their grey sub-lines on mobile. */
@media (max-width: 767px) {
    .practices__title,
    .reviews__title,
    .qualification__head {
        margin-bottom: 6px;
    }
}

/* ========================================================================
   Clickable controls — +4px invisible hit area for easier hover / tap
   ======================================================================== */
.logo,
.menu__link,
.contacts__phone,
.footer__item,
.practices__more-btn,
.practice-item__btn {
    position: relative;
}

.logo::after,
.header__burger::after,
.menu__link::after,
.contacts__phone::after,
.footer__item::after,
.footer__social::after,
.contacts__link::after,
.practices__more-btn::after,
.practice-item__btn::after,
.cert-lightbox__btn::after,
.cert-lightbox__close::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
}

/* ========================================================================
   Background blur orbs — two giant blurred colored circles that slowly
   drift across the page as decorative animated glow
   ======================================================================== */
.blur {
    position: fixed;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    transform: rotate(0);
    pointer-events: none;
}

.blur::after,
.blur::before {
    content: '';
    display: block;
    width: 690px;
    height: 690px;
    position: absolute;
    border-radius: 50%;
    opacity: .25;
    filter: blur(120px);
}

.blur::after {
    background: var(--text-muted);
    left: -200px;
    top: -200px;
}

.blur::before {
    background: var(--accent);
    right: -200px;
    bottom: -200px;
}

@media (min-width: 1280px) {
    .blur {
        animation: blur 50s infinite;
    }
}

@media (max-width: 1279px) {
    .blur {
        display: none;
    }
}

@keyframes blur {
    0%   { transform: rotate(0);      left: 0;    top: 0; }
    50%  { transform: rotate(180deg); left: 25%;  top: 25%; }
    100% { transform: rotate(360deg); left: 0%;   top: 0%; }
}

/* ========================================================================
   Debug bar: 8px grid overlay, viewport presets, cron trigger
   ======================================================================== */
/* 12-column layout grid that mirrors .site-wrapper at every breakpoint */
.debug-grid {
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
    display: none;
}
.debug-grid.is-on { display: block; }

.debug-grid__inner {
    width: var(--container-w);
    min-width: 320px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--grid-gap);
}

/* Mirror the section side-gutter when the container is full-width. */
@media (max-width: 767px) {
    .debug-grid__inner { padding: 0 var(--gutter); }
}
@media (max-width: 479px) {
    .debug-grid__inner { padding: 0 12px; }
}

.debug-grid__col {
    background: rgba(255, 0, 128, .08);
    border-left: 1px solid rgba(255, 0, 128, .35);
    border-right: 1px solid rgba(255, 0, 128, .35);
}

.debug-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: rgba(11, 23, 35, .92);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    font: 11px/1 var(--font-main);
    color: #fff;
}

.debug-bar__group {
    display: flex;
    gap: 2px;
    padding: 0 4px;
    border-left: 1px solid rgba(255, 255, 255, .15);
    border-right: 1px solid rgba(255, 255, 255, .15);
}

.debug-bar__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease-out;
}
.debug-bar__btn:hover { background: rgba(255, 255, 255, .1); }
.debug-bar__btn.is-active,
.debug-bar__btn.is-on { background: rgba(42, 104, 172, .8); }
.debug-bar__btn.is-loading { opacity: .7; cursor: progress; }
.debug-bar__btn.is-ok      { background: rgba(40, 130, 70, .8); }
.debug-bar__btn.is-error   { background: rgba(160, 50, 60, .8); }

.debug-bar__meta {
    padding: 0 8px;
    color: rgba(255, 255, 255, .65);
    min-width: 72px;
    text-align: center;
}

/* ========================================================================
   Small-phone gutter: align all main sections to the same 12px side
   gutter as .pros (placed last so it wins over the 25px ≤767 rules).
   ======================================================================== */
@media (max-width: 479px) {
    .practices,
    .reviews,
    .qualification,
    .footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hero text sits a bit further from the edge, in line with the
       inset of the review-card text rather than hugging the screen. */
    .titling {
        padding-left: 24px;
        padding-right: 24px;
    }
}
