/**
 * Стили загородных страниц направлений по шоссе и КП
 * ТехноРемБыт (технорембыт.рф)
 */

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

.highway-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100%;
}

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

/* Шапка */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-hours {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 13px;
    color: #64748b;
}
.header-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
.header-phone a {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.header-phone a:hover {
    color: #2563eb;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-outline {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.btn-outline:hover {
    background: #eff6ff;
    border-color: #2563eb;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}
.btn-block {
    width: 100%;
}

/* Хлебные крошки */
.breadcrumbs-wrap {
    padding-top: 16px;
    padding-bottom: 8px;
}
.breadcrumbs {
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #2563eb;
}
.breadcrumbs .sep {
    color: #cbd5e1;
}
.breadcrumbs .current {
    color: #1e293b;
    font-weight: 500;
}

/* Первый экран Hero */
.highway-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 0 60px;
    border-bottom: 1px solid #e2e8f0;
}
.highway-hero__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: flex-start;
}
.highway-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.highway-badge {
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
}
.highway-badge--green {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}
.highway-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.highway-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 32px;
}

/* Фичи */
.highway-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.highway-feature-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature-icon {
    font-size: 24px;
    line-height: 1;
}
.highway-feature-item strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 2px;
}
.highway-feature-item p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* Форма в Hero */
.hero-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
.form-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.form-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-privacy {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
}

/* Секции */
.section-head {
    margin-bottom: 28px;
}
.section-head h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.section-head .section-desc {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Коттеджные поселки */
.highway-kp-section {
    padding: 40px 20px;
}
.kp-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kp-chip-link {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.kp-chip-link:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.kp-chip-link--main {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 600;
}

/* Сетка услуг */
.highway-services-section {
    padding: 40px 20px;
}
.highway-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.service-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.service-card__top {
    margin-bottom: 12px;
}
.service-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}
.service-card__title a {
    color: #0f172a;
    text-decoration: none;
}
.service-card__title a:hover {
    color: #2563eb;
}
.service-card__price {
    display: inline-block;
    color: #16a34a;
    font-weight: 700;
    font-size: 14px;
}
.service-card__desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.45;
}
.service-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}
.service-card__link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

/* Преимущества */
.highway-advantages {
    padding: 40px 20px;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.adv-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}
.adv-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}
.adv-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px;
}
.adv-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Карта */
.highway-map-section {
    padding: 40px 20px;
}
.map-card-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.highway-map-container {
    width: 100%;
    height: 400px;
}

/* Отзывы */
.highway-reviews {
    padding: 40px 20px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.review-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}
.review-box__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.review-rating {
    color: #f59e0b;
    letter-spacing: 2px;
}
.review-geo {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
    font-style: italic;
}

/* FAQ */
.highway-faq {
    padding: 40px 20px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px;
}
.faq-answer p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Соседние шоссе */
.adjacent-highways {
    padding: 40px 20px;
}
.adjacent-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.adjacent-highway-link {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    text-decoration: none;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}
.adjacent-highway-link:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Подвал */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 30px;
    margin-top: 60px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.5fr;
    gap: 30px;
}
.footer-block h4 {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}
.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0;
    color: #64748b;
}
.footer-copy {
    font-size: 12px;
    color: #475569;
    margin: 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-phone a {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}
.footer-phone a:hover {
    color: #38bdf8;
}

/* Модальное окно */
.order-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.order-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.order-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 440px;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.order-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
}
.order-modal-close:hover {
    color: #0f172a;
}
.order-modal-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}
.order-modal-box p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
    .highway-hero__grid {
        grid-template-columns: 1fr;
    }
    .highway-features {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .header .content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .header-hours {
        display: none;
    }
    .highway-title {
        font-size: 28px;
    }
}
