
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --light: #ecf0f1;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
}

body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent);
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    margin-top: 10px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Стили для активной ссылки */
nav ul li a.active {
    color: var(--accent);
}

nav ul li a.active::after {
    width: 100%;
}

/* Главное правило: при hover на любую ссылку в nav убираем активную */
nav:hover li a.active::after {
    width: 0;
}

/* Но оставляем активную, если hover именно на неё */
nav ul li a.active:hover::after {
    width: 100%;
}

/* Убираем цвет активной при hover на другие ссылки */
nav:hover li a.active {
    color: var(--text);
}

/* Возвращаем цвет при hover на активную */
nav ul li a.active:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: 
        url('image/label.jpg');background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero_auth2 {
    height: 80vh;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.form-group input {
    width: 50%;
    padding: 14px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text);
    outline: none;
}

.form-group_otzyv textarea {
    width: 100%; /* Ширина 100% от родительского контейнера */
    max-width: 800px; /* Максимальная ширина */
    min-height: 150px; /* Минимальная высота */
    padding: 14px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5; /* Межстрочный интервал */
    font-family: inherit; /* Наследует шрифт от родителя */
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text);
    outline: none;
    resize: vertical; /* Разрешаем изменять высоту по вертикали */
    overflow-y: auto; /* Прокрутка если текста слишком много */
    white-space: pre-wrap; /* Перенос строк */
    word-wrap: break-word; /* Перенос длинных слов */
    box-sizing: border-box; /* Учитывает padding в ширине */
}

.form-group_otzyv {
    max-width: 800px;
    padding: 20px 25px;
    border: none; /* Убираем обычную границу */
    border-radius: 16px; /* Скругленные углы */
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.02) inset; /* Тонкая внутренняя граница */
    font-size: 18px;
    line-height: 1.6;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

/* Эффект при наведении */
.form-group_otzyv:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.03) inset;
    transform: translateY(-2px);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 300;
    line-height: 1.2;
}

.no-reviews {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.hero-content h1 span {
    font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth_btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    padding: 6px 15px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 300;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 22px;
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about_place {
    padding: 40px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 300;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--light);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Фиксированно 3 колонки */
    gap: 40px;
    margin-bottom: 50px;
    justify-content: center; /* Выравнивание по центру */
    max-width: 900px; /* Ограничиваем максимальную ширину */
    margin-left: auto;
    margin-right: auto;
}

.footer-column {
    text-align: center; /* Выравнивание содержимого по центру */
}

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
    color: var(--white);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 50%; /* Центрируем линию */
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%); /* Смещаем назад на половину ширины */
}

.footer-column p {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 30px;
        max-width: 400px;
    }
    
    .footer-column {
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #95a5a6;
}
        
#getLocation {
    position: absolute;
    width: 60px;
    height: 60px;
    /* Можно менять позицию как угодно */
    top: 450px;
    right: 20px;
    /* Или: */
    /* bottom: 20px; */
    /* left: 20px; */
    /* Или: */
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    
    z-index: 1000;
    background: white;
    border: 2px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#getLocation img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#getLocation:hover {
    background: #007bff;
    transform: scale(1.1);
}

#getLocation:hover img {
    filter: brightness(0) invert(1);
}

#getWalking {
    position: absolute;
    width: 60px;
    height: 60px;
    /* Можно менять позицию как угодно */
    top: 450px;
    left: 20px;
    /* Или: */
    /* bottom: 20px; */
    /* left: 20px; */
    /* Или: */
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    
    z-index: 1000;
    background: white;
    border: 2px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#getWalking img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#getWalking:hover {
    background: #007bff;
    transform: scale(1.1);
}

#getWalking:hover img {
    filter: brightness(0) invert(1);
}

#getCar {
    position: absolute;
    width: 60px;
    height: 60px;
    /* Можно менять позицию как угодно */
    top: 450px;
    left: 90px;
    /* Или: */
    /* bottom: 20px; */
    /* left: 20px; */
    /* Или: */
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    
    z-index: 1000;
    background: white;
    border: 2px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#getCar img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#getCar:hover {
    background: #007bff;
    transform: scale(1.1);
}

#getCar:hover img {
    filter: brightness(0) invert(1);
}

.sidebar{
    display: none;
}

.map-container {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative; /* Главное - этот контейнер должен быть relative */
}
        
/* Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .btn-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Контейнер рейтинга - выравнивание ВЛЕВО */
.rating-container {
    margin-bottom: 20px;
    text-align: left; /* ВЫРАВНИВАНИЕ ВЛЕВО */
    width: 100%;
}

.rating-label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: left; /* Текст слева */
}

/* Звезды СПРАВА НАЛЕВО, но блок ВЛЕВО */
.rating-stars-rtl-left {
    display: inline-flex; /* inline-flex чтобы блок был по ширине контента */
    flex-direction: row-reverse; /* СПРАВА НАЛЕВО - звезда 5 первая */
    justify-content: flex-start; /* ВЫРАВНИВАНИЕ ВЛЕВО */
    gap: 8px;
    background: transparent;
}

.rating-stars-rtl-left input {
    display: none;
}

.rating-stars-rtl-left label {
    font-size: 40px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

/* Заливка звезд при выборе - справа налево */
.rating-stars-rtl-left input:checked + label,
.rating-stars-rtl-left input:checked + label + input + label,
.rating-stars-rtl-left input:checked + label + input + label + input + label,
.rating-stars-rtl-left input:checked + label + input + label + input + label + input + label,
.rating-stars-rtl-left input:checked + label + input + label + input + label + input + label + input + label {
    color: #ffc107;
}

/* Специально для каждой звезды */
#star5:checked ~ label[for="star5"] { color: #ffc107; }
#star5:checked ~ label[for="star4"] { color: #ffc107; }
#star5:checked ~ label[for="star3"] { color: #ffc107; }
#star5:checked ~ label[for="star2"] { color: #ffc107; }
#star5:checked ~ label[for="star1"] { color: #ffc107; }

#star4:checked ~ label[for="star5"] { color: #ddd; }
#star4:checked ~ label[for="star4"] { color: #ffc107; }
#star4:checked ~ label[for="star3"] { color: #ffc107; }
#star4:checked ~ label[for="star2"] { color: #ffc107; }
#star4:checked ~ label[for="star1"] { color: #ffc107; }

#star3:checked ~ label[for="star5"] { color: #ddd; }
#star3:checked ~ label[for="star4"] { color: #ddd; }
#star3:checked ~ label[for="star3"] { color: #ffc107; }
#star3:checked ~ label[for="star2"] { color: #ffc107; }
#star3:checked ~ label[for="star1"] { color: #ffc107; }

#star2:checked ~ label[for="star5"] { color: #ddd; }
#star2:checked ~ label[for="star4"] { color: #ddd; }
#star2:checked ~ label[for="star3"] { color: #ddd; }
#star2:checked ~ label[for="star2"] { color: #ffc107; }
#star2:checked ~ label[for="star1"] { color: #ffc107; }

#star1:checked ~ label[for="star5"] { color: #ddd; }
#star1:checked ~ label[for="star4"] { color: #ddd; }
#star1:checked ~ label[for="star3"] { color: #ddd; }
#star1:checked ~ label[for="star2"] { color: #ddd; }
#star1:checked ~ label[for="star1"] { color: #ffc107; }

/* Наведение - подсвечивает звезды справа налево */
.rating-stars-rtl-left:hover label {
    color: #ddd;
}

.rating-stars-rtl-left label:hover,
.rating-stars-rtl-left label:hover ~ label {
    color: #ffc107 !important;
    transform: scale(1.1);
}

.rating-stars-rtl-left label:hover {
    transform: scale(1.2);
}

.feature-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.description-container {
    flex-grow: 1;
    margin-bottom: 15px;
}

.feature-meta {
    margin-bottom: 15px;
}

.span {
    font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decorarion:none
}

.container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
            font-weight: bold;
        }
        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }
        nav a {
            color: white;
            text-decoration: none;
        }
        .place-detail {
            background: white;
            margin: 2rem auto;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .place-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }
        .place-content {
            padding: 2rem;
        }
        .place-title {
            color: #2c3e50;
            margin-bottom: 1rem;
            font-size: 2.5rem;
        }
        .place-description {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #555;
            margin-bottom: 2rem;
        }
        .place-info {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
        }
        .place-info p {
            margin: 0.5rem 0;
            font-size: 1.1rem;
        }
        .back-btn {
            display: inline-block;
            padding: 12px 24px;
            background: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s;
        }
        .back-btn:hover {
            background: #0056b3;
        }
        .error {
            background: #f8d7da;
            color: #721c24;
            padding: 2rem;
            border-radius: 8px;
            text-align: center;
            margin: 2rem auto;
        }
     /* Стили для фото в отзывах */
 .review-photo {
     margin-top: 15px;
     border-radius: 8px;
     overflow: hidden;
     max-width: 100%;
 }

.review-photo img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.review-photo img:hover {
    transform: scale(1.02);
}

/* Стили для поля загрузки */
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #ffc107;
    background: #fff9e6;
}

/* Стили для карты сайта (добавьте в style.css) */
.sitemap-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.sitemap-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sitemap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.sitemap-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.sitemap-card h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.sitemap-card p {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.sitemap-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.sitemap-link:hover {
    color: #2980b9;
    border-bottom-color: #3498db;
}

.sitemap-auth {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.sitemap-auth a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 5px;
}

.sitemap-auth a:hover {
    color: #3498db;
}

.sitemap-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.sitemap-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.sitemap-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sitemap-links a:hover {
    color: #3498db;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sitemap-card {
        padding: 25px 20px;
    }

    .sitemap-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
