/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c2c2c;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Rubik', sans-serif;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ========== HEADER (ДЕСКТОП) ========== */
.header-desktop {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    width: 123px;
    height: 76px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    color: #2c2c2c;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #c83030;
}

.phone {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #2c2c2c;
}

.phone svg {
    width: 20px;
    height: 20px;
}

.btn {
    background: #c83030;
    color: #fff;
    padding: 11px 28px;
    border-radius: 4px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #a82828;
}

.btn-outline {
    background: transparent;
    color: #c83030;
    border: 2px solid #c83030;
}

.btn-outline:hover {
    background: #c83030;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #c83030;
}

.btn-white:hover {
    background: #f0f0f0;
}

.btn-large {
    padding: 18px 28px;
    font-size: 18px;
}

/* ========== МОБИЛЬНАЯ ШАПКА ========== */
.header-mobile {
    display: none;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-mobile-container {
    padding: 12px 20px;
}

.mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*gap: 16px;*/
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mobile {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

/* Бургер-иконка */
.burger-toggle {
    display: none;
}

.burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.burger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c2c2c;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация при открытом меню (через общий соседний селектор) */
.burger-toggle:checked ~ .mobile-top .burger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-toggle:checked ~ .mobile-top .burger-icon span:nth-child(2) {
    opacity: 0;
}
.burger-toggle:checked ~ .mobile-top .burger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Мобильный телефон */
.mobile-phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #2c2c2c;
}

.mobile-phone svg {
    width: 20px;
    height: 20px;
}

/* Выпадающее меню */
.mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
    margin-top: 12px;
}

.burger-toggle:checked ~ .mobile-nav {
    max-height: 500px;
}

/* Стилизация меню внутри мобильного блока */
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav li {
    text-align: center;
}

.mobile-nav a {
    font-size: 18px;
    padding: 8px 0;
    display: inline-block;
    color: #2c2c2c;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #c83030;
}
.mobile-nav .header-nav .mobile-menu-toggle .menu-icon{
    display:none;
}

/* ========== FOOTER (ПОДВАЛ) ========== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    width: 123px;
    height: 76px;
    margin-bottom: 24px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-description {
    font-size: 16px;
    color: #c3c3c3;
    line-height: 1.5;
}

.footer-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 16px;
    color: #fff;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #c83030;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-phone {
    font-size: 16px;
    color: #fff;
    transition: color 0.3s;
}

.footer-phone:hover {
    color: #c83030;
}

.footer-address {
    font-size: 16px;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    color: #c3c3c3;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 14px;
    color: #c3c3c3;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #fff;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .nav {
        gap: 16px;
        font-size: 14px;
    }

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

@media (max-width: 768px) {
    .header-desktop {
        display: none;
    }
    .header-mobile {
        display: block;
    }

    /* ===== АДАПТАЦИЯ ФУТЕРА ===== */
    .footer {
        padding: 40px 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 20px;
        display: flex;
        justify-content: center;
    }
    .footer-description {
        font-size: 14px;
        text-align: center;
    }
    .footer-title {
        font-size: 18px;
        text-align: center;
        margin-bottom: 16px;
    }
    .footer-nav {
        align-items: center;
        text-align: center;
    }
    .footer-contact {
        align-items: center;
        text-align: center;
    }
    .footer-nav a,
    .footer-contact a,
    .footer-address {
        font-size: 14px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-legal {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    /* АДАПТАЦИЯ КАРТЫ (если iframe вставлен без обёртки) */
    .footer-contact iframe {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .header-mobile {
        display: none;
    }
    .header-desktop {
        display: block;
    }
}

@media (max-width: 480px) {
    .btn-mobile {
        padding: 6px 12px;
        font-size: 12px;
    }
    .mobile-phone a {
        font-size: 14px;
    }
    /* Дополнительная адаптация футера */
    .footer {
        padding: 30px 0 20px;
    }
    .footer-grid {
        gap: 24px;
    }
    .footer-title {
        font-size: 16px;
    }
    .footer-nav a,
    .footer-contact a,
    .footer-address {
        font-size: 13px;
    }
    .footer-copyright,
    .footer-legal a {
        font-size: 12px;
    }
}