/* Tige Moscow - Luxury Responsive Site */
:root {
  --bg: #0a0a0a;
  --bg-light: #111;
  --text: #f5f5f5;
  --text-muted: #aaa;
  --accent: #c9a227;
  --accent-hover: #e0b840;
  --border: #222;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--accent); }
nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)), url('../images/YcjBY.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 { font-size: 3.5rem; font-weight: 300; margin-bottom: 1rem; letter-spacing: 1px; }
.hero p { font-size: 1.3rem; max-width: 700px; margin: 0 auto 2rem; color: #ddd; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 0.9rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-hover); }

section { padding: 5rem 5%; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; font-weight: 300; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; }

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.model-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.model-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.model-card img { width: 100%; height: 220px; object-fit: cover; }
.model-card .info { padding: 1.5rem; }
.model-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.specs { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); margin: 0.8rem 0; }
.specs span { background: #1a1a1a; padding: 0.3rem 0.6rem; border-radius: 4px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}
.feature h3 { margin-bottom: 0.8rem; color: var(--accent); }

.about-content { max-width: 900px; margin: 0 auto; font-size: 1.1rem; }
.about-content p { margin-bottom: 1.5rem; }

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info { text-align: center; margin-top: 3rem; }
.contact-info a { color: var(--accent); }

footer {
  background: #050505;
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer .logo { margin-bottom: 1rem; display: inline-block; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #111;
    flex-direction: column;
    display: none;
    padding: 1rem;
  }
  nav.open { display: flex; }
  nav a { margin: 0.8rem 0; display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  section { padding: 3rem 4%; }
  h2 { font-size: 2rem; }
  .models-grid { grid-template-columns: 1fr; }
}

/* v2: model price & gallery */
.model-card .price { color: var(--accent); font-weight: 600; margin: 0.5rem 0; }
.model-card .thumbs { display: flex; gap: 4px; padding: 4px; background: #0d0d0d; overflow-x: auto; }
.model-card .thumbs img { width: 56px; height: 40px; object-fit: cover; cursor: pointer; opacity: .6; border-radius: 3px; }
.model-card .thumbs img.on, .model-card .thumbs img:hover { opacity: 1; }
.specs { flex-wrap: wrap; }

/* v4: одна страница + страницы катеров */
section[id] { scroll-margin-top: 80px; }
.model-page { padding-top: 8rem; }
.model-page .back { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.model-page .back:hover { color: var(--accent); }
.model-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; margin-top: 1.5rem; align-items: start; }
.model-detail .gallery img.main { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; display: block; }
.model-detail .thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.model-detail .thumbs img { width: 90px; height: 60px; object-fit: cover; cursor: pointer; opacity: .6; border-radius: 4px; }
.model-detail .thumbs img.on, .model-detail .thumbs img:hover { opacity: 1; }
.model-detail h1 { font-size: 2.4rem; font-weight: 300; margin-bottom: 1rem; }
.model-detail .price { color: var(--accent); font-size: 1.4rem; font-weight: 600; margin: 1rem 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.spec-table td { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--text-muted); }
.spec-table td:last-child { text-align: right; }
@media (max-width: 768px) { .model-detail { grid-template-columns: 1fr; gap: 1.5rem; } .model-detail h1 { font-size: 1.8rem; } }

/* v5: hero — текст ниже, катер виден */
.hero { align-items: flex-end; padding: 0 5% 9vh; }
.hero .hero-inner { max-width: 820px; }
.hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.5); margin-bottom: .5rem; }
.hero p { text-shadow: 0 1px 10px rgba(0,0,0,.6); margin-bottom: 1.2rem; }
.hero .btn { margin-top: .4rem; }
@media (max-width: 768px) { .hero { padding: 0 6% 7vh; min-height: 560px; } .hero p { font-size: 1rem; } }

/* v5: карточки моделей, страница катера, сравнение */
.model-card > a { display: block; }
.card-actions, .model-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1rem; }
.cmp-toggle { background: transparent; color: var(--text); border: 1px solid #444; border-radius: 4px; padding: .75rem 1.1rem; font: inherit; font-size: .9rem; cursor: pointer; transition: all .2s; }
.cmp-toggle:hover { border-color: var(--accent); color: var(--accent); }
.cmp-toggle.on { background: rgba(201,162,39,.15); border-color: var(--accent); color: var(--accent); }
.cmp-toggle.on::before { content: '✓ '; }
.model-detail .main-wrap { aspect-ratio: 3 / 2; background: #141414; border-radius: 8px; overflow: hidden; }
.model-detail .gallery img.main { width: 100%; height: 100%; max-height: none; object-fit: cover; cursor: zoom-in; }
.model-detail .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.model-detail .thumbs img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.model-detail .desc { color: #ddd; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 1rem; line-height: 1; }
.lightbox .lb-close { top: 0; right: .5rem; } .lightbox .lb-prev { left: .5rem; } .lightbox .lb-next { right: .5rem; }
.cmp-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2000; background: #161616; border: 1px solid var(--accent); border-radius: 40px; padding: .5rem .6rem .5rem 1.3rem; display: flex; gap: .8rem; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); font-size: .95rem; white-space: nowrap; }
.cmp-bar .btn { padding: .55rem 1.2rem; border-radius: 30px; }
.cmp-bar .cmp-clear { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }
.cmp-note { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: #333; color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 2001; font-size: .9rem; }
.compare-page .cmp-opts { text-align: center; color: var(--text-muted); margin-bottom: 1rem; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; min-width: calc(140px + var(--n) * 170px); border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--border); text-align: center; vertical-align: top; }
.cmp-table td:first-child, .cmp-table th:first-child { text-align: left; color: var(--text-muted); position: sticky; left: 0; background: var(--bg); width: 140px; }
.cmp-table th img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; }
.cmp-table .cmp-name { display: block; color: var(--text); text-decoration: none; font-size: 1.15rem; margin: .5rem 0 .3rem; }
.cmp-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .85rem; }
.cmp-remove:hover { color: var(--accent); }
.cmp-table tr.diff td:not(:first-child) { color: var(--accent); }
.cmp-table.only-diff tr.same { display: none; }
.cmp-table .actions .btn { padding: .6rem 1rem; font-size: .9rem; }
@media (max-width: 768px) { .cmp-table td:first-child, .cmp-table th:first-child { width: 100px; font-size: .85rem; } .cmp-table { min-width: calc(100px + var(--n) * 140px); font-size: .9rem; } .cmp-bar { bottom: 10px; font-size: .9rem; } }
/* v5.1: hero компактнее и ниже */
.hero { padding-bottom: 4vh; background-position: center 70% !important; }
.hero .hero-inner { max-width: 980px; }
.hero h1 { font-size: 2.8rem; margin-bottom: .2rem; }
.hero p { font-size: 1.05rem; margin-bottom: .7rem; max-width: 900px; }
.hero #hero-subtitle { font-size: 1.2rem; }
@media (max-width: 768px) { .hero { padding-bottom: 5vh; background-position: 40% 60% !important; } .hero h1 { font-size: 2rem; } .hero p { font-size: .95rem; } }

/* v6: окно после отправки заявки */
.tpop { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.tpop[hidden] { display: none; }
.tpop-box { position: relative; background: #141414; border: 1px solid #2a2a2a; border-top: 3px solid var(--accent); border-radius: 10px; max-width: 420px; width: 100%; padding: 2.4rem 2rem 2rem; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,.6); animation: tpopin .2s ease-out; }
@keyframes tpopin { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.tpop-ico { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.tpop-ico::after { content: ''; position: absolute; left: 19px; top: 12px; width: 13px; height: 24px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tpop.is-err .tpop-ico::after { content: '!'; border: 0; transform: none; left: 0; right: 0; top: 9px; width: auto; height: auto; color: var(--accent); font: 700 30px/1 sans-serif; }
.tpop-box h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: .5rem; }
.tpop-box p { color: var(--text-muted); margin-bottom: 1.5rem; }
.tpop-ok { min-width: 130px; border: none; cursor: pointer; font: inherit; font-weight: 600; }
.tpop-x { position: absolute; top: .5rem; right: .8rem; background: none; border: 0; color: #777; font-size: 1.8rem; cursor: pointer; }
.tpop-x:hover { color: var(--text); }

/* v-mhdr 2026-10-17: на телефоне шапка не закреплена, уезжает при прокрутке */
@media (max-width: 768px) {
  header { position: relative; }
  .model-page { padding-top: 2rem; }
  section[id] { scroll-margin-top: 0; }
}

/* v8: align boat-card details and actions along the bottom of each row */
.models-grid { align-items: stretch; }
.model-card { display: flex; flex-direction: column; }
.model-card > a { flex-shrink: 0; }
.model-card .info { display: flex; flex-direction: column; flex: 1; }
.model-card .info > .specs { margin-top: auto; padding-top: .8rem; }
