/**
 * Основные стили сайта Fly Carioca
 * Мультиязычная поддержка: RU, PT, EN
 */

/* === CSS Variables === */
:root {
    --primary-color: #1a5276;
    --primary-dark: #154360;
    --primary-light: #2980b9;
    --accent-color: #f39c12;
    --accent-hover: #e67e22;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-color: #f8f9fa;
    --bg-dark: #2c3e50;
    --white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --header-height: 70px;
    --container-max: 1200px;
    --transition: all 0.3s ease;
    --radius: 8px;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* === HEADER === */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    letter-spacing: -0.5px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.nav-item.active .nav-link {
    color: var(--primary-color);
    background-color: rgba(26, 82, 118, 0.1);
}

.nav-item-book {
    margin-left: 10px;
}

.nav-button {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 600;
}

.nav-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    position: relative;
    z-index: 100;
}

.language-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 101;
}

.language-switcher a:hover {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.language-switcher a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.lang-mobile {
    display: none;
}

.lang-desktop {
    position: relative;
    z-index: 1001;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Content Sections */
.content-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.main-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.main-content h2 {
    color: var(--primary-dark);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.main-content h3 {
    color: var(--primary-color);
    margin: 25px 0 10px;
    font-size: 1.3rem;
}

.main-content p {
    margin-bottom: 15px;
}

.main-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.main-content li {
    margin-bottom: 8px;
}

/* Price Tables */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.price-table th,
.price-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.price-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background: var(--bg-color);
}

.price-table tr:hover {
    background: rgba(26, 82, 118, 0.05);
}

.price-table td:first-child {
    font-weight: 600;
    text-align: left;
}

/* Route Maps */
.route-map {
    margin: 30px 0;
    text-align: center;
}

.route-map img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.route-points {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.route-point-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: var(--radius);
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.info-box p {
    margin: 0;
}

/* === FOOTER === */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.site-footer a {
    color: #bdc3c7;
}

.site-footer a:hover {
    color: var(--accent-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-contacts {
    margin-top: 20px;
}

.footer-contacts p {
    margin-bottom: 8px;
}

.contact-label {
    color: var(--accent-color);
    font-weight: 500;
    margin-right: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--white) !important;
}

.social-link .icon {
    flex-shrink: 0;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright p {
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal .separator {
    color: #95a5a6;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* === 404 PAGE === */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
    opacity: 0.3;
}

.error-404 h2 {
    margin-bottom: 20px;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        transition: var(--transition);
        padding: 20px;
        overflow-y: auto;
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    
    .nav-item-book {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .nav-button {
        text-align: center;
    }
    
    .lang-desktop {
        display: none;
    }
    
    .lang-mobile {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .lang-mobile .language-switcher {
        justify-content: center;
    }
    
    .language-switcher a {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .main-content h1 {
        font-size: 1.6rem;
    }
    
    .price-table {
        font-size: 0.85rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .error-404 h1 {
        font-size: 5rem;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none !important; }
.sr-only { position: absolute; left: -10000px; }

/* ========================================================
   СТИЛИ ФОРМЫ БРОНИРОВАНИЯ (из flycarioca.com.br)
   ======================================================== */

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.form-container h1 {
    margin: 0 0 30px 0;
    line-height: 28pt;
    text-align: center;
    font-size: 24pt;
    color: var(--primary-color);
}

.form-container h4 {
    margin: 25px 0 15px 0;
    text-align: center;
    font-size: 14pt;
    color: var(--text-color);
}

.form-container .center {
    text-align: center;
}

/* Payment options styling */
.payment {
    list-style-type: none;
    padding: 0;
    margin: 6px 10px 18px 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-x: auto;
    gap: 5px;
}

.payment label {
    margin: 3px;
    border: 1px solid #999;
    padding: 10px 18px;
    border-radius: 10px;
    white-space: nowrap;
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    background: var(--white);
    transition: all 0.2s ease;
}

.payment label:hover {
    border-color: var(--primary-color);
}

.payment label.disabled {
    cursor: default;
    opacity: 0.4;
    background: #f0f0f0;
}

.payment label.checked {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

/* Door Off option */
#dooroff-label {
    background-color: #f0f0f0;
    border: 2px dashed #999;
    font-weight: 600;
}

#dooroff-label.active {
    background-color: #ff7124;
    color: white;
    border-color: #ff7124;
    border-style: solid;
}

/* Input fields */
.form-container input[type="date"],
.form-container input[type="text"],
.form-container input[type="tel"] {
    font-size: 20px;
    text-align: center;
    color: #4CAF50;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #999;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-container input[type="date"]:hover,
.form-container input[type="text"]:hover,
.form-container input[type="tel"]:hover {
    background-color: #e7f8e3;
    border-color: #4CAF50;
}

.form-container input[type="date"]:focus,
.form-container input[type="text"]:focus,
.form-container input[type="tel"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Submit button */
.form-container input[type="submit"] {
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.form-container input[type="submit"]:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-container input[type="submit"]:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Cost display */
#final_cost {
    font-size: 32px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0;
    text-align: center;
}

.description {
    font-size: 10pt;
    line-height: 14pt;
    color: #666;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .form-container {
        padding: 20px 15px;
    }
    
    .form-container h1 {
        font-size: 20pt;
        line-height: 24pt;
    }
    
    .payment {
        justify-content: flex-start;
        gap: 3px;
    }
    
    .payment label {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .form-container input[type="date"],
    .form-container input[type="text"],
    .form-container input[type="tel"] {
        font-size: 16px;
        max-width: 100%;
    }
    
    #final_cost {
        font-size: 24px;
    }
}
