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

body {
    font-family: 'Arial', sans-serif;
    color: #1a1a1a;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background: #1c2b1f;
    color: #cfd8d3;
    font-size: 13px;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
}

.top-bar__item {
    margin-right: 20px;
}

.top-bar__item a {
    color: #cfd8d3;
}

.main-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.main-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__title {
    font-size: 22px;
    font-weight: 700;
    color: #2f7d3d;
}

.logo__slogan {
    font-size: 12px;
    color: #666;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.main-nav a:hover {
    color: #2f7d3d;
}

.header-phone {
    text-align: right;
}

.header-phone__number {
    font-size: 17px;
    font-weight: 700;
}

.header-phone__number a {
    color: #1a1a1a;
}

.header-phone__callback {
    font-size: 12px;
    color: #2f7d3d;
    border-bottom: 1px dashed #2f7d3d;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    height: 520px;
}

.hero-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
    padding: 20px;
}

.hero-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    z-index: 0;
}

.hero-tile__title,
.hero-tile__big-content {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
}

.hero-tile--top-left { grid-column: 1; grid-row: 1; }
.hero-tile--bottom-left { grid-column: 1; grid-row: 2; }
.hero-tile--big { grid-column: 2 / 5; grid-row: 1 / 3; align-items: flex-end; }
.hero-tile--top-right { grid-column: 5; grid-row: 1; }
.hero-tile--bottom-right { grid-column: 5; grid-row: 2; }

.hero-tile--big .hero-tile__big-content h1 {
    font-size: 30px;
    max-width: 500px;
    margin-bottom: 15px;
}

.btn-green {
    display: inline-block;
    background: #2f7d3d;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.site-footer {
    background: #1c2b1f;
    color: #cfd8d3;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

.hero-grid-wrap {
    width: 100%;
    padding: 12px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 620px;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(5, 200px);
        height: auto;
    }
    .hero-tile--top-left { grid-column: 1; grid-row: 1; }
    .hero-tile--bottom-left { grid-column: 2; grid-row: 1; }
    .hero-tile--big { grid-column: 1 / 3; grid-row: 2 / 4; }
    .hero-tile--top-right { grid-column: 1; grid-row: 4; }
    .hero-tile--bottom-right { grid-column: 2; grid-row: 4; }
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

.hero-grid-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    padding: 12px;
}

.main-bar__inner,
.top-bar__inner {
    max-width: 100%;
    padding: 0 20px;
}

.hero-grid {
    width: 100% !important;
}

.hero-grid-wrap {
    width: 100%;
    max-width: 100%;
    position: static;
    left: auto;
    right: auto;
    margin: 0;
    box-sizing: border-box;
    padding: 12px;
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 768px) {
    .container,
    .main-bar__inner,
    .top-bar__inner {
        padding: 0 12px;
    }

    .top-bar__inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 6px;
        padding-bottom: 6px;
        gap: 4px;
        font-size: 11px;
    }

    .top-bar__item {
        margin-right: 10px;
    }

    .main-bar__inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
        justify-content: center;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .logo img {
        height: 36px;
    }

    .logo__title {
        font-size: 18px;
    }

    .logo__slogan {
        font-size: 11px;
    }

    .main-nav {
        width: 100%;
        order: 3;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .header-phone {
        width: 100%;
        text-align: center;
    }

    .header-phone__number {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .hero-grid-wrap {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        grid-template-rows: repeat(5, 160px);
    }

    .hero-tile {
        padding: 14px;
    }

    .hero-tile__title,
    .hero-tile__big-content {
        font-size: 15px;
    }

    .hero-tile--big .hero-tile__big-content h1 {
        font-size: 22px;
        max-width: 100%;
    }

    .btn-green {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* ===== Бургер-меню ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .main-bar__inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        text-align: left;
    }

    .logo {
        justify-content: flex-start;
    }

    .burger {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
        z-index: 15;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a {
        display: block;
        padding: 14px 16px;
        font-size: 15px;
    }

    .header-phone {
        display: none;
    }
}

.main-bar {
    position: relative;
}
