/* RESET & BASE (остаётся как в предыдущей версии, но с дополнениями) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #1e2a3a;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e67e22;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #e67e22;
    color: white;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e67e22;
    color: #e67e22;
}

.btn-outline:hover {
    background: #e67e22;
    color: white;
}

.btn.small {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* HEADER */
.header {
    background: #1e2a3a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e67e22;
}

.logo-desc {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #bbb;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #e67e22;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone {
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    padding: 4rem 0;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #e67e22;
}

.stat-label {
    font-size: 0.9rem;
}

/* ABOUT */
.about {
    padding: 4rem 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.about-item i {
    font-size: 2.5rem;
    color: #e67e22;
    margin-bottom: 1rem;
}

.about-item h3 {
    margin-bottom: 0.5rem;
}

/* SERVICES */
.services {
    padding: 4rem 0;
    background: #f9f9fc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #e67e22;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.fire-card {
    border-left: 8px solid #e67e22;
}

.legal-note {
    background: #f0f4f8;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2c3e50;
    text-align: center;
}

/* PORTFOLIO */
.portfolio {
    padding: 4rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
}

/* PARTNERS */
.partners {
    background: #f0f4f8;
    padding: 4rem 0;
}

.partners-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.partner-card {
    background: white;
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.partner-card i {
    font-size: 2rem;
    color: #e67e22;
    margin-bottom: 1rem;
}

.main-partner .partner-note {
    font-style: italic;
    margin: 1rem 0;
    font-size: 0.9rem;
    background: #f9f9fc;
    padding: 0.5rem;
    border-radius: 4px;
}

.small-note {
    font-size: 0.7rem;
    margin-top: 1rem;
    color: #666;
}

/* CONTACTS */
.contacts {
    padding: 4rem 0;
}

.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contacts-info {
    flex: 1;
    min-width: 250px;
}

.contacts-list {
    margin: 1.5rem 0;
}

.contacts-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contacts-list i {
    width: 1.5rem;
    color: #e67e22;
}

.socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.socials a {
    font-size: 1.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: #e67e22;
}

.contacts-form {
    flex: 1;
    background: #f9f9fc;
    padding: 2rem;
    border-radius: 8px;
}

.contacts-form h3 {
    margin-bottom: 1rem;
}

.contacts-form input,
.contacts-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contacts-form button {
    width: 100%;
}

.form-note {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* FOOTER */
.footer {
    background: #1e2a3a;
    color: #ccc;
    padding: 2rem 0 1rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e67e22;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e67e22;
}

.footer-legal {
    text-align: center;
    border-top: 1px solid #2c3e50;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.legal-text {
    font-size: 0.75rem;
    color: #aaa;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.license-modal-content {
    max-width: 800px;
}

.license-modal-content img {
    width: 100%;
    margin: 1rem 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    .nav.active {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-contacts {
        order: 2;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .services-grid, .about-grid, .partners-content, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}