@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.page-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.page-fade-in-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

.page-fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.page-fade-in-delay-3 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.page-fade-in-delay-4 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .page-fade-in,
    .page-fade-in-up,
    .page-fade-in-delay-1,
    .page-fade-in-delay-2,
    .page-fade-in-delay-3,
    .page-fade-in-delay-4 {
        animation: none;
        opacity: 1;
    }
}

:root {
    --bg-dark: #05070f;
    --accent: #ff7f50;
    --accent-secondary: #8d9dff;
    --text-main: #f5f7ff;
    --border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0e0d1a;
    color: #f4f4f9;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

.hero {
    position: relative;
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: #ffffff;
    background: radial-gradient(circle at top, rgba(255, 140, 102, 0.9), rgba(77, 31, 111, 0.9));
    overflow: hidden;
}

.hero__gallery {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero__gallery img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    filter: saturate(1.1) brightness(0.82);
    animation: heroSlide 18s infinite ease-in-out;
    animation-fill-mode: both;
    pointer-events: none;
}

.hero__gallery img:nth-child(2) {
    animation-delay: 6s;
}

.hero__gallery img:nth-child(3) {
    animation-delay: 12s;
}

@keyframes heroSlide {
    0%,
    8% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
    33% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    41%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__gallery img {
        animation: none;
        opacity: 0;
    }

    .hero__gallery img:first-child {
        opacity: 1;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 13, 26, 0.72), rgba(14, 13, 26, 0.38));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 680px;
}

.hero__tagline {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero__content h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
}

.hero__subtitle {
    margin: 0 0 2rem;
    font-size: 1.1rem;
    opacity: 0.85;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffee93, #ff7b54);
    color: #1e122d;
    border-radius: 999px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 123, 84, 0.4);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(5, 7, 15, 0.82);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: -140% 45% auto -40%;
    height: 360%;
    background: radial-gradient(circle at center, rgba(141, 157, 255, 0.35), rgba(255, 127, 80, 0) 55%);
    transform: rotate(12deg);
    pointer-events: none;
    opacity: 0.45;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    transition: none;
    color: var(--text-main);
}

.logo:hover,
.logo:focus-visible {
    transform: none;
    box-shadow: none;
}

.logo-title {
    font-size: 0.92rem;
    letter-spacing: 0.16em;
}

.logo-year {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    text-shadow: 0 0 18px rgba(141, 157, 255, 0.45);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: rgba(255, 127, 80, 0.2);
    touch-action: manipulation;
}

.menu-toggle-bar {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-weight: 500;
    opacity: 0.7;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    width: 100%;
}

.header-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(241, 244, 255, 0.86);
    box-shadow: none;
}

.header-meta-dot {
    display: none;
}

.header-meta-year {
    font-weight: 700;
    color: var(--accent);
}

.header-meta-label {
    letter-spacing: 0.18em;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

main {
    padding: 4rem 5vw 5rem;
}

section {
    margin-bottom: 4rem;
    background: rgba(32, 25, 54, 0.6);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

section h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #ffee93;
}

.history p + p {
    margin-top: 1.2rem;
}

.gallery {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.gallery__item {
    display: grid;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 18px;
}

.gallery__item figcaption {
    font-size: 0.95rem;
    color: rgba(244, 244, 249, 0.8);
}

.principles {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.principles.visible {
    opacity: 1;
    transform: translateY(0);
}

.principles__list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1.5rem;
}

.principles__list li {
    background: rgba(255, 255, 255, 0.06);
    padding: 1.4rem;
    border-radius: 16px;
    line-height: 1.7;
}

.principles__list strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #ffd082;
    font-size: 1.05rem;
}

.faq__list {
    display: grid;
    gap: 1.2rem;
}

details {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    transition: border 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

details[open] {
    border-color: rgba(255, 216, 123, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

summary {
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding-right: 1.5rem;
}

summary::marker {
    color: #ffd082;
}

details p {
    margin: 1rem 0 0;
    color: rgba(244, 244, 249, 0.85);
}

.site-footer {
    margin: 0;
    background: rgba(14, 13, 26, 0.9);
    padding: 3.5rem 5vw;
    text-align: center;
    display: grid;
    gap: 2rem;
}

.site-footer__form {
    margin: 0 auto;
    max-width: 480px;
    display: grid;
    gap: 1rem;
}

.site-footer__label {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.site-footer__controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
}

.site-footer__controls input {
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #f4f4f9;
}

.site-footer__controls input::placeholder {
    color: rgba(244, 244, 249, 0.6);
}

.site-footer__controls button {
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #ffee93, #ff7b54);
    color: #1e122d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-footer__controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 123, 84, 0.35);
}

.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-button {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-footer__signature {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 244, 249, 0.6);
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    main {
        padding: 3rem 5vw 4rem;
    }

    section {
        padding: 2.2rem;
    }

    .site-footer__controls {
        grid-template-columns: 1fr;
    }

    .site-footer__controls button {
        width: 100%;
    }

    .hero__gallery {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
    }

    .hero__gallery img {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: none;
        opacity: 0;
        animation: none;
    }

    .hero__gallery img:first-child {
        opacity: 1;
        position: relative;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: flex;
    }

    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        background: linear-gradient(135deg, rgba(9, 12, 24, 0.98), rgba(7, 9, 19, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 80px 24px 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
        margin: 0;
        border: none;
    }

    .main-nav.nav-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 16px 24px;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        opacity: 1;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.active {
        background: linear-gradient(120deg, rgba(255, 127, 80, 0.2), rgba(141, 157, 255, 0.2));
        border-color: rgba(255, 127, 80, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 127, 80, 0.2);
    }

    .header-meta {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .logo {
        justify-content: center;
        padding: 10px 18px;
        letter-spacing: 0.12em;
    }

    .main-nav {
        gap: 12px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero__gallery {
        position: absolute;
        inset: 0;
    }

    .hero__gallery img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        animation: none;
        opacity: 0;
    }

    .hero__gallery img:first-child {
        opacity: 1;
    }

    .hero__content h1 {
        font-size: 2.2rem;
    }

    section h2 {
        font-size: 1.7rem;
    }

    .principles__list {
        gap: 1rem;
    }
}
