/* =========================
   Base reset + defaults
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.5;
    color: var(--c-text-intense);
    background: var(--c-bg-base);
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid rgba(255, 13, 196, 0.9);
    outline-offset: 3px;
}

[x-cloak] {
    display: none !important;
}

/* =========================
   Variables
========================= */
:root {
    --c-text-brand: #ff0dc4;
    --c-text-brand2: #892dff;
    --c-text-intense: #ffffff;
    --c-text-normal: #a7a7bd;
    --c-text-weak: #28284a;

    --c-bg-base: #111123;
    --c-bg-low: #1a1a2e;

    --grad-brand: linear-gradient(to right, #ff08dc, #892dff);

    --shadow-special: 0 0 6px 2px rgba(255, 8, 220, 0.55);

    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-full: 9999px;

    --sp-2xs: 4px;
    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 40px;
    --sp-3xl: 48px;

    --z-header: 50;
    --z-overlay: 60;

    --container: 1250px;
    --pad: 25px;

    --bp-tab: 924px;
    --bp-mob: 575px;

    --header-h: 0px; /* обновим на мобилке */
}

/* =========================
   Utilities / layout
========================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}

.page__wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page__main {
    flex: 1 1 auto;
}

.page--locked {
    overflow: hidden; /* логично: блокируем скролл при открытом меню/модалке */
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    opacity: 0.75;
}

.divider--intense {
    background: rgba(255, 255, 255, 0.6);
}

.divider--brand {
    background: rgba(212, 104, 215, 0.9);
}

/* =========================
   Header
========================= */
.site-header {
    position: absolute;
    top: var(--sp-xl);
    left: 0;
    width: 100%;
    z-index: var(--z-header);
}

.site-header__inner {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3xl);
}

.site-header__brand {
    flex: 0 0 auto;
}

.site-header__logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.site-header__content {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 28px;
}

.site-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-xl);
}

.site-header__features {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
    color: var(--c-text-intense);
    font-size: 14px;
    line-height: 1.1;
}

.site-header__feature {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.site-header__phone {
    font-weight: 600;
    font-size: 24px;
    white-space: nowrap;
}

/* Desktop nav */
.site-nav--desktop {
    height: 35px;
    border-radius: var(--r-full);
    background: var(--c-text-brand);
    overflow: hidden;
}

.site-nav__list {
    display: flex;
    height: 100%;
}

.site-nav__item {
    flex: 1 1 auto;
}

.site-nav__link {
    display: grid;
    place-items: center;
    height: 35px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-right: 2px solid rgba(0, 0, 0, 0.4);
    transition: background-color 240ms ease;
}

.site-nav__item:first-child .site-nav__link {
    padding-left: 20px;
}

.site-nav__item:last-child .site-nav__link {
    border-right: 0;
    padding-right: 20px;
}

@media (max-width: 1024px) {
    .site-nav__item:first-child .site-nav__link {
        padding-left: 0;
    }

    .site-nav__item:last-child .site-nav__link {
        padding-right: 0;
    }

    .site-nav__link {
        font-size: 14px;
    }
}

.site-nav__link:hover {
    background: var(--c-text-brand2);
}

.site-nav__link.is-active {
    background: var(--c-text-brand2);
}

/* Burger (mobile only) */
.burger {
    display: none;
    width: 28px;
    height: 24px;
    position: relative;
    border-radius: 10px;
}

.burger__line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 240ms ease, opacity 240ms ease, top 240ms ease, bottom 240ms ease;
}

.burger__line--top {
    top: 0;
}

.burger__line--mid {
    top: 50%;
    transform: translateY(-50%);
}

.burger__line--bot {
    bottom: 0;
}

.burger__line--top.burger__line--active {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.burger__line--mid.burger__line--active {
    opacity: 0;
}

.burger__line--bot.burger__line--active {
    bottom: 50%;
    transform: translateY(50%) rotate(45deg);
}

/* =========================
   Overlay + Mobile menu + Modal
========================= */
.overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-lg);
    background: rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(8px);
}

.mobile-menu {
    width: min(520px, 95vw);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.10);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.mobile-menu__link {
    display: grid;
    place-items: center;
    height: 48px;
    font-weight: 600;
    border-top: 1px solid rgba(0, 0, 0, 0.4);
}

.mobile-menu__item:first-child .mobile-menu__link {
    border-top: 0;
}

.mobile-menu__link.is-active {
    background: var(--c-text-brand);
}

.modal {
    position: relative;
    width: min(720px, 95vw);
    border-radius: 14px;
    padding: var(--sp-3xl) var(--sp-lg);
    background: var(--c-bg-low) url(/assets/templates/site/images/bg/smoke-1.png) no-repeat left top;
    background-blend-mode: color-dodge;
    color: #ffffff;
    text-align: center;
}

.modal__close {
    position: absolute;
    top: var(--sp-lg);
    right: var(--sp-lg);
    width: 22px;
    height: 22px;
    border-radius: 8px;
}

.modal__close::before,
.modal__close::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.modal__close::before {
    transform: rotate(45deg);
}

.modal__close::after {
    transform: rotate(-45deg);
}

.modal__close:hover {
    transform: scale(1.08);
}

.modal__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: var(--sp-lg);
}

.modal__text {
    font-size: 18px;
    color: var(--c-text-normal);
    margin-bottom: var(--sp-sm);
}

.modal__phone {
    display: inline-block;
    font-size: 30px;
    color: var(--c-text-brand);
    text-decoration: underline;
    margin-bottom: var(--sp-lg);
}

.modal__note {
    font-size: 14px;
    color: var(--c-text-intense);
    opacity: 0.95;
}

/* =========================
   Buttons / Links
========================= */


.link--primary {
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--r-full);
    transition: box-shadow 240ms ease, transform 240ms ease;
    user-select: none;
}

.btn--lg {
    height: 60px;
    padding: 0 82px;
    font-size: 18px;
    font-weight: 600;
}

.btn--md {
    height: 48px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
}

.btn--primary {
    background: var(--grad-brand);
    color: #ffffff;
}

.btn--outline {
    position: relative;
    color: var(--c-text-brand);
}

.btn--outline::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: var(--r-full);
    background: var(--grad-brand);
    -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn:hover {
    box-shadow: var(--shadow-special);
}

.btn--black {
    color: #000000;
    font-weight: normal;
    text-transform: uppercase;
}

/* =========================
   Hero
========================= */
.hero {
    min-height: 100svh;
    background: url(/assets/templates/site/images/bg/intro.jpg) center / cover no-repeat;
    overflow: hidden;
}

.vhero {
    height: 270px;
    padding: 2rem;
    background: url(/assets/templates/site/images/bg/header.jpg) center / cover no-repeat;
    margin-bottom: -80px;
}

.hero__inner {
    min-height: 100svh;
    display: flex;
}

.hero__grid {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: var(--sp-xl);
    padding: clamp(110px, 16vh, 170px) 0 var(--sp-xl);
}

.hero__title {
    font-size: clamp(40px, 4.2vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: var(--sp-md);
}

.hero__subtitle {
    font-size: 24px;
    margin-bottom: var(--sp-3xl);
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.hero__badge {
    max-width: 260px;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    min-height: 60px;
    padding: 0 var(--sp-lg);
    border-radius: var(--r-full);
    background: rgba(0, 0, 0, 0.6);
    color: var(--c-text-intense);
    position: relative;
    line-height: 1.1;
    font-size: 15px;
}

.hero__badge::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--grad-brand);
    -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 999px;
    z-index: 0;
}

.hero__badge-icon {
    width: 32px;
    height: 28px;
}

.hero__media {
    position: absolute;
    right: -50px;
    bottom: 0;
    pointer-events: none;
}

.hero__image {
    width: 100%;
    height: auto;
}

/* =========================
   Sections
========================= */
.section {
    padding: var(--sp-xl) 0;
}

.section__title {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--c-text-intense);
    margin-bottom: var(--sp-lg);
}

/* =========================
   Offers
========================= */
.offers__grid {
    display: flex; /* вместо grid */
    gap: var(--sp-xl);
    overflow-x: auto; /* появляется скролл если не влезает */
    overflow-y: visible;
    scroll-snap-type: x proximity; /* приятный скролл */
    -webkit-overflow-scrolling: touch;
    padding: var(--sp-sm) 0; /* чтобы тень/скроллбар не "прилипали" */
}


.offer-card {
    width: 360px;
    height: 220px;
    background-color: var(--c-bg-low);
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 13, 196, 0.75);
    overflow: hidden;
    transition: transform 240ms ease, box-shadow 240ms ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: color-dodge;
}

.offer-card--smoke-1 {
    background-image: url(/assets/templates/site/images/bg/smoke-1.png);
}

.offer-card--smoke-2 {
    background-image: url(/assets/templates/site/images/bg/smoke-2.jpg);
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-special);
}

.offer-card__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.offer-card__title {
    padding: var(--sp-md) var(--sp-md) 0;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.offer-card__kicker {
    padding: var(--sp-md) var(--sp-md) 0 0;
    text-align: left;
    color: var(--c-text-brand);
    font-size: 14px;
}

.offer-card__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
    padding: 0 var(--sp-md);
    align-items: center;
}

.offer-card__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.offer-card__media--zoom img {
    transform: scale(1.1);
}

.offer-card__info {
    display: grid;
    gap: var(--sp-sm);
    align-content: center;
}

.offer-card__old {
    color: var(--c-text-brand2);
    text-decoration: line-through;
    font-size: 18px;
}

.offer-card__price {
    font-size: 24px;
    font-weight: 600;
    background: var(--grad-brand);
    color: #000000;
    padding: 0 12px;
    border-radius: 10px 0 0 10px;
    margin-right: calc(-1 * var(--sp-md));
}

.offer-card__price--compact {
    background: none;
    padding: 0;
    border-radius: 0;
    color: var(--c-text-brand);
    margin-right: 0;
}

.offer-card__desc {
    font-size: 12px;
    color: var(--c-text-intense);
}

.offer-card__row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-right: 30px;
}

.offer-card__row:first-child {
    margin-bottom: 14px;
}

.offer-card__label {
    position: relative;
    display: inline-block;
    color: var(--c-text-intense);
    font-size: 14px;
    white-space: nowrap;
    line-height: 0.2;
}

/* декоративная “hr-полоска” слева */
.offer-card__label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    width: var(--rule-w, 70px);
    background: rgba(255, 255, 255, 0.8);
    transform: translate(calc(-110%), -50%);
}

.offer-card__label--rule-70 {
    --rule-w: 70px;
}

.offer-card__label--rule-40 {
    --rule-w: 58px;
}

@media (max-width: 575px) {
    .offer-card {
        width: 100%;
    }

    .offers__grid {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible; /* отключаем горизонтальный скролл */
        padding-bottom: 0;
    }

    .offers__item {
        width: auto; /* растягиваем на контейнер */
    }

    /* если нужно, чтобы высота не ломалась на узких */
    .offer-card {
        height: auto;
        min-height: 220px;
    }

    .offer-card__body {
        padding-bottom: var(--sp-md);
    }
}

/* =========================
   Offers (auto slider + swipe)
========================= */
.offers-slider {
    position: relative;
}

/* трек */
.offers__grid {
    display: flex;
    gap: var(--sp-xl);

    overflow-x: auto;
    overflow-y: visible;

    scroll-snap-type: x mandatory; /* будет “прилипать” к карточкам */
    -webkit-overflow-scrolling: touch; /* инерция на iOS */
    overscroll-behavior-x: contain;
    padding-bottom: var(--sp-sm);
}

/* чтобы карточки НЕ ужимались */
.offers__item {
    flex: 0 0 auto;
    max-width: 378px;
    scroll-snap-align: start;
}

/* карточка занимает li */
.offer-card {
    width: 100%;
    height: 220px; /* твоя высота */
}

/* (опционально) nicer drag курсор на десктопе */
@media (hover: hover) and (pointer: fine) {
    .offers__grid {
        cursor: grab;
    }

    .offers__grid.is-dragging {
        cursor: grabbing;
    }
}

/* Mobile: в столбик, без горизонтального скролла */
@media (max-width: 575px) {
    .offers__grid {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        padding-bottom: 0;
    }

    .offers__item {
        max-width: 100%;
        width: auto;
    }

    .offer-card {
        height: auto;
        min-height: 220px;
    }

    .offer-card__body {
        padding-bottom: var(--sp-md);
    }
}

/* =========================
   Products
========================= */
.products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-md);
}

.product-card {
    height: 100%;
    background: var(--c-bg-low);
    border-radius: var(--r-md);
    padding: var(--sp-md);
    display: grid;
    gap: var(--sp-sm);
    text-align: center;
    line-height: 1.1;
}

.product-card__media {
    width: 80%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.product-card__media img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    position: absolute;
}

.product-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text-brand);
}

.product-card__content p:first-child,
.product-card__meta {
    font-size: 16px;
    color: var(--c-text-brand);
}

.product-card__content p strong,
.product-card__price {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text-intense);
    margin: 10px 0;
}

.product-card__buy {
    justify-self: center;
}

/* =========================
   Article + Info cards
========================= */
.info__inner {
    display: grid;
    gap: var(--sp-lg);
    background: var(--c-bg-base);
    border-radius: var(--r-md);
}

.article__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--c-text-intense);
    margin-bottom: var(--sp-md);
}

.article__content h1, .article__content h2, .article__content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--c-text-brand);
    margin: var(--sp-2xl) 0 var(--sp-md);
}

.article__content h1 {
    color: var(--c-text-intense);
}

.article__content a {
    text-decoration: underline;
}

.article__content a:hover {
    text-decoration: none;
}

.article__subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--c-text-intense);
    margin: var(--sp-2xl) 0 var(--sp-md);
}

.article__content p, .article__text {
    font-size: 16px;
    color: var(--c-text-intense);
    margin-bottom: var(--sp-lg);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-md);
}

.info-card {
    background: var(--c-bg-low);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
}

.info-card--full {
    width: 100%;
    margin-bottom: 40px;
}

.info-card--highlight {
    grid-column: span 2;
    background: var(--grad-brand);
    color: #000000;
}

.info-card--highlight h3 {
    font-size: 18px;
    font-weight: normal;
}

.info-card--highlight p {
    font-size: 14px;
}

.info-card__title {
    font-size: 18px !important;
    margin: 0 0 var(--sp-sm) 0 !important;
    color: inherit !important;
}

.info-card--full .info-card__title {
    color: var(--c-text-intense);
}

.info-card__text {
    font-size: 14px;
    color: #a7a7bd;
    text-align: justify;
}

/* =========================
   FAQ
========================= */
.faq {
    background: var(--c-bg-low);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
}

.faq__head {
    margin-bottom: var(--sp-md);
}

.faq__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--c-text-brand);
    margin-bottom: var(--sp-xs);
}

.faq__subtitle {
    color: var(--c-text-intense);
    font-size: 16px;
    margin-bottom: var(--sp-md);
}

.faq__list {
    display: grid;
    gap: 0;
}

.faq__btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
    padding: var(--sp-md) 0;
    color: var(--c-text-intense);
    font-size: 18px;
    font-weight: 600;
}

.faq__chevron {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    transition: transform 240ms ease;
}

.faq__chevron--open {
    transform: rotate(90deg);
}

.faq__a {
    padding: 0 var(--sp-lg) var(--sp-md);
    color: var(--c-text-normal);
}

.faq__a p {
    margin: 0;
}

/* =========================
   Footer
========================= */
.site-footer {
    padding: var(--sp-xl) 0;
}

.site-footer__warning {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text-intense);
    margin-bottom: var(--sp-xl);
}

.site-footer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
    flex-wrap: wrap;
    padding: var(--sp-xl) 0 0;
}

.site-footer__meta-item--text {
    max-width: 360px;
    font-size: 14px;
    color: var(--c-text-intense);
}

.site-footer__link {
    text-decoration: underline;
}

.site-footer__tg {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
}

.site-footer__tg-icon {
    width: 24px;
    height: 24px;
}

.site-footer__meta-item--age {
    font-size: 48px;
    font-weight: 900;
    color: var(--c-text-weak);
}

/* =========================
   Responsive
========================= */
@media (max-width: 924px) {
    :root {
        --header-h: 74px;
    }

    .site-header {
        position: fixed;
        top: 0;
        background: rgba(17, 17, 35, 0.4);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header__inner {
        align-items: center;
        gap: var(--sp-md);
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .site-header__logo {
        width: 70px;
        height: 70px;
    }

    .site-header__top {
        margin-bottom: 0;
        justify-content: flex-end;
    }

    .site-header__features,
    .site-nav--desktop {
        display: none;
    }

    .site-header__phone {
        font-size: 18px;
    }

    .site-header__content {
        margin-top: 0;
    }

    .burger {
        display: inline-block;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        padding-top: calc(var(--header-h) + var(--sp-lg));
        padding-bottom: var(--sp-xl);
    }

    .hero__media {
        width: min(360px, 70vw);
    }

    .products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 816px) {
    .hero__cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .hero__title {
        font-size: 34px;
    }

    .hero__badge {
        width: 100%;
        justify-content: flex-start;
        padding: 0 var(--sp-md);
    }

    .hero__media {
        width: 320px;
        transform: translateX(120px);
    }

    .offers__grid {
        grid-template-columns: 1fr;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }

    .info-card--highlight {
        grid-column: auto;
    }

    .site-footer__meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer__meta-item--text {
        text-align: left;
    }
}

/* =========================
   Certificates
========================= */
.certs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-lg);
    padding: var(--sp-lg) 0;
}

.certs-card {
    background: #ffffff;
    border-radius: var(--r-lg);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: var(--sp-md);
    margin: 0;
}

.certs-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tablet and below */
@media (max-width: 924px) {
    .certs__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: var(--sp-md);
        gap: var(--sp-md);
    }

    .certs-card {
        height: 380px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .certs__grid {
        grid-template-columns: 1fr;
        padding: var(--sp-md) 0;
    }

    .certs-card {
        height: 420px;
    }
}

/* Контейнер под твою сетку */
.container {
    width: min(var(--container), calc(100% - (var(--pad) * 2)));
    margin-inline: auto;
    padding: 0 var(--pad);
}

@media (max-width: 575px) {
    .container {
        width: min(var(--container), calc(100% - (10px * 2)));
        padding: 0 10px;
    }
}

/* Скрытый заголовок для a11y */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.benefits {
    padding-block: var(--sp-lg);
    margin-bottom: var(--sp-lg);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-lg);

    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits__card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: var(--sp-lg);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--c-text-intense);
    background: var(--c-bg-low);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-special);
    font-size: 16px;

    /* чуть аккуратнее на тёмном фоне */
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 575px) {
    .benefits {
        padding-block: var(--sp-md);
    }

    .benefits__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .benefits__card {
        min-height: 112px;
        padding: var(--sp-md);
    }
}

.news-card {
    display: grid;
    grid-template-columns: clamp(200px, 35vw, 300px) minmax(0, 1fr);
    gap: 0;

    background: var(--c-bg-low);
    border: 1px solid var(--c-text-weak);
    border-radius: var(--r-md);
    overflow: hidden;

    min-height: 200px;
}

.news-card__media {
    display: block;
    background: var(--c-bg-base);
    position: relative;
}

.news-card__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-card__body {
    padding: var(--sp-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* важно для ellipsis */
}

.news-card__title {
    margin: 0 0 var(--sp-xs);
    font-size: 22px;
    line-height: 1.2;
}

.news-card__title-link {
    color: var(--c-text-brand);
    text-decoration: none;
    display: inline-block;
}

.news-card__title-link:hover {
    text-decoration: underline;
}

/* 3) Мобилка: высота от ширины (пропорционально), без min-height */
@media (max-width: 575px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card__media {
        /* выбери соотношение под макет: 16/9, 4/3, 3/2 и т.д. */
        aspect-ratio: 16 / 9;
    }

    .news-card__img {
        height: 100%;
        min-height: 0; /* убираем “залипание” */
    }
}

.news-card__excerpt {
    margin: 0 0 var(--sp-md);
    color: var(--c-text-intense);
    font-size: 14px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;

    /* вместо word-break: break-all — более читабельно */
    overflow-wrap: anywhere;
    word-break: normal;
}

.news-card__more {
    align-self: flex-start;
    color: var(--c-text-brand);
    font-weight: 700;
    font-size: 14px;
    text-decoration: underline;
}

.news-card__more:focus-visible,
.news-card__title-link:focus-visible,
.news-card__media:focus-visible {
    outline: 2px solid var(--c-text-brand);
    outline-offset: 3px;
    border-radius: calc(var(--r-md) - 6px);
}

/* Мобилка: картинка сверху, текст снизу */
@media (max-width: 575px) {
    .news-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .news-card__img {
        min-height: 180px;
    }

    .news-card__body {
        padding: var(--sp-md);
    }

    .news-card__title {
        font-size: 18px;
    }

    /* На мобилке можно разрешить перенос, чтобы не терять смысл */
    .news-card__title-link {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

.contacts-info {
    margin-bottom: var(--sp-xl); /* mb-xl */
}

.contacts-info__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-lg);

    margin: 0;
    padding: 0;
    list-style: none;
}

.contacts-info__item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    min-width: 0;
}

.contacts-info__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
}

.contacts-info__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contacts-info__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2xs);
    min-width: 0;
}

.contacts-info__label {
    font-size: 14px;
    line-height: 1.2;
    color: var(--c-text-normal);
}

.contacts-info__value {
    font-size: 20px; /* text-xl */
    line-height: 1.25;
    color: var(--c-text-intense);
    text-decoration: none;
}

a.contacts-info__value:hover {
    text-decoration: underline;
}

.contacts-info__value:focus-visible {
    outline: 2px solid var(--c-text-brand);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Бейдж 18+ */
.contacts-info__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--c-text-intense);
}

/* Мобилка */
@media (max-width: 575px) {
    .contacts-info__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .contacts-info__value {
        font-size: 18px;
    }
}

.map {
    overflow: hidden;
    border-radius: var(--r-lg);
}

/* ============ Overlay (scrim) ============ */
.overlay--menu{
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);

    display: flex;
    align-items: stretch;
    justify-content: flex-end;

    padding: 0;
    background: rgba(17, 17, 35, 0.55);
    backdrop-filter: blur(10px);
}

/* ============ Drawer ============ */
.mobile-menu{
    width: min(360px, 88vw);
    height: 100dvh;

    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(24px);

    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -26px 0 70px rgba(0,0,0,.55);

    color: var(--c-text-intense);
    overflow: hidden;

    /* немного “софта” по форме */
    border-top-left-radius: var(--r-lg);
    border-bottom-left-radius: var(--r-lg);
}

/* Header */
.mobile-menu__header{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: var(--sp-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__title{
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
}

/* Close button (как в modal, но отдельный класс) */
.mobile-menu__close{
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255,255,255,0.04);
}

.mobile-menu__close::before,
.mobile-menu__close::after{
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 2px;
    background: var(--c-text-intense);
    border-radius: 999px;
}
.mobile-menu__close::before{ transform: rotate(45deg); }
.mobile-menu__close::after{ transform: rotate(-45deg); }

.mobile-menu__close:hover{ transform: scale(1.06); }
.mobile-menu__close:focus-visible{
    outline: 2px solid var(--c-text-brand);
    outline-offset: 3px;
}

/* List */
.mobile-menu__list{
    margin: 0;
    padding: var(--sp-sm);
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: var(--sp-2xs);

    height: calc(100dvh - 72px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Links */
.mobile-menu__link{
    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 14px 14px;
    border-radius: var(--r-md);

    text-decoration: none;
    color: var(--c-text-intense);
    font-weight: 700;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);

    transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

.mobile-menu__link:hover{
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    transform: translateX(2px);
}

.mobile-menu__link:focus-visible{
    outline: 2px solid var(--c-text-brand);
    outline-offset: 3px;
}

/* Active */
.mobile-menu__link.is-active{
    border-color: transparent;
    box-shadow: var(--shadow-special);
}

/* ============ Alpine transitions for drawer ============ */
.menu-enter,
.menu-leave{
    transition: transform .18s ease, opacity .18s ease;
}
.menu-enter-start,
.menu-leave-end{
    transform: translateX(100%);
    opacity: 0.6;
}
.menu-enter-end,
.menu-leave-start{
    transform: translateX(0);
    opacity: 1;
}

/* На очень узких — почти на весь экран */
@media (max-width: 575px){
    .mobile-menu{
        width: min(420px, 92vw);
    }
}

