:root {
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --brand-blue: #0044cc;
    --brand-accent: #00d4ff;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
site-header {
    display: block;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.logo-link {
    position: relative;
    margin-bottom: -80px;
    z-index: 1010;
}

.header-logo {
    height: 150px;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.3s ease;
    outline: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.header-logo:hover {
    transform: scale(1.1);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-top: 5px;
}

.header-phone {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 1.3rem;
    font-family: var(--font-display);
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
    line-height: 1.2;
}

.header-phone:hover {
    color: white;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.header-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.header-email:hover {
    color: white;
    text-decoration: underline;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--brand-accent);
}

.cta-btn {
    background: var(--brand-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--brand-accent);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* --- HERO --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
    font-weight: 500;
}

/* --- SERVICES --- */
.section {
    padding: 100px 0;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--brand-accent);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 80px 0;
    width: 100%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--brand-blue);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-link {
    margin-top: auto;
    color: var(--brand-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    border: 1px solid var(--brand-blue);
    box-shadow: 0 0 50px rgba(0, 68, 204, 0.3);
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px #000;
}

.close-btn:hover {
    color: var(--brand-accent);
}

#modal-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.modal-text-content {
    padding: 40px;
}

#modal-title {
    font-size: 2rem;
    color: var(--brand-accent);
    margin-bottom: 20px;
}

#modal-desc {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
    white-space: pre-wrap;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.secondary-btn {
    background: transparent;
    border: 1px solid #555;
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* --- FOOTER --- */
footer {
    position: relative;
    padding: 60px 0 40px;
    margin-top: auto;
    text-align: left;
    color: white;
    background-image: url('images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ИЗМЕНИЛИ НА 0.6 */
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col h3 {
    color: var(--brand-accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Колонка 1 */
.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #ddd;
}

.footer-list li::before {
    content: '•';
    color: var(--brand-accent);
    position: absolute;
    left: 0;
}

/* Колонка 2: Контакты */
.footer-center {
    text-align: center;
}

.footer-center h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* ЛИЦЕНЗИЯ */
.footer-lic {
    color: #ffffff;
    margin-bottom: 15px;
    font-family: monospace;
    font-weight: bold;
    font-size: 1rem;
    opacity: 0.9;
}

.footer-phone a {
    font-size: 1.5rem;
    color: var(--brand-accent);
    font-weight: 700;
}

.footer-phone a:hover {
    color: white;
    text-decoration: underline;
}

.footer-email-link {
    color: var(--text-main);
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
}

.footer-email-link:hover {
    color: var(--brand-accent);
    text-decoration: underline;
}

/* Колонка 3 */
.service-areas-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

.copyright {
    position: relative;
    z-index: 2;
    margin-top: 50px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    site-header {
        position: relative;
    }

    header {
        padding: 10px 20px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
        background: rgba(10, 10, 10, 0.95);
    }

    .logo-link {
        margin-bottom: 0;
        order: 1;
    }

    .header-contacts {
        order: 2;
        padding-top: 0;
    }

    nav {
        order: 3;
        width: 100%;
        margin-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }

    nav ul {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .header-logo {
        height: 110px;
    }

    .header-phone {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .header-email {
        font-size: 0.85rem;
        margin-top: 15px;
        display: block;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    #modal-image {
        height: 200px;
    }

    .modal-text-content {
        padding: 20px;
    }

    #modal-title {
        font-size: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    footer {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-center {
        order: 1;
    }

    .footer-left {
        order: 2;
    }

    .footer-right {
        order: 3;
    }

    .footer-list li {
        padding-left: 0;
    }

    .footer-list li::before {
        content: '';
    }
}