/* Кнопка "Наша діяльність" на головній */
#hero .btn-hero-activity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 16px 32px;
    font-size: var(--type-cta);
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: rgba(244, 241, 234, 0.96);
    background: linear-gradient(180deg, rgba(26, 29, 22, 0.95), rgba(18, 21, 16, 0.95));
    border: 1px solid rgba(179, 135, 40, 0.56);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(252, 246, 186, 0.14), inset 0 -10px 16px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    opacity: 0;
    transform: translateY(18px);
    animation: slideUpHero 0.75s ease both 2.55s;
    transition: transform 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard), color 0.2s var(--ease-standard);
    position: relative;
    overflow: visible;
}

#hero .btn-hero-activity::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(252, 246, 186, 0.12), rgba(252, 246, 186, 0));
    opacity: 0.72;
    pointer-events: none;
}

#hero .btn-hero-activity::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: radial-gradient(120% 100% at 50% 50%, rgba(218, 226, 236, 0.22), rgba(218, 226, 236, 0));
    filter: blur(8px);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    animation: silverAuraPulse 2.2s ease-in-out infinite 2.55s;
}

#hero .btn-hero-activity > * {
    position: relative;
    z-index: 1;
}

#hero .btn-hero-activity:hover {
    background: linear-gradient(180deg, rgba(32, 36, 27, 0.96), rgba(21, 25, 19, 0.96));
    color: var(--color-gold-light);
    border-color: rgba(252, 246, 186, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(252, 246, 186, 0.2), inset 0 -10px 16px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

#hero .btn-hero-activity:focus-visible {
    outline: 2px solid rgba(252, 246, 186, 0.9);
    outline-offset: 3px;
}

#hero .btn-hero-activity:hover::after,
#hero .btn-hero-activity:focus-visible::after {
    opacity: 0.34;
    animation: silverAuraPulse 2.2s ease-in-out infinite, premiumAuraVibro 0.28s linear infinite;
}

#hero .btn-hero-activity:active {
    transform: translateY(1px);
    border-color: rgba(179, 135, 40, 0.72);
    box-shadow: inset 0 1px 0 rgba(252, 246, 186, 0.08), inset 0 8px 14px rgba(0, 0, 0, 0.28);
}

@keyframes silverAuraPulse {
    0%, 100% { opacity: 0.16; }
    50% { opacity: 0.28; }
}

@keyframes premiumAuraVibro {
    0% { transform: translateX(0); }
    25% { transform: translateX(0.45px); }
    50% { transform: translateX(-0.45px); }
    75% { transform: translateX(0.35px); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    html:not(.platform-ios) #hero .btn-hero-activity,
    html:not(.platform-ios) #hero .btn-hero-activity::after {
        animation: none !important;
    }
}

#hero .btn-hero-activity__arrow {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.92;
    transform: translateX(0);
    transition: transform var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}

#hero .btn-hero-activity:hover .btn-hero-activity__arrow,
#hero .btn-hero-activity:focus-visible .btn-hero-activity__arrow {
    transform: translateX(3px);
    opacity: 1;
}
/* ІЗОЛЬОВАНІ СТИЛІ БЛОКУ 1 (HERO) */

#hero.hero-section {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

#hero .hero-bg-image {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    max-height: 100vh;
    background: url('../images/background/background.jpg') no-repeat center center / cover;
    animation: kenBurnsEffect 26s infinite alternate ease-in-out;
    z-index: 1;
    object-fit: cover;
}

@supports (background-image: image-set(url('../images/background/background.jpg') type("image/jpeg"))) {
    #hero .hero-bg-image {
        background-image: image-set(
            url('../images/background/background-600.jpg') type("image/jpeg") 1x,
            url('../images/background/background.jpg') type("image/jpeg") 2x
        );
    }
}

/* Градієнтний overlay на фоні */
#hero.hero-section::before {
    content: none;
}

/* Геометричні елементи на фоні */
#hero.hero-section::after {
    content: none;
}

#hero .hero-wrapper { 
    position: relative; 
    z-index: 10; 
    width: 100%;
}

#hero .hero-content { 
    max-width: var(--hero-content-max-width);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#hero .hero-mask { 
    overflow: visible; 
    margin-bottom: 6px; 
}

#hero .hero-gold-subtitle {
    display: block;
    font-family: var(--font-family-ui);
    font-size: clamp(1rem, 2.15vw, 1.24rem);
    font-weight: 800;
    color: rgba(18, 14, 11, 0.94);
    letter-spacing: clamp(0.12em, 0.2vw, 0.18em);
    line-height: 1.18;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpHero 0.8s both;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34), 0 3px 8px rgba(0, 0, 0, 0.26);
    -webkit-text-stroke: 0.15px rgba(0, 0, 0, 0.18);
}

#hero .hero-main-title {
    font-family: var(--font-family-display);
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: clamp(0.012em, 0.2vw, 0.032em);
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpHero 0.8s both 0.3s;
    position: relative;
    text-transform: uppercase;
    background: none;
    color: rgba(248, 244, 236, 0.99);
    -webkit-text-fill-color: rgba(248, 244, 236, 0.99);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7), 0 4px 14px rgba(0, 0, 0, 0.52), 0 0 1px rgba(0, 0, 0, 0.86);
    -webkit-text-stroke: 0.75px rgba(0, 0, 0, 0.78);
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Hover ефект для заголовка */
#hero .hero-main-title:hover {
    transform: none;
}

#hero .hero-description-block {
    display: flex;
    gap: 20px;
    margin: 20px 0 18px;
}

#hero .hero-vertical-line {
    width: 4px;
    background: linear-gradient(to bottom, #b38728, #fcf6ba, #b38728);
    background-size: 100% 200%;
    transform: scaleY(0);
    transform-origin: top;
    animation: growLineHero 0.8s forwards 1s;
    box-shadow: 0 0 15px rgba(179, 135, 40, 0.6);
    position: relative;
    overflow: hidden;
}

#hero .hero-vertical-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: lineShimmer 2.2s ease-in-out 2;
}

#hero .hero-desc-content {
    position: relative;
    overflow: hidden;
    padding-left: 0;
    margin-left: 0;
}

#hero .hero-desc-text {
    font-family: var(--font-family-text);
    font-size: clamp(1.1rem, 3.2vw, 2rem);
    font-weight: 600;
    color: rgba(247, 243, 235, 0.98);
    opacity: 0;
    transform: translateX(-100%);
    animation: revealTextHero 1.6s ease-out both 1.3s;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.62), 0 4px 14px rgba(0, 0, 0, 0.42), 0 0 1px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.64);
    position: relative;
    display: block;
    line-height: 1.4;
    max-width: min(100%, var(--hero-text-max-width));
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

#hero .hero-desc-line {
    display: block;
    white-space: nowrap;
}

#hero .hero-desc-line + .hero-desc-line {
    margin-top: 0.12em;
}

#hero .hero-footer-text {
    font-family: var(--font-family-text);
    font-size: clamp(1rem, 2.15vw, 1.34rem);
    color: rgba(250, 246, 238, 0.99);
    max-width: min(550px, var(--hero-text-max-width));
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpHero 0.8s both 2s;
    line-height: 1.58;
    letter-spacing: 0.004em;
    text-wrap: pretty;
    display: inline-block;
    padding: 0.16em 0.36em;
    border-radius: 999px;
    background: radial-gradient(ellipse at 50% 52%, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.24) 64%, rgba(0, 0, 0, 0) 100%);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.74), 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 0.48px rgba(0, 0, 0, 0.66);
}

/* АНІМАЦІЇ БЛОКУ HERO */
@keyframes slideUpHero {
    from { opacity: 0; }
    to { opacity: 1; transform: translateY(0); }
}

/* SCROLL-INDICATOR */
#hero .hero-scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: slideUpHero 0.6s ease both 3.2s;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

#hero .hero-scroll-indicator.is-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

#hero .hero-scroll-indicator__line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(252, 246, 186, 0), rgba(252, 246, 186, 0.55));
    animation: scrollLineGrow 1.6s ease-in-out infinite;
}

#hero .hero-scroll-indicator__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(252, 246, 186, 0.72);
    animation: scrollDotPulse 1.6s ease-in-out infinite;
}

@keyframes scrollLineGrow {
    0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
    50%       { transform: scaleY(1);   opacity: 1; }
}

@keyframes scrollDotPulse {
    0%, 100% { transform: scale(0.7); opacity: 0.4; }
    50%       { transform: scale(1.2); opacity: 1; }
}

@keyframes growLineHero { 
    to { transform: scaleY(1); } 
}

@keyframes lineShimmer {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes revealTextHero {
    from { opacity: 0; }
    to { opacity: 1; transform: translateX(0); }
}

/* Анімовані частинки на фоні */
#hero .hero-wrapper::before {
    content: none;
}

/* Плавна анімація при скролі (fade out) */
#hero.hero-section {
    transition: opacity 0.5s ease-out;
}

/* Покращені тіні для тексту */
#hero .hero-gold-subtitle {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34), 0 3px 8px rgba(0, 0, 0, 0.26);
}

#hero .hero-footer-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38), 0 6px 14px rgba(0, 0, 0, 0.26);
    -webkit-text-stroke: 0.22px rgba(0, 0, 0, 0.24);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

#hero .mobile-break {
    display: inline;
}

/* Мобільне уточнення hero */
@media (max-width: 600px) {
    #hero .hero-bg-image {
        background-color: transparent;
        background-image: url('../images/background/generated-image-mobile.jpg');
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        animation: none;
    }

    #hero.hero-section {
        min-height: 100dvh;
        min-height: 100svh;
        align-items: center;
        justify-content: center;
        padding: 90px 0 40px;
    }

    #hero .hero-content {
        max-width: 100%;
        padding: 0 5%;
        position: relative;
        z-index: 10;
    }

    #hero .hero-mask {
        margin-bottom: 10px;
    }

    #hero .hero-gold-subtitle {
        font-size: clamp(0.76rem, 2.2vw, 0.92rem);
        letter-spacing: 0.14em;
        margin-bottom: 8px;
        color: #1f1710;
        background: transparent;
        border: 0;
        border-radius: 0;
        display: block;
        align-items: initial;
        justify-content: initial;
        padding: 0;
        text-shadow: none;
        box-shadow: none;
    }

    #hero .hero-main-title {
        font-family: var(--font-family-display);
        font-size: clamp(2.2rem, 8vw, 4rem);
        line-height: 1.1;
        margin-bottom: 6px;
        background: none;
        color: rgba(248, 244, 236, 0.99);
        -webkit-text-fill-color: rgba(248, 244, 236, 0.99);
        animation: slideUpHero 0.8s both 0.3s;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.68), 0 5px 16px rgba(0, 0, 0, 0.44), 0 0 1px rgba(0, 0, 0, 0.86);
        -webkit-text-stroke: 0.72px rgba(0, 0, 0, 0.76);
        letter-spacing: 0.018em;
    }

    #hero .hero-description-block {
        margin: 20px 0 22px;
        gap: 14px;
    }

    #hero .hero-vertical-line {
        width: 3px;
        box-shadow: 0 0 10px var(--color-gold);
    }

    #hero .hero-desc-text {
        font-family: var(--font-family-text);
        font-size: clamp(1.05rem, 3.1vw, 1.5rem);
        line-height: 1.5;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.62), 0 4px 12px rgba(0, 0, 0, 0.36), 0 0 1px rgba(0, 0, 0, 0.76);
        -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.58);
        font-weight: 700;
    }

    #hero .hero-footer-text {
        font-size: clamp(1rem, 2.9vw, 1.16rem);
        line-height: 1.66;
        color: rgba(248, 244, 236, 0.97);
        max-width: 100%;
        margin-top: 12px;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.62), 0 4px 12px rgba(0, 0, 0, 0.38), 0 0 1px rgba(0, 0, 0, 0.8);
        -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.22);
        padding-right: 5%;
    }

    #hero .btn-hero-activity {
        width: min(100%, 320px);
        justify-content: center;
        margin-top: 28px;
    }
}

@media (max-width: 430px) {
    #hero .hero-bg-image {
        background-position: center center;
    }
}

@media (max-width: 360px) {
    #hero .hero-main-title {
        font-size: clamp(1.95rem, 10.4vw, 2.2rem);
        line-height: 1.08;
        letter-spacing: 0.02em;
    }

    #hero .hero-gold-subtitle {
        letter-spacing: 0.1em;
    }
}

@keyframes kenBurnsEffect { 
    0% { transform: scale(1); } 
    100% { transform: scale(1.1); } 
}

@media (prefers-reduced-motion: reduce) {
    #hero .hero-bg-image { animation: none; }
    #hero .hero-wrapper::before { animation: none; opacity: 0.3; }
    #hero.hero-section::after { animation: none; opacity: 0.35; }
    html:not(.platform-ios) #hero .hero-main-title {
        animation: none;
        opacity: 1;
        transform: none;
    }
    html:not(.platform-ios) #hero .btn-hero-activity {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

