.pub {
  --pub-ink: #14110e;
  --pub-paper: #f4efe6;
  --pub-card: #fffdf8;
  --pub-amber: #c2410c;
  --pub-amber-2: #ea580c;
  --pub-teal: #0f766e;
  --pub-muted: #78716c;
  min-height: 100vh;
  background: var(--pub-paper);
  color: var(--pub-ink);
}
.pub a { color: inherit; }
.pub-wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.pub-nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(20, 17, 14, 0.88);
  color: #f5f0e8;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pub-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0;
}
.pub-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; min-width: 0; }
.pub-brand > div:last-child { min-width: 0; }
.pub-brand strong { display: block; font-size: 0.95rem; letter-spacing: -0.03em; }
.pub-brand small { display: block; color: #a8a29a; font-size: 0.7rem; }
.pub-links { display: flex; align-items: center; gap: 0.85rem; flex-wrap: nowrap; }
.pub-nav-tools { display: contents; }
.pub-links a { color: #e7e5e4; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.pub-links a:hover { color: #fdba74; }
.pub-nav .lang-switch { background: #292524; margin: 0; }
.pub-nav .btn { text-decoration: none; }

.pub-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.pub-hero-media {
  position: absolute; inset: 0;
}
.pub-hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pub-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,14,0.28) 0%, rgba(20,17,14,0.18) 35%, rgba(20,17,14,0.82) 100%),
    linear-gradient(90deg, rgba(20,17,14,0.55) 0%, rgba(20,17,14,0.12) 60%);
}
.pub-hero-copy {
  position: relative; z-index: 1;
  padding: 7.5rem 0 2.4rem;
}
.pub-kicker {
  display: inline-block; color: #fdba74; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.7rem;
}
.pub-hero h1 {
  margin: 0; font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.04; letter-spacing: -0.04em; max-width: 16ch;
  text-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.pub-hero h1 em { font-style: normal; color: #fdba74; }
.pub-lead {
  color: #e7e5e4; font-size: 1.05rem; line-height: 1.6; max-width: 38rem;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.pub-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.pub-hero .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #fff; }

.pub-routes-band {
  position: relative; z-index: 2;
  margin-top: -2.2rem;
  padding-bottom: 0.4rem;
}
.pub-routes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem;
}
@media (max-width: 1100px) {
  .pub-routes { grid-template-columns: repeat(2, 1fr); }
}
.pub-route {
  background: #fffdf8;
  border: 1px solid #e7e0d4;
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 16px 30px rgba(28,25,23,0.08);
  font-size: 0.88rem; font-weight: 600;
}
.pub-route span { display: block; color: var(--pub-amber); font-size: 0.72rem; margin-top: 0.25rem; }

.pub-gallery {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.7rem;
  padding: 1.6rem 0 0.4rem;
}
.pub-gallery figure {
  margin: 0; border-radius: 20px; overflow: hidden; position: relative;
  min-height: 210px;
}
.pub-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 210px; }
.pub-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.9rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(20,17,14,0.78));
  color: #fff; font-size: 0.86rem; font-weight: 600;
}
.pub-gallery figure:first-child { grid-row: span 2; min-height: 440px; }
.pub-gallery figure:first-child img { min-height: 440px; }
.pub-gallery-more {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
  padding: 0.7rem 0 0.2rem;
}
.pub-gallery-more figure {
  margin: 0; border-radius: 20px; overflow: hidden; position: relative; min-height: 200px;
}
.pub-gallery-more img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 200px; }
.pub-gallery-more figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.9rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(20,17,14,0.78));
  color: #fff; font-size: 0.86rem; font-weight: 600;
}

.pub-section { padding: 2.2rem 0 2.6rem; }
.pub-section h2 { margin: 0 0 0.4rem; font-size: 1.7rem; letter-spacing: -0.03em; }
.pub-sub { margin: 0 0 1.3rem; color: var(--pub-muted); max-width: 40rem; }

.pub-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.pub-service {
  background: var(--pub-card); border: 1px solid #e7e0d4; border-radius: 18px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
}
.pub-service img { width: 100%; height: 150px; object-fit: cover; display: block; }
.pub-service-body { padding: 1rem 1.05rem 1.15rem; }
.pub-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: #ffedd5; color: var(--pub-amber); font-weight: 800; margin-bottom: 0.65rem; font-size: 0.78rem;
}
.pub-service h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.pub-service p { margin: 0; color: var(--pub-muted); font-size: 0.9rem; line-height: 1.5; }

.pub-how {
  background: #14110e;
  color: #f5f0e8;
  padding: 2.6rem 0;
}
.pub-how .pub-sub { color: #a8a29a; }
.pub-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.pub-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 1.1rem;
}
.pub-step b { display: block; color: #fdba74; font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.pub-step h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.pub-step p { margin: 0; color: #a8a29a; font-size: 0.85rem; line-height: 1.45; }

.pub-cta-band { padding: 2.4rem 0 2.8rem; }
.pub-cta-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.4rem; align-items: center;
}
.pub-cta-photo { border-radius: 22px; overflow: hidden; min-height: 240px; }
.pub-cta-photo img { width: 100%; height: 280px; object-fit: cover; display: block; }
.pub-cta-inner .pub-sub { margin-bottom: 1.1rem; }
.pub-note { color: var(--pub-muted); font-size: 0.82rem; line-height: 1.45; }

body.pub-modal-open { overflow: hidden; }
.pub-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(20, 17, 14, 0.62);
  backdrop-filter: blur(6px);
}
.pub-modal[hidden] { display: none; }
.pub-modal-card {
  width: min(740px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: var(--pub-card);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(20, 17, 14, 0.32);
}
.pub-modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--pub-card);
  border-bottom: 1px solid #e7e0d4;
}
.pub-modal-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.03em; }
.pub-modal-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f5f0e8; color: var(--pub-ink); font-size: 1.35rem; line-height: 1;
  cursor: pointer;
}
.pub-modal-close:hover { background: #ffedd5; }
.pub-modal-body { padding: 1.1rem 1.2rem 1.4rem; }
.pub-modal-body .location-block { background: #fffaf3; }
.pub-modal-body .form-grid { margin-bottom: 0.4rem; }

.pub-status {
  min-height: 70vh; display: grid; place-items: center; padding: 3rem 1rem;
}
.pub-status-card {
  width: min(560px, 100%); background: var(--pub-card); border-radius: 22px;
  padding: 2rem 1.5rem; text-align: center; box-shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
}
.pub-status-card h1 { margin: 0.4rem 0; letter-spacing: -0.03em; }
.pub-status-card p { color: var(--pub-muted); line-height: 1.55; }

.pub-contact { padding-top: 0.4rem; }
.pub-write { padding-top: 2.4rem; padding-bottom: 3rem; }
.pub-write h1 { margin: 0 0 0.4rem; font-size: 2rem; letter-spacing: -0.03em; }
.pub-write-form {
  max-width: 720px;
  background: var(--pub-card);
  border: 1px solid #e7e0d4;
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.07);
}
.pub-write-card { text-align: left; margin-top: 1rem; }
.pub-write-card h1 { font-size: 1.7rem; }
.pub-contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.pub-contact-grid > div {
  background: var(--pub-card); border: 1px solid #e7e0d4; border-radius: 18px;
  padding: 1rem 1.05rem 1.1rem;
}
.pub-contact-grid span {
  display: block; color: var(--pub-amber); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem;
}
.pub-contact-grid strong, .pub-contact-grid a {
  display: block; color: var(--pub-ink); font-size: 1.02rem; font-weight: 700;
  text-decoration: none; line-height: 1.4;
}
.pub-contact-grid a:hover { color: var(--pub-amber); }

.pub-foot {
  background: #14110e; color: #d6d3d1; padding: 2rem 0 1.4rem; margin-top: 0;
}
.pub-foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pub-foot a { color: #fdba74; text-decoration: none; }
.pub-foot a:hover { color: #fff; }
.pub-foot-meta { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.35rem; }

@media (max-width: 900px) {
  .pub-hero { min-height: 72vh; }
  .pub-hero-copy { padding-top: 5.2rem; }
  .pub-routes, .pub-cta-inner, .pub-services, .pub-steps, .pub-gallery, .pub-gallery-more, .pub-contact-grid { grid-template-columns: 1fr; }
  .pub-gallery figure:first-child { grid-row: auto; min-height: 240px; }
  .pub-gallery figure:first-child img { min-height: 240px; }
  .pub-links a.pub-hide-sm { display: none; }
  .pub-nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand login" "tools tools";
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.55rem 0 0.6rem;
  }
  .pub-brand { grid-area: brand; gap: 0.55rem; }
  .pub-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
  .pub-brand strong, .pub-brand small {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pub-brand strong { font-size: 0.92rem; }
  .pub-links { display: contents; }
  .pub-nav-login { grid-area: login; justify-self: end; padding: 0.42rem 0.75rem; font-size: 0.8rem; white-space: nowrap; }
  .pub-nav-tools {
    grid-area: tools;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
  }
  .pub-nav-book { font-size: 0.82rem; white-space: nowrap; }
  .pub-nav .lang-switch { flex-shrink: 0; }
  .pub-nav .lang-switch button { padding: 0.36rem 0.48rem; font-size: 0.7rem; }
}
