/* ============================================
   КруизГид — Premium Travel Design v3
   ============================================ */

:root {
    --bg: #0e1117;
    --bg2: #141820;
    --bg3: #1a1f2b;
    --text: #f0ece4;
    --text2: #9a9590;
    --text3: #5a5550;
    --gold: #c9a96e;
    --gold2: #b8935a;
    --ocean: #1e3a5f;
    --cream: #f5f0eb;
    --border: rgba(201,169,110,0.12);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(201,169,110,0.3); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold2); border-radius: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--bg2); }

/* --- Icon system --- */
.icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }
.icon-gold { color: var(--gold); }
.icon-cream { color: var(--cream); }
.icon-muted { color: var(--text2); }

/* --- Typography --- */
.overline { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.heading { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 400; line-height: 1.15; margin-bottom: 20px; color: var(--cream); }
.subheading { font-size: 1rem; color: var(--text2); line-height: 1.7; max-width: 540px; }
.section-header { margin-bottom: 64px; }

/* --- Nav --- */
.nav { position: fixed; top:0; left:0; right:0; z-index:1000; padding: 20px 0; transition: all 0.5s var(--ease); }
.nav.scrolled { background: rgba(14,17,23,0.92); backdrop-filter: blur(24px); padding: 14px 0; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: 1px; color: var(--cream); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 36px; }
.nav-link { font-size: 0.78rem; font-weight: 400; letter-spacing: 1px; color: var(--text2); transition: color 0.3s; }
.nav-link:hover { color: var(--gold); }
.nav-cta { padding: 10px 24px; border: 1px solid var(--gold); border-radius: 0; color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.4s var(--ease); }
.nav-cta:hover { background: var(--gold); color: var(--bg); }
.burger { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.burger span { width: 24px; height: 1px; background: var(--cream); transition: all 0.4s; }
.burger.active span:first-child { transform: translateY(7px) rotate(45deg); }
.burger.active span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset:0; z-index:999; background: rgba(14,17,23,0.98); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; opacity:0; visibility:hidden; transition: all 0.5s var(--ease); }
.mobile-menu.active { opacity:1; visibility:visible; }
.mobile-menu a { font-family: var(--serif); font-size: 1.8rem; color: var(--cream); }
.mobile-cta { border: 1px solid var(--gold); padding: 12px 32px; color: var(--gold) !important; font-size: 0.85rem !important; font-family: var(--sans) !important; letter-spacing: 2px; }

/* --- Hero --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,17,23,0.3) 0%, rgba(14,17,23,0.6) 50%, rgba(14,17,23,1) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; padding: 0 32px; }
.hero-pre { font-size: 0.72rem; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.hero-title { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; line-height: 1.1; color: var(--cream); margin-bottom: 24px; }
.hero-sub { font-size: 1rem; color: var(--text2); line-height: 1.8; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; background: var(--gold); color: var(--bg); font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.4s var(--ease); }
.btn-hero:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-hero-ghost { display: inline-block; padding: 16px 40px; border: 1px solid rgba(240,236,228,0.3); color: var(--cream); font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.4s var(--ease); }
.btn-hero-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2.5s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{ opacity:0.3; } 50%{ opacity:1; } }
.hero-dots { position: absolute; bottom: 40px; right: 40px; z-index: 2; display: flex; gap: 8px; }
.hero-dots .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); cursor: pointer; transition: all 0.3s; }
.hero-dots .dot.active { background: var(--gold); }

/* --- Strip --- */
.strip { padding: 48px 0; border-bottom: 1px solid var(--border); }
.strip-inner { max-width: 900px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.strip-item { display: flex; align-items: center; gap: 12px; text-align: left; }
.strip-num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--cream); }
.strip-label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text2); display: block; }
.strip-divider { width: 1px; height: 40px; background: var(--border); }

/* --- Card Grid (River + Sea + Articles) --- */
.river-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.river-card { display: flex; flex-direction: column; border-radius: 2px; overflow: hidden; background: var(--bg2); border: 1px solid var(--border); transition: all 0.5s var(--ease); text-decoration: none; }
.river-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.river-img { position: relative; height: 220px; overflow: hidden; }
.river-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.river-card:hover .river-img img { transform: scale(1.05); }
.river-tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 0.6rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); background: rgba(14,17,23,0.8); backdrop-filter: blur(8px); padding: 4px 12px; border: 1px solid rgba(201,169,110,0.3); }
.river-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-cat { font-size: 0.6rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.river-body h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--cream); margin-bottom: 6px; line-height: 1.3; }
.river-body p { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.river-meta { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text2); margin-top: auto; flex-wrap: wrap; }
.river-meta .icon { width: 16px; height: 16px; }
.river-meta span { margin-right: 12px; }

/* --- How It Works --- */
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 24px; }
.tl-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); flex-shrink: 0; position: relative; z-index: 1; }
.tl-line { width: 1px; flex: 1; background: linear-gradient(to bottom, var(--gold), rgba(201,169,110,0.15)); min-height: 40px; }
.tl-content { padding-bottom: 40px; }
.tl-num { font-family: var(--serif); font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; color: var(--gold); display: block; margin-bottom: 8px; }
.tl-content h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.tl-content p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.how-gallery { border-radius: 2px; overflow: hidden; position: relative; aspect-ratio: 3/4; }
.how-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s var(--ease); border-radius: 2px; }
.how-slide.active { opacity: 1; }

/* --- Why Grid --- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-text .heading { margin-bottom: 20px; }
.why-text p { font-size: 0.95rem; color: var(--text2); line-height: 1.7; }
.wf-item { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.wf-icon { font-size: 1.2rem; flex-shrink: 0; }
.wf-item strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.wf-item p { font-size: 0.8rem; color: var(--text2); line-height: 1.5; }

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.review-card { padding: 32px; border: 1px solid var(--border); border-radius: 2px; background: var(--bg2); }
.review-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.review-stars .icon { width: 18px; height: 18px; }
.review-card blockquote { font-family: var(--serif); font-size: 1.1rem; font-style: italic; line-height: 1.6; color: var(--cream); margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--cream); }
.review-author strong { display: block; font-size: 0.85rem; }
.review-author span { font-size: 0.75rem; color: var(--text2); }

/* --- Section Link --- */
.section-link { text-align: center; margin-top: 0; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border: 1px solid var(--gold); color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.4s var(--ease); }
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn-outline .icon, .btn-hero .icon { width: 16px; height: 16px; }

/* --- FAQ --- */
.faq { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-family: var(--serif); font-size: 1.15rem; color: var(--cream); cursor: pointer; transition: color 0.3s; }
.faq-q:hover { color: var(--gold); }
.faq-arrow { font-size: 1.2rem; color: var(--text3); transition: transform 0.3s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { padding-bottom: 24px; font-size: 0.85rem; color: var(--text2); line-height: 1.7; }
.faq-item.active .faq-arrow { transform: rotate(45deg); color: var(--gold); }
.faq-item.active .faq-a { max-height: 200px; }

/* --- CTA Section --- */
.cta-section { position: relative; height: 60vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-overlay { position: absolute; inset: 0; background: rgba(14,17,23,0.7); }
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-content h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--cream); margin-bottom: 12px; }
.cta-content p { font-size: 0.95rem; color: var(--text2); margin-bottom: 32px; }

/* --- Footer --- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-logo { font-size: 1.3rem; }
.footer-brand p { font-size: 0.8rem; color: var(--text2); margin-top: 12px; line-height: 1.6; }
.footer h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer a { display: block; font-size: 0.82rem; color: var(--text2); padding: 3px 0; transition: color 0.3s; }
.footer a:hover { color: var(--cream); }
.footer-bottom { text-align: center; font-size: 0.7rem; color: var(--text3); padding-top: 24px; border-top: 1px solid var(--border); }

/* --- Modal --- */
.modal-bg { position: fixed; inset:0; z-index:10000; background: rgba(14,17,23,0.95); display: flex; align-items: center; justify-content: center; opacity:0; visibility:hidden; transition: all 0.5s var(--ease); }
.modal-bg.active { opacity:1; visibility:visible; }
.modal { background: var(--bg2); border: 1px solid var(--border); max-width: 480px; width: 92%; padding: 40px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; color: var(--text2); font-size: 1rem; transition: color 0.3s; }
.modal-close:hover { color: var(--gold); }
.quiz-progress { height: 1px; background: var(--border); margin-bottom: 32px; }
.quiz-bar { height: 100%; width: 0%; background: var(--gold); transition: width 0.6s var(--ease); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: qFade 0.5s var(--ease); }
@keyframes qFade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.quiz-header { text-align: center; margin-bottom: 28px; }
.quiz-header svg { margin-bottom: 12px; }
.quiz-header h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--cream); }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opts button { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border: 1px solid var(--border); background: transparent; color: var(--cream); font-size: 0.9rem; text-align: left; transition: all 0.3s var(--ease); letter-spacing: 0.5px; flex-wrap: wrap; }
.quiz-opts button small { display: block; width: 100%; font-size: 0.72rem; color: var(--text3); margin-top: 2px; margin-left: 26px; }
.quiz-opts button:hover { border-color: var(--gold); color: var(--gold); padding-left: 28px; }
.opt-muted { color: var(--text3) !important; border-style: dashed !important; }
.quiz-result-header { text-align: center; margin-bottom: 24px; }
.quiz-results { margin-bottom: 20px; }
.qr-item { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.qr-item span { color: var(--text2); }
.qr-item strong { color: var(--gold); }
.qr-hidden { opacity: 0.3; filter: blur(3px); }
.qr-price { color: var(--gold) !important; font-weight: 600; transition: color 0.3s; }
.qr-price:hover { color: var(--cream) !important; }
.quiz-hint { text-align: center; font-size: 0.82rem; color: var(--text2); margin-bottom: 20px; }
.quiz-form { display: flex; flex-direction: column; gap: 10px; }
.qinput { padding: 14px 0; border: none; border-bottom: 1px solid var(--border); background: transparent; color: var(--cream); font-size: 0.9rem; outline: none; transition: border-color 0.3s; }
.qinput:focus { border-color: var(--gold); }
.btn-submit { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: var(--gold); color: var(--bg); font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.4s var(--ease); margin-top: 8px; }
.btn-submit:hover { background: var(--gold2); }
.btn-submit .icon { width: 16px; height: 16px; }
.quiz-privacy { font-size: 0.68rem; color: var(--text3); text-align: center; margin-top: 8px; }
.quiz-privacy a { color: var(--gold); }
.quiz-loading { text-align: center; color: var(--gold); font-family: var(--serif); font-size: 1.1rem; padding: 40px 0; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.btn-showmore { display: block; width: 100%; max-width: 400px; margin: 32px auto 0; padding: 16px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.85rem; letter-spacing: 1px; transition: all 0.3s var(--ease); cursor: pointer; }
.btn-showmore:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn small { font-size: 0.65rem; color: var(--text3); margin-left: 4px; }

/* --- Back to top --- */
.btt { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border: 1px solid var(--border); color: var(--text2); font-size: 1rem; z-index: 100; opacity: 0; transform: translateY(10px); transition: all 0.4s var(--ease); background: var(--bg2); }
.btt.visible { opacity: 1; transform: translateY(0); }
.btt:hover { border-color: var(--gold); color: var(--gold); }
.btt .icon { transform: rotate(-90deg); }

/* --- Fade In --- */
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.8s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.35s; }
.delay-5 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .river-grid { grid-template-columns: repeat(2, 1fr); }
    .how-layout { grid-template-columns: 1fr; gap: 40px; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: flex; }
    .section { padding: 80px 0; }
    .river-grid { grid-template-columns: 1fr; }
    .how-layout { grid-template-columns: 1fr; }
    .how-gallery { display: none; }
    .strip-inner { flex-wrap: wrap; gap: 20px; }
    .strip-divider { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-dots { right: 20px; bottom: 20px; }
}
