/* ООО «Все отели мира» — alls-world.ru
   Navy + Gold + White travel theme */

:root {
    --navy: #1a2744;
    --navy-light: #2c3e6b;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --gold-dark: #a8861f;
    --white: #ffffff;
    --bg: #fafafa;
    --text: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(26,39,68,0.08);
    --radius: 4px;
    --font-body: 'Source Sans 3', Arial, sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --fs-body: 11px;
    --fs-small: 10px;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    min-width: 320px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-weight: 600;
    line-height: 1.3;
}
h1 { font-size: 2rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 0.75rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

.skip-link {
    position: absolute; top: -100px; left: 16px;
    background: var(--gold); color: var(--navy);
    padding: 8px 16px; z-index: 9999; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: var(--fs-body);
    font-family: var(--font-body);
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); }
.btn-sm { padding: 5px 12px; font-size: var(--fs-small); }
.btn-block { display: block; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: var(--shadow); }

.header-top { background: var(--navy); color: var(--white); font-size: var(--fs-small); }
.header-top-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 16px; flex-wrap: wrap; gap: 8px;
}
.header-contacts { display: flex; gap: 16px; flex-wrap: wrap; }
.header-contacts a { color: rgba(255,255,255,0.85); }
.header-contacts a:hover { color: var(--gold-light); }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.header-main-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo-icon {
    font-size: 28px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold); border-radius: 50%;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--font-heading); font-size: 1.2rem; }
.logo-text em { font-size: var(--fs-small); color: var(--text-muted); font-style: normal; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: 0.3s; }

.main-nav .nav-list {
    display: flex; list-style: none; gap: 4px; flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-item > a {
    display: block; padding: 8px 12px; color: var(--navy);
    font-weight: 500; font-size: var(--fs-body); border-radius: var(--radius);
}
.nav-item > a:hover, .nav-item.active > a { background: rgba(201,162,39,0.12); color: var(--gold-dark); }

.dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    min-width: 220px; background: var(--white);
    box-shadow: var(--shadow); border-radius: var(--radius);
    list-style: none; padding: 8px 0; z-index: 100;
    border-top: 2px solid var(--gold);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
    display: block; padding: 8px 16px; color: var(--text);
    font-size: var(--fs-body);
}
.dropdown li a:hover { background: var(--bg); color: var(--gold-dark); }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.bc-sep { color: var(--border); margin: 0 2px; }

/* Page layout */
.page-header { padding: 24px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.page-content { padding-bottom: 40px; }
.section { padding: 40px 0; }
.section-alt { background: var(--bg); }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 8px; }
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 60px; height: 2px; background: var(--gold);
}
.section-title p { color: var(--text-muted); margin-top: 8px; }

/* Hero video */
.hero {
    position: relative; min-height: 480px;
    display: flex; align-items: center; overflow: hidden;
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(26,39,68,0.85), rgba(26,39,68,0.55));
}
.hero-content {
    position: relative; z-index: 2; color: var(--white);
    padding: 60px 16px; max-width: var(--container); margin: 0 auto; width: 100%;
}
.hero-content h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 12px; }
.hero-content p { font-size: 13px; max-width: 560px; margin-bottom: 20px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider CTA */
.hero-slider { position: relative; z-index: 2; background: var(--navy); padding: 0; }
.slider-track { display: flex; transition: transform 0.5s ease; }
.slider-slide {
    min-width: 100%; padding: 20px 16px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    color: var(--white); text-align: center; flex-wrap: wrap;
}
.slider-slide strong { color: var(--gold-light); font-family: var(--font-heading); font-size: 1.2rem; }
.slider-dots { display: flex; justify-content: center; gap: 8px; padding: 8px; }
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.3); border: none; cursor: pointer;
}
.slider-dot.active { background: var(--gold); }

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.1rem; }
.card-body p { color: var(--text-muted); font-size: var(--fs-body); }
.card-price { color: var(--gold-dark); font-weight: 600; font-size: 13px; margin-top: 8px; }

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.advantage-item { text-align: center; padding: 20px; }
.advantage-icon {
    width: 56px; height: 56px; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.advantage-item h4 { margin-bottom: 6px; }
.advantage-item p { color: var(--text-muted); font-size: var(--fs-small); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px; text-align: center;
}
.stat-item { padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-number { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-label { color: var(--text-muted); font-size: var(--fs-small); margin-top: 4px; }

/* Image preview/thumbnail */
.img-preview { position: relative; cursor: pointer; }
.img-preview .thumb { filter: brightness(0.95); transition: filter 0.2s; }
.img-preview:hover .thumb { filter: brightness(1); }
.img-preview .preview-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(26,39,68,0.8); color: var(--white);
    padding: 2px 8px; border-radius: var(--radius); font-size: var(--fs-small);
}

/* Video section */
.video-section { position: relative; border-radius: var(--radius); overflow: hidden; }
.video-section iframe, .video-section video { width: 100%; aspect-ratio: 16/9; border: none; }

/* Mega sitemap links on home */
.mega-links { columns: 4; column-gap: 24px; font-size: var(--fs-small); }
.mega-links h4 { break-after: avoid; margin-top: 12px; color: var(--navy); }
.mega-links ul { list-style: none; margin-bottom: 16px; }
.mega-links li { margin-bottom: 3px; break-inside: avoid; }
.mega-links a { color: var(--text-muted); }
.mega-links a:hover { color: var(--gold); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); margin: 16px 0; }
.data-table th, .data-table td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.data-table th { background: var(--navy); color: var(--white); font-weight: 500; }
.data-table tr:nth-child(even) { background: var(--bg); }

/* Forms */
.inline-order { background: var(--navy); padding: 16px 0; margin-top: auto; }
.inline-order-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.inline-order-form input[type="tel"] {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: var(--fs-body); min-width: 200px; flex: 1; max-width: 300px;
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; font-size: var(--fs-body); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 8px 12px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: var(--fs-body); font-family: var(--font-body);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Modals */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(26,39,68,0.6); }
.modal-content {
    position: relative; background: var(--white); padding: 28px;
    border-radius: var(--radius); max-width: 440px; width: 90%;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-content-wide { max-width: 560px; }
.modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--navy); }
.modal h3 { margin-bottom: 16px; padding-right: 24px; }

.form-success {
    background: #e8f5e9; border: 1px solid #a5d6a7;
    padding: 12px; border-radius: var(--radius); color: #2e7d32;
    margin-top: 12px; display: none;
}

/* Cookie banner */
.cookie-banner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--navy); color: var(--white); padding: 14px 16px;
    z-index: 1500; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap; font-size: var(--fs-body);
}
.cookie-banner.active { display: flex; }
.cookie-banner a { color: var(--gold-light); }
.cookie-banner a:hover { color: var(--white); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); font-size: var(--fs-body); margin-top: 0; }
.footer-main { padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.footer-col h4 { color: var(--gold); font-family: var(--font-heading); margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--gold-light); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-slogan { font-size: var(--fs-small); opacity: 0.7; margin-bottom: 12px; }

.requisites dt { font-weight: 600; color: var(--gold); font-size: var(--fs-small); margin-top: 6px; }
.requisites dd { margin-left: 0; font-size: var(--fs-small); opacity: 0.85; }

.footer-counters { background: rgba(0,0,0,0.2); padding: 16px 0; }
.counters-inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.counter-widget { text-align: center; }
.counter-label { display: block; font-size: var(--fs-small); opacity: 0.6; margin-bottom: 4px; }
.counter-value {
    font-family: var(--font-heading); font-size: 1.4rem;
    color: var(--gold); font-weight: 700;
    background: rgba(255,255,255,0.05); padding: 4px 16px; border-radius: var(--radius);
    border: 1px solid rgba(201,162,39,0.3);
}

.footer-bottom { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); opacity: 0.6;
}

/* Map */
.map-container { border-radius: var(--radius); overflow: hidden; margin: 20px 0; border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 400px; border: none; }

/* FAQ */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    padding: 14px 0; font-family: var(--font-heading); font-size: 1.1rem;
    color: var(--navy); cursor: pointer; display: flex; justify-content: space-between;
}
.faq-question::after { content: '+'; color: var(--gold); font-size: 1.2rem; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 14px; color: var(--text-muted); }
.faq-item.open .faq-answer { display: block; }

/* 404 */
.error-page { text-align: center; padding: 80px 16px; }
.error-page h1 { font-size: 6rem; color: var(--gold); line-height: 1; }
.error-page p { color: var(--text-muted); margin: 16px 0 24px; }

/* Sitemap page */
.sitemap-grid { columns: 3; column-gap: 24px; font-size: var(--fs-body); }
.sitemap-section { break-inside: avoid; margin-bottom: 20px; }
.sitemap-section h3 { font-size: 1rem; margin-bottom: 8px; color: var(--gold-dark); }
.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 4px; }

/* Lightbox */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 16px; right: 24px;
    background: none; border: none; color: var(--white);
    font-size: 32px; cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .mega-links { columns: 3; }
    .sitemap-grid { columns: 2; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); box-shadow: var(--shadow); padding: 12px;
    }
    .main-nav.open { display: block; }
    .main-nav .nav-list { flex-direction: column; }
    .dropdown {
        position: static; box-shadow: none; border: none;
        padding-left: 16px; display: none;
    }
    .has-dropdown.open .dropdown { display: block; }
    .header-actions { display: none; }
    .hero-content h1 { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .mega-links { columns: 2; }
    .sitemap-grid { columns: 1; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .hero { min-height: 360px; }
    .hero-content h1 { font-size: 1.5rem; }
    .counters-inner { gap: 20px; }
    .mega-links { columns: 1; }
    .cards-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1920px) {
    :root { --container: 1400px; }
    body { font-size: 12px; }
}
