* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a52;
    --primary-dark: #142d40;
    --accent: #e8491d;
    --accent-hover: #cf3d14;
    --light-bg: #f5f7fa;
    --border: #e2e6ea;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 10px;
}

header {
    background: var(--primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

.logo-text {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-left: 14px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 14px;
}

header nav {
    display: flex;
    gap: 24px;
}

header nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--white);
}

.header-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

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

.hero {
    padding: 80px 24px 70px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(232,73,29,0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    font-size: 18px;
    padding: 16px 36px;
}

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

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.hero-badge-accent {
    background: var(--accent);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--white);
    font-weight: 600;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.7;
}

.services-detail {
    padding: 70px 24px;
    background: var(--white);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service-detail-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.service-detail-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 15px;
}

.service-detail-content ul {
    list-style: none;
    margin-bottom: 22px;
}

.service-detail-content ul li {
    padding: 5px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text);
    font-size: 14px;
}

.service-detail-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.emergency-banner {
    background: var(--primary);
    padding: 50px 24px;
    text-align: center;
    color: var(--white);
}

.emergency-banner h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.emergency-banner p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-section {
    padding: 70px 24px;
    background: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 8px;
}

.project-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.6;
}

.project-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.project-link:hover {
    text-decoration: underline;
}

.why-us-section {
    padding: 70px 24px;
    background: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.why-us-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: var(--light-bg);
    border: 1px solid var(--border);
}

.why-us-card h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.why-us-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 50px;
    border: 1px solid var(--border);
}

.about-content h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 14px;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.check-list {
    list-style: none;
    margin-bottom: 24px;
}

.check-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 14px;
    color: var(--text);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.check-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-img-label {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.content-section {
    padding: 70px 24px;
    background: var(--light-bg);
}

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

.content-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.content-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.content-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.why-choose-list {
    margin-top: 50px;
}

.contact-section {
    padding: 70px 24px;
    background: var(--white);
}

.contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 14px;
}

.contact-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-phone {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.contact-phone:hover {
    text-decoration: underline;
}

.contact-form-wrap {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--white);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,82,0.1);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background: var(--accent-hover);
}

button[type="submit"]:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.areas-section {
    padding: 60px 24px;
    background: var(--primary);
    color: var(--white);
}

.areas-section .section-title {
    color: var(--white);
}

.areas-section .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.areas-section p {
    color: rgba(255,255,255,0.75);
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

footer {
    background: var(--primary-dark);
    padding: 50px 24px 0;
    color: rgba(255,255,255,0.8);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--white) !important;
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

@media (max-width: 900px) {
    .service-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail.reverse {
        direction: ltr;
    }

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

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

    .about-block {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-block {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .check-list.two-col {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero {
        padding: 50px 20px 40px;
    }

    header nav {
        display: none;
    }

    .section-title {
        font-size: 24px;
    }

    .services-detail,
    .projects-section,
    .why-us-section,
    .content-section,
    .contact-section {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

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

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.modal-notice {
    background: #fff8f0;
    border: 1px solid #f0d6b8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.modal-notice strong {
    display: block;
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 15px;
}

.modal-notice p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-field {
    margin-bottom: 18px;
}

.modal-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 6px;
}

.modal-field input,
.modal-field select,
.modal-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 73, 29, 0.1);
}

.modal-field input::placeholder,
.modal-field textarea::placeholder {
    color: #aaa;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.modal-submit {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-submit:hover {
    background: #cf3e15;
}

.modal-cancel {
    background: none;
    border: none;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    padding: 12px 8px;
}

.modal-cancel:hover {
    color: var(--dark);
}

.modal-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.modal-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.modal-alert-error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffccbc;
}
