﻿/* Общие стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    margin: 5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-call {
    background-color: #27ae60;
    color: white;
}

.btn-call:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    margin-right: 10px;
}

.btn-telegram {
    background-color: #0088cc;
    color: white;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}




/* Шапка сайта */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://parkovka102.ru/img/hero.webp') no-repeat center center/cover;
    color: white;
    height: 100vh;
    min-height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 20px; /* Добавлено для логотипа и телефона */
}

.hero-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.phone {
    font-size: 1rem;
    color: white;
    text-decoration: none;
}

.phone:hover {
    text-decoration: underline;
}

/* Обновленные стили для hero */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 60px); /* Учитываем высоту шапки */
    padding: 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    line-height: 1.4;
}

.price-highlight {
    color: #f1c40f;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
}



/* Преимущества */
.features {
    background-color: var(--light-color);
    padding: 80px 0;
}

.features h2 {
    color: var(--primary-color);
    margin-bottom: 60px;
    font-size: 2.2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-right: 25px;
    min-width: 50px;
    padding-top: 5px;
}

.feature-content {
    flex: 1;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

.feature-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0;
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    
    .features h2 {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-item {
        padding: 25px;
    }
    
    .feature-item i {
        font-size: 2rem;
        margin-right: 20px;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .feature-item {
        flex-direction: column;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .feature-content {
        text-align: center;
    }
}



/* Тарифы */
.pricing {
    background-color: white;
}

.pricing-table {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9e9e9;
}

/* Как нас найти */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-info h3 {
    color: var(--primary-color);
    margin-top: 20px;
}

.location-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.location-info i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Отзывы */
.reviews {
    background-color: var(--light-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-text {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.review-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.review-author {
    text-align: right;
    font-weight: 500;
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background-color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.faq-answer.show {
    padding: 20px;
    max-height: 200px;
}

/* Форма бронирования */
.booking {
    background-color: var(--primary-color);
    color: white;
}

.booking h2 {
    color: white;
}

.booking h2::after {
    background-color: white;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Акция */
.promo {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
}

.promo h2 {
    color: white;
}

.promo-timer {
    margin: 30px 0;
    font-size: 1.2rem;
}

#countdown {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
}

#countdown span {
    display: inline-block;
    min-width: 60px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 5px;
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-info p {
    color: #bdc3c7;
}

.footer-contacts p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contacts i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

.privacy-link {
    color: #bdc3c7;
    text-decoration: underline;
}

.privacy-link:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .location-map iframe {
        height: 300px;
    }
    
    section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-buttons a {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* Стили для футера */
.social-link {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 5px;
}

.social-link:hover {
    color: var(--secondary-color);
}



/* Стили для горизонтального слайдера */
.gallery-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    margin: 0 auto;
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-slider img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-prev, .slider-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(0,0,0,0.8);
}


/* Горизонтальный слайдер для отзывов */
.reviews-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.reviews-slider .slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.reviews-slider .review-item {
    min-width: 100%;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
}

.reviews-slider .slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.reviews-slider .slider-prev, 
.reviews-slider .slider-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.reviews-slider .slider-prev:hover, 
.reviews-slider .slider-next:hover {
    background: rgba(0,0,0,0.8);
}


/* Добавьте в конец файла styles.css */
.hero-buttons a.btn-secondary {
    margin: 5px;
    padding: 10px 15px;
}

.hero-buttons a.btn-secondary i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .hero h1 {
        margin-top: -30px !important;
    }
    
    .hero-buttons a.btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Добавьте в конец файла styles.css */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.yandex {
    background-color: #FF0000;
}

.gis {
    background-color: #30A3E6;
}

.google {
    background-color: #4285F4;
}

@media (max-width: 768px) {
    .hero h1 {
        margin-top: -30px !important;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Добавьте в конец файла styles.css */
.nav-buttons {
    margin-top: 20px;
    margin-bottom: 20px;
}

.location-info .nav-buttons {
    margin-left: -5px;
}

#booking .btn {
    margin-bottom: 15px;
}


.hero-buttons a.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
}

.hero-buttons a.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стиль для отображения количества дней */
#total-days {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin: 5px 0;
}

/* Стиль для отображения итоговой цены */
#total-price {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin: 5px 0;
}

/* Общий стиль для блоков с расчетами */
.form-group div {
    padding: 8px 0;
}


/* Обновленные стили для кнопок навигации с изображениями */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: hidden; /* Обрезаем изображение по кругу */
}

/*  Кнопки навигатора */ 

.nav-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.nav-img:hover {
    transform: scale(1.05);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 50px; /* увеличено с 15px, можешь настроить под себя */
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .nav-buttons {
        gap: 25px; /* чуть плотнее на маленьких экранах */
        justify-content: center;
    }
}
