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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f4f7fc;
    color: #1e2a3e;
    line-height: 1.5;
}

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

/* ===== ШАПКА ===== */
header {
    background: linear-gradient(135deg, #c1652c 0%, #3d3d3d 50%, #1a1a1a 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #c1652c;
    box-shadow: 0 4px 30px rgba(193, 101, 44, 0.15);
}

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

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

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: 0.2s;
}

.nav a:hover {
    color: #f5d5b0;
}

.nav a.active {
    color: #f5d5b0;
    border-bottom: 2px solid #c1652c;
    padding-bottom: 2px;
}

.header-contacts {
    font-size: 0.9rem;
    text-align: right;
    line-height: 1.4;
    margin-left: auto;
}

.header-contacts div {
    margin: 2px 0;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    background-color: #c1652c;
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #d17a3b;
    transform: scale(1.02);
}

/* ===== ЗАГОЛОВКИ РАЗДЕЛОВ ===== */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #0b2b3b;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #c1652c;
    margin: 15px auto 0;
}

/* ===== ФОРМЫ ===== */
input,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

button[type="submit"] {
    width: 100%;
    background-color: #c1652c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button[type="submit"]:hover {
    background-color: #d17a3b;
}

.form-status {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

/* ===== ЧЕКБОКС СОГЛАСИЯ ===== */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 15px;
    font-size: 0.85rem;
    color: #4a5b6e;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #c1652c;
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group a {
    color: #c1652c;
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: #d17a3b;
}

/* ===== КАРТА ===== */
#map {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    #map {
        height: 250px;
    }
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #0b2b3b;
    color: #bbb;
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
}

/* ===== КНОПКА «НАВЕРХ» ===== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #c1652c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(193, 101, 44, 0.4);
    transition: opacity 0.3s, transform 0.2s;
    z-index: 999;
    opacity: 0;
}

#scrollTopBtn:hover {
    background-color: #d17a3b;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #scrollTopBtn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 80px;
        right: 15px;
    }
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ЗВОНКА ===== */
#floatingPhoneBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #c1652c;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(193, 101, 44, 0.5);
    z-index: 999;
    text-decoration: none;
    font-size: 1.8rem;
    animation: pulse-phone 2s infinite;
    transition: transform 0.2s;
}

#floatingPhoneBtn:hover {
    transform: scale(1.1);
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 4px 20px rgba(193, 101, 44, 0.5);
    }
    50% {
        box-shadow: 0 4px 40px rgba(193, 101, 44, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(193, 101, 44, 0.5);
    }
}

@media (max-width: 768px) {
    #floatingPhoneBtn {
        display: flex !important;
    }
}

/* ===== АНИМАЦИИ ПРИ СКРОЛЛЕ ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}
.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}
.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}
.animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}
.animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}
.animate-on-scroll:nth-child(6) {
    transition-delay: 0.6s;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }

    .nav a {
        margin: 0 12px;
    }

    .header-contacts {
        text-align: center;
        margin-top: 10px;
        margin-left: 0;
    }

    .logo {
        justify-content: center;
        gap: 15px;
    }

    .logo-img {
        height: 80px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}