/* =========================================
   ГЛОБАЛЬНЫЕ СТИЛИ
   ========================================= */
:root {
    --primary-color: #358102;
    --secondary-color: #341F0C;
    --accent-color: #4CAF50;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: #fff;
}

/* =========================================
   УВЕДОМЛЕНИЕ ВВЕРХУ
   ========================================= */
.top-notification {
    background: linear-gradient(90deg, #8b0000 0%, #cc0000 100%);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid #ff3333;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notification-content i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


/* =========================================
   ШАПКА САЙТА С БУРГЕРОМ
   ========================================= */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
    text-decoration: none;
    padding: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 80px;
    width: auto;
}

.company-info {
    flex: 1;
}

.company-name {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.operator-id {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Кнопка бургер */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.navbar-toggler:hover {
    background: var(--primary-color);
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(53, 129, 2, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2853, 129, 2, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Контакты в шапке */
.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    margin-left: auto;
}

.contacts-row {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-phone,
.contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-phone:hover,
.contact-email:hover {
    color: var(--primary-color);
}

.contact-phone i,
.contact-email i {
    color: var(--primary-color);
    font-size: 20px;
}

.social-row {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.social-link.vk i {
    font-size: 18px;
}

/* =========================================
   АДАПТИВНОСТЬ ШАПКИ
   ========================================= */
@media (max-width: 991px) {
    .main-header {
        padding: 12px 0;
    }

    .logo img {
        height: 60px;
    }

    .company-name {
        font-size: 18px;
    }

    .operator-id {
        font-size: 12px;
    }

    /* Сворачиваемый блок контактов */
    .navbar-collapse {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #f0f0f0;
    }

    .header-contacts {
        align-items: center;
        width: 100%;
    }

    .contacts-row {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .contact-phone,
    .contact-email {
        justify-content: center;
        width: 100%;
        padding: 10px 15px;
        background: var(--bg-light);
        border-radius: 8px;
        font-size: 15px;
    }

    .social-row {
        justify-content: center;
        width: 100%;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-notification {
        padding: 10px 0;
        font-size: 13px;
    }

    .notification-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .logo img {
        height: 50px;
    }

    .company-name {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .top-notification {
        font-size: 12px;
    }

    .logo img {
        height: 45px;
    }

    .company-name {
        font-size: 14px;
    }

    .company-info {
        display: none; /* На очень маленьких экранах скрываем название, оставляем только лого */
    }
}


/* =========================================
   СЕКЦИЯ ТУРЫ И ЭКСКУРСИИ
   ========================================= */
.tours-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.tours-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.tours-title {
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.text-accent {
    color: var(--primary-color);
}

.tours-subtitle {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.tour-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(53, 129, 2, 0.15);
}

.tour-icon {
    width: 55px;
    height: 55px;
    background: rgba(53, 129, 2, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tour-card:hover .tour-icon {
    background: var(--primary-color);
}

.tour-icon i {
    color: var(--primary-color);
    font-size: 24px;
    transition: color 0.3s ease;
}

.tour-card:hover .tour-icon i {
    color: #fff;
}

.tour-content h3 {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tour-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) {
    .tours-section {
        padding: 60px 0;
    }

    .tours-title {
        font-size: 26px;
    }

    .tours-subtitle {
        font-size: 16px;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .tour-card {
        padding: 25px 20px;
    }

    .tour-icon {
        width: 50px;
        height: 50px;
    }

    .tour-icon i {
        font-size: 22px;
    }

    .tour-content h3 {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    .tours-title {
        font-size: 22px;
    }
}


/* =========================================
   СЕКЦИЯ БЛИЖАЙШИЕ ТУРЫ
   ========================================= */
.upcoming-tours-section {
    padding: 80px 0;
    background: #fff;
}

.upcoming-tours-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.upcoming-tours-section .section-title {
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.upcoming-tours-section .section-subtitle {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Карточка тура */
.tour-detail-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(52, 31, 12, 0.08);
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(53, 129, 2, 0.12);
}

.tour-detail-card:last-child {
    margin-bottom: 0;
}

/* Изображение тура */
.tour-image {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент тура */
.tour-content {
    flex: 1;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
}

.tour-detail-title {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tour-route,
.tour-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-dark);
}

.tour-route i,
.tour-dates i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.tour-route {
    font-style: italic;
    color: #555;
}

.tour-dates {
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(53, 129, 2, 0.08);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-flex;
    margin-bottom: 25px;
}

/* Программа тура (список) */
.tour-itinerary {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.tour-itinerary li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    border-left: 2px solid #e0e0e0;
}

.tour-itinerary li:last-child {
    margin-bottom: 0;
}

.tour-itinerary .time {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 45px;
}

/* Футер карточки (цена и кнопка) */
.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    margin-top: auto;
}

.tour-price {
    font-size: 16px;
    color: var(--text-dark);
}

.tour-price strong {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 800;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .tour-detail-card {
        flex-direction: column;
    }

    .tour-image {
        flex: 0 0 auto;
        max-width: 100%;
        height: 250px;
    }

    .tour-content {
        padding: 25px 30px;
    }

    .tour-detail-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .upcoming-tours-section {
        padding: 60px 0;
    }

    .upcoming-tours-section .section-title {
        font-size: 28px;
    }

    .upcoming-tours-section .section-subtitle {
        font-size: 18px;
    }

    .tour-content {
        padding: 20px;
    }

    .tour-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-book {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .upcoming-tours-section .section-title {
        font-size: 24px;
    }

    .tour-detail-title {
        font-size: 20px;
    }

    .tour-itinerary li {
        font-size: 14px;
    }

    .tour-price strong {
        font-size: 20px;
    }
}

/* =========================================
   СЕКЦИЯ ПРИЗЫВ К БРОНИРОВАНИЮ
   ========================================= */
.booking-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d6b02 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Левая часть - призыв */
.booking-cta {
    padding-right: 30px;
}

.booking-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-highlight {
    color: var(--accent-color);
    display: block;
    margin-top: 10px;
}

.booking-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.booking-phones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.phone-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.phone-link i {
    font-size: 22px;
    color: var(--accent-color);
}

/* Правая часть - описание */
.booking-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-color);
}

.info-block p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.95;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    opacity: 1 !important;
    margin-top: 20px !important;
}

.accent-block {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #fff;
}

.accent-block p {
    font-size: 17px !important;
    font-weight: 500;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .booking-section {
        padding: 60px 0;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .booking-cta {
        padding-right: 0;
    }

    .booking-title {
        font-size: 30px;
    }

    .phone-link {
        font-size: 18px;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .booking-section {
        padding: 50px 0;
    }

    .booking-title {
        font-size: 26px;
    }

    .booking-subtitle {
        font-size: 16px;
    }

    .phone-link {
        font-size: 16px;
    }

    .info-block {
        padding: 20px;
    }

    .info-block p {
        font-size: 15px;
    }

    .highlight-text {
        font-size: 18px !important;
    }
}

@media (max-width: 576px) {
    .booking-title {
        font-size: 22px;
    }

    .phone-link {
        font-size: 15px;
        padding: 10px 15px;
    }

    .phone-link i {
        font-size: 18px;
    }
}

/* =========================================
   СЕКЦИЯ УСЛУГИ ДЛЯ ТУРИСТОВ
   ========================================= */
.services-tourists-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-light) 0%, #fff 100%);
    position: relative;
}

/* Опционально: фоновое изображение */
.services-tourists-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/tourist-bg.jpg'); /* Замените на ваше фото */
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.services-tourists-section .container {
    position: relative;
    z-index: 1;
}

.services-tourists-section .section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.services-tourists-section .section-title {
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.services-tourists-section .section-subtitle {
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 31, 12, 0.06);
    border: 1px solid rgba(53, 129, 2, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(53, 129, 2, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a9f03 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.service-icon i {
    color: #fff;
    font-size: 28px;
}

.service-item h3 {
    color: var(--secondary-color);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .services-tourists-section {
        padding: 60px 0;
    }

    .services-tourists-section .section-title {
        font-size: 30px;
    }

    .services-tourists-section .section-subtitle {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-tourists-section {
        padding: 50px 0;
    }

    .services-tourists-section .section-title {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 24px;
    }

    .service-item h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .services-tourists-section .section-title {
        font-size: 22px;
    }

    .services-tourists-section .section-subtitle {
        font-size: 15px;
    }
}