/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    /* Transfer page specific fonts for large screens */
    .transfer-description h2 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .transfer-description p {
        font-size: 1.2rem;
        line-height: 1.7;
    }
    
    .transfer-prices h2 {
        font-size: 2.6rem;
        line-height: 1.2;
    }
    
    .table-header h3 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .prices-table th,
    .prices-table td {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .vehicles-section h2 {
        font-size: 2.6rem;
        line-height: 1.2;
    }
    
    .vehicle-info h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .vehicle-info p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .terms-section h2 {
        font-size: 2.6rem;
        line-height: 1.2;
    }
    
    .terms-content li {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .contact-form-section .form-content h2 {
        font-size: 2.6rem;
        line-height: 1.2;
    }
    
    .contact-form-section .form-content p {
        font-size: 1.2rem;
        line-height: 1.7;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .form-header p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-details h4 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .contact-details a {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .excursions-catalog .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .excursions-catalog .catalog-item {
        min-height: 450px;
    }
    
    .excursions-catalog .catalog-image {
        height: 250px;
    }
    
    .excursions-catalog .catalog-content {
        padding: 2.5rem;
    }
    
    .excursions-catalog .catalog-item h3 {
        font-size: 1.6rem;
    }
    
    .transfer-features {
        display: flex !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 2.5rem !important;
        margin: 3rem 0 !important;
        flex-wrap: nowrap !important;
    }
    
    .transfer-feature {
        padding: 2.5rem 1.8rem !important;
        background: white !important;
        border-radius: 20px !important;
        text-align: center !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
        flex: 1 !important;
        max-width: 280px !important;
        min-width: 240px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 260px !important;
    }
    
    .transfer-feature:hover {
        transform: translateY(-12px) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    }
    
    .transfer-feature .feature-icon {
        font-size: 3.2rem !important;
        margin-bottom: 1.2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .transfer-feature span:not(.feature-icon) {
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        line-height: 1.4 !important;
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }
    
    /* Transfer page specific fonts for medium screens */
    .transfer-description h2 {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    .transfer-description p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .transfer-prices h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .table-header h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .prices-table th,
    .prices-table td {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .vehicles-section h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .vehicle-info h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .vehicle-info p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .terms-section h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .terms-content li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact-form-section .form-content h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .contact-form-section .form-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .form-header p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .contact-details a {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .transfer-content {
        gap: 3rem;
    }
    
    .excursions-catalog .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .excursions-catalog .catalog-item {
        min-height: 400px;
    }
    
    .excursions-catalog .catalog-image {
        height: 220px;
    }
    
    .excursions-catalog .catalog-content {
        padding: 2rem;
    }
    
    .excursions-catalog .catalog-item h3 {
        font-size: 1.4rem;
    }
}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Transfer page specific fonts for small screens */
    .transfer-description h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .transfer-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .transfer-prices h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .table-header h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .prices-table th,
    .prices-table td {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .vehicles-section h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .vehicle-info h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .vehicle-info p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .terms-section h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .terms-content li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-form-section .form-content h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .contact-form-section .form-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .form-header p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-details h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .contact-details a {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Header */
    .header {
        padding: 0.5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo-image {
        height: 60px;
        width: auto;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: linear-gradient(135deg, #006994 0%, #0099cc 50%, #00bfff 100%);
        width: 100%;
        height: calc(100vh - 90px);
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInDown 0.5s ease forwards;
    }
    
    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu li:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes slideInDown {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
        color: white;
        font-weight: 500;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(10px);
    }
    
    .header-whatsapp-btn {
        display: flex;
        align-items: center;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Hero Section */
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../Гид барселона/hero.jpeg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        min-height: 100vh;
        padding: 120px 0 80px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        margin-top: 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem 40px 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #c60b1e 0%, #ffc400 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        color: #ffffff;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 1rem;
        border-radius: 50px;
    }
    
    /* About Guide */
    .about-guide {
        padding: 80px 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-image img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #c60b1e 0%, #ffc400 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        color: #666;
    }
    
    .about-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin: 2rem 0;
        flex-wrap: wrap;
    }
    
    .stat-item {
        padding: 1rem 0.8rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex: 1;
        min-width: 100px;
        max-width: 120px;
    }
    
    .stat-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .stat-icon {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
        display: block;
    }
    
    .stat-number {
        font-size: 1.3rem;
        font-weight: 700;
        color: #006994;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        color: #666;
        font-weight: 500;
    }
    
    .about-services {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin: 2rem 0;
        justify-content: center;
    }
    
    .service-item {
        padding: 0.8em 1.5em;
        border-radius: 28px;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: linear-gradient(135deg, #006994 0%, #0099cc 100%);
        color: white;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        line-height: 1;
        justify-content: center;
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 140px;
    }
    
    .service-item:nth-child(3) {
        flex: 1 1 100%;
    }
    
    .service-item span:not(.service-icon) {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .service-icon {
        background: none !important;
        box-shadow: none !important;
        font-size: 1.8rem !important;
        width: 2.2em;
        height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
        margin: 0;
        flex-shrink: 0;
        line-height: 1;
        text-align: center;
    }
    
    .about-text .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
    
    /* Top Excursions */
    .top-excursions {
        padding: 80px 0;
    }
    
    .top-excursions h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 3rem;
        background: linear-gradient(135deg, #c60b1e 0%, #ffc400 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .excursions-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .excursion-card {
        background: white;
        border-radius: 0;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .excursion-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .excursion-image-container {
        position: relative;
        height: 320px;
        overflow: hidden;
        border-radius: 0;
    }
    
    .excursion-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .excursion-card:hover .excursion-image {
        transform: scale(1.1);
    }
    
    .excursion-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        font-size: 0.7rem;
        font-weight: 600;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        min-width: 50px;
        text-align: center;
        line-height: 1.2;
    }
    
    .excursion-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .excursion-card:hover .excursion-overlay {
        opacity: 1;
    }
    
    .excursion-overlay-btn {
        background: white;
        color: #006994;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .excursion-overlay-btn:hover {
        background: #006994;
        color: white;
        transform: scale(1.05);
    }
    
    .excursion-content {
        padding: 1.5rem;
    }
    
    .excursion-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .excursion-description {
        font-size: 0.95rem;
        color: #666;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .excursion-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .excursion-btn {
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        text-align: center;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    .excursion-btn-primary {
        background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #e6c200 100%);
        color: white;
    }
    
    .excursion-btn-primary:hover {
        background: linear-gradient(135deg, #ff5252 0%, #ff8c00 50%, #d4b000 100%);
        transform: translateY(-2px);
    }
    
    .excursion-btn-secondary {
        background: transparent;
        color: #006994;
        border: 2px solid #006994;
    }
    
    .excursion-btn-secondary:hover {
        background: #006994;
        color: white;
    }
    
    /* Transfer Section */
    .transfer-section {
        padding: 80px 0;
        background: #ffffff;
    }
    
    .transfer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .transfer-text {
        order: 2;
    }
    
    .transfer-image {
        order: 1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .transfer-image img {
        width: 100%;
        height: auto;
        border-radius: 20px;
    }
    
    .transfer-text h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #c60b1e 0%, #ffc400 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .transfer-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        color: #666;
    }
    
    .transfer-features {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin: 2rem 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .transfer-feature {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: white;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex: 0 1 calc(50% - 0.25rem);
        min-width: 160px;
        max-width: 220px;
        justify-content: center;
    }
    
    .transfer-feature:nth-child(3) {
        flex: 0 1 100%;
        max-width: 280px;
        margin-top: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #006994 0%, #0099cc 100%);
        color: white;
        border-radius: 50%;
    }
    
    .transfer-feature span:last-child {
        font-weight: 500;
        color: #333;
    }
    
    .transfer-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Catalog Section */
    .catalog-section {
        padding: 80px 0;
    }
    
    .catalog-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .catalog-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #c60b1e 0%, #ffc400 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .catalog-content p {
        font-size: 1rem;
        line-height: 1.7;
        color: #666;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .catalog-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .catalog-grid .excursion-title {
        font-size: 1.4rem;
        line-height: 1.3;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .catalog-grid .excursion-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Contact Form Section */
    .contact-form-section {
        padding: 60px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
    }
    
    .contact-form-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        pointer-events: none;
    }
    
    .form-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .form-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .form-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #666;
    }
    
    /* Статистика над формой */
    .contact-form-section .about-stats {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin: 2rem 0;
        flex-wrap: wrap;
    }
    
    .contact-form-section .stat-item {
        padding: 1.2rem 1rem;
        background: white;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex: 1;
        min-width: 120px;
        max-width: 140px;
    }
    
    .contact-form-section .stat-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .contact-form-section .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .contact-form-section .stat-number {
        font-size: 1.5rem;
        font-weight: 700;
        color: #006994;
        margin-bottom: 0.3rem;
    }
    
    .contact-form-section .stat-label {
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
    }
    
    /* Услуги над формой */
    .contact-form-section .about-services {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 2rem 0 3rem 0;
        justify-content: center;
    }
    
    .contact-form-section .service-item {
        padding: 1em 1.5em;
        border-radius: 30px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        background: linear-gradient(135deg, #006994 0%, #0099cc 100%);
        color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        line-height: 1;
        justify-content: center;
        flex: 1 1 calc(33.333% - 0.667rem);
        min-width: 160px;
    }
    
    .contact-form-section .service-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .contact-form-section .service-item span:not(.service-icon) {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .contact-form-section .service-icon {
        background: none !important;
        box-shadow: none !important;
        font-size: 1.6rem !important;
        width: 2em;
        height: 2em;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
        margin: 0;
        flex-shrink: 0;
        line-height: 1;
        text-align: center;
    }
    
    .contact-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        position: relative;
        z-index: 1;
    }
    
    .contact-form-wrapper {
        order: 2;
        width: 100%;
    }
    
    .contact-info {
        order: 1;
        width: 100%;
        padding: 1rem !important;
    }
    
    .contact-form {
        border: 1px solid #e9ecef !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
    }
    
    .form-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .form-fields {
        gap: 1rem;
    }
    
    .form-row {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
        border: 1px solid #d1d5db !important;
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #9ca3af !important;
        box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1) !important;
        transform: none;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #888 !important;
    }
    
    .form-group textarea {
        min-height: 80px;
        max-height: 150px;
    }
    
    .contact-form .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .contact-info-content, .contact-info {
        background: #fff !important;
        color: #222 !important;
        padding: 0.5rem !important;
    }
    
    .contact-method {
        background: #fff !important;
        color: #222 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
        padding: 1.5rem 1rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .contact-method h4, .contact-method a, .contact-method span {
        color: #222 !important;
    }
    .contact-method a {
        color: #006994 !important;
    }
    .contact-method a:hover {
        color: #004466 !important;
    }
    
    .contact-form::before {
        background: #fff !important;
    }
    
    /* Mobile controls container */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Extra small screens (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    /* Transfer page specific fonts for very small screens */
    .transfer-description h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .transfer-description p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .transfer-prices h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .table-header h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .prices-table th,
    .prices-table td {
        font-size: 0.85rem;
        line-height: 1.3;
        padding: 0.5rem 0.3rem;
    }
    
    .vehicles-section h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .vehicle-info h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .vehicle-info p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .terms-section h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .terms-content li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .contact-form-section .form-content h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .contact-form-section .form-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .form-header p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .contact-details h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .contact-details a {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Hero text for small screens */
    .hero-content h1 {
        font-size: 2.4rem !important;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1.1rem !important;
        line-height: 1.5;
    }
    
    .contact-form-section {
        padding: 40px 0;
    }
    
    .form-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .form-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Статистика над формой для маленьких экранов */
    .contact-form-section .about-stats {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .contact-form-section .stat-item {
        padding: 1rem 0.8rem;
        min-width: 100px;
        max-width: 110px;
    }
    
    .contact-form-section .stat-icon {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-form-section .stat-number {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-form-section .stat-label {
        font-size: 0.8rem;
    }
    
    /* Услуги над формой для маленьких экранов */
    .contact-form-section .about-services {
        gap: 0.8rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .contact-form-section .service-item {
        padding: 0.8em 1.2em;
        font-size: 1rem;
        gap: 0.6rem;
        min-width: 140px;
        flex: 1 1 calc(50% - 0.4rem);
    }
    
    .contact-form-section .service-item:nth-child(3) {
        flex: 1 1 100%;
    }
    
    .contact-form-section .service-item span:not(.service-icon) {
        font-size: 0.9rem;
    }
    
    .contact-form-section .service-icon {
        font-size: 1.4rem !important;
        width: 1.8em;
        height: 1.8em;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-content, .contact-info {
        background: #fff !important;
        color: #222 !important;
        padding: 0.5rem !important;
    }
    
    .contact-method {
        background: #fff !important;
        color: #222 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    }
    .contact-method h4, .contact-method a, .contact-method span {
        color: #222 !important;
    }
    .contact-method a {
        color: #006994 !important;
    }
    .contact-method a:hover {
        color: #004466 !important;
    }
    
    .contact-form::before {
        background: #fff !important;
    }
    
    /* Mobile controls container */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
        min-height: auto;
        align-items: flex-end;
    }
    
    .hero-content {
        padding: 0 1rem 30px 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .nav-menu {
        height: calc(100vh - 90px);
        overflow-y: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .excursion-image img,
    .catalog-image img,
    .gallery-item img,
    .about-image img,
    .transfer-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-menu,
    .hamburger,
    .whatsapp-button {
        display: none !important;
    }
    
    .hero,
    .about-guide,
    .top-excursions,
    .transfer-section,
    .catalog-section,
    .contact-form-section {
        page-break-inside: avoid;
    }
    
    .hero-content h1,
    .about-text h2,
    .transfer-text h2,
    .catalog-content h2,
    .form-content h2 {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: none !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .excursion-card:hover,
    .catalog-item:hover,
    .service-item:hover,
    .contact-method:hover {
        transform: none !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-menu a:focus,
.excursion-btn:focus,
.social-link:focus,
.legal-link:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.3) !important;
    border-color: #9ca3af !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #006994;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::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: loading 1.5s infinite;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.excursion-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 0;
}

.excursion-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    min-width: 45px;
}

.excursion-content {
    padding: 1.25rem;
}

/* Gallery Preview */
.gallery-preview {
    padding: 60px 0;
}

.gallery-content {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #c60b1e 0%, #ffc400 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.gallery-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #666;
}

.gallery-collage {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.2rem;
    height: 500px;
    max-width: 100%;
    margin: 0 auto 2.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item-large {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.gallery-overlay-content {
    color: white;
    text-align: left;
}

.gallery-overlay-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-overlay-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery-cta {
    text-align: center;
}

.gallery-btn {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 25%, #ffd700 50%, #ff6b6b 75%, #ffa500 100%);
    background-size: 300% 300%;
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    animation: gradientShift 3s ease infinite;
}

.gallery-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff8c00 25%, #ffc107 50%, #ff5252 75%, #ff8c00 100%);
    background-size: 300% 300%;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
    animation: gradientShift 1.5s ease infinite;
}

.contact-info-content, .contact-info {
    background: #fff !important;
    color: #222 !important;
    padding: 0.5rem !important;
}

.contact-method {
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 1.5rem 1rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.contact-method h4, .contact-method a, .contact-method span {
    color: #222 !important;
}
.contact-method a {
    color: #006994 !important;
}
.contact-method a:hover {
    color: #004466 !important;
}

.contact-form::before {
    background: #fff !important;
}

/* Mobile controls container */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Средние экраны (планшеты) для блока особенностей трансфера */
@media (min-width: 768px) and (max-width: 1199px) {
    .transfer-features {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 1.5rem;
        margin: 2.5rem 0;
        flex-wrap: wrap;
    }
    
    .transfer-feature {
        padding: 1.5rem 1.2rem;
        background: white;
        border-radius: 18px;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex: 1;
        max-width: 220px;
        min-width: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 180px;
    }
    
    .transfer-feature:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .transfer-feature .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    
    .transfer-feature span:not(.feature-icon) {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
    }
}

/* Блок особенностей трансфера для мобильных */
.transfer-features {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.transfer-feature {
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
}

.transfer-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.transfer-feature .feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.transfer-feature span:not(.feature-icon) {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .transfer-features {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 1rem;
        margin: 2rem 0;
        flex-wrap: wrap;
    }
    .transfer-feature {
        padding: 1.5rem 1rem;
        background: white;
        border-radius: 16px;
        text-align: center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 140px;
    }
    .transfer-feature:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
    .transfer-feature .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .transfer-feature span:not(.feature-icon) {
        font-size: 0.9rem;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
    }
}

.contact-icon {
    width: 55px !important;
    height: 55px !important;
    font-size: 1.5rem !important;
}

/* iPhone 13 Pro and similar iOS devices fix */
@media only screen 
    and (device-width: 390px) 
    and (device-height: 844px) 
    and (-webkit-device-pixel-ratio: 3) {
    .hero {
        margin-top: 0 !important;
        padding-top: 120px !important;
        min-height: calc(100vh - 20px) !important;
    }
}

/* iPhone 13 Pro Max fix */
@media only screen 
    and (device-width: 428px) 
    and (device-height: 926px) 
    and (-webkit-device-pixel-ratio: 3) {
    .hero {
        margin-top: 0 !important;
        padding-top: 120px !important;
        min-height: calc(100vh - 20px) !important;
    }
}

/* iPhone 14 Pro fix */
@media only screen 
    and (device-width: 393px) 
    and (device-height: 852px) 
    and (-webkit-device-pixel-ratio: 3) {
    .hero {
        margin-top: 0 !important;
        padding-top: 120px !important;
        min-height: calc(100vh - 20px) !important;
    }
}

/* General iOS Safari fix for viewport issues */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .hero {
            margin-top: 0 !important;
            padding-top: 100px !important;
            min-height: calc(100vh - env(safe-area-inset-top, 0px)) !important;
            height: auto !important;
        }
        
        .hero-content {
            padding: 0 1rem 60px 1rem !important;
        }
    }
} 