* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; color: #333; background: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header { background: #0d6efd; color: white; padding: 18px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
header .container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
header a { color: white; text-decoration: none; margin-right: 22px; font-weight: 500; font-size: 15px; transition: opacity .2s; }
header a:hover { opacity: .85; text-decoration: underline; }
header .logo { font-size: 1.25rem; font-weight: 700; margin-right: 30px; }

.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    color: white; padding: 100px 0 110px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; margin-bottom: 18px; font-weight: 800; letter-spacing: -0.5px; }
.hero p { font-size: 1.25rem; opacity: 0.95; max-width: 560px; margin: 0 auto 30px; }
.hero .btn { font-size: 1.05rem; padding: 14px 32px; }

.btn {
    display: inline-block; padding: 11px 24px; background: #0d6efd; color: white;
    text-decoration: none; border-radius: 8px; border: none; cursor: pointer;
    font-size: 15px; font-weight: 600;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(13,110,253,.35);
}
.btn:hover { background: #0b5ed7; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,110,253,.4); }
.btn-white { background: white; color: #0d6efd; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.btn-white:hover { background: #f8f9fa; color: #0a58ca; }
.btn-danger { background: #dc3545; box-shadow: none; }
.btn-danger:hover { background: #bb2d3b; }
.btn-success { background: #198754; box-shadow: none; }
.btn-success:hover { background: #157347; }

section { padding: 70px 0; }
section h2 { font-size: 2rem; margin-bottom: 12px; font-weight: 700; color: #212529; }
.section-subtitle { color: #6c757d; margin-bottom: 40px; font-size: 1.1rem; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 10px; }
.card {
    background: #f8f9fa; padding: 32px 28px; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; border: 1px solid #eee;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.card-icon {
    width: 52px; height: 52px; background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 24px;
}
.card h3 { margin-bottom: 12px; color: #0d6efd; font-size: 1.25rem; }
.card p { color: #555; font-size: 0.98rem; }


.cars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 10px; align-items: stretch; }
.car-card {
    background: white; border-radius: 16px; overflow: hidden; border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column; height: 100%;
}
.car-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.car-gallery { position: relative; background: #e9ecef; flex-shrink: 0; }
.car-main-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #dee2e6;
}
.car-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 6px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.car-thumbs img {
    width: 100%;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s, opacity .2s, transform .15s;
    opacity: 0.8;
}
.car-thumbs img:hover { opacity: 1; transform: scale(1.02); }
.car-thumbs img.active {
    border-color: #0d6efd;
    opacity: 1;
    box-shadow: 0 0 0 1px #0d6efd;
}
.car-badge {
    position: absolute; top: 14px; right: 14px; background: #0d6efd; color: white;
    font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.car-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 1.3rem; margin-bottom: 6px; color: #212529; }
.car-class { color: #0d6efd; font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.car-features { list-style: none; margin: 0 0 18px; padding: 0; color: #555; font-size: 0.95rem; flex: 1; }
.car-features li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.car-features li::before { content: "✓"; position: absolute; left: 0; color: #198754; font-weight: 700; }
.car-price { font-size: 1.35rem; font-weight: 700; color: #212529; margin-bottom: 16px; }
.car-price span { font-size: 0.9rem; font-weight: 500; color: #6c757d; }
.car-icon {
    height: 220px; background: linear-gradient(135deg, #0d6efd, #0a58ca);
    display: flex; align-items: center; justify-content: center; font-size: 56px;
}

.articles-bg { background: #f8f9fa; }
.article-item {
    background: white; border-radius: 12px; padding: 24px 28px; margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04); border: 1px solid #eee; transition: box-shadow .2s;
}
.article-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.article-item h3 { margin-bottom: 6px; }
.article-item h3 a { color: #0d6efd; text-decoration: none; font-size: 1.15rem; }
.article-item h3 a:hover { text-decoration: underline; }
.article-item small { color: #888; font-size: 0.9rem; }
.article-item p { margin-top: 10px; color: #555; font-size: 0.95rem; }

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.contact-card {
    background: #fff; border: 1px solid #e9ecef; border-radius: 16px;
    padding: 18px 14px 16px; text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card .icon { font-size: 28px; margin-bottom: 12px; }
.contact-card strong { display: block; margin-bottom: 4px; color: #212529; font-size: 0.95rem; }
.contact-card span { color: #0d6efd; font-weight: 600; font-size: 0.85rem; word-break: break-word; }

footer { background: #212529; color: #adb5bd; text-align: center; padding: 36px 0; font-size: 0.95rem; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { border: 1px solid #ddd; padding: 12px 14px; text-align: left; }
.admin-table th { background: #f1f1f1; font-weight: 600; }
.admin-table tr:hover { background: #f9f9f9; }

form input, form textarea, form select {
    width: 100%; padding: 11px 14px; margin-bottom: 16px;
    border: 1px solid #ccc; border-radius: 6px; font-size: 15px; font-family: inherit; background: #fff;
}
form textarea { resize: vertical; min-height: 100px; }

@media (max-width: 700px) {
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.05rem; }
    header a { margin-right: 14px; font-size: 14px; }
    section { padding: 50px 0; }
    section h2 { font-size: 1.6rem; }
}

/* ========== Дома для отдыха ========== */
.houses-hero { padding: 70px 0 80px; }
.houses-hero h1 { font-size: 2.5rem; }
.houses-section { padding: 40px 0 70px; background: #f8f9fa; }

.houses-filters { background: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #eee; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row input[type="text"],
.filter-row input[type="number"],
.filter-row select {
    flex: 1; min-width: 120px; margin-bottom: 0; padding: 10px 12px;
}
.filter-row .btn { margin-bottom: 0; white-space: nowrap; }

.houses-count { color: #6c757d; margin-bottom: 18px; font-size: 0.95rem; }

.houses-section .container {
    max-width: 1200px;
}
.houses-grid,
.houses-section .houses-grid,
.houses-grid-sm {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .houses-grid,
    .houses-section .houses-grid,
    .houses-grid-sm {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .houses-grid,
    .houses-section .houses-grid,
    .houses-grid-sm {
        grid-template-columns: 1fr !important;
    }
}

/* Плашки домов — как карточки автомобилей на главной */
.house-card,
.house-card-with-gallery {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.house-card:hover,
.house-card-with-gallery:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

.house-card-photo { position: relative; height: 220px; background: #e9ecef; overflow: hidden; flex-shrink: 0; }
.house-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.house-card-placeholder {
    height: 220px; display: flex; align-items: center; justify-content: center;
    font-size: 48px; background: linear-gradient(135deg, #0d6efd, #0a58ca); color: #fff;
}
.house-badge {
    position: absolute; top: 14px; right: 14px;
    background: #0d6efd; color: #fff; font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 20px; z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.house-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.house-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.house-card-body h3 { font-size: 1.3rem; font-weight: 700; color: #212529; margin: 0 0 6px; }
.house-rating { color: #f59e0b; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.house-location { color: #6c757d; font-size: 0.95rem; margin-bottom: 8px; }
.house-meta { color: #888; font-size: 0.9rem; margin-bottom: 12px; }
.house-price { font-size: 1.35rem; font-weight: 700; color: #212529; margin: 0 0 16px; }
.house-price strong { font-size: 1.35rem; }
.house-price span { color: #6c757d; font-weight: 500; font-size: 0.9rem; }

.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px solid #eee; }
.empty-state p { margin-bottom: 16px; color: #555; }

/* Detail page */
.house-detail { padding: 24px 0 70px; background: #f8f9fa; }
.breadcrumbs { font-size: 0.9rem; color: #6c757d; margin-bottom: 18px; }
.breadcrumbs a { color: #0d6efd; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

.house-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.house-detail-header h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; color: #212529; }
.house-location-lg { color: #6c757d; font-size: 1rem; }
.house-detail-rating { display: flex; align-items: center; gap: 10px; }
.rating-big { font-size: 1.25rem; font-weight: 700; color: #f59e0b; }

.house-gallery { margin-bottom: 28px; }
.house-gallery-main { border-radius: 16px; overflow: hidden; background: #e9ecef; aspect-ratio: 16/9; max-height: 480px; }
.house-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.house-gallery-thumbs .thumb {
    flex: 0 0 100px; height: 72px; border: 2px solid transparent; border-radius: 10px;
    overflow: hidden; padding: 0; cursor: pointer; background: #e9ecef;
}
.house-gallery-thumbs .thumb.active { border-color: #0d6efd; }
.house-gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-gallery-empty {
    height: 280px; border-radius: 16px; background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 28px;
}

.house-detail-grid {
    display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}
@media (max-width: 900px) {
    .house-detail-grid { grid-template-columns: 1fr; }
}

.house-specs {
    display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
    background: #fff; border-radius: 14px; padding: 18px 22px; border: 1px solid #eee;
}
.house-specs .spec { text-align: center; min-width: 70px; }
.house-specs .spec strong { display: block; font-size: 1.4rem; color: #0d6efd; }
.house-specs .spec span { font-size: 0.85rem; color: #6c757d; }

.house-block { background: #fff; border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; border: 1px solid #eee; }
.house-block h2 { font-size: 1.2rem; margin-bottom: 12px; color: #212529; }
.house-description { color: #444; line-height: 1.7; white-space: pre-wrap; }

.amenities-list {
    list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px;
}
.amenities-list li { padding-left: 22px; position: relative; color: #444; font-size: 0.95rem; }
.amenities-list li::before { content: "✓"; position: absolute; left: 0; color: #198754; font-weight: 700; }

.house-sidebar { position: sticky; top: 80px; }
.house-booking-card {
    background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.house-price-lg { font-size: 1.1rem; margin-bottom: 8px; color: #212529; }
.house-price-lg strong { font-size: 1.6rem; }
.house-price-lg span { color: #6c757d; font-size: 0.95rem; }
.house-booking-note { font-size: 0.85rem; color: #888; margin-bottom: 16px; }
.btn-block { display: block; width: 100%; text-align: center; }
.house-sidebar-hint { font-size: 0.8rem; color: #aaa; margin-top: 14px; text-align: center; }

.house-other { margin-top: 48px; }
.house-other h2 { font-size: 1.4rem; margin-bottom: 18px; }

@media (max-width: 700px) {
    .houses-hero h1 { font-size: 1.9rem; }
    .house-detail-header h1 { font-size: 1.5rem; }
    .filter-row input, .filter-row select { min-width: 100%; }
}

/* Галерея домов — те же размеры и object-fit, что у автомобилей */
.car-style-gallery,
.house-list-gallery {
    position: relative;
    background: #e9ecef;
    flex-shrink: 0;
    overflow: hidden;
}
.car-style-gallery {
    border-radius: 16px;
    margin-bottom: 28px;
}

/* Каталог: главное фото = 220px как у машин */
.house-list-gallery .car-main-photo,
.house-card-with-gallery .car-main-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #dee2e6;
}
.house-list-gallery .car-thumbs,
.house-card-with-gallery .car-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 6px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.house-list-gallery .car-thumbs img,
.house-card-with-gallery .car-thumbs img {
    width: 100%;
    height: 58px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s, opacity .2s, transform .15s;
    opacity: 0.8;
}
.house-list-gallery .car-thumbs img:hover,
.house-card-with-gallery .car-thumbs img:hover {
    opacity: 1;
    transform: scale(1.02);
}
.house-list-gallery .car-thumbs img.active,
.house-card-with-gallery .car-thumbs img.active {
    border-color: #0d6efd;
    opacity: 1;
    box-shadow: 0 0 0 1px #0d6efd;
}

/* Страница дома: крупное фото без растягивания */
.house-main-photo {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #dee2e6;
}
.house-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 4px;
    padding: 6px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.house-thumbs img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s, opacity .2s, transform .15s;
    opacity: 0.8;
}
.house-thumbs img:hover { opacity: 1; transform: scale(1.02); }
.house-thumbs img.active {
    border-color: #0d6efd;
    opacity: 1;
    box-shadow: 0 0 0 1px #0d6efd;
}
.house-gallery-badge { z-index: 2; }

.house-card-with-gallery .house-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.house-yandex-map {
    border-radius: 12px;
    overflow: hidden;
    background: #e9ecef;
}
.house-map-coords {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}
.house-map-coords a {
    color: #0d6efd;
    text-decoration: none;
}
.house-map-coords a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .house-main-photo { height: 260px; }
    .house-list-gallery .car-main-photo,
    .house-card-with-gallery .car-main-photo { height: 200px; }
}

/* Ссылка вокруг главного фото не должна ломать размеры */
.house-list-gallery > a,
.car-style-gallery > a {
    display: block;
    line-height: 0;
}
.house-list-gallery > a .car-main-photo,
.car-style-gallery > a .car-main-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}


/* Страница дома: фото без растягивания */
.house-detail .car-style-gallery,
.house-detail .house-gallery {
    position: relative;
    background: #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
}
.house-detail .house-main-photo,
.house-detail .car-main-photo.house-main-photo,
.house-detail img.house-main-photo {
    width: 100% !important;
    height: 420px !important;
    max-height: 420px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    background: #dee2e6;
}
.house-detail .house-thumbs,
.house-detail .car-thumbs.house-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 4px;
    padding: 6px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.house-detail .house-thumbs img,
.house-detail .car-thumbs.house-thumbs img {
    width: 100% !important;
    height: 72px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 6px;
    cursor: pointer;
}
@media (max-width: 700px) {
    .house-detail .house-main-photo,
    .house-detail .car-main-photo.house-main-photo,
    .house-detail img.house-main-photo {
        height: 260px !important;
        max-height: 260px !important;
    }
}



/* Контакты авто — иконки в один ряд под «Выбрать» */
.car-contacts {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}
.car-contact-icon {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 0;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: none;
}
.car-contact-icon svg {
    display: block;
    flex-shrink: 0;
}
.car-contact-icon.phone {
    border: 1px solid #ddd;
    color: #0d6efd;
}
.car-contact-icon.whatsapp {
    border: 1px solid #25D366;
    color: #128C7E;
}
.car-contact-icon.telegram {
    border: 1px solid #2AABEE;
    color: #229ED9;
}
.car-contact-icon.max {
    border: 1px solid #6c5ce7;
    color: #6c5ce7;
}
.car-contact-icon:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.order-car-contacts .car-contacts {
    margin-top: 0;
}
.car-body > .btn:not(.car-contact-btn):not(.car-contact-icon) {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}



/* Активные контакты — иконки и карточки */
.contact-icon-wrap {
    width: 48px; height: 48px; margin: 0 auto 10px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #eef4ff; color: #0d6efd;
    transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.contact-icon-wrap svg { display: block; }

a.contact-card-link {
    text-decoration: none; color: inherit; cursor: pointer;
    display: block;
}
a.contact-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,.1);
}
a.contact-card-link:hover .contact-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.contact-action {
    display: inline-block; margin-top: 8px;
    font-style: normal; font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 16px;
    background: #eef4ff; color: #0d6efd;
}

/* Цвета по каналам */
.contact-phone .contact-icon-wrap { background: #eef4ff; color: #0d6efd; }
.contact-phone:hover { border-color: #0d6efd; }
.contact-phone .contact-action { background: #eef4ff; color: #0d6efd; }
.contact-phone span { color: #0d6efd; }

.contact-wa .contact-icon-wrap { background: #e8f8ef; color: #128C7E; }
.contact-wa:hover { border-color: #25D366; }
.contact-wa .contact-action { background: #e8f8ef; color: #128C7E; }
.contact-wa span { color: #128C7E; }

.contact-tg .contact-icon-wrap { background: #e8f4fc; color: #229ED9; }
.contact-tg:hover { border-color: #2AABEE; }
.contact-tg .contact-action { background: #e8f4fc; color: #229ED9; }
.contact-tg span { color: #229ED9; }

.contact-max .contact-icon-wrap { background: #f0eefc; color: #6c5ce7; }
.contact-max:hover { border-color: #6c5ce7; }
.contact-max .contact-action { background: #f0eefc; color: #6c5ce7; }
.contact-max span { color: #6c5ce7; }

.contact-email .contact-icon-wrap { background: #eef4ff; color: #0d6efd; }
.contact-email:hover { border-color: #0d6efd; }
.contact-email .contact-action { background: #eef4ff; color: #0d6efd; }
.contact-email span { color: #0d6efd; }

.contact-hours .contact-icon-wrap { background: #fff4e5; color: #e67e22; }
.contact-hours span { color: #e67e22; }

.contact-max strong { margin-bottom: 0; }
.contact-max .contact-action { margin-top: 10px; }

.contact-card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
    gap: 2px;
}
.contact-card-text strong,
.contact-card-text span,
.contact-card-text .contact-action,
.contact-card strong,
.contact-card span,
.contact-card .contact-action {
    display: block;
    width: 100%;
}
.contact-card-text strong {
    margin-bottom: 0;
    line-height: 1.3;
}
.contact-card-text span {
    margin: 0;
    line-height: 1.35;
}
.contact-card-text .contact-action,
.contact-card .contact-action {
    display: inline-block;
    width: auto;
    margin-top: 6px;
}
#contacts .section-subtitle {
    text-align: center;
}

/* Футер */
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; text-align: left; }
@media (max-width: 600px) { .footer-inner { justify-content: center; text-align: center; } }

/* Всплывающее окно в футере */
.author {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
}
.author-pop {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 320px;
  max-width: 90vw;
  padding-bottom: 12px;          /* «мостик», чтобы окно не пропадало при движении мыши */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 50;
  text-align: left;
  cursor: default;
}
.author-pop-box {
  display: block;
  background: #1c1f26;
  color: #e8eaed;
  border: 1px solid #f5a623;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  font-size: 14px;
  line-height: 1.5;
}
.author-pop-box strong { display: block; font-size: 16px; margin-bottom: 8px; color: #f5a623; }
.ap-text { display: block; margin-bottom: 12px; }
.ap-price {
  display: block;
  background: rgba(245,166,35,.12);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ap-price b,
.ap-price b a,
.ap-price a {
  font-size: 20px;
  color: #f5a623 !important;
  text-decoration: none !important;
  pointer-events: none;
}

.ap-price small { color: #aeb4be; font-size: 12px; }
.ap-btn {
  display: block;
  text-align: center;
  background: #f5a623;
  color: #1c1f26 !important;
  font-weight: 700;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
}
.ap-btn:hover { filter: brightness(1.08); }

.author:hover .author-pop,
.author:focus-within .author-pop,
.author.open .author-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



.hero .btn { font-size: 1.05rem; padding: 14px 32px; }
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}
@media (max-width: 700px) {
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }
}
