/* ==========================================================================
   Network Poker — vanilla CSS, no framework
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --border: #e2e7ec;
  --text: #1b2430;
  --text-muted: #626f7a;
  --accent: #1f9d63;
  --accent-strong: #158552;
  --gold: #f0973d;
  --gold-strong: #ffab5c;
  --amber-text: #9c5714;
  --blue: #3a6ff0;
  --blue-deep: #2450c7;
  --purple: #8a3fd1;
  --violet: #a78bfa;
  --violet-deep: #8b5cf6;
  --violet-light: #bda4fb;
  --violet-hover: #9b7ef4;
  --danger: #d1483d;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 26px -16px rgba(23, 34, 48, 0.18);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 0 36px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.text-muted {
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #ffffff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--violet-light), var(--violet-hover));
}

.btn--secondary {
  background: var(--accent);
  color: #06170f;
}

.btn--secondary:hover {
  background: var(--accent-strong);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--violet);
  color: var(--violet-deep);
}

.btn--telegram {
  background: linear-gradient(135deg, #4dc0f0, #229ed9);
  color: #ffffff;
}

.btn--telegram:hover {
  background: linear-gradient(135deg, #5fcaf5, #2fabe8);
}

.btn--telegram img {
  width: 16px;
  height: 16px;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand__tag {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--border);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber-text);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--rooms {
  grid-template-columns: repeat(3, 1fr);
}

.grid--guides {
  grid-template-columns: repeat(3, 1fr);
}

.grid--why {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .grid--rooms,
  .grid--guides {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--why {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid--rooms,
  .grid--guides,
  .grid--why {
    grid-template-columns: 1fr;
  }
}

/* ---------- Room cards ---------- */
.room-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.room-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fbe7c6;
  color: #8a5a12;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.room-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.room-card__logo {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.room-card__name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.room-card__tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.room-card__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.room-card__highlights li {
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
  color: var(--text);
}

.room-card__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.room-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 18px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.82rem;
  font-weight: 600;
}

.room-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.room-card__actions .btn {
  flex: 1;
}

/* ---------- Stars ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  line-height: 1;
}

.stars__bg {
  color: #dde3e8;
}

.stars__fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

.stars__num {
  margin-left: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  vertical-align: middle;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-bar label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-bar select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* ---------- Guide cards ---------- */
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.guide-card__media {
  display: block;
  aspect-ratio: 400 / 220;
  overflow: hidden;
}

.guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.guide-card:hover .guide-card__media img {
  transform: scale(1.04);
}

.guide-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.guide-card__title {
  font-size: 1.05rem;
}

.guide-card__summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.link-arrow {
  color: var(--amber-text);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 4px;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Room hero (room detail pages) ---------- */
.room-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.room-hero__logo {
  height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
}

.room-hero__body {
  flex: 1;
  min-width: 220px;
}

.room-hero__name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.room-hero__name {
  font-size: 1.7rem;
  margin: 0;
}

.room-hero__tagline {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 640px;
}

.room-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
  max-width: 640px;
}

.room-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .room-hero__meta {
    grid-template-columns: 1fr;
  }
}

/* ---------- Article (guide detail pages) ---------- */
.article {
  max-width: 720px;
}

.article__hero {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.article h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}

.article h2:first-of-type {
  margin-top: 1.4em;
}

.article p {
  color: var(--text);
}

.article ul {
  list-style: none;
  margin: 0 0 1.3em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article ul li {
  padding-left: 22px;
  position: relative;
  color: var(--text);
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.callout {
  background: var(--surface-2);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 1.6em 0;
  font-size: 0.92rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.article-footer {
  margin-top: 2.5em;
  padding-top: 1.8em;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Why-choose-us ---------- */
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
}

.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(23, 34, 48, 0.35);
}

.why-card__icon img {
  width: 24px;
  height: 24px;
}

.why-card__icon--blue {
  background: linear-gradient(135deg, #5b8bfa, #2450c7);
}

.why-card__icon--green {
  background: linear-gradient(135deg, #34c281, #158552);
}

.why-card__icon--violet {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.why-card__icon--gold {
  background: linear-gradient(135deg, #f0b25a, #d97f1f);
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #3a6ff0, #8a3fd1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #ffffff;
}

.cta-band h2 {
  margin-bottom: 6px;
  color: #ffffff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.cta-band .btn--ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.cta-band .btn--telegram {
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
}

/* ---------- Contact ---------- */
.contact-room-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
}

@media (max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(23, 34, 48, 0.32);
}

.contact-card--telegram {
  background: linear-gradient(135deg, #4dc0f0, #229ed9);
}

.contact-card--facebook {
  background: linear-gradient(135deg, #3f8cf5, #1156c9);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
}

.contact-card--telegram .contact-card__icon img {
  filter: none;
}

.contact-card__title {
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-card__handle {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 8px;
}

.contact-card__desc {
  font-size: 0.88rem;
  opacity: 0.92;
  margin-bottom: 18px;
}

.contact-card__cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 9px 18px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text);
}

.footer-col a:hover {
  color: var(--amber-text);
}

.footer-social {
  gap: 12px !important;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-social-icon img {
  width: 15px;
  height: 15px;
}

.footer-social-icon--telegram {
  background: rgba(34, 158, 217, 0.14);
}

.footer-social-icon--facebook {
  background: rgba(24, 119, 242, 0.14);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  max-width: 760px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 18px;
  line-height: 1.6;
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 48px 0 30px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.page-header .eyebrow {
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--amber-text);
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px 18px;
    gap: 4px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .header-actions .btn {
    padding: 9px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 56px 0 44px;
  }

  .section {
    padding: 44px 0;
  }

  .cta-band {
    padding: 28px;
  }
}
