*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f3f3f1;
    --text: #0f0f0f;
    --accent: #42e0a8;
    --accent-dark: #19c88a;
    --white: #ffffff;
    --border: #111111;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
    --transition: 0.35s ease;
    --radius: 14px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =========================
   HERO
========================= */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    min-height: 540px;
}

.decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    will-change: transform;
    transition: transform 0.15s linear;
}

.decor-left-top {
    top: 86px;
    left: -36px;
    width: 128px;
}

.decor-left-bottom {
    left: -24px;
    bottom: 56px;
    width: 210px;
    opacity: 0.9;
}

.decor-right-top {
    top: 10px;
    right: -6px;
    width: 134px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 0 26px;
}

.logo-text {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.logo-text:hover {
    transform: translateY(-2px);
}

.logo-text img {
    width: 142px;
    height: auto;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    margin-left: auto;
    margin-right: 34px;
}

.desktop-nav a {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: color var(--transition);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.search-btn:hover {
    transform: translateY(-2px) scale(1.04);
    background: var(--accent-dark);
    box-shadow: 0 8px 20px rgba(66, 224, 168, 0.35);
}

.socials {
    display: flex;
    align-items: center;
    gap: 11px;
}

.socials a {
    width: 38px;
    height: 38px;
    border: 1.5px solid #111111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.socials a:hover {
    transform: translateY(-3px);
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1.5px solid #111111;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

.burger span {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #111111;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: all var(--transition);
}

.burger span:nth-child(1) {
    top: 15px;
}

.burger span:nth-child(2) {
    top: 22px;
}

.burger span:nth-child(3) {
    top: 29px;
}

.burger.active span:nth-child(1) {
    top: 22px;
    transform: translateX(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    top: 22px;
    transform: translateX(-50%) rotate(-45deg);
}

/* =========================
   HERO CONTENT
========================= */
.hero-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 68px;
    padding: 72px 0 58px;
    min-height: 390px;
}

.hero-logo {
    width: 255px;
    max-width: 100%;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.07));
    transition: transform 0.45s ease;
}

.hero-logo:hover {
    transform: translateY(-6px) scale(1.015);
}

.hero-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-text {
    max-width: 650px;
}

.hero-lead,
.hero-description {
    margin: 0;
    color: #141414;
}

.hero-lead {
    font-size: clamp(28px, 3vw, 43px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 34px;
}

.hero-description {
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* =========================
   STRIP
========================= */
.about-strip {
    background: var(--accent);
    position: relative;
    overflow: hidden;
}

.about-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.12), transparent 20%);
    pointer-events: none;
}

.about-strip__inner {
    min-height: 122px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.about-strip h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #000000;
}

.detail-btn {
    min-width: 190px;
    padding: 16px 26px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #101010;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.detail-btn:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 15px 28px rgba(0, 0, 0, 0.12);
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(380px, 100%);
    height: 100vh;
    background: #ffffff;
    z-index: 120;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -14px 0 35px rgba(0, 0, 0, 0.12);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__inner {
    padding: 24px 24px 36px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu__close {
    width: 46px;
    height: 46px;
    margin-left: auto;
    border-radius: 50%;
    border: 1.5px solid #111111;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    transition: all var(--transition);
}

.mobile-menu__close:hover {
    background: #111111;
    color: #ffffff;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 44px;
}

.mobile-nav a {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.mobile-socials {
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding-top: 30px;
}

.mobile-socials a {
    width: 46px;
    height: 46px;
    border: 1.5px solid #111111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 110;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   ANIMATIONS
========================= */
.reveal-up {
    opacity: 0;
    transform: translateY(34px);
    animation: revealUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-delay {
    animation-delay: 0.2s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .desktop-nav {
        gap: 24px;
        margin-right: 18px;
    }

    .hero-content {
        gap: 44px;
    }

    .hero-lead {
        font-size: 36px;
    }

    .hero-description {
        font-size: 24px;
    }
}

@media (max-width: 900px) {

    .desktop-nav,
    .socials {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .site-header {
        padding: 22px 0;
    }

    .logo-text img {
        width: 126px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 48px 0 52px;
        text-align: center;
    }

    .hero-logo {
        margin: 0 auto;
        width: 230px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-lead {
        margin-bottom: 26px;
        font-size: clamp(25px, 5vw, 34px);
    }

    .hero-description {
        font-size: clamp(19px, 4vw, 25px);
    }

    .about-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero-section {
        min-height: auto;
    }

    .decor-left-top {
        width: 94px;
        top: 90px;
        left: -28px;
    }

    .decor-left-bottom {
        width: 150px;
        left: -30px;
        bottom: 72px;
        opacity: 0.7;
    }

    .decor-right-top {
        width: 100px;
        top: 14px;
        right: -18px;
    }

    .site-header {
        gap: 14px;
    }

    .header-actions {
        gap: 10px;
    }

    .search-btn {
        width: 36px;
        height: 36px;
    }

    .burger {
        width: 42px;
        height: 42px;
    }

    .hero-content {
        padding: 30px 0 42px;
    }

    .hero-logo {
        width: 190px;
    }

    .hero-lead {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 1.35;
    }

    .about-strip {
        padding: 8px 0;
    }

    .about-strip__inner {
        min-height: auto;
        padding: 18px 0;
        gap: 16px;
    }

    .about-strip h2 {
        font-size: 32px;
        line-height: 1.05;
    }

    .detail-btn {
        min-width: 100%;
        padding: 15px 18px;
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .logo-text img {
        width: 110px;
    }

    .search-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .hero-logo {
        width: 172px;
    }

    .hero-lead {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .mobile-nav a {
        font-size: 24px;
    }
}

/* =========================================
   POSTS SLIDER SECTION
========================================= */
.posts-slider-section {
    position: relative;
    background: #dff1ea;
    padding: 54px 0 56px;
    overflow: hidden;
    border-top: 3px solid #41dca7;
}

.posts-decor {
    position: absolute;
    left: -8px;
    bottom: 38px;
    width: 135px;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    will-change: transform;
}

.posts-slider-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.posts-slider-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 1030px;
}

.posts-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.post-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
}

.post-card__image {
    width: 100%;
    height: 466px;
    overflow: hidden;
    background: #cfcfcf;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.06);
}

.post-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 18px;
}

.post-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.26;
    font-weight: 800;
    color: #111111;
}

.post-card__text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    color: #232323;
}

.post-card__btn {
    margin-top: auto;
    align-self: center;
    min-width: 106px;
    padding: 9px 14px;
    background: #3fe0a8;
    color: #111111;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.post-card__btn:hover {
    transform: translateY(-2px);
    background: #2fd49b;
    box-shadow: 0 10px 20px rgba(63, 224, 168, 0.28);
}

.posts-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #3fe0a8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    box-shadow: 0 10px 22px rgba(63, 224, 168, 0.22);
}

.posts-arrow span {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-1px);
}

.posts-arrow:hover {
    transform: scale(1.08);
    background: #30d39a;
    box-shadow: 0 14px 24px rgba(63, 224, 168, 0.32);
}

.posts-arrow:active {
    transform: scale(0.96);
}

.posts-slider-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.more-posts-btn {
    min-width: 190px;
    padding: 14px 22px;
    background: #8a2a8e;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.more-posts-btn:hover {
    transform: translateY(-3px);
    background: #752178;
    box-shadow: 0 14px 26px rgba(138, 42, 142, 0.22);
}

/* Анимация появления */
.post-card {
    opacity: 0;
    transform: translateY(24px);
    animation: postsCardReveal 0.7s ease forwards;
}

.post-card:nth-child(1) {
    animation-delay: 0.08s;
}

.post-card:nth-child(2) {
    animation-delay: 0.16s;
}

.post-card:nth-child(3) {
    animation-delay: 0.24s;
}

.post-card:nth-child(4) {
    animation-delay: 0.32s;
}

.post-card:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes postsCardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   TABLET
========================================= */
@media (max-width: 1100px) {
    .posts-slider-viewport {
        max-width: 760px;
    }

    .post-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }

    .post-card__image {
        height: 220px;
    }
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 767px) {
    .posts-slider-section {
        padding: 36px 0 44px;
    }

    .posts-decor {
        width: 92px;
        left: -18px;
        bottom: 54px;
        opacity: 0.95;
    }

    .posts-slider-wrapper {
        gap: 10px;
        align-items: stretch;
    }

    .posts-arrow {
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        z-index: 5;
        width: 42px;
        height: 42px;
    }

    .posts-arrow--left {
        left: -4px;
    }

    .posts-arrow--right {
        right: -4px;
    }

    .posts-arrow span {
        font-size: 24px;
    }

    .posts-slider-viewport {
        max-width: 100%;
    }

    .posts-slider-track {
        gap: 14px;
    }

    .post-card {
        flex: 0 0 100%;
        min-width: 100%;
        min-height: 430px;
    }

    .post-card__image {
        height: 210px;
    }

    .post-card__content {
        padding: 16px;
    }

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

    .post-card__text {
        font-size: 14px;
    }

    .posts-slider-bottom {
        margin-top: 22px;
    }

    .more-posts-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .posts-slider-section {
        padding: 30px 0 40px;
    }

    .post-card {
        min-height: 400px;
    }

    .post-card__image {
        height: 190px;
    }

    .post-card__title {
        font-size: 17px;
    }

    .post-card__btn {
        min-width: 100%;
    }
}

/* =========================================
   EVENTS / AFISHA SECTION
========================================= */
.events-section {
    padding: 74px 0 72px;
    background: #f3f3f3;
    overflow: hidden;
}

.events-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.events-slider-viewport {
    width: 100%;
    max-width: 910px;
    overflow: hidden;
}

.events-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.event-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: 57% 43%;
    min-height: 458px;
    background: #f8f8f8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(28px);
    animation: eventSlideReveal 0.8s ease forwards;
}

@keyframes eventSlideReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-slide__media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #d8d8d8;
}

.event-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.event-slide:hover .event-slide__media img {
    transform: scale(1.045);
}

.event-slide__content {
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    background: #f8f8f8;
}

.event-slide__title {
    margin: 0 0 24px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #101010;
    letter-spacing: -0.02em;
}

.event-slide__text {
    margin: 0;
    max-width: 255px;
    font-size: 17px;
    line-height: 1.32;
    font-weight: 500;
    color: #1c1c1c;
}

.event-slide__btn {
    margin-top: auto;
    align-self: center;
    min-width: 152px;
    padding: 14px 18px;
    border-radius: 4px;
    background: #42e0a8;
    color: #111111;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.event-slide__btn:hover {
    transform: translateY(-2px);
    background: #31d69c;
    box-shadow: 0 12px 24px rgba(66, 224, 168, 0.28);
}

.events-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #42e0a8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(66, 224, 168, 0.24);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.events-arrow span {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-1px);
}

.events-arrow:hover {
    transform: scale(1.08);
    background: #2fd49b;
    box-shadow: 0 16px 28px rgba(66, 224, 168, 0.32);
}

.events-arrow:active {
    transform: scale(0.96);
}

.events-bottom {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.events-more-btn {
    min-width: 188px;
    padding: 14px 22px;
    border-radius: 4px;
    background: #8d2b8d;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.events-more-btn:hover {
    transform: translateY(-3px);
    background: #752177;
    box-shadow: 0 14px 28px rgba(141, 43, 141, 0.24);
}

/* =========================================
   EVENTS RESPONSIVE
========================================= */
@media (max-width: 1100px) {
    .events-slider-shell {
        gap: 18px;
    }

    .events-slider-viewport {
        max-width: 820px;
    }

    .event-slide {
        min-height: 420px;
    }

    .event-slide__title {
        font-size: 24px;
    }

    .event-slide__text {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .events-section {
        padding: 56px 0 56px;
    }

    .event-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .event-slide__media {
        min-height: 320px;
    }

    .event-slide__content {
        padding: 22px 20px 24px;
    }

    .event-slide__title {
        margin-bottom: 16px;
        font-size: 24px;
    }

    .event-slide__text {
        max-width: 100%;
        font-size: 16px;
        margin-bottom: 24px;
    }

    .event-slide__btn {
        align-self: flex-start;
    }
}

@media (max-width: 767px) {
    .events-slider-shell {
        gap: 10px;
    }

    .events-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        width: 42px;
        height: 42px;
    }

    .events-arrow--left {
        left: -2px;
    }

    .events-arrow--right {
        right: -2px;
    }

    .events-arrow span {
        font-size: 24px;
    }

    .event-slide {
        border-radius: 12px;
    }

    .event-slide__media {
        min-height: 220px;
    }

    .event-slide__title {
        font-size: 21px;
    }

    .event-slide__text {
        font-size: 15px;
        line-height: 1.4;
    }

    .event-slide__btn {
        width: 100%;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .events-section {
        padding: 42px 0 46px;
    }

    .event-slide__media {
        min-height: 180px;
    }

    .event-slide__content {
        padding: 18px 16px 20px;
    }

    .event-slide__title {
        font-size: 18px;
    }

    .event-slide__text {
        font-size: 14px;
    }

    .events-more-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================
   TEAM / SPIVPRATSIA SECTION
========================================= */
.team-section {
    background: #f3f3f3;
    overflow: hidden;
}

.team-strip {
    background: #42e0a8;
    position: relative;
    overflow: hidden;
}

.team-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.14), transparent 22%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.10), transparent 18%);
    pointer-events: none;
}

.team-strip__inner {
    min-height: 122px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.team-strip__inner h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #000000;
}

.team-strip__btn {
    min-width: 188px;
    padding: 16px 24px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #111111;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.team-strip__btn:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.team-main {
    padding: 78px 0 82px;
    position: relative;
}

.team-heading-wrap {
    margin-bottom: 34px;
}

.team-heading {
    margin: 0;
    font-size: clamp(46px, 5vw, 72px);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #000000;
    opacity: 0;
    transform: translateY(24px);
    animation: teamHeadingReveal 0.8s ease forwards;
}

@keyframes teamHeadingReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.team-slider-viewport {
    width: 100%;
    max-width: 1080px;
    overflow: hidden;
}

.team-slider-track {
    display: flex;
    gap: 22px;
    transition: transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    align-items: stretch;
    padding: 18px 0 16px;
}

.team-card {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: calc((100% - 44px) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px 22px;
    border-radius: 28px;
    position: relative;
    opacity: 0.65;
    transform: scale(0.92);
    transition:
        transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.55s ease,
        box-shadow 0.55s ease,
        background 0.55s ease,
        filter 0.55s ease;
    filter: blur(0px);
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.08));
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

/* Базовое состояние шара */
.team-card__avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    width: 210px;
    height: 210px;
    transition:
        width 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        height 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        margin-bottom 0.55s ease;
}

.team-card__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #3fe0a8;
    box-shadow:
        0 0 0 7px rgba(63, 224, 168, 0.08),
        0 12px 30px rgba(63, 224, 168, 0.14);
    transition:
        transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.55s ease,
        opacity 0.55s ease;
    animation: teamPulseSmall 4s infinite ease-in-out;
}

.team-card__avatar {
    position: relative;
    width: 194px;
    height: 194px;
    border-radius: 50%;
    overflow: hidden;
    background: #42e0a8;
    box-shadow:
        inset 0 0 0 3px #ffffff,
        0 12px 26px rgba(0, 0, 0, 0.06);
    transition:
        width 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        height 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.55s ease;
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.8s ease,
        filter 0.45s ease;
}

.team-card__content {
    max-width: 330px;
    transition:
        transform 0.55s ease,
        opacity 0.55s ease;
}

.team-card__name {
    margin: 0 0 12px;
    font-size: clamp(26px, 2vw, 36px);
    line-height: 1.1;
    font-weight: 500;
    color: #111111;
}

.team-card__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.42;
    font-weight: 500;
    color: #1f1f1f;
}

/* ЛЕВЫЙ И ПРАВЫЙ видимые элементы */
.team-card.is-side {
    opacity: 0.82;
    transform: scale(0.95);
}

.team-card.is-side .team-card__avatar-wrap {
    width: 185px;
    height: 185px;
    transform: translateY(8px);
}

.team-card.is-side .team-card__avatar {
    width: 171px;
    height: 171px;
}

.team-card.is-side .team-card__ring {
    box-shadow:
        0 0 0 6px rgba(63, 224, 168, 0.08),
        0 10px 24px rgba(63, 224, 168, 0.12);
    animation: teamPulseSide 4.2s infinite ease-in-out;
}

.team-card.is-side .team-card__content {
    transform: translateY(2px);
}

/* ЦЕНТРАЛЬНЫЙ элемент */
.team-card.is-center {
    opacity: 1;
    transform: scale(1);
}

.team-card.is-center::before {
    opacity: 1;
}

.team-card.is-center .team-card__avatar-wrap {
    width: 250px;
    height: 250px;
    transform: translateY(-2px);
    margin-bottom: 24px;
}

.team-card.is-center .team-card__avatar {
    width: 236px;
    height: 236px;
    box-shadow:
        inset 0 0 0 3px #ffffff,
        0 20px 38px rgba(63, 224, 168, 0.16);
}

.team-card.is-center .team-card__ring {
    box-shadow:
        0 0 0 8px rgba(63, 224, 168, 0.13),
        0 18px 36px rgba(63, 224, 168, 0.22);
    animation: teamPulseCenter 2.7s infinite ease-in-out;
}

.team-card.is-center .team-card__content {
    transform: translateY(0);
}

/* Невидимые/дальние */
.team-card.is-far {
    opacity: 0.38;
    transform: scale(0.88);
}

.team-card.is-far .team-card__avatar-wrap {
    width: 170px;
    height: 170px;
    transform: translateY(12px);
}

.team-card.is-far .team-card__avatar {
    width: 156px;
    height: 156px;
}

.team-card.is-far .team-card__ring {
    opacity: 0.7;
    box-shadow:
        0 0 0 5px rgba(63, 224, 168, 0.05),
        0 8px 18px rgba(63, 224, 168, 0.08);
    animation: none;
}

/* Hover */
.team-card:hover {
    opacity: 1;
}

.team-card:hover .team-card__avatar img {
    transform: scale(1.08);
}

.team-card.is-center:hover {
    transform: translateY(-8px) scale(1.02);
}

.team-card.is-side:hover {
    transform: translateY(-6px) scale(0.98);
}

.team-card.is-far:hover {
    transform: translateY(-4px) scale(0.91);
}

/* Появление */
.team-card {
    animation: teamCardReveal 0.85s ease forwards;
}

.team-card:nth-child(1) {
    animation-delay: 0.08s;
}

.team-card:nth-child(2) {
    animation-delay: 0.16s;
}

.team-card:nth-child(3) {
    animation-delay: 0.24s;
}

.team-card:nth-child(4) {
    animation-delay: 0.32s;
}

.team-card:nth-child(5) {
    animation-delay: 0.40s;
}

@keyframes teamCardReveal {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.88);
    }

    to {
        opacity: 0.65;
        transform: translateY(0) scale(0.92);
    }
}

@keyframes teamPulseSmall {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.95;
    }

    50% {
        transform: scale(1.025);
        opacity: 0.88;
    }
}

@keyframes teamPulseSide {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.94;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.86;
    }
}

@keyframes teamPulseCenter {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.045);
        opacity: 0.9;
    }
}

.team-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #42e0a8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(66, 224, 168, 0.24);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease;
}

.team-arrow span {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-1px);
}

.team-arrow:hover {
    transform: scale(1.08);
    background: #2fd49b;
    box-shadow: 0 16px 30px rgba(66, 224, 168, 0.32);
}

.team-arrow:active {
    transform: scale(0.96);
}

/* =========================================
   TEAM RESPONSIVE
========================================= */
@media (max-width: 1100px) {
    .team-slider-viewport {
        max-width: 760px;
    }

    .team-card {
        flex: 0 0 calc((100% - 22px) / 2);
        min-width: calc((100% - 22px) / 2);
    }

    .team-card.is-side .team-card__avatar-wrap {
        width: 180px;
        height: 180px;
    }

    .team-card.is-side .team-card__avatar {
        width: 166px;
        height: 166px;
    }

    .team-card.is-center .team-card__avatar-wrap {
        width: 228px;
        height: 228px;
    }

    .team-card.is-center .team-card__avatar {
        width: 214px;
        height: 214px;
    }

    .team-card.is-far .team-card__avatar-wrap {
        width: 164px;
        height: 164px;
    }

    .team-card.is-far .team-card__avatar {
        width: 150px;
        height: 150px;
    }

    .team-card__name {
        font-size: 30px;
    }
}

@media (max-width: 900px) {
    .team-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .team-main {
        padding: 56px 0 62px;
    }

    .team-heading-wrap {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .team-slider-shell {
        gap: 10px;
    }

    .team-slider-viewport {
        max-width: 100%;
    }

    .team-slider-track {
        gap: 14px;
    }

    .team-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 14px 8px 18px;
        opacity: 1;
        transform: scale(1);
    }

    .team-card::before {
        opacity: 1;
    }

    .team-card.is-side,
    .team-card.is-far {
        opacity: 1;
        transform: scale(1);
    }

    .team-card.is-side .team-card__avatar-wrap,
    .team-card.is-far .team-card__avatar-wrap {
        width: 176px;
        height: 176px;
        transform: translateY(0);
    }

    .team-card.is-side .team-card__avatar,
    .team-card.is-far .team-card__avatar {
        width: 162px;
        height: 162px;
    }

    .team-card.is-center .team-card__avatar-wrap {
        width: 208px;
        height: 208px;
        transform: translateY(0);
        margin-bottom: 18px;
    }

    .team-card.is-center .team-card__avatar {
        width: 194px;
        height: 194px;
    }

    .team-card__name {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .team-card__text {
        font-size: 15px;
    }

    .team-arrow {
        position: absolute;
        top: 38%;
        transform: translateY(-50%);
        z-index: 5;
        width: 42px;
        height: 42px;
    }

    .team-arrow--left {
        left: -2px;
    }

    .team-arrow--right {
        right: -2px;
    }

    .team-arrow span {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .team-main {
        padding: 42px 0 48px;
    }

    .team-heading {
        font-size: 40px;
    }

    .team-card.is-side .team-card__avatar-wrap,
    .team-card.is-far .team-card__avatar-wrap {
        width: 162px;
        height: 162px;
    }

    .team-card.is-side .team-card__avatar,
    .team-card.is-far .team-card__avatar {
        width: 148px;
        height: 148px;
    }

    .team-card.is-center .team-card__avatar-wrap {
        width: 188px;
        height: 188px;
    }

    .team-card.is-center .team-card__avatar {
        width: 174px;
        height: 174px;
    }

    .team-card__name {
        font-size: 24px;
    }

    .team-card__text {
        font-size: 14px;
    }

    .team-strip__btn {
        width: 100%;
        min-width: 100%;
    }
}

/* =========================================
   SUPPORT SECTION
========================================= */
.support-section {
    background: #dff1ea;
    padding: 72px 0 76px;
    position: relative;
    overflow: hidden;
}

.support-grid {
    display: grid;
    grid-template-columns: minmax(320px, 510px) minmax(280px, 360px);
    justify-content: center;
    align-items: center;
    column-gap: 72px;
    row-gap: 30px;
}

.support-text {
    max-width: 520px;
}

.support-text p {
    margin: 0;
    font-size: clamp(20px, 1.6vw, 22px);
    line-height: 1.28;
    font-weight: 500;
    color: #111111;
    letter-spacing: -0.01em;
}

.support-text p+p {
    margin-top: 28px;
}

.support-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.support-visual__image-wrap {
    width: 100%;
    max-width: 320px;
    margin-left: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 900px;
}

.support-visual__image {
    width: 100%;
    max-width: 290px;
    height: auto;
    object-fit: contain;
    animation: donateFloat 4.2s ease-in-out infinite;
    transform-origin: center;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.12));
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.support-visual__image-wrap:hover .support-visual__image {
    transform: translateY(-8px) rotate(-2deg) scale(1.03);
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.16));
}

@keyframes donateFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.support-btn {
    margin-top: 22px;
    min-width: 190px;
    padding: 16px 22px;
    border-radius: 4px;
    background: #8e2a8f;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    box-shadow: 0 12px 24px rgba(142, 42, 143, 0.22);
}

.support-btn:hover {
    transform: translateY(-4px);
    background: #762179;
    box-shadow: 0 18px 30px rgba(142, 42, 143, 0.3);
}

/* =========================================
   CONTACTS SECTION
========================================= */
.contacts-section {
    background: #42e0a8;
    padding: 52px 0 40px;
    position: relative;
    overflow: hidden;
}

.contacts-container {
    max-width: 780px;
}

.contacts-title {
    margin: 0 0 34px;
    font-size: clamp(52px, 5vw, 70px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #000000;
}

.contacts-line {
    width: 100%;
    height: 2px;
    background: #111111;
    margin-bottom: 14px;
    transform-origin: left center;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
    color: #000000;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    width: 42px;
    height: 42px;
    border: 1.8px solid #111111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.28);
}

.contact-icon i {
    font-size: 18px;
}

.contact-text {
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* =========================================
   REVEAL ANIMATIONS
========================================= */
.reveal-support-left,
.reveal-support-right,
.reveal-support-up {
    opacity: 0;
}

.reveal-support-left.in-view {
    animation: supportRevealLeft 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-support-right.in-view {
    animation: supportRevealRight 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-support-up.in-view {
    animation: supportRevealUp 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-support-up.delay-1.in-view {
    animation-delay: 0.12s;
}

.reveal-support-up.delay-2.in-view {
    animation-delay: 0.2s;
}

.reveal-support-up.delay-3.in-view {
    animation-delay: 0.28s;
}

@keyframes supportRevealLeft {
    from {
        opacity: 0;
        transform: translateX(-36px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes supportRevealRight {
    from {
        opacity: 0;
        transform: translateX(36px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes supportRevealUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация линии */
.contacts-line.in-view {
    animation: contactsLineGrow 0.85s ease forwards;
}

@keyframes contactsLineGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1100px) {
    .support-grid {
        grid-template-columns: 1fr 320px;
        column-gap: 44px;
    }

    .support-text p {
        font-size: 19px;
    }
}

@media (max-width: 900px) {
    .support-section {
        padding: 56px 0 62px;
    }

    .support-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: left;
        row-gap: 34px;
    }

    .support-text {
        max-width: 100%;
    }

    .support-visual {
        width: 100%;
    }

    .contacts-title {
        margin-bottom: 26px;
    }

    .contact-text {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .support-section {
        padding: 42px 0 48px;
    }

    .support-text p {
        font-size: 17px;
        line-height: 1.35;
    }

    .support-text p+p {
        margin-top: 22px;
    }

    .support-visual__image {
        max-width: 240px;
    }

    .support-btn {
        width: 100%;
        max-width: 260px;
        padding: 15px 18px;
    }

    .contacts-section {
        padding: 38px 0 30px;
    }

    .contacts-title {
        font-size: 42px;
        margin-bottom: 22px;
    }

    .contacts-line {
        margin-bottom: 18px;
    }

    .contact-item {
        gap: 14px;
        align-items: flex-start;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
    }

    .contact-icon i {
        font-size: 16px;
    }

    .contact-text {
        font-size: 20px;
        line-height: 1.25;
    }
}

@media (max-width: 420px) {
    .support-text p {
        font-size: 16px;
    }

    .support-visual__image {
        max-width: 215px;
    }

    .contact-text {
        font-size: 18px;
    }
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #333333;
    padding: 70px 0;
}

.site-footer .container {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-footer__logo {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.site-footer__logo:hover {
    transform: translateY(-2px);
}

.site-footer__logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}

.site-footer__nav a {
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    transition: opacity 0.3s ease;
}

.site-footer__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1.5px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.site-footer__nav a:hover::after {
    width: 100%;
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-footer__socials a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 21px;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.site-footer__socials a:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #333333;
    border-color: #ffffff;
}

/* =========================================
   FOOTER RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .site-footer {
        padding: 18px 0;
    }

    .site-footer__inner {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 16px;
    }

    .site-footer__logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .site-footer__nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 18px 22px;
    }

    .site-footer__socials {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-footer .container {
        width: min(calc(100% - 28px), 1180px);
    }

    .site-footer {
        padding: 16px 0;
    }

    .site-footer__logo img {
        width: 44px;
        height: 44px;
    }

    .site-footer__nav {
        gap: 14px 18px;
    }

    .site-footer__nav a {
        font-size: 12px;
    }

    .site-footer__socials a {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .site-footer__nav {
        gap: 12px 16px;
    }

    .site-footer__nav a {
        font-size: 11.5px;
    }
}

/* =========================================
   WORDPRESS SEARCH MODAL
========================================= */
.wp-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.wp-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wp-search-modal {
    position: fixed;
    top: 32px;
    left: 50%;
    z-index: 310;
    width: min(calc(100% - 32px), 720px);
    transform: translateX(-50%) translateY(-24px);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
}

.wp-search-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.wp-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: #42e0a8;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.wp-search-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 1.5px solid #111;
    border-radius: 999px;
    padding: 0 18px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.wp-search-submit,
.wp-search-close {
    width: 48px;
    height: 48px;
    border: 1.5px solid #111;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: 0.3s ease;
}

.wp-search-submit:hover,
.wp-search-close:hover {
    background: #111;
    color: #fff;
}

@media (max-width: 640px) {
    .wp-search-modal {
        top: 16px;
        width: min(calc(100% - 20px), 720px);
    }

    .wp-search-form {
        padding: 14px;
        gap: 8px;
    }

    .wp-search-input {
        height: 44px;
        font-size: 14px;
    }

    .wp-search-submit,
    .wp-search-close {
        width: 44px;
        height: 44px;
    }
}
/* WordPress integration helpers */
.kust-search-modal[hidden] { display: none; }
.kust-search-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
}
.kust-search-modal__inner {
    width: min(620px, 100%);
    padding: 26px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.kust-search-modal__inner > button {
    margin-left: auto;
    display: block;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-form label { flex: 1; }
.search-field {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1.5px solid #111;
    border-radius: 8px;
}
.search-submit {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #42e0a8;
    font-weight: 800;
    cursor: pointer;
}
.custom-logo-link img { width: 142px; height: auto; object-fit: contain; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; }
.footer-logo img { width: 142px; height: auto; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 767px) {
    .search-form { flex-direction: column; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* WordPress header compatibility fix */
.site-header-wrap {
    position: relative;
    z-index: 100;
    background: var(--bg);
}

.desktop-nav .nav-dropdown__menu {
    display: block;
}

.desktop-nav .nav-dropdown__menu a {
    display: block;
}

.desktop-nav .nav-dropdown__menu a::after {
    display: none;
}

/* =========================================
   WORDPRESS HEADER DROPDOWN FIX
========================================= */

.site-header-wrap {
    position: relative;
    z-index: 100;
    background: var(--bg, #f3f3f1);
}

.site-header .desktop-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    margin-left: auto;
    margin-right: 34px;
}

.site-header .nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header .nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.site-header .nav-dropdown__trigger i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.site-header .nav-dropdown__menu {
    position: absolute !important;
    top: calc(100% + 16px) !important;
    left: 50% !important;

    display: block !important;
    min-width: 230px;
    padding: 10px;

    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);

    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.3s ease;
    z-index: 999;
}

.site-header .nav-dropdown__menu::before {
    content: "";
    position: absolute;
    left: 0;
    top: -18px;
    width: 100%;
    height: 18px;
}

.site-header .nav-dropdown:hover .nav-dropdown__menu,
.site-header .nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.site-header .nav-dropdown:hover .nav-dropdown__trigger i,
.site-header .nav-dropdown:focus-within .nav-dropdown__trigger i {
    transform: rotate(180deg);
}

.site-header .nav-dropdown__menu a {
    display: block !important;
    padding: 10px 12px;
    border-radius: 8px;

    color: #111111;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;

    transition: 0.3s ease;
}

.site-header .nav-dropdown__menu a::after {
    display: none !important;
}

.site-header .nav-dropdown__menu a:hover {
    background: #42e0a8;
    color: #111111;
}

/* На мобильных dropdown внутри desktop-nav не нужен */
@media (max-width: 900px) {
    .site-header .desktop-nav {
        display: none;
    }
}

/* =========================================
   HOME POSTS: TITLE ONLY
========================================= */

.home-page .posts-slider-section .post-card__text {
    display: none !important;
}

.home-page .posts-slider-section .post-card__content {
    min-height: 205px;
    display: flex;
    flex-direction: column;
}

.home-page .posts-slider-section .post-card__title {
    margin-bottom: 24px;
}

.home-page .posts-slider-section .post-card__btn {
    margin-top: auto;
}