:root {
    --bg: #1a1a1a;
    --bg-elevated: #242424;
    --bg-soft: #2e2e2e;
    --surface: #3a3a3a;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --border: #525252;
    --accent: #ffcc00;
    --accent-hover: #ffd633;
    --accent-contrast: #111111;
    --danger: #ff3b30;
    --font-display: "Manrope", sans-serif;
    --font-body: "Manrope", sans-serif;
    --font-ui: "Manrope", sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shell: min(1120px, calc(100% - 2.5rem));
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hero-object-fit: cover;
    --hero-object-position: center;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}
body {
    margin: 0;
    min-height: 100vh;
    min-width: 0;
    overflow-x: clip;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(900px 500px at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        radial-gradient(700px 420px at 10% 30%, color-mix(in srgb, var(--danger) 14%, transparent), transparent 50%),
        var(--bg);
    line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-underline-offset: 0.15em; }
a:hover { color: var(--text); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
}
.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    background: var(--accent); color: var(--accent-contrast); padding: 0.6rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }
.shell {
    width: var(--shell);
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
}

/* header */
.header {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header__inner {
    width: var(--shell);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    min-height: 4.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none; color: var(--text);
}
.brand__mark {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: none;
}
.brand__logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1rem; }
.brand__role { font-size: 0.72rem; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__top { display: none; }
.nav__close { display: none; }
.nav__list { display: flex; gap: 0.2rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
    text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.94rem;
    padding: 0.35rem 0; position: relative;
}
.nav__link--active, .nav__link:hover { color: var(--text); }
.nav__link--active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--accent); border-radius: 2px;
}
.header__actions { display: flex; align-items: center; gap: 0.55rem; }
.header__theme {
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    border-radius: 999px; min-height: 2.35rem; padding: 0.35rem 0.9rem;
    font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.header__theme:hover { border-color: var(--accent); color: var(--accent-hover); }
.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.5rem;
    padding: 0;
    box-sizing: border-box;
}
.nav-toggle__bars {
    width: 1.05rem;
    height: 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.nav-toggle__bars span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
}
.nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 45;
}
.nav-backdrop[hidden] { display: none !important; }
body.nav-open .nav-backdrop { display: block; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    min-height: 2.85rem; padding: 0.65rem 1.25rem;
    border-radius: 999px; border: 0;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    box-shadow: none;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    color: inherit;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid, .btn--primary {
    background: var(--accent); color: var(--accent-contrast);
    border: 0;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn--solid:hover, .btn--primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn--ghost {
    background: transparent; border: 1px solid var(--border); color: var(--text);
}
.btn--ghost:hover { border-color: color-mix(in srgb, var(--text) 40%, var(--border)); }
.btn--small { min-height: 2.35rem; padding: 0.4rem 0.95rem; font-size: 0.9rem; }

.messenger { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: stretch; }
.messenger__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    box-sizing: border-box;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.messenger__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}
.messenger__glyph svg,
.messenger__svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}
.messenger__text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.messenger__btn--telegram:hover,
.hero .messenger__btn--telegram:hover,
.hero:has(.hero-photos[data-count="2"]) .messenger__btn--telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
    color: #fff;
}
.messenger__btn--max:hover,
.hero .messenger__btn--max:hover,
.hero:has(.hero-photos[data-count="2"]) .messenger__btn--max:hover {
    background: #6C5CE7;
    border-color: #6C5CE7;
    color: #fff;
}

/* hero: 1 = портрет под текстом, 2 = атмосферный фон */
.hero {
    position: relative;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
    text-align: center;
    overflow: hidden;
}
.hero__glow {
    position: absolute; inset: 10% 20% auto;
    height: 40%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
    filter: blur(40px); pointer-events: none; z-index: 0;
}
.hero__shell { position: relative; z-index: 2; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 0.45rem;
    margin: 0 0 1.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem; font-weight: 600;
}
.hero__badge-dot {
    width: 0.45rem; height: 0.45rem; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.hero__brand {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero__title {
    margin: 0 auto 1rem;
    max-width: 16ch;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.hero__accent {
    background: linear-gradient(90deg, var(--danger), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    margin: 0 auto 1.6rem;
    max-width: 48ch;
    color: var(--text-muted);
    font-size: 1.05rem;
}
.hero__actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.hero__messengers {
    display: flex;
    justify-content: center;
}
.hero__photo-shade {
    display: none;
    pointer-events: none;
}

/* одно фото: круглый портрет под контентом */
.hero__photo.hero-photos[data-count="1"] {
    position: relative;
    z-index: 1;
    margin: 2.5rem auto 0;
    width: min(360px, 88%);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.hero__photo.hero-photos[data-count="1"] .hero-photos__frame {
    width: 100%;
    height: 100%;
}

/* два фото: фон на весь hero */
.hero:has(.hero-photos[data-count="2"]) {
    min-height: min(88vh, 820px);
    display: grid;
    align-items: center;
    padding: clamp(4rem, 10vh, 7rem) 0;
}
.hero:has(.hero-photos[data-count="2"]) .hero__glow { display: none; }
.hero__photo.hero-photos[data-count="2"] {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    pointer-events: none;
}
.hero__photo.hero-photos[data-count="2"] .hero-photos__frame {
    height: 100%;
    min-height: min(88vh, 820px);
}
.hero__photo.hero-photos[data-count="2"] img {
    filter: brightness(0.55) saturate(0.9);
}
.hero:has(.hero-photos[data-count="2"]) .hero__photo-shade {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(8, 10, 16, 0.35) 0%, rgba(8, 10, 16, 0.75) 100%),
        linear-gradient(180deg, rgba(8, 10, 16, 0.45) 0%, transparent 30%, rgba(8, 10, 16, 0.55) 100%);
}
.hero:has(.hero-photos[data-count="2"]) .hero__badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}
.hero:has(.hero-photos[data-count="2"]) .hero__brand,
.hero:has(.hero-photos[data-count="2"]) .hero__lead {
    color: rgba(255, 255, 255, 0.78);
}
.hero:has(.hero-photos[data-count="2"]) .hero__title {
    color: #fff;
}
.hero:has(.hero-photos[data-count="2"]) .btn--ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.hero:has(.hero-photos[data-count="2"]) .messenger__btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.hero:has(.hero-photos[data-count="2"]) .messenger__btn--telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
    color: #fff;
}
.hero:has(.hero-photos[data-count="2"]) .messenger__btn--max:hover {
    background: #6C5CE7;
    border-color: #6C5CE7;
    color: #fff;
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: var(--hero-object-fit);
    object-position: var(--hero-object-position);
}

/* sections */
.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band--flush-top { padding-top: 1rem; }
.band--soft { background: color-mix(in srgb, var(--bg-elevated) 55%, transparent); }
.band__kicker {
    margin: 0 0 0.45rem;
    font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.band__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    letter-spacing: -0.02em;
}
.band__text { margin: 0.55rem 0 0; color: var(--text-muted); max-width: 48ch; }
.band__head {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    align-items: end; margin-bottom: 1.75rem;
}

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 0.5rem; }
.page-head__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.2rem);
}
.page-head__text { margin: 0.75rem 0 0; color: var(--text-muted); max-width: 68ch; line-height: 1.6; }
.about-intro {
    display: flow-root;
}
.about-intro .page-head__title {
    margin: 0 0 0.85rem;
}
.about-intro .page-head__text {
    max-width: none;
}
.about-intro .page-head__text + .page-head__text {
    margin-top: 0.85rem;
}
.about-intro__photo {
    float: right;
    width: min(352px, 33.6vw);
    aspect-ratio: 1;
    margin: 0 0 1.15rem 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 18px 40px color-mix(in srgb, #000 28%, transparent);
    shape-outside: circle(50%);
    shape-margin: 0.85rem;
}
@media (min-width: 981px) {
    .about-intro__photo {
        margin-left: 3.25rem;
        shape-margin: 2rem;
    }
}
.about-intro__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.about-personal { max-width: 48rem; }
.about-sports {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.about-sports li {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}
.about-sports strong {
    color: var(--text);
    font-weight: 700;
}
.crumbs { padding: 1rem 0 0; font-size: 0.88rem; color: var(--text-muted); }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.crumbs__item:not(:last-child)::after { content: "/"; margin-left: 0.5rem; opacity: 0.45; }
.crumbs a { color: inherit; text-decoration: none; }

.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}
.stats { display: grid; gap: 0.85rem; }
.stat {
    padding: 1.2rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.stat__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}
.stat__label { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.92rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.card {
    display: flex; flex-direction: column; gap: 0.65rem;
    padding: 1.35rem 1.3rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-2px); }
.card__icon {
    width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent); font-weight: 800; font-size: 0.85rem;
}
.card__title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.card__text { margin: 0; color: var(--text-muted); flex: 1; }
.card__go { color: var(--accent-hover); font-weight: 700; font-size: 0.92rem; }

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.proj-grid--page .proj__text {
    -webkit-line-clamp: 8;
    min-height: 0;
    line-height: 1.55;
}
.proj-grid--page .proj__title {
    font-size: 1.25rem;
}
.filter-empty {
    margin: 1.25rem 0 0;
    color: var(--text-muted);
    text-align: center;
}
.proj-slider { position: relative; }
.proj-slider__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}
.slider-controls { display: inline-flex; gap: 0.4rem; }
.slider-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.slider-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-0.06em);
}
.slider-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}
.slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.proj-slider__viewport {
    overflow: hidden;
    width: 100%;
    /* запас сверху, чтобы translateY на hover не срезал верхнюю границу */
    padding-top: 6px;
    margin-top: -6px;
}
.proj-slider__track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    transition: transform 0.35s var(--ease);
    will-change: transform;
}
.proj-slider__item {
    flex: 0 0 calc((100% - 2rem) / 3);
    width: calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.proj-slider__item .proj {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
}
.proj {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.proj[hidden],
[data-project][hidden] {
    display: none !important;
}
.proj:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    box-shadow: 0 10px 28px color-mix(in srgb, #000 28%, transparent);
}
.proj__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
    flex: 0 0 auto;
    overflow: hidden;
}
.proj__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72) saturate(0.92);
    transition: filter 0.25s var(--ease);
}
.proj__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(8, 10, 16, 0.18) 0%, rgba(8, 10, 16, 0.42) 100%),
        linear-gradient(180deg, rgba(8, 10, 16, 0.22) 0%, transparent 42%, rgba(8, 10, 16, 0.3) 100%);
    transition: opacity 0.25s var(--ease);
}
.proj:hover .proj__media img {
    filter: brightness(0.86) saturate(0.96);
}
.proj:hover .proj__media::after {
    opacity: 0.5;
}
.proj__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
}
.proj__title {
    margin: 0;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
}
.proj__body .tags {
    align-content: start;
    flex: 0 0 auto;
}
.proj__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
    font-size: 0.72rem; padding: 0.18rem 0.5rem; border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-hover); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.filter__btn {
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
    border-radius: 999px; padding: 0.4rem 0.8rem; font: inherit; font-weight: 600; cursor: pointer;
}
.filter__btn--active, .filter__btn:hover { border-color: var(--accent); color: var(--text); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.feature {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.feature__title { margin: 0 0 0.45rem; font-weight: 800; }
.feature__text { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.quote-slider { position: relative; }
.quote-slider__viewport {
    overflow: hidden;
    width: 100%;
}
.quote-slider__track {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    transition: transform 0.35s var(--ease);
    will-change: transform;
}
.quote-slider__item {
    flex: 0 0 calc((100% - 1.7rem) / 3);
    min-width: 0;
}
.quote {
    margin: 0;
    padding: 1.2rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.quote__text {
    margin: 0;
    flex: 1 1 auto;
    line-height: 1.5;
    min-height: calc(1.5em * 5);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quote__foot {
    margin-top: auto;
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.quote__author {
    font-style: normal;
    font-weight: 800;
    display: block;
    line-height: 1.3;
    min-height: 1.3em;
}
.quote__role {
    display: -webkit-box;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.panel__title { margin: 0 0 0.7rem; font-weight: 800; font-size: 1.15rem; }
.panel__text { margin: 0 0 0.75rem; color: var(--text-muted); }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack__item {
    padding: 0.35rem 0.7rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--bg-elevated); font-size: 0.88rem;
}
.quality-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.quality-list__item {
    padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border); font-weight: 700;
}
.skill { margin-bottom: 0.85rem; }
.skill__top { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.3rem; }
.skill__bar { height: 6px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.skill__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--danger)); transition: width 1s var(--ease); }

.rate {
    display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center;
    padding: 1.25rem 1.4rem; margin: 0 0 1.75rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 28%, var(--surface)), var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.rate__value { font-weight: 800; font-size: 2.1rem; }
.rate__label { color: var(--text-muted); }
.rate__text { margin: 0; max-width: 42ch; color: var(--text-muted); }

.process-block {
    margin: 0 0 1.5rem;
    padding: 1.35rem 1.4rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.process-block__title {
    margin: 0 0 0.45rem;
    font-weight: 800;
    font-size: 1.25rem;
}
.process-block__lead {
    margin: 0 0 1.1rem;
    color: var(--text-muted);
    max-width: 68ch;
}
.process { display: grid; gap: 0.7rem; }
.process--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}
.process__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.7rem;
}
.process__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent-hover);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}
.process__title {
    margin: 0;
    line-height: 1.25;
}
.process__step p { margin: 0.35rem 0 0; color: var(--text-muted); font-size: 0.92rem; }

.detail { padding: 1.75rem 0; border-top: 1px solid var(--border); }
.detail__head {
    margin-bottom: 1rem;
}
.detail__title { margin: 0 0 0.45rem; font-weight: 800; font-size: 1.45rem; }
.detail__text { margin: 0; color: var(--text-muted); max-width: 68ch; }
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.detail__grid--single { grid-template-columns: 1fr; max-width: 42rem; }
.detail__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.15rem;
}
.detail__choose {
    min-width: 10.5rem;
}
.checklist { margin: 0; padding-left: 1.1rem; }
.panel__note {
    margin: 0.9rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.article {
    display: block; padding: 1.2rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    text-decoration: none; color: inherit;
}
.article:hover { border-color: var(--accent); }
.article__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.article__title { margin: 0 0 0.4rem; font-weight: 800; font-size: 1.15rem; }
.article__text { margin: 0; color: var(--text-muted); }
.prose { max-width: 68ch; }
.prose h2 { font-weight: 800; }
.prose ul {
    margin: 0.65rem 0 1rem;
    padding-left: 1.25rem;
}
.prose li { margin: 0.35rem 0; }
.pager { display: flex; gap: 0.4rem; margin-top: 1.25rem; }
.pager a, .pager span {
    min-width: 2.3rem; height: 2.3rem; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface);
}
.pager [aria-current="page"] { border-color: var(--accent); color: var(--accent-hover); font-weight: 800; }

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
    gap: 1.15rem;
    align-items: start;
}
.contact__form-wrap { order: 1; min-width: 0; }
.contact-aside {
    order: 2;
    position: sticky;
    top: 5.5rem;
}
.contact-aside .panel__text { margin-bottom: 1rem; }
.contact-aside__messengers { margin-bottom: 1.1rem; }
.contact-aside__messengers .messenger {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.contact-aside__messengers .messenger__btn {
    width: 100%;
}
.form { display: grid; gap: 0.85rem; }
.form__submit {
    width: 100%;
    justify-self: stretch;
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.field { display: grid; gap: 0.3rem; min-width: 0; }
.field__label { font-size: 0.88rem; font-weight: 700; }
.field__label abbr { text-decoration: none; color: var(--accent); }
.field__control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    font: inherit;
    background: var(--bg-elevated);
    color: var(--text);
}
.field__control--area { min-height: 130px; resize: vertical; }
.field__control:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.field__control.is-invalid { border-color: #e35d6a; }
.field__error { color: #e35d6a; font-size: 0.82rem; }
.field__error[hidden] { display: none !important; }

.service-pick { margin: 0; padding: 0; border: 0; min-inline-size: 0; }

.contact__form-wrap,
.contact__form.panel {
    overflow: visible;
}
.contact__form {
    display: grid;
    gap: 0.85rem;
    position: relative;
}

.select {
    position: relative;
    min-width: 0;
    z-index: 1;
}
.select.is-open {
    z-index: 40;
}
.select__trigger:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
    border-color: var(--accent);
}

/* кастомные чекбоксы под тему */
.check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.2rem 0 0;
    flex: 0 0 auto;
    border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--border));
    border-radius: 0.3rem;
    background: var(--bg-elevated);
    cursor: pointer;
    position: relative;
}
.check input[type="checkbox"]::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.42rem;
    height: 0.22rem;
    margin: 0;
    border-left: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    transform: translate(-50%, -65%) rotate(-45deg);
    opacity: 0;
    pointer-events: none;
}
.check input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.check input[type="checkbox"]:checked::before {
    opacity: 1;
}
.check input[type="checkbox"]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
    outline-offset: 2px;
}
.check input[type="checkbox"].is-invalid {
    border-color: #e35d6a;
}

.field__error,
.contact__form [data-error-for] {
    display: none !important;
}
.contact__form .form__status.is-error {
    display: none !important;
}
.select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.select__trigger.is-invalid { border-color: #e35d6a; }
.select__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
}
.select.has-value .select__value { color: var(--text); }
.select__chevron {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s var(--ease);
    margin-top: -0.2rem;
}
.select.is-open .select__chevron {
    transform: rotate(225deg);
    margin-top: 0.2rem;
}
.select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 50;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: 0 14px 36px color-mix(in srgb, #000 35%, transparent);
    max-height: 18rem;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) color-mix(in srgb, var(--accent) 12%, transparent);
}
.select__list::-webkit-scrollbar {
    width: 4px;
}
.select__list::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-radius: 999px;
    margin: 0.35rem 0;
}
.select__list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}
.select__list[hidden] { display: none !important; }
.select__option {
    width: 100%;
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.select__option:hover,
.select__option.is-active {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.select__option-title {
    font-weight: 700;
    font-size: 0.92rem;
}
.select__option-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}
.select__empty {
    padding: 0.75rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    cursor: pointer;
    min-width: 0;
}
.check__text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.check__text a { color: var(--accent-hover); }
.form__success {
    margin: 0;
    color: color-mix(in srgb, #3ecf8e 80%, var(--text));
    font-weight: 600;
    font-size: 1.05rem;
}
.contact__form.is-submitting {
    opacity: 0.72;
    pointer-events: none;
}
.form__submit.is-loading {
    opacity: 0.85;
}

.contact-links { display: grid; gap: 0.55rem; }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
}
.contact-link:hover { color: var(--accent-hover); }
.contact-link > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.contact-link__icon {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--accent-hover);
    flex: 0 0 auto;
}
.contact-aside__rate { margin: 1.15rem 0 0; }
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form { position: relative; }
.aside-list { display: grid; gap: 0.45rem; }
.aside-list a { font-weight: 700; text-decoration: none; }

.footer {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(2.75rem, 5vw, 4rem) 0 1.5rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), var(--bg-elevated) 40%),
        var(--bg-elevated);
    border-top: 1px solid var(--border);
}
.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}
.footer__brand { min-width: 0; }
.footer__name {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.2;
}
.footer__role {
    margin: 0.35rem 0 0;
    color: var(--accent-hover);
    font-weight: 700;
    font-size: 0.92rem;
}
.footer__text {
    margin: 0.85rem 0 0;
    color: var(--text-muted);
    max-width: 38ch;
    line-height: 1.55;
    font-size: 0.95rem;
}
.footer__title {
    margin: 0 0 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1;
}
.footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.footer__list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer__list a:hover { color: var(--accent-hover); }
.footer__meta {
    margin: 0.85rem 0 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.05rem;
}
.footer__messengers {
    margin: 0 0 0.85rem;
}
.footer__messengers .messenger { gap: 0.45rem; }
.footer__cta {
    margin-top: 1.1rem;
}
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-top: 1.15rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    color: var(--text-muted);
    font-size: 0.88rem;
}
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem 1rem;
    margin-left: auto;
}
.footer__legal a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer__legal a:hover { color: var(--accent-hover); }

.requisites {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}
.requisites__row {
    display: grid;
    grid-template-columns: minmax(10rem, 0.85fr) minmax(0, 1.4fr);
    gap: 0.35rem 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.requisites__row:last-child { border-bottom: 0; padding-bottom: 0; }
.requisites dt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.requisites dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
@media (max-width: 560px) {
    .requisites__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}
.legal-card { max-width: 52rem; }
.footer__cert {
    display: block;
    width: 120px;
    height: 80px;
    margin-top: 1rem;
    object-fit: contain;
}

[data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .split, .contact, .detail__grid, .quote-grid, .article-grid, .proj-grid, .feature-grid, .card-grid {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 2rem;
    }
    .footer__brand {
        grid-column: 1 / -1;
        max-width: 48ch;
    }
    .proj-grid { grid-template-columns: 1fr 1fr; }
    .proj-slider__item {
        flex: 0 0 calc((100% - 1rem) / 2);
        width: calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
    }
    .quote-slider__item { flex-basis: calc((100% - 0.85rem) / 2); }
    .feature-grid, .card-grid { grid-template-columns: 1fr 1fr; }
    .quality-list { grid-template-columns: 1fr; }
    .rate { grid-template-columns: 1fr; }
    .process--row { grid-template-columns: 1fr 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .detail__grid { grid-template-columns: 1fr; }
    .detail__start { order: -1; }
    .contact-aside { order: -1; position: static; }
    .contact__form-wrap { order: 0; }
}
@media (max-width: 1080px) {
    html, body { overflow-x: hidden; }
    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }
    /* drawer выше backdrop; шапка остаётся своей полосой */
    body.nav-open .header { z-index: 60; }

    .header__inner {
        position: relative;
        z-index: 2;
        gap: 0.75rem;
    }
    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }
    .brand__text {
        min-width: 0;
        overflow: hidden;
    }
    .brand__name,
    .brand__role {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        position: relative;
        z-index: 3;
    }
    /* пока открыт drawer - прячем гамбургер, закрытие только через × / backdrop */
    body.nav-open .nav-toggle {
        visibility: hidden;
        pointer-events: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        z-index: 70;
        width: min(20rem, 88vw);
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1rem 1.25rem 1.5rem;
        background: var(--bg-elevated);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        transform: translate3d(110%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s var(--ease), visibility 0.3s;
        box-shadow: -16px 0 40px color-mix(in srgb, #000 35%, transparent);
    }
    .nav-open .nav {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }
    .nav__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 2.5rem;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid var(--border);
        flex: 0 0 auto;
    }
    .nav__title {
        margin: 0;
        font-weight: 800;
        font-size: 1rem;
        line-height: 1.2;
    }
    .nav__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        flex: 0 0 2.5rem;
        border-radius: 0.7rem;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        font-size: 1.45rem;
        line-height: 1;
        padding: 0;
        cursor: pointer;
    }
    .nav__list {
        flex-direction: column;
        gap: 0;
        flex: 1 1 auto;
    }
    .nav__link { display: block; padding: 0.75rem 0; font-size: 1.05rem; }
    .nav__link--active::after { display: none; }
    .nav__link--active {
        color: var(--accent);
    }
    .header__actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: auto;
        padding-top: 0.75rem;
        flex: 0 0 auto;
    }
    .header__actions .btn,
    .header__theme { width: 100%; justify-content: center; }
}
@media (max-width: 820px) {
    .proj-grid, .feature-grid, .card-grid { grid-template-columns: 1fr; }
    .proj-slider__item,
    .quote-slider__item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    /* планшет: бренд сверху, Разделы и Связь рядом */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1.75rem;
    }
    .footer__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
    .footer__legal {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 0.45rem 1.15rem;
    }

    /* 2 фото на мобилке: только первое */
    .hero__photo.hero-photos[data-count="2"] {
        grid-template-columns: 1fr;
    }
    .hero__photo.hero-photos[data-count="2"] .hero-photos__frame--second {
        display: none !important;
    }
    .hero__photo.hero-photos[data-count="2"] .hero-photos__frame {
        min-height: 70vh;
    }
}
@media (max-width: 560px) {
    :root { --shell: min(1120px, calc(100% - 1.25rem)); }
    .process--row { grid-template-columns: 1fr; }
    .about-intro {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .about-intro .page-head__text {
        margin-inline: auto;
        max-width: 68ch;
        text-align: left;
    }
    .about-intro__photo {
        order: -1;
        float: none;
        display: block;
        width: min(288px, 57.6vw);
        margin: 0 auto 1.25rem;
        shape-outside: none;
        shape-margin: 0;
    }
    .about-personal .contact-link {
        justify-content: center;
    }
    .panel,
    .process-block,
    .rate {
        padding: 1rem;
    }
    .rate__value { font-size: 1.75rem; }
    .page-head__title {
        font-size: clamp(1.65rem, 9vw, 2.4rem);
    }
    .hero__title {
        font-size: clamp(1.75rem, 9vw, 2.6rem);
    }
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero__actions .btn { width: 100%; }
    .hero__messengers .messenger {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .hero__messengers .messenger__btn { width: 100%; }
    .detail__choose {
        width: 100%;
        min-width: 0;
    }
    .detail__actions { width: 100%; }
    .contact-aside__messengers .messenger {
        grid-template-columns: 1fr;
    }
    .crumbs {
        font-size: 0.82rem;
        overflow-wrap: anywhere;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .footer__brand {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer__text { max-width: 36ch; }
    .footer__col {
        align-items: center;
        width: 100%;
    }
    .footer__list { justify-items: center; }
    .footer__messengers .messenger {
        justify-content: center;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .footer__messengers .messenger__btn { width: 100%; }
    .footer__cert { margin-inline: auto; }
    .footer__bottom {
        align-items: center;
        text-align: center;
        gap: 0.95rem;
    }
    .footer__legal {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        text-align: center;
    }
    .footer__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    :root { --shell: min(1120px, calc(100% - 0.85rem)); }
    .brand__mark {
        width: 1.85rem;
        height: 1.85rem;
    }
    .panel,
    .process-block,
    .rate {
        padding: 0.85rem;
        border-radius: 12px;
    }
    .btn {
        min-height: 2.65rem;
        padding: 0.55rem 1rem;
    }
    .messenger__btn {
        min-height: 2.35rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.82rem;
    }
    .contact-link__icon {
        width: 1.85rem;
        height: 1.85rem;
    }
    .select__option {
        padding: 0.65rem 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
