/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0b0f15;
    --color-bg-light: #111820;
    --color-bg-card: #141b25;
    --color-accent: #c8ff00;
    --color-accent-dim: rgba(200, 255, 0, 0.15);
    --color-text: #ffffff;
    --color-text-muted: #9ba3af;
    --color-border: #1f2937;
    --color-border-accent: #c8ff00;
    --font-family: 'Space Grotesk', sans-serif;
    --radius: 8px;
    --container-max: 1200px;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--color-accent);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn--primary:hover {
    background: transparent;
    color: var(--color-accent);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.8rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 21, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-elmos {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo-accent {
    color: var(--color-accent);
}

.logo-trutnov {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-accent);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 15, 21, 0.92) 0%,
        rgba(11, 15, 21, 0.75) 45%,
        rgba(11, 15, 21, 0.35) 100%
    );
    z-index: 1;
}

.hero__accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    padding: 80px 0;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--color-bg-light);
}

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

.service-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.service-card__image {
    position: absolute;
    inset: 0;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.08);
}

.service-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(11, 15, 21, 0.85) 0%,
        rgba(11, 15, 21, 0.2) 60%,
        transparent 100%
    );
    z-index: 1;
}

.service-card__title {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-card__arrow {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0 60px;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.about__text p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ===== PARTNERS ===== */
.partners {
    padding: 60px 0 80px;
}

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

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.partner-logo img {
    height: 36px;
    width: auto;
}

.partner-logo span {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* ===== MANAGEMENT ===== */
.management {
    padding: 0 0 100px;
}

.management__card {
    border: 2px solid var(--color-border-accent);
    border-radius: var(--radius);
    padding: 48px;
    background: linear-gradient(
        135deg,
        var(--color-bg-card) 0%,
        rgba(200, 255, 0, 0.03) 100%
    );
}

.management__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 36px;
    text-align: center;
}

.management__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.management__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.management__role {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: lowercase;
    margin-bottom: 16px;
}

.management__contacts p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.management__contacts .icon-mail,
.management__contacts .icon-phone {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr auto;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 16px;
}

.footer__heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.footer__info li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__cta {
    display: flex;
    align-items: center;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer__link {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services__grid {
        gap: 16px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .management__card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .nav__list {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--color-bg);
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        gap: 24px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__list.active {
        display: flex;
    }

    .nav__hamburger {
        display: flex;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__title {
        font-size: 2rem;
    }

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

    .about__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .management__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .management__card {
        padding: 24px;
    }

    .partners__grid {
        gap: 32px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.6rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }
}
