/* VIA Derm — секція акцій */

.via-promos {
    position: relative;
    padding: 100px 0 110px;
    background: linear-gradient(180deg, #0a0a07 0%, #14130c 60%, #0a0a07 100%);
    overflow: hidden;
    isolation: isolate;
    color: #f5e8c8;
}
.via-promos::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    background:
        radial-gradient(50% 60% at 20% 20%, rgba(212, 175, 55, .14), transparent 65%),
        radial-gradient(40% 50% at 85% 80%, rgba(212, 175, 55, .10), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.via-promos::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .35), transparent);
    pointer-events: none;
}

.via-promos__head {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}
.via-promos__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(212, 175, 55, .12);
    border: 1px solid rgba(212, 175, 55, .35);
    color: #f3d57a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.via-promos__eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f3d57a;
    box-shadow: 0 0 10px rgba(243, 213, 122, .9);
    animation: viaPromoPulse 1.6s ease-in-out infinite;
}
@keyframes viaPromoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}
.via-promos__title {
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.1;
    color: #fff;
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: -.005em;
}
.via-promos__lead {
    color: rgba(245, 232, 200, .78);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Grid (desktop) */
.via-promos__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Card */
.via-promo-card {
    position: relative;
    padding: 36px 30px 32px;
    background: linear-gradient(160deg, #15140e 0%, #0a0a07 100%);
    border-radius: 22px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .5),
        inset 0 1px 0 rgba(212, 175, 55, .18);
    transition: transform .35s ease, box-shadow .35s ease;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.via-promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(243, 213, 122, .55), rgba(212, 175, 55, .06) 45%, rgba(243, 213, 122, .4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.via-promo-card::after {
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(243, 213, 122, .14), transparent 60%);
    pointer-events: none;
    z-index: 0;
    transition: transform .6s ease;
}
.via-promo-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, .65),
        inset 0 1px 0 rgba(212, 175, 55, .28);
}
.via-promo-card:hover::after { transform: translate(-30px, 30px) scale(1.1); }

.via-promo-card__tag {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, .14);
    border: 1px solid rgba(212, 175, 55, .35);
    color: #f3d57a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    align-self: flex-start;
}
.via-promo-card__title {
    position: relative;
    z-index: 2;
    font-size: 22px;
    line-height: 1.25;
    color: #fff;
    font-weight: 600;
    letter-spacing: -.005em;
    margin: 18px 0 10px;
}
.via-promo-card__desc {
    position: relative;
    z-index: 2;
    color: rgba(245, 232, 200, .78);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 18px;
}
.via-promo-card__perks {
    position: relative;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 8px;
}
.via-promo-card__perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(245, 232, 200, .88);
}
.via-promo-card__perks li svg {
    flex-shrink: 0;
    width: 16px; height: 16px;
    margin-top: 3px;
    color: #f3d57a;
}
.via-promo-card__bonus {
    position: relative;
    z-index: 2;
    padding: 14px 16px;
    margin: 0 0 22px;
    border-radius: 14px;
    background: rgba(212, 175, 55, .08);
    border: 1px dashed rgba(212, 175, 55, .35);
    color: #f6dd8a;
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 500;
}
.via-promo-card__bonus b { color: #f7e29a; font-weight: 700; }
.via-promo-card__footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.via-promo-card__save {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}
.via-promo-card__save-label {
    font-size: 10.5px;
    color: rgba(245, 232, 200, .55);
    letter-spacing: .16em;
    text-transform: uppercase;
}
.via-promo-card__save-amount {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(180deg, #f7e29a, #cbab72 60%, #a07d18);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4af37;
    margin-top: 4px;
}
.via-promo-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(180deg, #f6dd8a 0%, #cbab72 100%);
    color: #14140e;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    box-shadow: 0 10px 22px rgba(212, 175, 55, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.via-promo-card__cta:hover,
.via-promo-card__cta:focus-visible {
    color: #14140e;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 32px rgba(212, 175, 55, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
    outline: none;
}
.via-promo-card__cta svg { width: 14px; height: 14px; fill: currentColor; transition: transform .25s ease; }
.via-promo-card__cta:hover svg { transform: translateX(3px); }

/* Mobile slider */
.via-promos__slider { display: none; }

@media (max-width: 991.98px) {
    .via-promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .via-promos { padding: 70px 0 80px; }
    .via-promos__head { margin-bottom: 36px; }
    .via-promos__grid { display: none; }
    .via-promos__slider {
        display: block;
        position: relative;
        z-index: 2;
        margin: 0 -16px;
        padding: 4px 16px 28px;
    }
    .via-promos__slider .swiper-slide {
        height: auto;
        display: flex;
    }
    .via-promos__slider .swiper-slide > .via-promo-card { width: 100%; }
    .via-promos__pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 18px;
    }
    .via-promos__pagination .swiper-pagination-bullet {
        width: 8px; height: 8px;
        background: rgba(243, 213, 122, .35);
        opacity: 1;
        transition: width .25s ease, background .25s ease;
    }
    .via-promos__pagination .swiper-pagination-bullet-active {
        width: 26px;
        border-radius: 4px;
        background: linear-gradient(90deg, #f6dd8a, #cbab72);
    }
    .via-promo-card { padding: 28px 22px 26px; }
    .via-promo-card__title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    .via-promos__eyebrow::before { animation: none !important; }
    .via-promo-card,
    .via-promo-card::after { transition: none !important; }
}

/* ===== Promo Popup (20% за 10 секунд) ===== */
.via-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 8, 6, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .35s ease;
}
.via-popup.is-open {
    display: flex;
    opacity: 1;
}
.via-popup__dialog {
    position: relative;
    width: min(560px, 100%);
    background: linear-gradient(160deg, #15140e 0%, #0a0a07 100%);
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(20px) scale(.96);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2,.9,.3,1.2), opacity .35s ease;
    box-shadow: 0 60px 120px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(212, 175, 55, .25);
}
.via-popup.is-open .via-popup__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.via-popup__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(243, 213, 122, .65), rgba(212, 175, 55, .08) 45%, rgba(243, 213, 122, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
.via-popup__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .35);
    background: rgba(20, 20, 14, .65);
    color: #f3d57a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
    z-index: 3;
}
.via-popup__close:hover { background: rgba(212, 175, 55, .14); transform: rotate(90deg); }
.via-popup__close svg { width: 14px; height: 14px; fill: currentColor; }

.via-popup__body {
    position: relative;
    z-index: 1;
    padding: 46px 38px 38px;
    text-align: center;
    color: #f5e8c8;
}
.via-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, .14);
    border: 1px solid rgba(212, 175, 55, .35);
    color: #f3d57a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.via-popup__title {
    margin: 16px 0 8px;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.2;
    color: #fff;
    font-weight: 600;
}
.via-popup__big {
    display: block;
    font-size: clamp(56px, 12vw, 92px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 6px 0;
    background: linear-gradient(180deg, #f7e29a 0%, #cbab72 60%, #a07d18 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4af37;
}
.via-popup__big small { font-size: .35em; vertical-align: 38%; margin-right: .08em; }
.via-popup__lead {
    margin: 6px auto 22px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245, 232, 200, .82);
}
.via-popup__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(180deg, #f6dd8a 0%, #cbab72 100%);
    color: #14140e;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    box-shadow: 0 12px 26px rgba(212, 175, 55, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.via-popup__cta:hover {
    color: #14140e;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 32px rgba(212, 175, 55, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.via-popup__small {
    display: block;
    margin-top: 18px;
    font-size: 11.5px;
    color: rgba(245, 232, 200, .5);
    letter-spacing: .04em;
}

@media (max-width: 575.98px) {
    .via-popup__body { padding: 38px 22px 28px; }
}

/* ===== Service Navigation Cards (photo-led) ===== */
.via-navcards {
    position: relative;
    padding: 100px 0;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 55, .12), transparent 70%),
        radial-gradient(40% 40% at 100% 100%, rgba(212, 175, 55, .08), transparent 70%),
        linear-gradient(180deg, #f6efde 0%, #efe6cd 100%);
    overflow: hidden;
    isolation: isolate;
}
.via-navcards::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .35), transparent);
    pointer-events: none;
    z-index: 1;
}
.via-navcards::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .35), transparent);
    pointer-events: none;
    z-index: 1;
}
.via-navcards .container { position: relative; z-index: 2; }
.via-navcards__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}
.via-navcards__head .pbmit-subtitle {
    color: #8a6d18 !important;
    letter-spacing: .22em;
    font-weight: 700;
}
.via-navcards__head .pbmit-title {
    color: #14130c !important;
    font-weight: 600;
    letter-spacing: -.005em;
}
.via-navcards__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.via-navcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: #14130c;
    border: 1px solid rgba(20, 19, 12, .08);
    box-shadow: 0 8px 22px rgba(20, 19, 12, .04);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    isolation: isolate;
}
.via-navcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(20, 19, 12, .14);
    border-color: rgba(212, 175, 55, .45);
    color: #14130c;
}

/* Media */
.via-navcard__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efe8d8;
}
.via-navcard__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 19, 12, 0) 55%, rgba(20, 19, 12, .35) 100%);
    pointer-events: none;
    z-index: 1;
}
.via-navcard__img,
.via-navcard__media picture,
.via-navcard__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.via-navcard:hover .via-navcard__img,
.via-navcard:hover .via-navcard__media img { transform: scale(1.07); }

/* Body */
.via-navcard__body {
    padding: 24px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.via-navcard__title {
    font-size: 22px;
    line-height: 1.22;
    font-weight: 600;
    color: #14130c;
    margin: 0 0 8px;
    letter-spacing: -.005em;
}
.via-navcard__desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: #5a5547;
    margin: 0 0 16px;
}
.via-navcard__tags {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.via-navcard__tags li {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3eedf;
    color: #5a5547;
    transition: background .25s ease, color .25s ease;
}
.via-navcard:hover .via-navcard__tags li {
    background: rgba(212, 175, 55, .18);
    color: #6d5414;
}
.via-navcard__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b8901f;
    transition: color .25s ease;
}
.via-navcard__link svg {
    width: 14px; height: 14px;
    fill: currentColor;
    transition: transform .25s ease;
}
.via-navcard:hover .via-navcard__link { color: #8a6d18; }
.via-navcard:hover .via-navcard__link svg { transform: translateX(4px); }

@media (max-width: 991.98px) {
    .via-navcards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .via-navcards { padding: 70px 0; }
    .via-navcards__grid { grid-template-columns: 1fr; gap: 18px; }
    .via-navcard__body { padding: 22px 22px 24px; }
    .via-navcard__title { font-size: 20px; }
}

/* ===== Trichology problems block ===== */
.via-trichology {
    position: relative;
    padding: 100px 0;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 55, .06), transparent 70%),
        #faf7f1;
    overflow: hidden;
}
.via-trichology__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}
.via-trichology__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(184, 144, 31, .1);
    border: 1px solid rgba(184, 144, 31, .35);
    color: #8a6d18;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.via-trichology__title {
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: -.005em;
    color: #14130c;
}
.via-trichology__lead {
    font-size: 16px;
    line-height: 1.6;
    color: #5a5547;
    margin: 0;
}
.via-trichology__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.via-problem-card {
    position: relative;
    padding: 28px 26px 26px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(20, 19, 12, .06);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    overflow: hidden;
    isolation: isolate;
}
.via-problem-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #f6dd8a, #cbab72);
    transform: scaleX(.18);
    transform-origin: left;
    transition: transform .45s ease;
}
.via-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(20, 19, 12, .1);
    border-color: rgba(212, 175, 55, .35);
}
.via-problem-card:hover::before { transform: scaleX(1); }
.via-problem-card__num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    color: #b8901f;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.via-problem-card__title {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #14130c;
    font-weight: 600;
    letter-spacing: -.005em;
}
.via-problem-card__symp {
    font-size: 14px;
    line-height: 1.55;
    color: #6b6655;
    margin: 0 0 16px;
}
.via-problem-card__solution {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed rgba(212, 175, 55, .35);
    font-size: 13.5px;
    line-height: 1.55;
    color: #14130c;
}
.via-problem-card__solution svg {
    flex-shrink: 0;
    width: 18px; height: 18px;
    color: #b8901f;
    margin-top: 2px;
}
.via-problem-card__solution b { color: #14130c; }
.via-trichology__cta {
    margin-top: 50px;
    text-align: center;
}
.via-trichology__cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: #14130c;
    color: #f6dd8a;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 20px 40px rgba(20, 19, 12, .3);
}
.via-trichology__cta a:hover { transform: translateY(-2px); color: #f6dd8a; box-shadow: 0 26px 48px rgba(20, 19, 12, .4); }
.via-trichology__cta svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 991.98px) {
    .via-trichology__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .via-trichology { padding: 70px 0; }
    .via-trichology__grid { grid-template-columns: 1fr; gap: 16px; }
}
