:root {
    /* Основне */
    --bg: #000;
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.72);
    --accent: #e10000;

    /* Візуальні змінні */
    --max: 1280px;
    --gutter: 16px;
    --radius: 18px;
    --transition: 0.3s ease;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

    /* Висота topbar */
    --topbar-h: 80px;

    /* Висота hero = видимий екран мінус topbar */
    --hero-h: calc(100dvh - var(--topbar-h));
}

@supports not (height: 100dvh) {
    :root {
        --hero-h: calc(100vh - var(--topbar-h));
    }
}

/* ================= RESET ================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ================= TOPBAR ================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    flex-shrink: 0;
}

.logo img {
    width: 160px;
    height: auto;
}

/* ================= SHARED MENU STRUCTURE ================= */

.menu-panel {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.menu-panel__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: min(calc(100% - 32px), var(--max));
    height: 100%;
    margin: 0 auto;
    pointer-events: auto;
}

.menu-panel__top {
    display: none;
}

.menu-panel__logo {
    display: none;
}

.mobile-close {
    display: none;
}

/* ================= DESKTOP NAV ================= */

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

/* ================= MAIN LINKS ================= */

.nav>a,
.nav__with-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);

    padding: 6px 10px;
    border-radius: 8px;

    background: transparent;
    border: none;
    cursor: pointer;

    white-space: nowrap;

    transition: background-color var(--transition), color var(--transition);
}

/* ================= HOVER (як підменю) ================= */

.nav>a:hover,
.nav>a:focus,
.nav__with-sub:hover,
.nav__with-sub:focus,
.menu-item:hover .nav__with-sub,
.menu-item:focus-within .nav__with-sub {
    background: var(--accent);
    color: #fff;
}

/* ================= SUBMENU ================= */

.menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav__with-sub-text {
    display: inline-block;
}

/* ================= ARROW ================= */

.menu__arrow {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    transition: transform var(--transition), border-color var(--transition);
    margin-top: -2px;
    flex-shrink: 0;
}

/* hover → стрілка біла (бо фон червоний) */
.menu-item:hover .menu__arrow,
.menu-item:focus-within .menu__arrow,
.nav__with-sub[aria-expanded="true"] .menu__arrow {
    border-color: #fff;
}

.menu__sub-list {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 210px;
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    padding: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
    z-index: 20;
}

.menu__sub-list a {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--text);
    transition: background-color var(--transition), color var(--transition);
}

.menu__sub-list a:hover,
.menu__sub-list a:focus {
    background: var(--accent);
    color: #fff;
}

.menu__sub-list.is-open {
    display: block;
}

.menu__sub-list.is-open.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ================= SOCIALS ================= */

.socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.socials a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
    user-select: none;
}

.socials a:hover,
.socials a:focus {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ================= BURGER ================= */

.burger {
    display: none;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    transition: var(--transition);
}

/* ================= BODY LOCK ================= */

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* ================= HERO ================= */

.hero {
    height: var(--hero-h);
    min-height: var(--hero-h);
    max-height: var(--hero-h);
    margin-top: var(--topbar-h);
    position: relative;
    background: url("../img/slider_1.png") no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero__layout {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 90%;
    max-width: var(--max);
    padding-left: 5%;
    display: flex;
    align-items: center;
}

.hero__text {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= ANIMATIONS ================= */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= HERO TEXT ================= */

.hero__title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 1.6s ease-out forwards;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 1.6s ease-out 0.3s forwards;
}

.hero__cta {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
    opacity: 0;
    animation: fadeInUp 1.6s ease-out 0.6s forwards;
}

/* ================= HERO MEDIA ================= */

.hero__media {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 33.333%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    animation: slideInRight 1.8s ease-out forwards;
}

.hero__media img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* =========================================================
   RESPONSIVE RULES
========================================================= */

@media (max-width: 980px) {
    .topbar {
        z-index: 3000;
        overflow: visible;
    }

    .topbar__inner {
        gap: 16px;
    }

    .burger {
        display: inline-block;
        margin-left: auto;
        position: relative;
        z-index: 3001;
    }

    .logo img {
        width: 140px;
    }

    .menu-panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        z-index: 4000;
        background: rgba(0, 0, 0, 0.78);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        display: none;
        overflow: hidden;
        pointer-events: auto;
    }

    .menu-panel.is-active {
        display: block;
    }

    .menu-panel__inner {
        position: relative;
        z-index: 4010;
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        margin: 0;
        background: #0a0a0a;
        border-right: 1px solid rgba(255, 255, 255, 0.10);
        padding: 20px;
        overflow: auto;
        box-shadow: var(--shadow);
        display: block;
    }

    .menu-panel__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .menu-panel__logo {
        display: inline-flex;
    }

    .mobile-close {
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        transition: background-color var(--transition), transform var(--transition);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-close:hover,
    .mobile-close:focus {
        background: var(--accent);
        transform: scale(1.03);
    }

    .nav {
        display: grid;
        gap: 12px;
        margin-top: 10px;
    }

    .nav>a,
    .nav__with-sub {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 14px;
        background: transparent;
        color: #fff;
        cursor: pointer;
        transition: background-color var(--transition), border-color var(--transition), color var(--transition);
        justify-content: space-between;
    }

    .nav>a:hover,
    .nav>a:focus,
    .nav__with-sub:hover,
    .nav__with-sub:focus {
        background: rgba(225, 0, 0, 0.16);
        border-color: rgba(225, 0, 0, 0.55);
        color: #fff;
    }

    .menu-item {
        display: block;
    }

    .menu__arrow {
        margin-top: 0;
    }

    .nav__with-sub[aria-expanded="true"] .menu__arrow {
        transform: rotate(-135deg);
        border-color: var(--accent);
    }

    .menu__sub-list {
        position: static;
        width: 100%;
        margin: 8px 0 4px 0;
        padding: 0 0 0 10px;
        border: none;
        border-left: 2px solid rgba(255, 255, 255, 0.10);
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: max-height var(--transition), opacity var(--transition), transform var(--transition);
        display: block;
    }

    .menu__sub-list li {
        margin-top: 8px;
    }

    .menu__sub-list a {
        display: block;
        padding: 12px 14px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 10px;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: none;
        background: transparent;
        color: #fff;
        transition: background-color var(--transition), border-color var(--transition), color var(--transition);
    }

    .menu__sub-list a:hover,
    .menu__sub-list a:focus {
        background: rgba(225, 0, 0, 0.16);
        border-color: rgba(225, 0, 0, 0.55);
        color: #fff;
    }

    .menu__sub-list.is-open {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu__sub-list.is-open.is-visible {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .socials {
        display: flex;
        gap: 12px;
        margin-top: 18px;
    }

    .socials a {
        width: 42px;
        height: 42px;
        font-size: 14px;
        font-weight: 800;
    }

    /* ================= HERO: mobile + tablet ================= */
    @media (max-width: 1024px) .hero {
        height: var(--hero-h);
        min-height: var(--hero-h);
        max-height: var(--hero-h);
        margin-top: var(--topbar-h);
        display: flex;
        flex-direction: column;
    }

    .hero__layout {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: none;
        height: calc(var(--hero-h) / 3);
        padding-left: 6px;
        padding-right: 6px;
        padding-top: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero__text {
        width: 100%;
        max-width: 520px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .hero__title {
        font-size: clamp(1.8rem, 5vw, 2.6rem);
        line-height: 1.1;
    }

    .hero__subtitle {
        font-size: clamp(0.95rem, 2.2vw, 1.15rem);
        line-height: 1.45;
        max-width: 32ch;
    }

    .hero__cta {
        padding: 12px 22px;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .hero__media {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: calc(var(--hero-h) * 2 / 3);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        z-index: 1;
    }

    .hero__media img {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: center bottom;
    }
}

@media (max-width: 640px) {
    .topbar__inner {
        padding: 14px 0;
    }

    .logo img,
    .menu-panel__logo img {
        width: 130px;
    }

    .menu-panel__inner {
        padding: 3px;
    }

    .hero__layout {
        padding-left: 2px;
        padding-right: 2px;
    }

    .hero__text {
        gap: 5px;
    }

    .hero__title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .hero__subtitle {
        font-size: clamp(0.9rem, 3.6vw, 1rem);
        max-width: 28ch;
    }

    .hero__cta {
        padding: 11px 18px;
        font-size: 0.85rem;
        max-width: 280px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__title,
    .hero__subtitle,
    .hero__cta,
    .hero__media {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .menu__sub-list,
    .socials a,
    .mobile-close,
    .burger span,
    .nav>a,
    .nav__with-sub {
        transition: none !important;
    }
}

/* ================= MY BIOGRAPHY ================= */

.biography {
    position: relative;
    width: 100%;
    padding: 110px 0;
    background: var(--bg);
    overflow: hidden;
}

.biography::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(225, 0, 0, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(225, 0, 0, 0.08), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

.biography__container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.biography__media {
    position: relative;
    flex: 0 0 calc(50% - 28px);
    order: 1;
}

.biography__media::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 1px solid rgba(225, 0, 0, 0.32);
    border-radius: calc(var(--radius) + 6px);
    pointer-events: none;
    z-index: 0;
}

.biography__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090909;
}

.biography__content {
    flex: 0 0 calc(50% - 28px);
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.biography__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.biography__subtitle::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    flex-shrink: 0;
}

.biography__title {
    margin: 0 0 24px;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text);
    max-width: 10ch;
}

.biography__text {
    margin: 0 0 34px;
    max-width: 580px;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--muted);
}

.biography__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 58px;
    padding: 16px 28px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
    box-shadow: 0 14px 34px rgba(225, 0, 0, 0.24);
}

.biography__button:hover,
.biography__button:focus {
    background: #000;
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(225, 0, 0, 0.28);
}

@media (max-width: 1100px) {
    .biography {
        padding: 90px 0;
    }

    .biography__container {
        gap: 40px;
    }

    .biography__media,
    .biography__content {
        flex: 0 0 calc(50% - 20px);
    }

    .biography__title {
        max-width: 12ch;
    }

    .biography__text {
        font-size: 1rem;
        line-height: 1.75;
    }
}

@media (max-width: 980px) {
    .biography {
        padding: 72px 0;
    }

    .biography__container {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .biography__content {
        order: 1;
        flex: 0 0 auto;
        align-items: flex-start;
    }

    .biography__media {
        order: 2;
        flex: 0 0 auto;
    }

    .biography__media::before {
        inset: -12px 12px 12px -12px;
    }

    .biography__title {
        margin-bottom: 18px;
        max-width: 100%;
        font-size: clamp(2rem, 6vw, 3.2rem);
        line-height: 1;
    }

    .biography__text {
        max-width: 100%;
        margin-bottom: 26px;
    }
}

@media (max-width: 640px) {
    .biography {
        padding: 56px 0;
    }

    .biography__container {
        gap: 24px;
    }

    .biography__subtitle {
        margin-bottom: 14px;
        font-size: 0.8rem;
        letter-spacing: 0.14em;
    }

    .biography__subtitle::before {
        width: 28px;
    }

    .biography__title {
        margin-bottom: 16px;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .biography__text {
        margin-bottom: 22px;
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .biography__button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 15px 20px;
        font-size: 0.88rem;
    }

    .biography__image {
        aspect-ratio: 4 / 4.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .biography__button {
        transition: none !important;
    }
}






/* ================= TARIFFS ================= */

.tariffs {
    position: relative;
    width: 100%;
    padding: 110px 0;
    background:
        linear-gradient(180deg, rgba(225, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.96) 22%, #000 100%);
    overflow: hidden;
}

.tariffs::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(225, 0, 0, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(225, 0, 0, 0.08), transparent 24%);
    pointer-events: none;
    z-index: 0;
}

.tariffs__container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.tariffs__subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

.tariffs__subtitle::before,
.tariffs__subtitle::after {
    content: "";
    width: 38px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.tariffs__title {
    margin: 0 0 54px;
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text);
}

.tariffs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 34px 28px 30px;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}

.tariff-card:hover,
.tariff-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(225, 0, 0, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.tariff-card--featured {
    border-color: rgba(225, 0, 0, 0.45);
    background:
        linear-gradient(180deg, rgba(225, 0, 0, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.tariff-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tariff-card__header {
    margin-bottom: 18px;
    padding-right: 88px;
}

.tariff-card__title {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--text);
}

.tariff-card__price {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent);
}

.tariff-card__text {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.tariff-card__list {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.tariff-card__list li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.6;
}

.tariff-card__list li::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateY(-50%);
}

.tariff-card__button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 15px 24px;
    border-radius: 999px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
    box-shadow: 0 14px 34px rgba(225, 0, 0, 0.22);
}

.tariff-card__button:hover,
.tariff-card__button:focus {
    background: #000;
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(225, 0, 0, 0.28);
}

@media (max-width: 1100px) {
    .tariffs {
        padding: 90px 0;
    }

    .tariffs__grid {
        gap: 22px;
    }

    .tariff-card {
        padding: 30px 22px 26px;
    }

    .tariff-card__title {
        font-size: 1.45rem;
    }

    .tariff-card__price {
        font-size: 1.2rem;
    }
}

@media (max-width: 980px) {
    .tariffs {
        padding: 72px 0;
    }

    .tariffs__title {
        margin-bottom: 40px;
    }

    .tariffs__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tariff-card__header {
        padding-right: 80px;
    }
}

@media (max-width: 640px) {
    .tariffs {
        padding: 56px 0;
    }

    .tariffs__subtitle {
        margin-bottom: 14px;
        font-size: 0.8rem;
        letter-spacing: 0.14em;
    }

    .tariffs__subtitle::before,
    .tariffs__subtitle::after {
        width: 24px;
    }

    .tariffs__title {
        margin-bottom: 30px;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .tariff-card {
        padding: 24px 18px 22px;
    }

    .tariff-card__badge {
        top: 14px;
        right: 14px;
        font-size: 0.66rem;
        padding: 6px 10px;
    }

    .tariff-card__header {
        margin-bottom: 14px;
        padding-right: 72px;
    }

    .tariff-card__title {
        font-size: 1.3rem;
    }

    .tariff-card__price {
        font-size: 1.08rem;
    }

    .tariff-card__text {
        margin-bottom: 18px;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .tariff-card__list {
        gap: 10px;
        margin-bottom: 22px;
    }

    .tariff-card__list li {
        font-size: 0.94rem;
    }

    .tariff-card__button {
        width: 100%;
        min-height: 52px;
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tariff-card,
    .tariff-card__button {
        transition: none !important;
    }
}

/* ================= WHY_ME ================= */

.why-me {
    padding: 88px 0;
    background:
        linear-gradient(180deg, #050505 0%, #090909 100%);
    color: #ffffff;
}

.why-me__container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.why-me__heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.why-me__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #e10000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.why-me__subtitle::before,
.why-me__subtitle::after {
    content: "";
    width: 36px;
    height: 2px;
    background: #e10000;
    border-radius: 999px;
}

.why-me__title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.why-me__intro {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
}

.why-me__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.why-me__card {
    position: relative;
    padding: 24px 22px;
    border: 1px solid rgba(225, 0, 0, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(8, 8, 8, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 14px 30px rgba(0, 0, 0, 0.32);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.why-me__card::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #e10000;
}

.why-me__card:hover,
.why-me__card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(225, 0, 0, 0.5);
    box-shadow:
        0 0 0 1px rgba(225, 0, 0, 0.08) inset,
        0 18px 38px rgba(0, 0, 0, 0.4);
}

.why-me__card-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
}

.why-me__card-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .why-me__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .why-me {
        padding: 72px 0;
    }

    .why-me__container {
        width: min(100% - 24px, 1280px);
    }

    .why-me__heading {
        margin-bottom: 30px;
    }

    .why-me__subtitle {
        gap: 10px;
        font-size: 12px;
        letter-spacing: 0.14em;
        margin-bottom: 12px;
    }

    .why-me__subtitle::before,
    .why-me__subtitle::after {
        width: 26px;
    }

    .why-me__title {
        margin-bottom: 12px;
        font-size: clamp(30px, 10vw, 44px);
        line-height: 0.98;
    }

    .why-me__intro {
        font-size: 15px;
        line-height: 1.55;
    }

    .why-me__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-me__card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .why-me__card::before {
        width: 38px;
        margin-bottom: 14px;
    }

    .why-me__card-title {
        font-size: 20px;
    }

    .why-me__card-text {
        font-size: 15px;
        line-height: 1.55;
    }
}



/* ================= REVIEWS ================= */

.reviews {
    padding: 90px 0;
    background: linear-gradient(180deg, #050505 0%, #090909 100%);
    color: #ffffff;
}

.reviews__container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.reviews__heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.reviews__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #e10000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.reviews__subtitle::before,
.reviews__subtitle::after {
    content: "";
    width: 36px;
    height: 2px;
    background: #e10000;
    border-radius: 999px;
}

.reviews__title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.reviews__intro {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
}

.reviews__slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.reviews__viewport {
    overflow: hidden;
    width: 100%;
}

.reviews__track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.reviews__card {
    flex: 0 0 calc((100% - 80px) / 6);
    min-width: calc((100% - 80px) / 6);
    padding: 16px 14px;
    border: 1px solid rgba(225, 0, 0, 0.20);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(8, 8, 8, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 12px 24px rgba(0, 0, 0, 0.28);
}

.reviews__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

.reviews__name {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
}

.reviews__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.80);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviews__nav,
.weddings-gallery__nav {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(225, 0, 0, 0.35);
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.95);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.reviews__nav:hover,
.reviews__nav:focus-visible,
.weddings-gallery__nav:hover,
.weddings-gallery__nav:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(225, 0, 0, 0.75);
    background: rgba(30, 30, 30, 1);
}

.reviews__nav:disabled,
.weddings-gallery__nav:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

/* TABLET — 3 картки */
@media (max-width: 1100px) {
    .reviews__card {
        flex: 0 0 calc((100% - 32px) / 3);
        min-width: calc((100% - 32px) / 3);
    }
}

/* MOBILE — 1 картка */
@media (max-width: 767px) {
    .reviews {
        padding: 72px 0;
    }

    .reviews__container {
        width: min(100% - 24px, 1280px);
    }

    .reviews__heading {
        margin-bottom: 30px;
    }

    .reviews__title {
        font-size: clamp(30px, 10vw, 44px);
    }

    .reviews__slider {
        gap: 10px;
    }

    .reviews__track {
        gap: 12px;
    }

    .reviews__card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 16px 14px;
        border-radius: 16px;
    }

    .reviews__image {
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .reviews__name {
        font-size: 16px;
    }

    .reviews__text {
        font-size: 13px;
        line-height: 1.45;
        -webkit-line-clamp: 6;
    }

    .reviews__nav,
    .weddings-gallery__nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ================= GALLERY ================= */
.weddings-gallery {
    padding: 88px 0;
    background: linear-gradient(180deg, #050505 0%, #090909 100%);
    color: #ffffff;
}

.weddings-gallery__container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.weddings-gallery__heading {
    margin-bottom: 42px;
}

.weddings-gallery__subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #e10000;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.weddings-gallery__title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0 0 16px;
}

.weddings-gallery__intro {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.weddings-gallery__slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    /* Приховуємо все, що виходить за межі контейнера */
}

.weddings-gallery__viewport {
    overflow: hidden;
    width: 100%;
}

.weddings-gallery__track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.weddings-gallery__card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.weddings-gallery__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}



/* MOBILE */
@media (max-width: 767px) {
    .weddings-gallery__track {
        gap: 10px;
    }

    .weddings-gallery__card {
        flex: 0 0 calc(100% - 10px);
        /* Враховуємо gap */
        min-width: calc(100% - 10px);
        /* Враховуємо gap */
    }
}

/* TABLET — 2 картки */
@media (max-width: 980px) {
    .weddings-gallery__card {
        flex: 0 0 calc(50% - 16px);
        min-width: calc(50% - 16px);
    }
}

/* DESKTOP — 3 картки */
@media (min-width: 981px) {
    .weddings-gallery__card {
        flex: 0 0 calc(33.333% - 16px);
        min-width: calc(33.333% - 16px);
    }
}


/* ================= FOOTER ================= */

.footer {
    position: relative;
    width: 100%;
    padding: 72px 0 28px;
    background:
        linear-gradient(180deg, rgba(225, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.96) 20%, #000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(225, 0, 0, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(225, 0, 0, 0.08), transparent 22%);
    pointer-events: none;
    z-index: 0;
}

.footer__container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 1fr));
    gap: 36px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    width: max-content;
}

.footer__logo img {
    width: 170px;
    height: auto;
}

.footer__text {
    max-width: 320px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__socials a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.footer__socials a:hover,
.footer__socials a:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer__title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.footer__menu,
.footer__contacts {
    display: grid;
    gap: 12px;
}

.footer__menu a,
.footer__contacts a,
.footer__contacts span {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
    transition: color var(--transition);
}

.footer__menu a:hover,
.footer__menu a:focus,
.footer__contacts a:hover,
.footer__contacts a:focus {
    color: var(--accent);
}

.footer__bottom {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer__copy,
.footer__note {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer__bottom a {
    color: inherit;
    transition: color var(--transition);
}

.footer__bottom a:hover,
.footer__bottom a:focus {
    color: var(--accent);
}

@media (max-width: 1100px) {
    .footer {
        padding: 64px 0 24px;
    }

    .footer__top {
        grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(160px, 1fr));
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__text {
        max-width: 560px;
    }
}

@media (max-width: 980px) {
    .footer {
        padding: 56px 0 22px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 48px 0 20px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }

    .footer__logo img {
        width: 150px;
    }

    .footer__text,
    .footer__menu a,
    .footer__contacts a,
    .footer__contacts span,
    .footer__copy,
    .footer__note {
        font-size: 0.92rem;
    }

    .footer__socials a {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .footer__socials a,
    .footer__menu a,
    .footer__contacts a,
    .footer__bottom a {
        transition: none !important;
    }
}