@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);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(120% 140% at 80% 15%, rgba(141, 157, 255, 0.12), rgba(5, 7, 15, 0) 55%) var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(5, 7, 15, 0.88);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.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: 18px 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;
    color: var(--text-main);
}

.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;
}


a {
    color: inherit;
    text-decoration: none;
}

.contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px clamp(28px, 6vw, 72px);
    background: linear-gradient(135deg, rgba(13, 16, 29, 0.88), rgba(8, 11, 24, 0.65));
    color: var(--text-main);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 54px rgba(5, 7, 15, 0.35);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.95rem;
}

.brand-text {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.page-tag {
    font-size: 0.88rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    opacity: 0.82;
}

.contacts-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 6vw, 40px) 120px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    text-align: center;
    color: var(--text-main);
}

.contacts-main h1 {
    font-size: clamp(2.4rem, 3.6vw, 3.3rem);
    margin: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.contact-item {
    background: rgba(13, 16, 29, 0.82);
    padding: 36px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(5, 7, 15, 0.35);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-item h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: rgba(245, 247, 255, 0.85);
    text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus-visible {
    color: var(--accent);
}

.contact-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 127, 80, 0.35);
    box-shadow: 0 32px 60px rgba(141, 157, 255, 0.18);
}

.contacts-map {
    display: flex;
    justify-content: center;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(5, 7, 15, 0.6);
    background: rgba(8, 11, 24, 0.65);
}

.contacts-map iframe {
    width: min(100%, 900px);
    height: clamp(320px, 52vw, 460px);
    border: none;
}

.feedback {
    margin-inline: auto;
    max-width: 620px;
    background: rgba(13, 16, 29, 0.82);
    padding: 40px 36px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 58px rgba(5, 7, 15, 0.38);
}

.feedback h2 {
    margin: 0 0 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 140px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 11, 24, 0.78);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: rgba(141, 157, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(141, 157, 255, 0.24);
}

.feedback-form button {
    align-self: center;
    width: 190px;
    padding: 13px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feedback-form button:hover,
.feedback-form button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(255, 127, 80, 0.3);
}

.contacts-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 52px 16px 68px;
    background: rgba(5, 7, 15, 0.92);
    color: var(--text-main);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
}

.footer-links a {
    color: rgba(245, 247, 255, 0.85);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    opacity: 1;
}

.footer-signature {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(169, 177, 214, 0.7);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@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: 900px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-meta {
        order: 3;
    }
}


@media (max-width: 520px) {
    .logo {
        justify-content: center;
        padding: 10px 18px;
        letter-spacing: 0.12em;
    }

    .main-nav {
        gap: 12px;
    }

    .contacts-main {
        padding: 40px 20px 80px;
    }

    .contacts-header {
        padding: 24px 20px;
    }

    .contacts-map iframe {
        height: 300px;
    }

    .feedback {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .contacts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-tag {
        letter-spacing: 0.14em;
    }

    .feedback-form {
        padding: 20px;
    }

}

