/* 7k-casino9.xyz — концепт «Портовый док». Префикс .harbor- */

:root {
  --harbor-bg: #0b0f14;
  --harbor-surface: #12181f;
  --harbor-line: #1e2732;
  --harbor-accent: #f5c518;
  --harbor-second: #5d8ab5;
  --harbor-text: #e6ecf2;
  --harbor-muted: #8e9aa8;
  --harbor-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --harbor-head: 'Piazzolla', 'Times New Roman', Georgia, serif;
  --harbor-max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--harbor-bg);
  color: var(--harbor-text);
  font-family: var(--harbor-body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-text-size-adjust: 100%;
}

/* Заголовочный шрифт — явным правилом, иначе serif встаёт первым в body-цепочке */
h1, h2, h3, h4,
.harbor-h1, .harbor-lead-t, .harbor-card__t, .harbor-slot__t,
.harbor-tier__t, .harbor-live__t, .harbor-num, .harbor-logo__t,
.harbor-faq summary, .harbor-kpi__v, .harbor-sector__v {
  font-family: var(--harbor-head);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.35rem; line-height: 1.18; margin: 0 0 18px; }
h2 { font-size: 1.72rem; line-height: 1.24; margin: 0 0 16px; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 10px; }
h4 { font-size: 1rem; margin: 0 0 8px; }

p { margin: 0 0 14px; }

a { color: var(--harbor-second); text-decoration: none; }
a:hover { color: var(--harbor-accent); }

/* ---------- служебное ---------- */

.harbor-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--harbor-accent); color: #0b0f14;
  padding: 10px 16px; z-index: 99;
}
.harbor-skip:focus { left: 8px; top: 8px; }

.harbor-wrap { max-width: var(--harbor-max); margin: 0 auto; padding: 0 22px; }

/* ---------- шапка ---------- */

.harbor-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 20, 0.94);
  border-bottom: 1px solid var(--harbor-line);
  backdrop-filter: blur(8px);
}
.harbor-bar__in {
  max-width: var(--harbor-max); margin: 0 auto;
  padding: 12px 22px;
  display: flex; align-items: center; gap: 20px;
}
.harbor-logo { display: flex; align-items: center; gap: 11px; color: var(--harbor-text); }
.harbor-logo__svg { width: 38px; height: 38px; flex: none; }
.harbor-logo__t { font-size: 1.05rem; line-height: 1.1; display: block; }
.harbor-logo__sub {
  display: block; font-family: var(--harbor-body);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--harbor-muted); margin-top: 3px;
}
.harbor-nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.harbor-nav a {
  font-size: 0.83rem; letter-spacing: 0.03em;
  color: var(--harbor-muted); padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.harbor-nav a:hover { color: var(--harbor-text); border-bottom-color: var(--harbor-accent); }

/* ---------- кнопки ---------- */

.harbor-btn {
  display: inline-block; padding: 13px 26px;
  background: var(--harbor-accent); color: #0b0f14;
  font-family: var(--harbor-body);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--harbor-accent); border-radius: 2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.harbor-btn:hover {
  color: #0b0f14; transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 197, 24, 0.22);
}
.harbor-btn--ghost {
  background: transparent; color: var(--harbor-accent);
  border: 1px solid rgba(245, 197, 24, 0.5);
}
.harbor-btn--ghost:hover { color: var(--harbor-accent); box-shadow: 0 8px 22px rgba(93, 138, 181, 0.18); }
.harbor-btn--sm { padding: 9px 18px; font-size: 0.8rem; }
.harbor-btn--wide { display: block; text-align: center; }
.harbor-bar .harbor-btn { flex: none; }

.harbor-anchor {
  display: inline-block; font-size: 0.85rem;
  color: var(--harbor-muted); border-bottom: 1px dashed var(--harbor-line);
  padding-bottom: 2px;
}

/* ---------- секции ---------- */

.harbor-sec { padding: 62px 0; border-top: 1px solid var(--harbor-line); }
.harbor-sec:first-of-type { border-top: 0; }
.harbor-tag {
  font-family: var(--harbor-body);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--harbor-accent);
  margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
}
.harbor-tag::after {
  content: ''; height: 1px; flex: 1;
  background: repeating-linear-gradient(90deg, var(--harbor-line) 0 8px, transparent 8px 16px);
}
.harbor-note { color: var(--harbor-muted); font-size: 0.93rem; }

/* ---------- hero: 2 колонки ---------- */

.harbor-hero { padding: 54px 0 44px; }
.harbor-hero__grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 42px; align-items: center;
}
.harbor-hero__sub { font-size: 1.06rem; color: #cfd8e2; max-width: 44em; }
.harbor-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0 26px; }
.harbor-hero__art { width: 100%; height: auto; display: block; }

.harbor-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--harbor-line);
  border: 1px solid var(--harbor-line);
}
.harbor-kpi__c { background: var(--harbor-surface); padding: 16px 14px; }
.harbor-kpi__v { display: block; font-size: 1.3rem; color: var(--harbor-accent); }
.harbor-kpi__l {
  display: block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--harbor-muted); margin-top: 5px;
}

/* ---------- быстрые причалы (quick-actions) ---------- */

.harbor-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 34px;
}
.harbor-quick__c {
  background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  border-top: 3px solid var(--harbor-second);
  padding: 18px 16px;
}
.harbor-quick__c:nth-child(2n) { border-top-color: var(--harbor-accent); }
.harbor-quick__c p { margin: 0; font-size: 0.9rem; color: var(--harbor-muted); }
.harbor-quick__c h3 { font-size: 0.97rem; }

/* ---------- общие сетки ---------- */

.harbor-grid { display: grid; gap: 16px; }
.harbor-grid--2 { grid-template-columns: repeat(2, 1fr); }
.harbor-grid--3 { grid-template-columns: repeat(3, 1fr); }
.harbor-grid--4 { grid-template-columns: repeat(4, 1fr); }

.harbor-card {
  background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  padding: 20px 18px;
}
.harbor-card p { margin: 0 0 10px; font-size: 0.93rem; color: #c3ccd7; }
.harbor-card p:last-child { margin: 0; }
.harbor-num {
  font-size: 1.55rem; color: var(--harbor-accent); display: block; margin-bottom: 6px;
}

/* ---------- welcome: три взноса ---------- */

.harbor-pack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.harbor-pack__c {
  background: linear-gradient(180deg, rgba(93, 138, 181, 0.09), transparent 60%);
  border: 1px solid var(--harbor-line); padding: 22px 18px;
  position: relative;
}
.harbor-pack__c::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: repeating-linear-gradient(135deg, var(--harbor-accent) 0 10px, #0b0f14 10px 20px);
}
.harbor-pack__i {
  font-family: var(--harbor-body); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--harbor-muted);
}
.harbor-pack__s { font-family: var(--harbor-head); font-size: 1.62rem; color: var(--harbor-text); margin: 6px 0 4px; }
.harbor-terms {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px;
  padding: 16px 18px; background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  font-size: 0.9rem;
}
.harbor-terms span { color: var(--harbor-muted); }
.harbor-mark { color: var(--harbor-accent); font-weight: 700; }

/* ---------- колесо: 12 секторов ---------- */

.harbor-wheel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.harbor-sector {
  border: 1px solid var(--harbor-line); background: var(--harbor-surface);
  padding: 14px 10px; text-align: center;
}
.harbor-sector:nth-child(3n) { border-color: rgba(245, 197, 24, 0.35); }
.harbor-sector__v { display: block; font-size: 1.02rem; color: var(--harbor-accent); }
.harbor-sector__l { display: block; font-size: 0.7rem; color: var(--harbor-muted); margin-top: 4px; }

/* ---------- каталог ---------- */

.harbor-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.harbor-slot {
  background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  padding: 18px 16px; border-left: 3px solid var(--harbor-second);
}
.harbor-slot:nth-child(4n) { border-left-color: var(--harbor-accent); }
.harbor-slot__t { font-size: 1.02rem; margin: 0 0 4px; }
.harbor-slot__p {
  font-family: var(--harbor-body); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--harbor-muted); margin: 0 0 10px;
}
.harbor-slot dl { margin: 0; font-size: 0.85rem; }
.harbor-slot dt {
  display: inline-block; width: 46%; color: var(--harbor-muted);
}
.harbor-slot dd { display: inline-block; width: 52%; margin: 0; color: var(--harbor-text); }

/* ---------- live rail ---------- */

.harbor-rail { overflow-x: auto; padding-bottom: 10px; }
.harbor-rail__in { display: flex; gap: 14px; min-width: 880px; }
.harbor-live {
  flex: 1 1 0; min-width: 190px;
  background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  padding: 18px 16px;
}
.harbor-live__t { font-size: 0.99rem; margin: 0 0 4px; }
.harbor-live__p {
  font-family: var(--harbor-body); font-size: 0.71rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--harbor-second); margin: 0 0 10px;
}
.harbor-live p { font-size: 0.85rem; color: #c3ccd7; margin: 0; }

/* ---------- VIP-причалы ---------- */

.harbor-tiers { overflow-x: auto; }
.harbor-tiers table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: 0.9rem; }
.harbor-tiers th, .harbor-tiers td {
  border: 1px solid var(--harbor-line); padding: 12px 14px; text-align: left;
}
.harbor-tiers th {
  font-family: var(--harbor-head); font-weight: 600;
  background: var(--harbor-surface); color: var(--harbor-second);
  font-size: 0.86rem; letter-spacing: 0.04em;
}
.harbor-tiers td:first-child { color: var(--harbor-accent); font-family: var(--harbor-head); }
.harbor-tiers tr:nth-child(2n) td { background: rgba(18, 24, 31, 0.55); }

/* ---------- касса ---------- */

.harbor-pay { overflow-x: auto; }
.harbor-pay table { border-collapse: collapse; width: 100%; min-width: 660px; font-size: 0.9rem; }
.harbor-pay th, .harbor-pay td { border: 1px solid var(--harbor-line); padding: 11px 14px; text-align: left; }
.harbor-pay th { background: var(--harbor-surface); color: var(--harbor-second); font-family: var(--harbor-head); }
.harbor-pay td:nth-child(2) { color: var(--harbor-accent); }

/* ---------- отзывы ---------- */

.harbor-rev {
  background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  padding: 20px 18px; border-bottom: 3px solid var(--harbor-second);
}
.harbor-stars { color: var(--harbor-accent); letter-spacing: 0.22em; margin: 0 0 10px; font-size: 0.9rem; }
.harbor-rev p { font-size: 0.91rem; color: #c8d1db; }
.harbor-sign {
  margin: 12px 0 0; font-size: 0.79rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--harbor-muted);
}

/* ---------- FAQ ---------- */

.harbor-faq { display: grid; gap: 10px; }
.harbor-faq details {
  background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  padding: 0 18px;
}
.harbor-faq summary {
  cursor: pointer; padding: 15px 0; font-size: 1rem; list-style: none;
  display: flex; gap: 12px; align-items: flex-start;
}
.harbor-faq summary::-webkit-details-marker { display: none; }
.harbor-faq summary::before {
  content: '+'; color: var(--harbor-accent); font-size: 1.1rem; line-height: 1.3; flex: none;
}
.harbor-faq details[open] summary::before { content: '–'; }
.harbor-faq details p {
  margin: 0 0 15px; padding-left: 24px; font-size: 0.91rem; color: #c3ccd7;
}

/* ---------- author note + footer ---------- */

.harbor-author {
  background: var(--harbor-surface); border: 1px solid var(--harbor-line);
  border-left: 3px solid var(--harbor-accent); padding: 24px 22px;
}
.harbor-author p { font-size: 0.9rem; color: #c3ccd7; }

.harbor-pre {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.07), transparent 70%);
  border: 1px solid var(--harbor-line); padding: 34px 26px; text-align: center;
}
.harbor-pre h2 { margin-bottom: 12px; }

.harbor-foot {
  border-top: 1px solid var(--harbor-line); padding: 34px 0 46px;
  color: var(--harbor-muted); font-size: 0.85rem;
}
.harbor-foot p { margin: 0 0 10px; }
.harbor-foot__age {
  display: inline-block; border: 1px solid var(--harbor-accent);
  color: var(--harbor-accent); padding: 3px 9px; font-weight: 700; margin-right: 8px;
}

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .harbor-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .harbor-slots { grid-template-columns: repeat(2, 1fr); }
  .harbor-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .harbor-wheel { grid-template-columns: repeat(4, 1fr); }
  h1 { font-size: 2.05rem; }
}

@media (max-width: 860px) {
  .harbor-quick { grid-template-columns: repeat(2, 1fr); }
  .harbor-kpi { grid-template-columns: repeat(2, 1fr); }
  .harbor-pack { grid-template-columns: 1fr; }
  .harbor-grid--3 { grid-template-columns: 1fr; }
  .harbor-nav { display: none; }
  .harbor-sec { padding: 48px 0; }
  h1 { font-size: 1.82rem; }
  h2 { font-size: 1.46rem; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .harbor-wrap, .harbor-bar__in { padding: 0 15px; }
  .harbor-slots { grid-template-columns: 1fr; }
  .harbor-grid--2, .harbor-grid--4 { grid-template-columns: 1fr; }
  .harbor-wheel { grid-template-columns: repeat(2, 1fr); }
  .harbor-quick { grid-template-columns: 1fr; }
  .harbor-hero__cta { flex-direction: column; align-items: stretch; }
  .harbor-hero__cta .harbor-btn { text-align: center; }
  h1 { font-size: 1.56rem; }
  h2 { font-size: 1.3rem; }
  .harbor-slot dt, .harbor-slot dd { width: auto; display: block; }
  .harbor-slot dd { margin-bottom: 6px; }
}
