/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Account for fixed header height */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Anchor Navigation Fix */
section[id] {
    scroll-margin-top: 100px; /* Offset for fixed header */
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5530;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5530;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-actions .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.nav-phone-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-phone {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-phone:hover {
    background-color: #2c5530;
    color: white;
    transform: scale(1.1);
}

.messenger-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.messenger-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.messenger-link.whatsapp {
    background-color: #25D366;
    color: white;
}

.messenger-link.whatsapp:hover {
    background-color: #1DA851;
    transform: scale(1.1);
}

.messenger-link.telegram {
    background-color: #0088CC;
    color: white;
}

.messenger-link.telegram:hover {
    background-color: #006699;
    transform: scale(1.1);
}

/* Meeting Point Styles */
.meeting-point {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.meeting-point h3 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coordinates-info {
    margin-bottom: 2rem;
}

.coordinate-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #2c5530;
}

.coordinate-item strong {
    color: #2c5530;
    display: block;
    margin-bottom: 0.5rem;
}

.coordinate-item p {
    color: #666;
    margin: 0;
    font-family: 'Monaco', 'Consolas', monospace;
}

.messenger-contact h4 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.contact-messengers {
    display: flex;
    gap: 1rem;
}

.messenger-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.messenger-contact-btn.whatsapp {
    background-color: #25D366;
}

.messenger-contact-btn.whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

.messenger-contact-btn.telegram {
    background-color: #0088CC;
}

.messenger-contact-btn.telegram:hover {
    background-color: #006699;
    transform: translateY(-2px);
}

/* Call Modal Styles */
.call-modal-content {
    max-width: 400px;
    text-align: center;
}

.call-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.call-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border: 1px solid rgba(44, 85, 48, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #2c5530;
    font-weight: 500;
    transition: all 0.3s ease;
}

.call-option:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
}

.call-option i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.call-option span {
    flex: 1;
    text-align: left;
}

/* Contact Grid 2 Layout */
.contact-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-grid-centered {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.contact-grid-centered .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-grid-centered .meeting-point {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Digital Clock Styles */
.digital-clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(44, 85, 48, 0.1);
    color: #2c5530;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    border: 1px solid rgba(44, 85, 48, 0.2);
    backdrop-filter: blur(10px);
}

.digital-clock i {
    color: #FFD700;
    font-size: 1rem;
}

.clock-time {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #FFD700;
}

.clock-date {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.5rem;
    color: #2c5530;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: #2c5530;
    color: white;
}

.btn-primary:hover {
    background: #1e3b22;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #4a7c59;
    color: white;
}

.btn-secondary:hover {
    background: #3a5f47;
}

.btn-outline {
    background: transparent !important;
    color: #2c5530 !important;
    border: 2px solid #2c5530 !important;
}

.btn-outline:hover {
    background: #2c5530 !important;
    color: white !important;
    border: 2px solid #2c5530 !important;
}

/* Hero section outline button with better visibility */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2c5530 !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline:hover {
    background: white !important;
    color: #2c5530 !important;
    border: 2px solid white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: #2c5530;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c5530;
}

/* Routes Section */
.routes {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .routes-grid {
        grid-template-columns: 1fr;
    }
}

.route-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.route-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.route-card:hover .route-image img {
    transform: scale(1.05);
}

.route-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.route-price {
    background: #2c5530;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.route-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.route-content h3 {
    font-size: 1.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.route-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.route-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.route-features {
    list-style: none;
    margin: 1rem 0;
}

.route-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.route-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5530;
    font-weight: bold;
}

.route-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.route-actions .btn {
    flex: 1;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    scroll-margin-top: 100px; /* Additional offset for better visibility */
}

.map-wrapper {
    position: relative;
    margin: 3rem 0;
}

.yandex-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.map-control-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #2c5530;
    border-radius: 8px;
    color: #2c5530;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control-btn:hover {
    background: #2c5530;
    color: white;
}

.map-control-btn.active {
    background: #2c5530;
    color: white;
}

.map-routes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.map-route-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-route-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.route-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.route-marker.chufut {
    background: #FFD700;
}

.route-marker.stars {
    background: #9370DB;
}

.route-marker.afon {
    background: #32CD32;
}

.route-info h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.route-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.map-description {
    max-width: 1000px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.about-content h2 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c5530;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
}

.gallery-description {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
}

.gallery-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.gallery-description p:last-child {
    margin-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #2c5530;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: #2c5530;
    font-weight: 600;
}

.contact-details p {
    margin: 0 !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.contact-details a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.contact-details a:hover {
    color: #2c5530 !important;
    text-decoration: underline !important;
}

/* Дополнительная специфичность для контактного блока */
section.contact .contact-details p {
    color: #333 !important;
    display: block !important;
    visibility: visible !important;
}

section.contact .contact-details a {
    color: #333 !important;
    display: inline !important;
    visibility: visible !important;
}

/* Улучшенная видимость контактных данных */
.contact-details p,
.contact-details a {
    color: #2c2c2c !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.contact-details h4 {
    color: #2c5530 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

.contact-item {
    background: rgba(44, 85, 48, 0.05) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
}

/* Form Styles */
.contact-form,
.quick-order-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
}

.quick-order-form {
    padding: 1rem;
}

.quick-order-form input,
.quick-order-form select {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
}

/* Calendar Styles */
.calendar-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-wrapper h3 {
    margin-bottom: 1.5rem;
    color: #2c5530;
    text-align: center;
}

.booking-calendar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.calendar-header {
    background: #2c5530;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-nav {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-month {
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar-day.available {
    background: #e8f5e8;
    color: #2c5530;
}

.calendar-day.available:hover {
    background: #d4f4d4;
}

.calendar-day.booked {
    background: #ffe6e6;
    color: #d32f2f;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #2c5530;
    color: white;
}

.calendar-day.today {
    font-weight: bold;
    border: 2px solid #FFD700;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.available {
    background: #e8f5e8;
    border: 1px solid #2c5530;
}

.legend-color.booked {
    background: #ffe6e6;
    border: 1px solid #d32f2f;
}

.legend-color.selected {
    background: #2c5530;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

/* Phone links in footer */
.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 0.8rem !important;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.footer-bottom a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: #f8f9fa;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.review-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-content p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
    flex-grow: 1;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.review-author strong {
    color: #2c5530;
}

.review-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Review Image Styles */
.review-image {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.review-image img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #2c5530;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Review Video Styles */
.review-video {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.video-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2c5530;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.video-link:hover {
    background: #1e3b22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.video-link i {
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

/* Gallery Lightbox - when using class active */
.lightbox.active {
    display: block;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Gallery Lightbox Navigation */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Gallery Lightbox Image */
.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FFD700;
    color: #333333;
    border: 2px solid #FFA500;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #FFA500;
    color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .yandex-map {
        height: 350px;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: calc(100% - 20px);
    }
    
    .map-control-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .digital-clock {
        order: -1;
        padding: 0.4rem 0.8rem;
        background: rgba(44, 85, 48, 0.15);
    }

    .clock-time {
        font-size: 0.9rem;
    }

    .clock-date {
        font-size: 0.7rem;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-img {
        height: 38px;
        max-width: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .about-grid,
    .contact-grid,
    .contact-grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calendar-wrapper {
        order: 2;
    }

    .contact-form-wrapper {
        order: 3;
    }

    .about-stats {
        justify-content: center;
    }

    .route-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

    .logo-img {
        height: 35px;
        max-width: 110px;
    }
    
    /* Gallery Lightbox Mobile */
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Route Slider Styles */
.route-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.route-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.route-slide.active {
    opacity: 1;
}

.route-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.route-slider:hover .slider-controls {
    opacity: 1;
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Map Section Specific Fixes */
.map-section {
    padding-top: 140px !important;
    margin-top: -120px;
}

#map {
    scroll-margin-top: 140px;
}

/* Responsive Navigation Overlap Fix */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px; /* Smaller offset for mobile */
    }
    
    section[id] {
        scroll-margin-top: 70px; /* Adjusted for mobile header */
    }
    
    .map-section {
        padding-top: 110px !important;
        margin-top: -90px;
    }
    
    #map {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 70px; /* Even smaller for small screens */
    }
    
    section[id] {
        scroll-margin-top: 60px; /* Minimal offset for small screens */
    }
    
    .map-section {
        padding-top: 100px !important;
        margin-top: -80px;
    }
    
    #map {
        scroll-margin-top: 90px;
    }
}
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-label span {
    line-height: 1.4;
}

/* Стили для формы в подвале */
.quick-order-form .checkbox-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-order-form .checkbox-label input[type="checkbox"] {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.quick-order-form .checkbox-label span {
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Стили для модальных окон */
.modal .checkbox-label {
    margin-bottom: 15px;
}

/* Review Form Styles */
.review-form-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.review-form-section .section-header {
    margin-bottom: 2rem;
}

.review-form-section .section-header h3 {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.review-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.rating-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-group label {
    font-weight: 500;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    justify-content: flex-end;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0;
}

/* Правильная логика подсветки звезд */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #FFD700;
}

.star-rating input[type="radio"]:checked + label,
.star-rating input[type="radio"]:checked + label ~ label {
    color: #FFD700;
}

/* Сброс цвета при ховере */
.star-rating:hover label {
    color: #ddd;
}

.star-rating:hover label:hover,
.star-rating:hover label:hover ~ label {
    color: #FFD700;
}

.file-upload-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px dashed #2c5530;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2c5530;
    text-align: center;
    justify-content: center;
}

.file-upload-label:hover {
    background: #e8f5e8;
    border-color: #1e3b22;
}

.file-upload-label i {
    font-size: 1.2rem;
}

input[type="file"] {
    display: none !important;
}

.image-preview {
    position: relative;
    display: inline-block;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Review Form Submit Button */
.review-form .btn-primary {
    background: #2c5530;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    min-width: 200px;
}

.review-form .btn-primary:hover {
    background: #1e3b22;
}

/* Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Compact Review Form Styling */
.review-form.compact {
    padding: 2rem;
    max-width: 650px;
    margin: 2rem auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44, 85, 48, 0.12);
    border: 1px solid rgba(44, 85, 48, 0.08);
    position: relative;
    overflow: hidden;
}

.review-form.compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5530 0%, #4a7c59 50%, #2c5530 100%);
}

.review-form.compact .review-form-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.review-form.compact .review-form-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2c5530;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.review-form.compact .review-form-header h4 i {
    color: #FFD700;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.review-form.compact .review-form-header p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.review-form.compact .review-form-header::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #2c5530 50%, transparent 100%);
    border-radius: 1px;
}

.review-form.compact .form-row {
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.review-form.compact .form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.review-form.compact .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #2c5530;
    font-weight: 500;
    display: block;
}

/* Современные input группы с гласморфизмом */
.review-form.compact .input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.review-form.compact .input-group.full-width {
    width: 100%;
}

.review-form.compact .input-group input,
.review-form.compact .input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem 1.5rem 3rem;
    font-size: 1rem;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(44, 85, 48, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}

.review-form.compact .input-group input:focus,
.review-form.compact .input-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 12px 40px rgba(44, 85, 48, 0.15),
        0 0 0 2px rgba(44, 85, 48, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.02);
}

.review-form.compact .input-group input:hover,
.review-form.compact .input-group textarea:hover {
    box-shadow: 
        0 10px 36px rgba(44, 85, 48, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Floating Labels */
.review-form.compact .floating-label {
    position: absolute;
    left: 3rem;
    bottom: 0.75rem;
    background: transparent;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.review-form.compact .input-group textarea + .floating-label {
    top: auto;
    bottom: 0.75rem;
    transform: none;
}

.review-form.compact .input-group input:focus + .floating-label,
.review-form.compact .input-group input:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    left: 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c5530;
    transform: none;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.9) 100%);
    padding: 0 0.5rem;
    border-radius: 4px;
    bottom: auto;
}

.review-form.compact .input-group textarea:focus + .floating-label,
.review-form.compact .input-group textarea:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    left: 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c5530;
    transform: none;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.9) 100%);
    padding: 0 0.5rem;
    border-radius: 4px;
    bottom: auto;
}

/* Иконки в полях */
.review-form.compact .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
    z-index: 4;
    transition: all 0.3s ease;
}

.review-form.compact .input-group:focus-within .input-icon {
    color: #2c5530;
    transform: translateY(-50%) scale(1.1);
}

.review-form.compact .textarea-icon {
    top: 1.25rem;
    transform: translateY(0);
}

/* Анимированные границы */
.review-form.compact .input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2c5530, #4a7c59);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    z-index: 1;
}

.review-form.compact .input-group input:focus ~ .input-border,
.review-form.compact .input-group textarea:focus ~ .input-border {
    width: 100%;
}

/* Textarea специфичные стили */
.review-form.compact .input-group textarea {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
    padding-top: 2rem;
}

/* Плейсхолдеры скрыты (заменены на floating labels) */
.review-form.compact .input-group input::placeholder,
.review-form.compact .input-group textarea::placeholder {
    opacity: 0;
}

/* Продвинутые фокус-эффекты */
.review-form.compact .input-group::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2c5530, #4a7c59, #2c5530);
    border-radius: 18px;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.review-form.compact .input-group:focus-within::before {
    opacity: 0.3;
    animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Волновой эффект при фокусе */
.review-form.compact .input-group::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(44, 85, 48, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form.compact .input-group:focus-within::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Состояния валидации с улучшенными эффектами */
.review-form.compact .input-group input:valid:not(:placeholder-shown) {
    background: rgba(212, 237, 218, 0.4);
    box-shadow: 
        0 8px 32px rgba(40, 167, 69, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(40, 167, 69, 0.2);
}

.review-form.compact .input-group input:valid:not(:placeholder-shown) ~ .input-border {
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    width: 100%;
    height: 3px;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.review-form.compact .input-group input:valid:not(:placeholder-shown) ~ .floating-label {
    color: #28a745;
}

.review-form.compact .input-group input:invalid:not(:placeholder-shown) {
    background: rgba(248, 215, 218, 0.4);
    box-shadow: 
        0 8px 32px rgba(220, 53, 69, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(220, 53, 69, 0.2);
    animation: invalidShake 0.5s ease-in-out;
}

.review-form.compact .input-group input:invalid:not(:placeholder-shown) ~ .input-border {
    background: linear-gradient(90deg, #dc3545, #e74c3c, #fd7e14);
    width: 100%;
    height: 3px;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.review-form.compact .input-group input:invalid:not(:placeholder-shown) ~ .floating-label {
    color: #dc3545;
}

@keyframes invalidShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Спецэффекты для иконок */
.review-form.compact .input-group input:valid:not(:placeholder-shown) ~ .input-icon {
    color: #28a745;
    animation: iconBounce 0.6s ease-in-out;
}

.review-form.compact .input-group input:invalid:not(:placeholder-shown) ~ .input-icon {
    color: #dc3545;
    animation: iconShake 0.5s ease-in-out;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(-50%) scale(1); }
    40% { transform: translateY(-50%) scale(1.1); }
    60% { transform: translateY(-50%) scale(1.05); }
}

@keyframes iconShake {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(-5deg); }
    75% { transform: translateY(-50%) rotate(5deg); }
}

/* Прогресс-индикатор заполнения формы */
.review-form.compact .form-progress {
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.05) 0%, rgba(74, 124, 89, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.review-form.compact .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(44, 85, 48, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.review-form.compact .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #2c5530, #4a7c59);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.review-form.compact .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.review-form.compact .progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.review-form.compact .progress-text #progressText {
    color: #2c5530;
    font-weight: 500;
}

.review-form.compact .progress-text #progressPercent {
    color: #6b7280;
    font-weight: 600;
}

.review-form.compact .form-progress.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(44, 85, 48, 0.1) 100%);
    border-color: #28a745;
}

.review-form.compact .form-progress.completed .progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.review-form.compact .form-progress.completed #progressText {
    color: #28a745;
}

.review-form.compact .form-progress.completed #progressPercent {
    color: #28a745;
}

/* Улучшенные состояния валидации */
.review-form.compact .input-group.error {
    animation: errorPulse 0.6s ease-in-out;
}

.review-form.compact .input-group.success {
    animation: successPulse 0.6s ease-in-out;
}

.review-form.compact .rating-row.error {
    animation: errorShake 0.5s ease-in-out;
    border-color: #dc3545;
    background: rgba(248, 215, 218, 0.3);
}

.review-form.compact .rating-row.success {
    border-color: #28a745;
    background: rgba(212, 237, 218, 0.3);
}

@keyframes errorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.02); }
    50% { transform: scale(1); }
    75% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Эффект печатания для textarea */
.review-form.compact .input-group textarea:focus {
    animation: typewriterCursor 1s infinite;
}

@keyframes typewriterCursor {
    0%, 50% { border-right: 2px solid #2c5530; }
    51%, 100% { border-right: 2px solid transparent; }
}

.review-form.compact .rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f0 100%);
    border-radius: 12px;
    border: 1px solid rgba(44, 85, 48, 0.08);
}

.review-form.compact .rating-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.review-form.compact .rating-group .rating-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5530;
    margin: 0;
    white-space: nowrap;
}

.review-form.compact .star-rating.compact {
    padding: 0.5rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.05);
}

.review-form.compact .star-rating.compact label {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.review-form.compact .star-rating.compact label:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

.review-form.compact .route-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.review-form.compact .route-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5530;
    margin: 0;
    white-space: nowrap;
}

.review-form.compact .route-group select {
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 2px solid #e8f0e9;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(44, 85, 48, 0.04);
}

.review-form.compact .route-group select:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.review-form.compact .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(44, 85, 48, 0.08);
}

.review-form.compact .upload-section {
    flex: 1;
}

.review-form.compact .file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border: 2px dashed #2c5530;
    color: #2c5530;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    justify-content: center;
    min-height: 50px;
}

.review-form.compact .file-upload-label:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-color: #1e3b22;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.15);
}

.review-form.compact .file-upload-label i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.review-form.compact .submit-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.review-form.compact .privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

.review-form.compact .privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2c5530;
    cursor: pointer;
}

.review-form.compact .btn-submit {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    min-width: 140px;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.25);
    position: relative;
    overflow: hidden;
}

.review-form.compact .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.3);
    background: linear-gradient(135deg, #1e3b22 0%, #2c5530 100%);
}

.review-form.compact .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.2);
}

.review-form.compact .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.15);
}

.review-form.compact .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.review-form.compact .btn-submit:hover::before {
    left: 100%;
}

.review-form.compact .image-preview.compact {
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form.compact .image-preview.compact.show {
    opacity: 1;
    transform: translateY(0);
}

.review-form.compact .image-preview.compact img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-form.compact .image-preview.compact img:hover {
    transform: scale(1.05);
}

/* Анимации появления формы */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-form.compact {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Анимация мигания при ошибке */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.review-form.compact .form-group.error input,
.review-form.compact .form-group.error textarea,
.review-form.compact .form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Анимация успешной отправки */
@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.review-form.compact.success {
    animation: success-pulse 0.6s ease-in-out;
}

/* Анимация загрузки на кнопке */
@keyframes loading-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.review-form.compact .btn-submit .fa-spinner {
    animation: loading-spin 1s linear infinite;
}

/* Анимация сообщений */
.form-message {
    opacity: 0;
    transform: translateY(-10px);
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover эффекты для интерактивных элементов */
.review-form.compact .form-group input:not(:focus),
.review-form.compact .form-group textarea:not(:focus),
.review-form.compact .form-group select:not(:focus) {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Анимация появления элементов по очереди */
.review-form.compact .form-row {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.review-form.compact .form-group {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.review-form.compact .rating-row {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.review-form.compact .form-footer {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Улучшенная цветовая схема и типографика */

/* Стили для сообщений */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.form-message.error ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: none;
}

.form-message.error li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.form-message.error li:before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Улучшенная типографика */
.review-form.compact {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.review-form.compact .review-form-header h4 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(44, 85, 48, 0.1);
}

.review-form.compact .review-form-header p {
    font-style: italic;
    letter-spacing: 0.01em;
}

/* Улучшенные стили полей с градиентными акцентами */
.review-form.compact .form-group input:focus,
.review-form.compact .form-group select:focus,
.review-form.compact .form-group textarea:focus {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
}

/* Темная тема для контраста */
@media (prefers-color-scheme: dark) {
    .review-form.compact {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .review-form.compact .form-group input,
    .review-form.compact .form-group select,
    .review-form.compact .form-group textarea {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.2);
        color: #e0e0e0;
    }
    
    .review-form.compact .rating-row {
        background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Дополнительные акценты */
.review-form.compact::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(44, 85, 48, 0.3) 50%, transparent 100%);
    border-radius: 2px;
}

/* Улучшенные focus states с цветовыми акцентами */
.review-form.compact .star-rating.compact input:checked + label {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Микро-анимации для лучшего UX */
.review-form.compact .form-group input:valid {
    border-color: #28a745;
    box-shadow: 0 0 0 1px rgba(40, 167, 69, 0.2);
}

.review-form.compact .form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.2);
}

/* Mobile responsive for compact form */
@media (max-width: 768px) {
    .review-form.compact {
        padding: 1.5rem;
        margin: 1rem auto;
        max-width: calc(100vw - 2rem);
        border-radius: 12px;
    }
    
    .review-form.compact .review-form-header h4 {
        font-size: 1.2rem;
    }
    
    .review-form.compact .rating-row {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .review-form.compact .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .review-form.compact .rating-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        text-align: center;
    }
    
    .review-form.compact .rating-group {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .review-form.compact .route-group {
        justify-content: center;
    }
    
    .review-form.compact .route-group select {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .review-form.compact .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .review-form.compact .submit-section {
        align-items: center;
        order: 2;
    }
    
    .review-form.compact .upload-section {
        order: 1;
    }
    
    .review-form.compact .star-rating.compact label {
        font-size: 1.6rem;
    }
}

/* Дополнительный breakpoint для очень маленьких экранов */
@media (max-width: 480px) {
    .review-form.compact {
        padding: 0.75rem;
        margin: 0.25rem auto;
    }
    
    .review-form.compact .review-form-header h4 {
        font-size: 1rem;
    }
    
    .review-form.compact .review-form-header p {
        font-size: 0.8rem;
    }
    
    .review-form.compact .star-rating.compact label {
        font-size: 1.4rem;
        gap: 0.15rem;
    }
    
    .review-form.compact .btn-submit {
        padding: 0.75rem 1rem;
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    .review-form.compact .file-upload-label {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}
