/*
Theme Name: Moscow Pubs
Author: Moscow Pubs
Description: Городской гид по пабам, локальным барам, магазин-барам, событиям и трансляциям Москвы.
Version: 0.3.1
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: moscowpubs
*/

:root {
  --ink: #10181a;
  --ink-soft: #182427;
  --panel: #213034;
  --paper: #f5f1e8;
  --paper-soft: #e7e1d5;
  --muted: #aebdb9;
  --line: rgba(245, 241, 232, .14);
  --acid: #d7f06f;
  --orange: #ff704d;
  --sky: #8ccfda;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  background-image: radial-gradient(rgba(245,241,232,.12) .7px, transparent .7px);
  background-size: 8px 8px;
  content: "";
  inset: 0;
  opacity: .14;
  pointer-events: none;
  position: fixed;
  z-index: 20;
}
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
button, input, select { font: inherit; }
img { display: block; height: auto; max-width: 100%; }
.shell { margin-inline: auto; width: min(1180px, calc(100% - 32px)); }
.screen-reader-text, .skip-link { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.skip-link:focus { clip: auto; background: var(--paper); color: var(--ink); height: auto; left: 16px; padding: 10px 14px; top: 16px; width: auto; z-index: 100; }

.site-header { background: rgba(16,24,26,.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(16px); }
.admin-bar .site-header { top: 32px; }
.header-row { align-items: center; display: flex; min-height: 76px; }
.brand { align-items: flex-start; display: inline-flex; flex-direction: column; font-size: 17px; letter-spacing: .13em; line-height: .82; text-decoration: none; }
.brand span { color: var(--muted); font-size: 10px; font-weight: 800; }
.brand strong { color: var(--acid); font-size: 21px; font-weight: 900; }
.site-nav { background: var(--ink-soft); border: 1px solid var(--line); border-radius: 18px; display: none; left: 16px; padding: 8px; position: absolute; right: 16px; top: 68px; }
.site-nav.is-open { display: grid; }
.site-nav a { border-radius: 11px; font-size: 14px; font-weight: 700; padding: 12px 14px; text-decoration: none; }
.site-nav a:hover, .site-nav a.current { background: rgba(215,240,111,.1); color: var(--acid); }
.nav-toggle { background: transparent; border: 0; cursor: pointer; display: grid; gap: 4px; margin-left: auto; padding: 10px; }
.nav-toggle span { background: var(--paper); display: block; height: 2px; width: 23px; }
.header-cta { display: none; }

.hero { overflow: hidden; padding: 58px 0 38px; position: relative; }
.hero::after { background: var(--orange); border-radius: 50%; content: ""; filter: blur(80px); height: 240px; opacity: .18; position: absolute; right: -120px; top: 20px; width: 240px; }
.hero-grid { display: grid; gap: 34px; position: relative; z-index: 1; }
.eyebrow { align-items: center; color: var(--acid); display: flex; font-size: 12px; font-weight: 800; gap: 10px; letter-spacing: .16em; margin-bottom: 18px; text-transform: uppercase; }
.eyebrow::before { background: currentColor; content: ""; height: 2px; width: 32px; }
h1, h2, h3, p { margin-top: 0; }
h1, .display { font-size: clamp(42px, 10vw, 82px); font-weight: 900; letter-spacing: -.055em; line-height: .98; margin-bottom: 24px; }
.hero h1 em { color: var(--acid); font-style: normal; }
.lead { color: var(--muted); font-size: clamp(17px, 3vw, 21px); max-width: 650px; }
.hero-marks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-mark { border: 1px solid var(--line); border-radius: 999px; color: var(--paper-soft); font-size: 13px; padding: 8px 13px; }

.finder { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); padding: 22px; }
.finder-title { font-size: 13px; font-weight: 900; letter-spacing: .12em; margin-bottom: 18px; text-transform: uppercase; }
.finder-grid { display: grid; gap: 14px; }
.field label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.field select, .field input { appearance: none; background: #fff; border: 1px solid #d6d0c4; border-radius: 12px; color: var(--ink); min-height: 51px; padding: 0 14px; width: 100%; }
.button, .finder button { align-items: center; background: var(--acid); border: 0; border-radius: 12px; color: var(--ink); cursor: pointer; display: inline-flex; font-size: 14px; font-weight: 900; justify-content: center; min-height: 50px; padding: 0 20px; text-decoration: none; }
.button:hover, .finder button:hover { background: #e5fa8b; transform: translateY(-1px); }
.button.secondary { background: transparent; border: 1px solid var(--line); color: var(--paper); }
.button.secondary:hover { background: rgba(255,255,255,.06); }
.button.dark { background: var(--ink); color: var(--paper); }

.stat-strip { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; }
.stat { padding: 20px 10px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { color: var(--acid); display: block; font-size: 24px; line-height: 1; }
.stat span { color: var(--muted); font-size: 11px; }

.section { padding: 64px 0; }
.section.compact { padding-top: 32px; }
.section.light { background: var(--paper); color: var(--ink); }
.section-head { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(29px, 5vw, 48px); letter-spacing: -.04em; line-height: 1; margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 570px; }
.section.light .eyebrow { color: #435600; }
.light .section-head p { color: #687174; }
.text-link { color: var(--acid); font-size: 14px; font-weight: 800; white-space: nowrap; }
.light .text-link { color: #536700; }

.cards { display: grid; gap: 16px; }
.pub-card { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius); color: var(--paper); display: flex; flex-direction: column; min-height: 100%; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.pub-card[hidden] { display: none !important; }
.pub-card:hover { border-color: rgba(215,240,111,.38); transform: translateY(-3px); }
.place-art { align-items: flex-start; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--card-a, #33545c), var(--card-b, #172326)); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 20px; position: relative; text-decoration: none; }
.place-art::before { border: 1px solid rgba(255,255,255,.24); border-radius: 50%; content: ""; height: 170px; position: absolute; right: -55px; top: -70px; width: 170px; }
.place-art::after { background: repeating-linear-gradient(90deg, transparent 0 17px, rgba(255,255,255,.08) 18px 19px); bottom: 0; content: ""; height: 42%; left: 0; position: absolute; right: 0; }
.place-city { background: rgba(10,16,18,.42); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .08em; padding: 7px 11px; position: relative; text-transform: uppercase; z-index: 1; }
.place-location { display: flex; flex-direction: column; max-width: 92%; position: relative; z-index: 1; }
.place-location small { color: rgba(255,255,255,.78); font-size: 11px; font-weight: 750; letter-spacing: .08em; margin-bottom: 5px; text-transform: uppercase; }
.place-location strong { color: #fff; font-size: clamp(26px, 5vw, 39px); font-weight: 900; letter-spacing: -.045em; line-height: 1; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.kicker { color: var(--acid); font-size: 11px; font-weight: 900; letter-spacing: .12em; margin-bottom: 10px; text-transform: uppercase; }
.pub-card h2, .pub-card h3 { font-size: 24px; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 10px; }
.pub-card h2 a, .pub-card h3 a { color: #fffdf6; text-decoration: none; }
.pub-card .summary { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -3px 0 16px; }
.service-tags span { background: rgba(215,240,111,.09); border: 1px solid rgba(215,240,111,.2); border-radius: 999px; color: #e7f5aa; font-size: 10px; font-weight: 800; line-height: 1; padding: 7px 9px; }
.card-meta { border-top: 1px solid var(--line); display: grid; font-size: 13px; gap: 7px; margin-top: auto; padding-top: 16px; }
.card-meta span { align-items: flex-start; color: var(--paper-soft); display: flex; gap: 8px; }
.card-meta b { color: var(--acid); font-weight: 900; min-width: 18px; }
.card-actions { display: flex; gap: 9px; margin-top: 18px; }
.card-actions .button { flex: 1; min-height: 44px; padding: 0 12px; }
.pub-section-footer { align-items: stretch; display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.pub-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-link { align-items: center; background: #fff; border: 1px solid #c8c2b6; border-radius: 11px; color: var(--ink); display: inline-flex; font-size: 14px; font-weight: 850; height: 44px; justify-content: center; min-width: 44px; padding: 0 12px; text-decoration: none; }
a.page-link:hover { background: var(--paper-soft); border-color: #8b9288; }
.page-link.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.page-arrow { font-size: 20px; }
.button.catalog-link { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); min-height: 46px; }

.quick-links { display: grid; gap: 12px; }
.quick-link { align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; font-size: 17px; font-weight: 800; justify-content: space-between; padding: 20px; text-decoration: none; }
.quick-link span { color: var(--acid); font-size: 22px; }
.quick-link:hover { background: #283a3f; }

.listing-hero { background: var(--ink-soft); border-bottom: 1px solid var(--line); padding: 48px 0 34px; }
.listing-hero h1 { font-size: clamp(40px, 8vw, 68px); margin-bottom: 16px; }
.listing-hero p { color: var(--muted); font-size: 18px; max-width: 680px; }
.filter-bar { background: var(--paper); border-radius: 18px; color: var(--ink); display: grid; gap: 12px; margin: 28px 0 0; padding: 18px; }
.filter-bar .field label { font-size: 11px; }
.filter-bar > .button { align-self: end; }
.filter-summary { color: var(--muted); font-size: 14px; margin: 18px 0 24px; }
.no-results { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: none; padding: 28px; text-align: center; }
.no-results.is-visible { display: block; }

.agenda { display: grid; gap: 10px; }
.agenda-card { align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--paper); display: grid; gap: 16px; grid-template-columns: 74px 1fr; padding: 16px; text-decoration: none; }
.agenda-card:hover { border-color: rgba(215,240,111,.38); }
.date-tile { align-items: center; background: var(--acid); border-radius: 12px; color: var(--ink); display: flex; flex-direction: column; font-weight: 900; height: 68px; justify-content: center; line-height: 1; }
.date-tile strong { font-size: 28px; }
.date-tile span { font-size: 10px; letter-spacing: .1em; margin-top: 5px; text-transform: uppercase; }
.agenda-card h3 { font-size: 18px; line-height: 1.2; margin: 0 0 5px; }
.agenda-card p { color: var(--muted); font-size: 13px; margin: 0; }
.agenda-card .time { color: var(--acid); font-weight: 900; }

.single-hero { background: var(--ink-soft); border-bottom: 1px solid var(--line); padding: 32px 0 54px; }
.breadcrumbs { color: var(--muted); font-size: 13px; margin-bottom: 35px; }
.breadcrumbs a { text-decoration: none; }
.single-grid { display: grid; gap: 28px; }
.single-copy h1 { font-size: clamp(42px, 9vw, 76px); margin-bottom: 18px; }
.single-copy .lead { margin-bottom: 26px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: rgba(215,240,111,.1); border: 1px solid rgba(215,240,111,.22); border-radius: 999px; color: var(--acid); font-size: 12px; font-weight: 800; padding: 7px 11px; }
.contact-card { background: var(--paper); border-radius: var(--radius); color: var(--ink); padding: 24px; }
.contact-card dl { display: grid; gap: 18px; margin: 0; }
.contact-card dt { color: #677174; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-card dd { font-size: 16px; font-weight: 700; margin: 3px 0 0; }
.contact-actions { display: grid; gap: 10px; margin-top: 22px; }
.content-grid { display: grid; gap: 36px; }
.prose { color: var(--paper-soft); font-size: 18px; max-width: 760px; }
.prose h2 { color: var(--paper); font-size: 32px; letter-spacing: -.035em; margin-top: 40px; }
.fact-list { display: grid; gap: 1px; }
.fact { background: var(--panel); display: flex; gap: 16px; justify-content: space-between; padding: 15px 17px; }
.fact:first-child { border-radius: 14px 14px 0 0; }
.fact:last-child { border-radius: 0 0 14px 14px; }
.fact span { color: var(--muted); }
.fact strong { text-align: right; }
.verified { color: var(--muted); font-size: 12px; margin-top: 20px; }

.cta-panel { background: var(--acid); border-radius: var(--radius); color: var(--ink); display: grid; gap: 22px; padding: 30px; }
.cta-panel h2 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.045em; line-height: 1; margin: 0; }
.cta-panel p { margin: 10px 0 0; max-width: 600px; }
.cta-panel .button { background: var(--ink); color: var(--paper); justify-self: start; }
.empty-state { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; color: var(--paper); padding: 28px; }

.site-footer { background: #0a1012; border-top: 1px solid var(--line); padding: 52px 0 24px; }
.footer-grid { display: grid; gap: 34px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid p { color: var(--muted); font-size: 14px; max-width: 340px; }
.footer-grid h2 { font-size: 12px; letter-spacing: .1em; margin-bottom: 13px; text-transform: uppercase; }
.footer-grid > div > a:not(.brand) { color: var(--muted); display: block; font-size: 14px; margin: 8px 0; text-decoration: none; }
.footer-grid > div > a:hover { color: var(--acid); }
.footer-bottom { border-top: 1px solid var(--line); color: #7e8b88; display: flex; flex-direction: column; font-size: 11px; gap: 7px; margin-top: 34px; padding-top: 20px; }

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-section-footer { align-items: center; flex-direction: row; justify-content: space-between; }
  .button.catalog-link { width: auto; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar button { align-self: end; }
  .contact-actions { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  .shell { width: min(1180px, calc(100% - 64px)); }
  .site-nav { background: transparent; border: 0; display: flex; gap: 2px; margin-left: auto; padding: 0; position: static; }
  .nav-toggle { display: none; }
  .header-cta { background: var(--acid); border-radius: 10px; color: var(--ink); display: inline-flex; font-size: 13px; font-weight: 900; margin-left: 14px; padding: 11px 16px; text-decoration: none; }
  .hero { padding: 94px 0 62px; }
  .hero-grid { align-items: center; grid-template-columns: 1.25fr .75fr; }
  .finder { padding: 28px; }
  .stat { padding: 25px; }
  .stat strong { font-size: 32px; }
  .stat span { font-size: 13px; }
  .section { padding: 88px 0; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .listing-hero { padding: 72px 0 46px; }
  .single-grid { align-items: start; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr); }
  .content-grid { grid-template-columns: minmax(0, 1.5fr) minmax(290px, .5fr); }
  .cta-panel { align-items: center; grid-template-columns: 1fr auto; padding: 46px; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
