/*
Theme Name: REGION 82
Theme URI: 
Description: Тема для автоподбора в Крыму и Севастополе
Author: Region82
Version: 1.0
Text Domain: region82
*/

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

body {
    background: #0A0A0A;
    color: #E0E0E0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

section {
    padding: 60px 0;
}

/* ========== КНОПКИ ========== */
.btn, button, .wp-block-button__link {
    display: inline-block;
    background: #FF8C00;
    color: #000000;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover, button:hover {
    background: #E65100;
    color: #FFFFFF;
}

/* ========== ВЕРХНЯЯ ПОЛОСКА ========== */
.top-bar {
    background: #000000;
    color: #FFFFFF;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #FF8C00;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.top-bar-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-social a {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
}

.top-bar-social a:hover {
    opacity: 0.8;
}

.top-bar-social img {
    width: 22px;
    height: 22px;
    display: block;
}

.top-bar-social i {
    font-size: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-phone {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.top-bar-phone:hover {
    color: #FF8C00;
}

.top-bar-callback {
    background: #FF8C00;
    color: #000000;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.top-bar-callback:hover {
    background: #E65100;
    color: #FFFFFF;
}

/* ========== ШАПКА ========== */
.site-header {
    background: #1A1A1A;
    padding: 20px 0;
    border-bottom: 4px solid #FF8C00;
    margin-top: 50px;
}

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

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
}

.logo span {
    color: #FF8C00;
}

.logo-subtitle {
    font-size: 12px;
    font-weight: normal;
    color: #FFFFFF;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* ========== МЕНЮ ========== */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
}

.nav-menu a:hover {
    color: #FF8C00;
}

/* ========== HERO С КАРТОЧКАМИ ========== */
.hero {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('https://avatars.mds.yandex.net/i?id=5be491ea12b1956690eb986a33e06df7_l-4116495-images-thumbs&n=13');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 140, 0, 0.15);
    color: #FF8C00;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.hero .highlight {
    color: #FF8C00;
}

.hero-subtitle {
    font-size: 16px;
    color: #CCCCCC;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
}
/* Мобильная версия Hero */
.hero {
    background-attachment: scroll !important;
    background-size: 130% auto !important; /* чуть увеличиваем, чтобы заполнить */
    background-position: center 50% !important; /* сдвигаем чуть вниз или вверх */
    min-height: 100vh;
    height: auto;
}
/* Карточки преимуществ */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.hero-card {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255, 140, 0, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: floatCard 3s ease-in-out infinite;
}

.hero-card:nth-child(1) { animation-delay: 0s; }
.hero-card:nth-child(2) { animation-delay: 0.5s; }
.hero-card:nth-child(3) { animation-delay: 1s; }

.hero-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #FF8C00;
    background: rgba(26, 26, 26, 0.95);
}

.hero-card-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.hero-card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.hero-card-text {
    display: flex;
    flex-direction: column;
}

.hero-card-number {
    font-size: 22px;
    font-weight: 700;
    color: #FF8C00;
    line-height: 1.2;
}

.hero-card-label {
    font-size: 14px;
    color: #BBBBBB;
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
/* Принудительно показываем иконки в Hero на мобильных */
@media (max-width: 768px) {
    .hero-card-icon img,
    .hero-card-icon svg {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 32px !important;
        height: 32px !important;
        object-fit: contain !important;
    }
}
/* ========== БЛОК "О НАС" ========== */
.about-section {
    background: #0A0A0A;
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 32px;
    color: #FFFFFF;
}

.about-subtitle {
    font-size: 26px;
    font-weight: 700;
    color: #FF8C00;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #E0E0E0;
    margin-bottom: 15px;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    border: 1px solid #2A2A2A;
    height: auto;
}

/* ========== СЧЁТЧИКИ ========== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #FF8C00;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: #BBBBBB;
}

/* ========== ОСОБЕННОСТИ (СЕТКА 4x2) ========== */
.features-section {
    background: #0A0A0A;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    background: #1A1A1A;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #2A2A2A;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: #FF8C00;
}

.feature-icon {
    margin-bottom: 15px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.feature-item p {
    font-size: 13px;
    color: #BBBBBB;
    line-height: 1.4;
}

/* ========== УСЛУГИ ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #1A1A1A;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    border-top: 4px solid #FF8C00;
    transition: transform 0.3s;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.50);
    border-radius: 15px;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
}

.service-card .service-description {
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card .service-description ul {
    list-style: none;
    padding: 0;
}

.service-card .service-description li {
    padding: 6px 0 6px 25px;
    position: relative;
    text-align: left;
}

.service-card .service-description li:before {
    content: "✓";
    color: #FF8C00;
    position: absolute;
    left: 0;
}

.service-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #FF8C00;
    margin: 15px 0;
    text-align: center;
}

.service-card .btn {
    display: block;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

/* ========== КАК МЫ РАБОТАЕМ ========== */
.how-it-works {
    background: #0A0A0A;
    padding: 60px 0;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.how-card {
    background: #1A1A1A;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #2A2A2A;
}

.how-card:hover {
    transform: translateY(-5px);
    border-color: #FF8C00;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.how-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.how-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.how-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.how-card p {
    font-size: 14px;
    color: #BBBBBB;
    line-height: 1.4;
}

/* ========== ПРОВЕРЕННЫЕ АВТО (КАРУСЕЛЬ) ========== */
.cars-section {
    background: #0A0A0A;
    padding: 60px 0;
}

.carSwiper {
    padding: 10px 0 50px 0;
}

.swiper-slide {
    height: auto;
}

.car-card {
    background: #1A1A1A;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2A2A2A;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: #FF8C00;
}

.car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card h3 {
    font-size: 20px;
    margin: 15px 20px 10px;
    color: #FFFFFF;
}

.car-excerpt {
    margin: 0 20px 10px;
    font-size: 13px;
    color: #BBBBBB;
    line-height: 1.5;
}

.car-excerpt p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 20px 12px;
    font-size: 12px;
    color: #BBBBBB;
}

.car-details span {
    background: #2A2A2A;
    padding: 3px 10px;
    border-radius: 20px;
}

.car-expert {
    margin: 0 20px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #E0E0E0;
    flex-grow: 1;
}

.car-expert strong {
    color: #FF8C00;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.car-expert p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    font-size: 13px;
}

.car-price {
    margin: 12px 20px 18px;
    font-size: 22px;
    font-weight: bold;
    color: #FF8C00;
    border-top: 1px solid #2A2A2A;
    padding-top: 12px;
    text-align: right;
}

/* ========== ОТЗЫВЫ ========== */
.reviews-section {
    background: #0A0A0A;
    padding: 60px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background: #1A1A1A;
    border-radius: 15px;
    padding: 25px;
    border-top: 4px solid #FF8C00;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.review-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #2A2A2A;
    object-fit: cover;
}

.review-info {
    flex-grow: 1;
}

.review-author {
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
}

.review-source {
    font-size: 12px;
    color: #FF8C00;
}

.review-rating {
    color: #FF8C00;
    font-size: 16px;
    letter-spacing: 2px;
}

.review-text {
    color: #E0E0E0;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-date {
    font-size: 12px;
    color: #666666;
    text-align: right;
}

.reviews-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* ========== НАВИГАЦИЯ SWIPER ========== */
.swiper-button-next,
.swiper-button-prev {
    color: #FF8C00 !important;
}

.swiper-pagination-bullet-active {
    background: #FF8C00 !important;
}

/* ========== ПОДВАЛ ========== */
.site-footer {
    background: #1A1A1A;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
}

/* ========== АНИМАЦИЯ ПОЯВЛЕНИЯ ========== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1024px) {
    .features-grid,
    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 4px 0 !important;
        font-size: 11px !important;
    }
    .top-bar-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }
    .top-bar-right {
        gap: 6px !important;
    }
    .top-bar-phone {
        font-size: 11px !important;
    }
    .top-bar-callback {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }
    .top-bar-social img {
        width: 16px !important;
        height: 16px !important;
    }

    .site-header {
        padding: 8px 0 !important;
        margin-top: 32px !important;
    }
    .logo a {
        font-size: 20px !important;
    }
    .logo-icon {
        height: 24px !important;
    }
    .logo-subtitle {
        font-size: 9px !important;
    }
    .nav-menu {
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .nav-menu a {
        font-size: 12px !important;
    }

    .hero {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
        min-height: auto !important;
        height: auto !important;
    }
    .hero-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    .hero h1 {
        font-size: 22px !important;
    }
    .hero-subtitle {
        font-size: 12px !important;
    }
    .hero-badge {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }
    .hero .btn {
        font-size: 13px !important;
        padding: 8px 20px !important;
    }

    .hero-cards {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    .hero-card {
        flex: 1 1 45% !important;
        min-width: 120px !important;
        padding: 10px 12px !important;
    }
    .hero-card-number {
        font-size: 16px !important;
    }
    .hero-card-label {
        font-size: 10px !important;
    }
    .hero-card-icon img {
        width: 28px !important;
        height: 28px !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center !important;
    }
    .about-text h2 {
        text-align: center !important;
    }
    .about-subtitle {
        text-align: center !important;
    }
    .about-text p {
        text-align: center !important;
    }
    .about-image img {
        max-width: 80% !important;
        max-height: 280px !important;
        width: auto !important;
        height: auto !important;
        border-radius: 20px;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
    .stat-number {
        font-size: 28px !important;
    }

    .features-grid,
    .how-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 5px !important;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .service-card {
        min-height: auto !important;
        padding: 16px !important;
    	border-top-width: 3px !important;
    }

    .service-card h3 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .service-card .service-description {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .service-card .service-description li {
        padding: 3px 0 3px 20px !important;
        font-size: 12px !important;
    }

    .service-card .price {
        font-size: 16px !important;
        margin: 10px 0 !important;
    }

    .service-card .btn {
        font-size: 12px !important;
        padding: 6px 14px !important;
    }
/* ========== КАРТОЧКИ "КАК МЫ РАБОТАЕМ" И "СПЕКТР УСЛУГ" НА МОБИЛЬНЫХ ========== */
    how-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .how-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .how-icon {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
    .how-icon img {
        width: 40px !important;
        height: 40px !important;
    }
    .how-card h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    .how-card p {
        font-size: 12px !important;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .feature-item {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .feature-icon {
        margin-bottom: 8px !important;
    }
    .feature-icon img {
        width: 40px !important;
        height: 40px !important;
    }
    .feature-item h3 {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }
    .feature-item p {
        font-size: 11px !important;
    }
}

