* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background-color: #fff;
}

body {
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #d0d0d0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section a {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.phone-link {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #e94e1b;
}

.email-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #e94e1b;
}

/* Header Quick Links */
.header-quick-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-link:hover {
    color: #e94e1b;
}

.quick-icon {
    font-weight: 700;
    color: #888;
    font-size: 16px;
}

.nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-link {
    display: inline-block;
    color: #e94e1b;
    border: 2px solid #e94e1b;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-link:hover {
    background: #e94e1b;
    color: #fff;
}

.nav-button {
    display: inline-block;
    background: #e94e1b;
    color: #fff;
    border: 2px solid #e94e1b;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #d4441a;
    border-color: #d4441a;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #e94e1b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.nav-overlay.active {
    display: block;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Section - Search Form */
.hero-search {
    background: #3441DF;
    padding: 70px 20px 90px;
}

.hero-search .content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tagline {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 60px;
    letter-spacing: 0.5px;
}

/* About Section */
.about-section {
    padding: 50px 20px;
    background: #f8f9fa;
    scroll-margin-top: 80px;
}

/* Privacy Section */
.privacy-section {
    padding: 50px 20px;
    background: #fff;
}

.privacy-section .content-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-title {
    font-size: 32px;
    font-weight: 700;
    color: #3441DF;
    margin-bottom: 30px;
    text-align: center;
}

.privacy-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.privacy-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
}

.privacy-content p {
    margin-bottom: 12px;
}

.privacy-content ul {
    margin: 10px 0 15px 25px;
}

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

.privacy-content a {
    color: #3441DF;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-content strong {
    color: #333;
}

.highlight-box {
    background: #e8f4e8;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #5cb85c;
    margin: 20px 0;
}

/* Page Section */
.page-section {
    padding: 50px 20px;
    background: #fff;
}

.page-section .content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #3441DF;
    margin-bottom: 30px;
    text-align: center;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.page-subtitle a {
    color: #3441DF;
    text-decoration: none;
}

.page-subtitle a:hover {
    text-decoration: underline;
}

.about-section .content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-title {
    font-size: 32px;
    font-weight: 700;
    color: #3441DF;
    margin-bottom: 25px;
    text-align: center;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Tours Section */
.tours-section {
    padding: 50px 20px;
    background: #fff;
}

.tours-section .content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tourvisor modules */
.tv-search-form {
    width: 100%;
}

.tv-hot-tours {
    width: 100%;
    margin-bottom: 50px;
}

.tv-image-slider {
    width: 100%;
}

/* Footer */
.footer {
    background: #3441DF;
    padding: 40px 20px;
    margin-top: auto;
    scroll-margin-top: 80px;
}

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

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-copyright {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.footer-inn {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-phone,
.footer-email {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    opacity: 0.8;
}

.footer-phone {
    font-weight: 600;
    font-size: 16px;
}

.footer-map-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 8px 16px;
    background: #fff;
    color: #3441DF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-map-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.address-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.address-content span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.footer-payment {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-methods span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        height: 40px;
    }

    .phone-link {
        font-size: 14px;
    }

    .email-link {
        font-size: 12px;
    }

    /* Hide quick links on mobile */
    .header-quick-links {
        display: none;
    }

    /* Burger Menu visible */
    .burger-menu {
        display: flex;
    }

    /* Mobile Nav */
    .nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px 30px;
        gap: 10px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 101;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-link,
    .nav-button {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
    }

    .hero-search {
        padding: 50px 10px 60px;
    }

    .hero-search .content-wrapper,
    .tours-section .content-wrapper,
    .about-section .content-wrapper,
    .privacy-section .content-wrapper,
    .page-section .content-wrapper {
        padding: 0 10px;
    }

    .privacy-section {
        padding: 30px 10px;
    }

    .page-section {
        padding: 30px 10px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .privacy-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .privacy-content {
        font-size: 14px;
    }

    .privacy-content h2 {
        font-size: 18px;
    }

    .tagline {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .about-section {
        padding: 40px 10px;
    }

    .about-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 15px;
    }

    .tours-section {
        padding: 40px 10px;
    }

    .tv-hot-tours {
        margin-bottom: 40px;
    }

    .footer {
        padding: 30px 10px;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-company {
        align-items: center;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .footer-address {
        align-items: center;
    }

    .footer-payment {
        align-items: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .address-content {
        align-items: center;
    }
}

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

    .logo {
        height: 36px;
    }

    .header-contacts {
        flex: 1;
        align-items: flex-start;
    }

    .phone-link {
        font-size: 13px;
    }

    .email-link {
        font-size: 11px;
    }

    .burger-menu {
        width: 26px;
        height: 20px;
    }

    .nav {
        width: 260px;
        right: -260px;
        padding-top: 70px;
    }

    .tagline {
        font-size: 22px;
        margin-bottom: 35px;
    }

    .hero-search {
        padding: 40px 10px 50px;
    }

    .tours-section {
        padding: 30px 10px;
    }

    .tv-hot-tours {
        margin-bottom: 30px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-links {
        align-items: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3441DF;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.form-submit:hover {
    background: #4cae4c;
}

.form-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Honeypot - скрытое поле */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Капча */
.captcha-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: #333;
}

.captcha-label input {
    width: 100px;
    text-align: center;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: #3441DF;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* Modal Mobile */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-submit {
        padding: 12px;
        font-size: 15px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .nav-button {
        padding: 6px 10px;
        font-size: 11px;
    }

    .captcha-label {
        flex-direction: column;
        gap: 10px;
    }

    .captcha-label input {
        width: 100%;
    }
}
