/* =========================
   GOOGLE FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@600;700&display=swap');


/* =========================
   CSS VARIABLES
========================= */
:root {
    /* Fonts */
    --font-main: "Inter", sans-serif;
    --font-accent: "Orbitron", sans-serif;

    /* Colors */
    --color-bg: #0f1115;
    --color-bg-secondary: #171a21;
    --color-surface: #1d212b;
    --color-surface-hover: #252a36;

    --color-text: #f5f7fa;
    --color-text-muted: #a7b0be;
    --color-text-dark: #0c0d10;

    --color-primary: #ff5f1f;
    --color-primary-hover: #ff7b45;
    --color-secondary: #2bd1ff;
    --color-border: rgba(255, 255, 255, 0.08);

    --color-success: #39d98a;
    --color-danger: #ff4d4f;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 20px;
    --section-padding: 100px;

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.35);

    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;

    /* Header */
    --header-height: 80px;
}

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

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 95, 31, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 95, 31, 0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 95, 31, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 95, 31, 0.8), 0 0 30px rgba(255, 95, 31, 0.6);
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

main {
    transition: filter 0.3s ease;
}

main.blurred {
    filter: blur(5px);
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}


/* =========================
   GLOBAL
========================= */
.container {
    width: 100%;
    max-width: calc(var(--container-width) + (var(--container-padding) * 2));
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.section-heading {
    margin-bottom: 50px;
    max-width: 700px;
}

.section-heading__subtitle {
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
}

.section-heading__title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-heading__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    opacity: 0;
}

.section-heading.animate .section-heading__title::after {
    animation: drawLine 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-text);
    font-weight: 700;
    transition: transform var(--transition-fast),
                background var(--transition-fast),
                box-shadow var(--transition-fast);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.btn.pulse {
    animation: pulse 2s infinite;
}

.btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}



/* =========================
   SIDE NAV DOTS
========================= */
.side-nav {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

.side-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 22px;
}

.side-nav__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d9d9d9;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
    transition: transform var(--transition-fast),
                background var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast);
}

.side-nav__label {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(4, 8, 18, 0.95);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast),
                transform var(--transition-fast),
                visibility var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.side-nav__item:hover .side-nav__label,
.side-nav__item:focus-visible .side-nav__label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.side-nav__item:hover .side-nav__dot,
.side-nav__item:focus-visible .side-nav__dot {
    transform: scale(1.15);
    background: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 8px rgba(255, 95, 31, 0.14);
}

.side-nav__item.active .side-nav__dot {
    background: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 95, 31, 0.18);
}

.side-nav__item.active .side-nav__label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* чтобы якоря не уезжали под sticky header */
section[id] {
    scroll-margin-top: 110px;
}


/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(15, 17, 21, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo span {
    color: var(--color-primary);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__list a {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav__list a:hover {
    color: var(--color-text);
}

.header__phone {
    white-space: nowrap;
    padding: 12px 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    transition: border-color var(--transition-fast),
                background var(--transition-fast);
}

.header__phone:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switcher__btn {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.lang-switcher__btn:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}


/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 80px 0;
    background:
        linear-gradient(rgba(15, 17, 21, 0.75), rgba(15, 17, 21, 0.92)),
        url("images/hero.jpg") center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(to top, var(--color-bg), transparent);
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 720px;
}

.hero__subtitle {
    margin-bottom: 16px;
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
}

.hero__title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero__text {
    max-width: 620px;
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}


/* =========================
   ABOUT
========================= */
.about__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.about__text {
    padding: 32px;
    height: 100%;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about__text p + p {
    margin-top: 18px;
}

.about__text p {
    color: var(--color-text-muted);
    font-size: 17px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about__card {
    padding: 28px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast),
                background var(--transition-fast);
    opacity: 0;
    transform: translateY(30px);
}

.about__card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.about__card--delay-1 { animation-delay: 0.1s; }
.about__card--delay-2 { animation-delay: 0.3s; }
.about__card--delay-3 { animation-delay: 0.5s; }

.about__card:hover {
    transform: translateY(-4px);
    background: var(--color-surface-hover);
}

.about__card h3 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--color-primary);
    position: relative;
}

.about__card.animate h3 {
    animation: glow 2.5s ease-in-out forwards;
}

.about__card p {
    color: var(--color-text-muted);
}


/* =========================
   SERVICES
========================= */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast),
                background var(--transition-fast),
                border-color var(--transition-fast);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card--delay-1 { animation-delay: 0.1s; }
.service-card--delay-2 { animation-delay: 0.2s; }
.service-card--delay-3 { animation-delay: 0.3s; }
.service-card--delay-4 { animation-delay: 0.4s; }
.service-card--delay-5 { animation-delay: 0.5s; }
.service-card--delay-6 { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-6px);
    background: var(--color-surface-hover);
    border-color: rgba(255, 95, 31, 0.35);
}

.service-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card__text {
    color: var(--color-text-muted);
    font-size: 16px;
}


/* =========================
   PRICES
========================= */
.prices__table {
    display: grid;
    gap: 16px;
}

.price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast),
                transform var(--transition-fast);
    opacity: 0;
}

.price-item:nth-child(odd) {
    transform: translateX(-40px);
}

.price-item:nth-child(even) {
    transform: translateX(40px);
}

.price-item.animate:nth-child(odd) {
    animation: slideInLeft 0.55s ease forwards;
}

.price-item.animate:nth-child(even) {
    animation: slideInRight 0.55s ease forwards;
}

.price-item.animate:nth-child(1) { animation-delay: 0.05s; }
.price-item.animate:nth-child(2) { animation-delay: 0.12s; }
.price-item.animate:nth-child(3) { animation-delay: 0.19s; }
.price-item.animate:nth-child(4) { animation-delay: 0.26s; }
.price-item.animate:nth-child(5) { animation-delay: 0.33s; }

.price-item:hover {
    background: var(--color-surface);
    transform: translateX(4px);
}

.price-item__name {
    font-size: 17px;
    font-weight: 600;
}

.price-item__value {
    color: var(--color-primary);
    font-weight: 800;
    white-space: nowrap;
}


/* =========================
   GALLERY
========================= */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery__item {
    min-height: 240px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background:
        linear-gradient(rgba(23, 26, 33, 0.25), rgba(23, 26, 33, 0.55)),
        var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-fast),
                border-color var(--transition-fast);
    opacity: 0;
    transform: scale(0.95);
}

.gallery__item.animate {
    animation: fadeInUp 0.5s ease forwards;
}

.gallery__item:hover {
    transform: scale(1.02);
    border-color: rgba(43, 209, 255, 0.3);
}

/* если потом вставишь img внутрь */
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__item--hidden {
    display: none;
}

.gallery__actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.gallery__load-btn {
    min-width: 180px;
}

.gallery__image-wrapper {
    cursor: pointer;
    position: relative;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.gallery__image-wrapper:hover .gallery__image {
    transform: scale(1.05);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium),
                visibility var(--transition-medium);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast),
                transform var(--transition-fast);
    cursor: pointer;
    border: none;
    z-index: 2001;
}

.lightbox__close:hover {
    background: rgba(255, 95, 31, 0.8);
    transform: scale(1.1);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast),
                transform var(--transition-fast);
    cursor: pointer;
    border: none;
    z-index: 2001;
}

.lightbox__nav:hover {
    background: rgba(255, 95, 31, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev {
    left: 20px;
}

.lightbox__nav--next {
    right: 20px;
}


/* =========================
   LOCATION
========================= */
.location__content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}

.location__info,
.location__map {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.location__info {
    padding: 32px;
}

.location__info p {
    color: var(--color-text-muted);
    font-size: 17px;
}

.location__info p + p {
    margin-top: 14px;
}

.location__info strong {
    color: var(--color-text);
}

.location__info a {
    color: var(--color-secondary);
}

.location__map iframe {
    display: block;
    min-height: 100%;
}


/* =========================
   CONTACTS
========================= */
.contacts__content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
}

.contacts__info,
.contacts__form {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contacts__info p {
    font-size: 17px;
    color: var(--color-text-muted);
}

.contacts__info p + p {
    margin-top: 16px;
}

.contacts__info strong {
    color: var(--color-text);
}

.contacts__info a {
    color: var(--color-secondary);
    transition: color var(--transition-fast);
}

.contacts__info a:hover {
    color: var(--color-primary);
}

.contacts__form {
    display: grid;
    gap: 16px;
}

.contacts__form input,
.contacts__form textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition-fast),
                background var(--transition-fast);
}

.contacts__form input::placeholder,
.contacts__form textarea::placeholder {
    color: var(--color-text-muted);
}

.contacts__form input:focus,
.contacts__form textarea:focus {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
}

.contacts__form textarea {
    min-height: 160px;
    resize: vertical;
}


/* =========================
   FOOTER
========================= */
.footer {
    border-top: 1px solid var(--color-border);
    background: #0b0d11;
    padding: 28px 0;
}

.footer__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__copy {
    color: var(--color-text-muted);
}

.footer__socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer__socials a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__socials a:hover {
    color: var(--color-primary);
}


/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-surface-hover);
    border-radius: 999px;
}

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


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }

    .nav {
        display: none;
    }

    .hero__title {
        font-size: clamp(36px, 7vw, 54px);
    }

    .about__content,
    .location__content,
    .contacts__content {
        grid-template-columns: 1fr;
    }

    .services__grid,
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
        --container-padding: 16px;
    }

    .side-nav {
        right: 12px;
        gap: 14px;
    }

    .side-nav__dot {
        width: 13px;
        height: 13px;
    }

    .side-nav__label {
        display: none;
    }

    .header__container {
        gap: 12px;
    }

    .logo {
        font-size: 24px;
    }

    .header__phone {
        padding: 10px 14px;
        font-size: 14px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

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

    .services__grid,
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .side-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .contacts__info,
    .contacts__form,
    .location__info,
    .about__text,
    .about__card,
    .service-card {
        padding: 22px;
    }

    .section-heading__title {
        font-size: 30px;
    }
}