:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --ink: #0f1b2d;
  --ink-2: #4a5568;
  --muted: #8a94a6;
  --line: #e3e8ef;
  --navy: #0b2a4a;
  --red: #c8102e;
  --red-dark: #a00d24;
  --green: #1fa855;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --wrap: 1200px;
  --font: "Inter", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 680px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { filter: brightness(.93); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfd8e3; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; overflow: hidden; white-space: nowrap; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-switch button { background: none; border: 0; color: #cfd8e3; padding: 3px 12px; font: inherit; font-size: .8rem; cursor: pointer; }
.lang-switch button.active { background: #fff; color: var(--navy); font-weight: 700; }

header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 50px; width: auto; display: block; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 56px; }
nav.main { display: flex; gap: 24px; font-weight: 500; font-size: .94rem; white-space: nowrap; }
nav.main a { color: var(--ink-2); }
nav.main a:hover, nav.main a.active { color: var(--red); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { position: relative; color: #fff; padding: 110px 0 120px; background: #0b2a4a center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,24,44,.92) 0%, rgba(8,24,44,.7) 45%, rgba(8,24,44,.25) 100%); }
.hero .wrap { position: relative; }
.hero .wrap > div { max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: #ff5a6e; }
.hero .lead { color: #d6dee8; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-stats div span { font-size: .85rem; color: #b9c5d3; }


/* Brand strip */
.brands { padding: 26px 0; border-bottom: 1px solid var(--line); }
.brands .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; height: 170px; }
.about-photos figure:first-child { grid-column: span 2; height: 250px; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.about-photos figure:hover img { transform: scale(1.04); }
.about-photos figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.95); padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fde7ea; color: var(--red); font-size: .75rem; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }

/* Cards (cars) */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.car-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; cursor: pointer; }
.car-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.car-card .cc-img { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); }
.car-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.badge.new { background: var(--red); color: #fff; }
.car-card .cc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.car-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.car-card .cc-sub { color: var(--muted); font-size: .85rem; min-height: 1.3em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.car-card .cc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.car-card .cc-specs span { background: var(--bg-soft); border-radius: 6px; padding: 3px 8px; font-size: .78rem; color: var(--ink-2); }
.car-card .cc-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.car-card .cc-price strong { font-size: 1.3rem; color: var(--navy); }
.car-card .cc-price small { color: var(--muted); font-size: .75rem; }
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 360px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service .ico { width: 48px; height: 48px; border-radius: 12px; background: #fde7ea; color: var(--red); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.service h3 { font-size: 1.1rem; }
.service p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 26px 26px 80px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 24px; font-size: 1.5rem; font-weight: 800; color: var(--red); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* Destinations */
.dest { position: relative; color: #fff; background: #0b2a4a center/cover no-repeat; }
.dest::before { content: ""; position: absolute; inset: 0; background: rgba(8,24,44,.82); }
.dest .wrap { position: relative; }
.dest .lead { color: #d6dee8; }
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.country { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.country .flag { font-size: 1.5rem; line-height: 1; }
.country.more { background: var(--red); border-color: var(--red); }
.ports { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #b9c5d3; font-size: .95rem; }
.ports strong { color: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.95); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

/* Price note */
.price-note { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: var(--navy); color: #fff; border-radius: 18px; padding: 34px 40px; }
.price-note .big { font-size: 2.4rem; }
.price-note p { margin: 0; color: #cfd8e3; }
.price-note h3 { margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-person { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 20px; }
.contact-person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.contact-person h3 { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .ci { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; flex-shrink: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: span 2; }
.form label { font-size: .82rem; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 5px; }
.form input, .form select, .form textarea, .filters input, .filters select { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus { outline: 2px solid #f4b3bd; border-color: var(--red); }

/* Footer */
footer.site { background: #08182c; color: #a9b6c6; padding: 60px 0 30px; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
footer.site h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a:hover { color: #fff; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,168,85,.45); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; }

/* Catalog page */
.page-hero { background: var(--navy) center/cover; color: #fff; padding: 60px 0; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(8,24,44,.78); }
.page-hero .wrap { position: relative; }
.page-hero p { color: #cfd8e3; margin: 0; max-width: 700px; }
.catalog { padding: 40px 0 80px; }
.catalog .wrap { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: 94px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
/* Taller than the screen -> the panel scrolls on its own instead of the whole page */
.filters { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.filters h3 { font-size: 1rem; margin: 0; }
.filters label { font-size: .8rem; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 4px; }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.filters .seg button { border: 0; background: #fff; padding: 9px 4px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--ink-2); }
.filters .seg button.active { background: var(--navy); color: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.toolbar .count { color: var(--ink-2); }
.load-more { text-align: center; margin-top: 30px; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); grid-column: 1/-1; }
.filters-toggle { display: none; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(8,24,44,.7); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 18px; max-width: 1040px; width: 100%; max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1.3fr 1fr; position: relative; }
.modal-close { position: absolute; right: 14px; top: 10px; background: #fff; border: 0; font-size: 1.8rem; cursor: pointer; z-index: 2; width: 40px; height: 40px; border-radius: 50%; }
.m-gallery, .m-info { min-width: 0; }
.m-gallery { background: var(--bg-soft); }
.m-gallery .main { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.m-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.m-thumbs img { width: 76px; height: 56px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .65; flex-shrink: 0; }
.m-thumbs img.active { opacity: 1; outline: 2px solid var(--red); }
.m-info { padding: 30px; }
.m-info h2 { font-size: 1.6rem; margin-bottom: 4px; }
.m-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 14px 0 2px; }
.m-price-note { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.m-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.m-specs div { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.m-specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.m-specs small { display: block; color: var(--muted); font-size: .75rem; }
.m-info .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 1150px) {
  nav.main { display: none; }
  nav.main.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
}
@media (max-width: 1000px) {
  .hero .wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .steps { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .catalog .wrap { grid-template-columns: 1fr; }
  .filters { position: static; display: none; max-height: none; overflow: visible; }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .modal-box { grid-template-columns: 1fr; }
  .price-note { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .topbar .tb-left a:not(:first-child) { display: none; }
  .header-cta .btn { display: none; }
  .logo img { height: 38px; }
  .services-grid, .steps, .form { grid-template-columns: 1fr; }
  .form .full { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .about-photos figure { height: 130px; }
  .about-photos figure:first-child { height: 190px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .contact-person { flex-direction: column; text-align: center; }
}

/* Login page */
.login-wrap { min-height: calc(100vh - 112px); display: grid; place-items: center; padding: 50px 20px; background: var(--navy) center/cover no-repeat; position: relative; }
.login-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(8,24,44,.8); }
.login-box { position: relative; background: #fff; border-radius: 18px; padding: 36px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.login-box h1 { font-size: 1.6rem; }
.login-box p { color: var(--ink-2); font-size: .95rem; }
.login-box .form { padding: 0; border: 0; grid-template-columns: 1fr; margin: 20px 0; }
.login-box .btn { width: 100%; justify-content: center; }
.login-error { color: var(--red); font-size: .9rem; min-height: 1.4em; margin: 0; }
.login-help { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.user-bar { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .88rem; }

.b2b-note { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; margin-top: -8px; }
.b2b-box { background: #fde7ea; color: var(--red-dark); border-radius: 12px; padding: 12px 16px; font-size: .9rem; font-weight: 600; margin: 0 0 16px; }
.login-box.wide { max-width: 640px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.form .check input { width: auto; margin-top: 4px; }

.radio-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.radio-group legend { font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); margin: 0; cursor: pointer; }
.radio-group input { width: auto; margin: 0; accent-color: var(--red); }
@media (max-width: 640px) { .radio-group { grid-template-columns: 1fr; } }
