* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(
        180deg,
        var(--tm-bg-top) 0%,
        var(--tm-bg-bottom) 100%
    );
    color: var(--tm-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* HEADER */

header {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-title {
    color: var(--tm-text);
    text-decoration: none;
}

.site-title:hover {
    opacity: 0.85;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
}

header p {
    margin-top: .6rem;
    color: rgba(255,255,255,0.65);
    font-size: 1.4rem;
}

/* NAV */

.main-nav {
    background: rgba(8,20,45,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links-desktop a {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--tm-text);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-links-desktop a:hover {
    opacity: 0.75;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--tm-text);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1201;
}

.nav-overlay {
    display: none;
}

.nav-drawer {
    display: none;
}

/* MAIN */

main {
    padding: 2rem 0 4rem;
}

.section {
    margin-bottom: 3rem;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 2.4rem;
    margin-bottom: .6rem;
}

.page-header p {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
}

/* HERO */

.hero {
    padding: 4rem 0;
}

.hero.compact {
    padding: 2rem 0 3rem;
}

.tag {
    display: inline-block;
    background: rgba(62, 99, 165, 0.22);
    color: var(--tm-text);
    padding: .8rem 1.2rem;
    border-radius: 999px;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.1;
    max-width: 900px;
}

.hero p {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    max-width: 850px;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* BUTTONS */

.btn {
    display: inline-block;
    background: var(--tm-primary);
    color: var(--tm-text);
    padding: .95rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* CARDS */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.card {
    background: var(--tm-card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.15);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: .9rem;
}

.card p {
    color: rgba(255,255,255,0.76);
    line-height: 1.7;
}

/* CTA */

.cta-box {
    text-align: center;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
}

/* MAP */

.map-embed {
    margin-top: 1rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

/* FOOTER */

footer {
    padding: 2rem 0;
    background: rgba(12, 25, 50, 0.75);
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

footer p {
    color: rgba(255,255,255,0.68);
}

.footer-contacts {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-contacts div {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,0.82);
}

/* TABLET / MOBILE */

@media (max-width: 900px) {

    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    .nav-bar {
        justify-content: flex-start;
    }

    .nav-links-desktop {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 1198;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: rgba(8,20,45,0.98);
        padding-top: 90px;
        transition: left 0.25s ease;
        z-index: 1199;
    }

    .nav-drawer.open {
        left: 0;
    }

    .nav-drawer a {
        padding: 1rem 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        gap: .6rem;
        color: var(--tm-text);
    }

    .hero {
        padding: 2.5rem 0;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }
}

/* SMALL MOBILE */

@media (max-width: 600px) {

    .container {
        width: 94%;
    }

    header {
        padding: 1.5rem 0;
    }

    header h1 {
        font-size: 1.9rem;
    }

    header p {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-contacts {
        flex-direction: column;
        gap: .8rem;
    }

    .nav-drawer {
        width: 100%;
        left: -100%;
    }

    .nav-drawer.open {
        left: 0;
    }
}