:root {
    color-scheme: dark;
    --background: #050505;
    --surface: #101010;
    --surface-elevated: #181818;
    --text: #f7f7f7;
    --muted: #b8b8b8;
    --accent: #ffd700;
    --accent-hover: #ffe552;
    --danger: #ff6b6b;
    --success: #52d681;
    --border: rgba(255, 215, 0, 0.2);
    --header-height: 82px;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--accent) #050505;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border: 3px solid #050505;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

body {
    position: relative;
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(
        135deg,
        #010101 0%,
        #050505 34%,
        #171300 64%,
        #090800 82%,
        #020202 100%
    ) fixed;
    background-size: cover;
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
}

body.page-home {
    background: #000;
}

body.menu-open {
    overflow: hidden;
}

main {
    position: relative;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    overflow: visible;
    background: #050505;
    border-bottom: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header::before {
    content: none;
}

.site-header.scrolled {
    background: #050505;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.48);
}

.header-container {
    position: relative;
    z-index: 1;
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand {
    color: var(--accent);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    white-space: nowrap;
}

.brand span {
    color: var(--text);
}

.site-nav {
    justify-self: center;
}

.nav-links {
    display: flex;
    gap: clamp(14px, 2.5vw, 30px);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 10px 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--text);
    background: #171717;
    border-radius: 50%;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #000;
    background: var(--accent);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

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

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 50px) 20px 70px;
    text-align: center;
}

.hero-background,
.video-overlay,
.hero-pattern {
    position: absolute;
    inset: 0;
}

.hero-background {
    background: linear-gradient(135deg, #030303, #171717 50%, #050505);
}

.page-home .hero-background {
    z-index: 0;
    background: linear-gradient(45deg, #000 0%, #1a1a1a 100%);
}

.video-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.8));
}

.page-home .video-overlay {
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.hero-pattern {
    display: none;
}

.page-home .hero-pattern {
    z-index: 2;
    display: block;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

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

.hero-content {
    position: relative;
    z-index: 3;
    width: min(850px, 100%);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(3rem, 10vw, 6.8rem);
    line-height: 1;
    letter-spacing: 0.12em;
    text-shadow: 0 0 32px rgba(255, 215, 0, 0.3);
}

.hero-quote {
    max-width: 680px;
    margin: 26px auto 34px;
    color: var(--text);
    font-size: clamp(1.05rem, 2.5vw, 1.5rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
    color: #080808;
    background: var(--accent);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.16);
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    color: var(--text);
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.24);
}

.page-section {
    min-height: 100svh;
    padding: calc(var(--header-height) + 70px) 0 90px;
    background: transparent;
}

.section-header {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-title {
    margin: 0;
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.content-card,
.form-card,
.contact-info {
    padding: clamp(24px, 5vw, 48px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.lead {
    margin-top: 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.subsection-title {
    margin: 34px 0 18px;
    color: var(--accent);
    font-size: 1.3rem;
    text-transform: uppercase;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.services-section {
    min-height: auto;
    padding-top: 90px;
    background: transparent;
}

.services-grid,
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 20px;
}

.service-card,
.equipment-card {
    padding: 28px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.service-card:hover,
.equipment-card:hover {
    background: var(--surface-elevated);
    border-color: rgba(255, 215, 0, 0.55);
    transform: translateY(-4px);
}

.service-card h3,
.equipment-card h2 {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 1.1rem;
}

.service-card p,
.equipment-card p {
    margin: 0;
    color: var(--muted);
}

.equipment-card {
    text-align: center;
}

.equipment-card > i {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 2.6rem;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.gallery-grid a {
    flex: 0 1 calc((100% - 42px) / 4);
    min-width: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-grid a:hover img {
    filter: brightness(1.08);
    transform: scale(1.035);
}

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 0, 0, 0.965);
    border: 0;
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    width: min(1100px, 94vw);
    height: min(820px, 88dvh);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 14px;
}

.lightbox-content figure {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.lightbox-image {
    display: block;
    width: 100%;
    height: min(760px, 82dvh);
    object-fit: contain;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    padding: 6px 13px;
    color: #080808;
    background: var(--accent);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    transform: translateX(-50%);
}

.lightbox-close,
.lightbox-nav {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #080808;
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
}

.lightbox-close {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
}

.lightbox-previous {
    grid-column: 1;
}

.lightbox-content figure {
    grid-column: 2;
    grid-row: 1;
}

.lightbox-next {
    grid-column: 3;
}

.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}

.contact-info h2,
.form-card h2 {
    margin-top: 0;
    color: var(--accent);
}

.contact-info address {
    display: grid;
    gap: 18px;
    margin-top: 30px;
    font-style: normal;
}

.contact-info address a {
    display: flex;
    gap: 12px;
    align-items: start;
    text-decoration: none;
}

.contact-info address i {
    width: 20px;
    margin-top: 5px;
    color: var(--accent);
    text-align: center;
}

.studio-map {
    position: relative;
    height: 250px;
    margin-top: 28px;
    overflow: hidden;
    background: #070707;
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 14px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 16px 36px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(255, 215, 0, 0.08);
}

.studio-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: none;
}

.map-button {
    width: 100%;
    margin-top: 16px;
    color: var(--accent);
    background: #080808;
    border: 1px solid rgba(255, 215, 0, 0.48);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.map-button:hover {
    color: #080808;
    background: var(--accent);
}

.form-intro {
    margin-top: -5px;
    color: var(--muted);
}

.form-field {
    margin-top: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-field label span {
    color: var(--accent);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--text);
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
    outline: none;
}

.form-field [aria-invalid="true"] {
    border-color: var(--danger);
}

.field-hint,
.field-error {
    display: block;
    min-height: 1.25em;
    margin-top: 5px;
    font-size: 0.82rem;
}

.field-hint {
    color: var(--muted);
}

.field-error {
    color: var(--danger);
}

.form-status {
    display: none;
    margin: 22px 0 0;
    padding: 13px 15px;
    border-radius: 9px;
}

.form-status:not(:empty) {
    display: block;
}

.form-status.is-error {
    color: #ffd6d6;
    background: rgba(255, 107, 107, 0.13);
    border: 1px solid rgba(255, 107, 107, 0.4);
}

.form-status.is-success {
    color: #d8ffe5;
    background: rgba(82, 214, 129, 0.12);
    border: 1px solid rgba(82, 214, 129, 0.4);
}

.submit-button {
    width: 100%;
    margin-top: 22px;
    border: 0;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

#services,
#booking-form {
    scroll-margin-top: calc(var(--header-height) + 32px);
}

#booking-form.reveal {
    transform: none;
}

.mobile-booking-link {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .header-container {
        grid-template-columns: 1fr auto auto;
        gap: 12px;
    }

    .site-nav {
        order: 3;
        justify-self: auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        z-index: 1001;
        width: 100vw;
        max-height: calc(100dvh - var(--header-height));
        display: grid;
        gap: 0;
        padding: 18px 20px 28px;
        overflow-y: auto;
        visibility: hidden;
        background: rgba(5, 5, 5, 0.98);
        border-bottom: 1px solid var(--border);
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        box-shadow: 0 24px 42px rgba(0, 0, 0, 0.55);
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 13px 4px;
    }

    .mobile-booking-link {
        display: list-item;
    }

    .social-links {
        justify-self: end;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid a {
        flex-basis: calc((100% - 28px) / 3);
    }

    .gallery-lightbox {
        padding: 12px;
    }

    .lightbox-content {
        width: 100%;
        height: 100%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) 56px;
        gap: 10px;
    }

    .lightbox-content figure {
        width: 100%;
        height: 100%;
        display: grid;
        grid-column: 1 / -1;
        grid-row: 1;
        place-items: center;
    }

    .lightbox-image {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: calc(100dvh - 92px);
    }

    .lightbox-counter {
        top: 12px;
        bottom: auto;
    }

    .lightbox-close {
        top: 0;
        right: 0;
    }

    .lightbox-previous {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .lightbox-next {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .gallery-grid a {
        flex-basis: calc((100% - 14px) / 2);
    }
}

@media (max-width: 560px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    .social-links {
        display: none;
    }

    .header-container {
        grid-template-columns: 1fr auto;
    }

    .hero h1 {
        letter-spacing: 0.06em;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding-top: calc(var(--header-height) + 48px);
    }
}

@media (max-width: 390px) {
    .gallery-grid a {
        flex-basis: 100%;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}
