/* ========== septik-style.css ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a2c3e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.header {
    background-color: #2c6e9e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.nav-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.burger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

/* Hero section */
.hero {
    padding: 60px 0 40px;
    background: #f9fafc;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1e3a5f;
}

.hero-text p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 24px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 30px;
}

.hero-features span {
    background: #eef2f7;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e4663;
}

.hero-features i {
    color: #2c6e9e;
    margin-right: 6px;
}

.hero-img {
    flex: 0.8;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    margin-right: 12px;
    margin-top: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #2c6e9e;
    color: white;
}

.btn-primary:hover {
    background-color: #1f557c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: #2c6e9e;
    border: 1.5px solid #2c6e9e;
}

.btn-secondary:hover {
    background-color: #eef2f7;
    transform: translateY(-2px);
}

/* Section titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #1e3a5f;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #2c6e9e;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Services grid */
.services {
    padding: 70px 0 50px;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f9fafc;
    border-radius: 24px;
    padding: 28px 20px;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eef2f7;
}

.service-card i {
    font-size: 2.4rem;
    color: #2c6e9e;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #4a5b6e;
    line-height: 1.5;
}

/* Price list */
.price-list {
    background: #f9fafc;
    padding: 70px 0;
}

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.price-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.price-table tr:last-child {
    border-bottom: none;
}

.price-table td {
    padding: 16px 20px;
    vertical-align: middle;
}

.price-table td:first-child {
    font-weight: 500;
    color: #1e3a5f;
}

.price-table td:last-child {
    font-weight: 700;
    color: #1e4663;
    text-align: right;
    white-space: nowrap;
}

/* Details section */
.details {
    padding: 70px 0;
    background: white;
}

.details-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #f9fafc;
    border-radius: 28px;
    padding: 40px;
}

.details-block {
    flex: 1;
    min-width: 240px;
}

.details-block h3 {
    font-size: 1.25rem;
    margin: 20px 0 12px 0;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-block h3 i {
    color: #2c6e9e;
    width: 28px;
}

.details-block ul {
    list-style: none;
    padding-left: 0;
}

.details-block li {
    padding: 5px 0;
    padding-left: 24px;
    position: relative;
}

.details-block li:before {
    content: "✔";
    color: #2c6e9e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.details-block p {
    margin-bottom: 12px;
}

/* Brands */
.brands {
    background: #eef2f7;
    padding: 60px 0;
}

.brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    background: white;
    border-radius: 48px;
    padding: 36px 24px;
}

.brands-list span {
    background: #f0f4f9;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #1e4663;
}

/* GALLERY - ЭТА ЧАСТЬ ИСПРАВЛЕНА */
.gallery {
    padding: 70px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    transition: transform 0.3s ease;
    text-align: center;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* ЭТО ГЛАВНОЕ ПРАВИЛО - квадрат с закругленными углами */
.image-placeholder.square {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0f4f9;
    border-radius: 20px;
    overflow: hidden;
}

/* ЭТО ПРАВИЛО ДЛЯ КАРТИНОК */
.image-placeholder.square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ЭТО ДЛЯ ИКОНОК-ЗАГЛУШЕК */
.image-placeholder.square i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #2c6e9e;
}

.gallery-caption {
    margin-top: 12px;
    font-weight: 500;
    color: #1e3a5f;
    font-size: 1rem;
}

/* Map section */
.contact {
    padding: 70px 0;
    background: white;
}

.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #f9fafc;
    border-radius: 28px;
    padding: 40px;
    align-items: center;
}

.contact-info {
    flex: 1.2;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1e3a5f;
}

.contact-note {
    background: #e6f0f9;
    padding: 16px;
    border-radius: 20px;
    margin: 24px 0;
    border-left: 4px solid #2c6e9e;
}

.contact-map {
    flex: 0.9;
}

.mini-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mini-map iframe {
    display: block;
    width: 100%;
    height: 250px;
    border: 0;
}

.map-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #5f7f9e;
}

/* Footer */
.footer {
    background: #1e2f3c;
    color: #e0e7ed;
    padding-top: 48px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col li i {
    color: #6fa8cf;
    width: 20px;
}

.footer-col a {
    color: #e0e7ed;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #2c4458;
    font-size: 0.85rem;
}

/* Modal window */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 28px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    padding: 32px 24px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    animation: fadeInUp 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #1e3a5f;
}

.modal-icon {
    font-size: 48px;
    color: #2c6e9e;
    margin-bottom: 16px;
}

.modal-body h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #1e3a5f;
}

.modal-phone {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c6e9e;
    margin: 16px 0 8px;
    letter-spacing: -0.5px;
}

.modal-call-btn {
    margin-top: 20px;
    background-color: #2c6e9e;
    color: white;
    display: inline-block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 880px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 72px);
        background-color: #2c6e9e;
        flex-direction: column;
        transition: left 0.3s ease;
        padding: 24px;
        box-shadow: 4px 0 12px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
    }

    .burger {
        display: block;
    }

    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .details-wrapper {
        padding: 24px;
    }

    .contact-card {
        flex-direction: column;
    }

    .price-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 680px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .price-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .modal-phone {
        font-size: 1.4rem;
    }

    .modal-content {
        padding: 24px 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-map iframe {
        height: 200px;
    }
}
