/* ===== Палитра и основа ===== */
:root {
    --bg: #050506;
    --bg-raise: #0e0e11;
    --bg-input: #141417;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.22);
    --text: #e9e9ee;
    --muted: #9d9da6;
    --plat: #d4d4d8;
    --plat-bright: #f4f4f5;
    --grad-plat: linear-gradient(135deg, #fafafa 0%, #b9b9c1 50%, #ececf0 100%);
    --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 500px at 80% -10%, rgba(212, 212, 216, 0.07), transparent 60%),
        radial-gradient(700px 400px at 10% 30%, rgba(212, 212, 216, 0.04), transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Шапка (sticky, во всю ширину с закруглением) ===== */
header {
    position: sticky;
    top: 12px;
    z-index: 1000;
    width: calc(100% - 24px);
    margin: 12px auto 0;
    background: rgba(5, 5, 6, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #fff;
    padding: 10px 0;
    transition: transform 0.35s ease;
}

header.header-hidden {
    transform: translateY(calc(-100% - 24px));
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: 2px;
    white-space: nowrap;
    background: var(--grad-plat);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Навигация (десктоп) ===== */
.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 6px 2px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--grad-plat);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--plat-bright);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
    transform: scaleX(1);
}

.nav-menu .logo-item {
    display: none;
}

.nav-menu img {
    width: 200px;
    height: auto;
    display: block;
}

/* Соцсети */
.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #fff;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    background: var(--grad-plat);
    border-color: transparent;
    color: #0a0a0b;
}

.social-icons a i {
    font-size: 1.2em;
}

/* ===== Бургер-меню ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
    background: none;
    border: none;
}

.burger-menu .bar {
    width: 24px;
    height: 2px;
    background-color: #fff;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.burger-menu {
    padding: 8px;
    border-radius: 10px;
    transition: background-color 0.25s ease;
}

.burger-menu:hover,
.burger-menu:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
}

.burger-menu.active {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px var(--line);
}

/* Затемнение контента при открытом меню */
body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 999;
    animation: menuFade 0.3s ease;
}

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

/* ===== Hero: видео + контент ===== */
.video-container {
    width: 100%;
    height: 82vh;
    min-height: 480px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 6, 0.75) 0%,
            rgba(5, 5, 6, 0.35) 35%,
            rgba(5, 5, 6, 0.55) 70%,
            rgba(5, 5, 6, 0.95) 100%);
    z-index: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px 120px;
    max-width: 820px;
}

.hero-kicker {
    margin: 0 0 14px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 5.5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--grad-plat);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}

.hero-sub {
    margin: 0 0 28px;
    font-size: clamp(0.95em, 2vw, 1.15em);
    color: var(--text);
    opacity: 0.85;
}

.btn-primary {
    padding: 16px 34px;
    background: var(--grad-plat);
    color: #0a0a0b;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 30px -10px rgba(212, 212, 216, 0.55);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -12px rgba(212, 212, 216, 0.75);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Кнопки-навигация внизу видео */
.button-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.button {
    width: 110px;
    height: 84px;
    background: rgba(10, 10, 12, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(20, 20, 23, 0.85);
}

.button:active {
    transform: translateY(-1px);
}

/* ===== Фото-баннеры (вместо белых полос) ===== */
.photo-banner {
    position: relative;
    width: 100%;
    height: clamp(360px, 60vh, 680px);
    overflow: hidden;
    background: var(--bg);
    line-height: 0;
}

.photo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 6s ease;
}

.photo-banner:hover img {
    transform: scale(1.04);
}

.photo-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
            var(--bg) 0%,
            rgba(5, 5, 6, 0) 22%,
            rgba(5, 5, 6, 0) 78%,
            var(--bg) 100%);
}

/* фото команды: не обрезать головы */
.photo-banner--team img {
    object-position: center 18%;
}

/* ===== Ряд «фото + карточка» (десктоп) ===== */
@media (min-width: 1200px) {
    .showcase {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(24px, 3vw, 44px);
        align-items: stretch;
        max-width: 1240px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .showcase--flip .photo-banner {
        order: -1;
    }

    .showcase .section {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .showcase .section .container {
        width: 100%;
    }

    .showcase .photo-banner {
        height: auto;
        min-height: 420px;
        max-height: 620px;
        border-radius: 24px;
        border: 1px solid var(--line);
    }

    .showcase .photo-banner::after {
        display: none;
    }
}

/* ===== Секции-карточки ===== */
.section {
    padding: clamp(50px, 8vw, 90px) 20px;
    text-align: center;
    scroll-margin-top: 90px;
}

.section .container,
.section-card {
    max-width: 880px;
    position: relative;
    background: linear-gradient(180deg, #111114 0%, #0a0a0c 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(36px, 6vw, 56px) clamp(22px, 5vw, 56px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 160px;
    background: radial-gradient(500px 160px at 50% 0%, rgba(212, 212, 216, 0.12), transparent 70%);
    pointer-events: none;
}

.section-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--plat-bright);
    background: #0b0b0d;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: 0 10px 30px -12px rgba(212, 212, 216, 0.35);
    position: relative;
}

.section h2 {
    font-size: clamp(1.5em, 4vw, 2.2em);
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--grad-plat);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section p {
    font-size: clamp(1em, 2.3vw, 1.15em);
    line-height: 1.65;
    margin: 0 auto 15px;
    max-width: 720px;
    color: var(--text);
    overflow-wrap: break-word;
}

.contact-link {
    color: var(--plat);
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.contact-link i {
    margin-right: 6px;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--plat-bright);
    text-decoration: underline;
}

/* ===== Кнопка "Подробнее" ===== */
.details-btn {
    padding: 14px 30px;
    background: var(--grad-plat);
    color: #0a0a0b;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    margin-top: 22px;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 30px -12px rgba(212, 212, 216, 0.5);
}

.details-btn:hover,
.details-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -14px rgba(212, 212, 216, 0.7);
}

/* ===== Подвал (плашка, как шапка) ===== */
footer {
    width: calc(100% - 24px);
    margin: 48px auto 12px;
    background: rgba(5, 5, 6, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    padding: 26px 16px;
}

footer p {
    margin: 6px 0;
    font-size: 0.92em;
    letter-spacing: 0.4px;
}

footer .footer-copy {
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: var(--grad-plat);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

footer a {
    color: var(--plat);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(212, 212, 216, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
    color: var(--plat-bright);
    border-color: var(--plat-bright);
}

/* ===== Модальные окна ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    inset: 0;
    background-color: rgba(3, 3, 4, 0.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.open {
    display: block;
}

.modal-content {
    background: linear-gradient(180deg, #121215 0%, #0b0b0d 100%);
    border: 1px solid var(--line-strong);
    margin: 5vh auto;
    padding: 34px 26px 26px;
    width: calc(100% - 20px);
    max-width: 560px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 1);
}

.modal-content h2 {
    font-size: clamp(1.2em, 4vw, 1.6em);
    margin: 0 0 16px;
    padding-right: 25px;
    overflow-wrap: break-word;
    background: var(--grad-plat);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-content h3 {
    font-size: 1em;
    margin: 16px 0 6px;
    color: var(--plat);
    text-align: left;
}

.modal-content p {
    font-size: 0.95em;
    line-height: 1.55;
    margin: 0 0 10px;
    text-align: left;
    overflow-wrap: break-word;
}

.modal-content ul {
    text-align: left;
    margin: 0 0 10px;
    padding-left: 20px;
    font-size: 0.95em;
    line-height: 1.55;
}

.modal-content li {
    margin-bottom: 6px;
    overflow-wrap: break-word;
}

.close-details {
    color: var(--muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 6px;
    right: 14px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-details:hover,
.close-details:focus-visible {
    color: var(--plat-bright);
    transform: scale(1.15);
}

/* ===== Форма записи ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

form label {
    font-weight: 600;
    color: var(--plat);
    font-size: 0.92em;
}

form input,
form textarea {
    padding: 13px 14px;
    background: var(--bg-input);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.15);
}

.btn-submit {
    padding: 16px;
    background: var(--grad-plat);
    color: #0a0a0b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    width: 100%;
    margin-top: 6px;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 30px -12px rgba(212, 212, 216, 0.5);
}

.btn-submit:hover,
.btn-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -14px rgba(212, 212, 216, 0.7);
}

/* ===== Появление при скролле ===== */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .photo-banner:hover img {
        transform: none;
    }
}

/* ===== Мобильное меню ===== */
@media (max-width: 1199px) {
    .burger-menu {
        display: flex;
    }

    header h1 {
        font-size: 1.25em;
        letter-spacing: 1px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -105%;
        width: min(82%, 330px);
        height: 100vh;
        height: 100dvh;
        background-color: rgba(5, 5, 6, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 26px;
        transition: left 0.3s ease;
        z-index: 1001;
        padding: 80px 26px 34px;
        overflow-y: auto;
        border-right: 1px solid var(--line);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        white-space: normal;
        width: 100%;
    }

    .nav-menu ul li {
        width: 100%;
        opacity: 0;
        transform: translateX(-22px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .nav-menu.active ul li {
        opacity: 1;
        transform: none;
    }

    .nav-menu.active ul li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active ul li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active ul li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active ul li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active ul li:nth-child(5) { transition-delay: 0.25s; }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 16px;
        font-size: 1.08em;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 10px;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible {
        background-color: rgba(255, 255, 255, 0.07);
        color: var(--plat-bright);
    }

    .nav-menu .logo-item {
        display: block;
        padding-top: 22px;
        border-bottom: none;
        text-align: center;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
    }

    .nav-menu.active .logo-item {
        opacity: 1;
        transform: none;
    }

    .nav-menu img {
        width: 175px;
        display: block;
        margin: 0 auto;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .social-icons a {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.4s ease, transform 0.4s ease,
            background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    }

    .nav-menu.active .social-icons a {
        opacity: 1;
        transform: none;
    }

    .nav-menu.active .social-icons a:nth-child(1) { transition-delay: 0.35s; }
    .nav-menu.active .social-icons a:nth-child(2) { transition-delay: 0.4s; }
    .nav-menu.active .social-icons a:nth-child(3) { transition-delay: 0.45s; }
    .nav-menu.active .social-icons a:nth-child(4) { transition-delay: 0.5s; }

    .button {
        width: 100px;
        height: 78px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 10px 0;
    }

    header h1 {
        font-size: 0.9em;
        letter-spacing: 0.3px;
    }

    .header-inner {
        gap: 10px;
    }

    .video-container {
        height: 74vh;
        min-height: 420px;
    }
    .hero-content {
        padding: 20px 14px 110px;
    }

    .hero-kicker {
        letter-spacing: 0.25em;
    }

    .btn-primary {
        padding: 14px 26px;
        width: min(100%, 300px);
    }

    .button-container {
        gap: 8px;
        padding: 14px 10px;
    }

    .button {
        width: calc(50% - 12px);
        max-width: 150px;
        height: 64px;
        font-size: 12px;
    }

    .section {
        padding: 40px 14px;
    }

    .photo-banner {
        height: clamp(300px, 55vh, 500px);
    }

    .modal-content {
        margin: 10px auto;
        padding: 32px 16px 18px;
    }

    footer {
        margin: 32px auto 10px;
        padding: 20px 12px;
    }
}
