/* fitnes-kovachnitsa - Modern Web Guidance Rework */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Onest:wght@400;500;600;700&family=Russo+One&display=swap');

:root {
  --steel-950: #0d0f12;
  --steel-900: #131518;
  --steel-850: #1a1d22;
  --steel-800: #24282e;
  --steel-700: #333842;
  --steel-600: #4a515e;
  --line: rgba(255, 255, 255, 0.1);
  --line-hot: rgba(255, 106, 26, 0.4);
  
  --hot: #ff6a1a;
  --hot-glow: rgba(255, 106, 26, 0.35);
  --hot-light: #ffa94d;
  --hot-dark: #b84105;
  
  --ink: #f8fafc;
  --muted: #a3acb9;
  --muted-dark: #6e7787;
  
  --chalk: #f4f1ea;
  --chalk-dim: rgba(244, 241, 234, 0.65);
  --board-bg: #151a17;
  --board-border: #4d3319;
  
  --font-stamp: 'Russo One', Impact, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, sans-serif;
  --font-chalk: 'Caveat', cursive;
  
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: var(--steel-900);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}

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

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--hot);
  color: #000;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-stamp);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--hot);
  color: #000;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px var(--hot-glow);
}

.btn:hover {
  background: var(--hot-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 26, 0.5);
}

.btn:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn--outline:hover {
  border-color: var(--hot);
  background: rgba(255, 106, 26, 0.1);
  color: var(--hot-light);
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 21, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-stamp);
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.logo svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.top nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
  padding: 6px 0;
  position: relative;
}

.top nav a:hover {
  color: var(--hot-light);
}

.top nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hot);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.top nav a:hover::after {
  transform: scaleX(1);
}

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

.drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
}
.drawer-toggle:hover {
  border-color: var(--hot);
  color: var(--hot);
}

@media (min-width: 840px) {
  .top nav { display: flex; }
  .drawer-toggle { display: none; }
}

/* Mobile Drawer (Native Dialog) */
dialog.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 85vw);
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 24px 20px;
  background: var(--steel-950);
  border: none;
  border-right: 1px solid var(--steel-700);
  color: var(--ink);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

dialog.drawer[open] {
  transform: translateX(0);
}

@starting-style {
  dialog.drawer[open] {
    transform: translateX(-100%);
  }
}

dialog.drawer::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

dialog.drawer[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog.drawer[open]::backdrop {
    opacity: 0;
  }
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer nav a {
  font-family: var(--font-stamp);
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer nav a:hover {
  color: var(--hot-light);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--steel-950);
}

.hero__img {
  position: relative;
  height: min(65svh, 560px);
}

.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hero__img::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 65%;
  background: linear-gradient(to top, var(--steel-900) 5%, rgba(19, 21, 24, 0.8) 40%, transparent 100%);
}

.hero__text {
  position: relative;
  margin-top: -120px;
  padding-bottom: 56px;
  z-index: 2;
}

.hero__text::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: -40px;
  height: 320px;
  background: radial-gradient(circle at 40% 50%, rgba(255, 106, 26, 0.35), rgba(255, 106, 26, 0.08) 60%, transparent);
  filter: blur(20px);
  animation: forgePulse 4s ease-in-out infinite alternate;
}

@keyframes forgePulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__text::before {
    animation: none;
    opacity: 0.8;
  }
}

.hero h1 {
  font-family: var(--font-stamp);
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 16ch;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero h1 .hot {
  color: var(--hot);
  text-shadow: 0 0 24px rgba(255, 106, 26, 0.4);
}

.hero__lead {
  margin-top: 16px;
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 44ch;
  color: #e2e8f0;
}

.hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 2px solid var(--hot);
  background: rgba(255, 106, 26, 0.1);
  color: var(--hot-light);
  font-family: var(--font-stamp);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: rotate(-1.5deg);
  border-radius: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 840px) {
  .hero__img {
    height: min(76svh, 680px);
  }
  .hero__img::after {
    inset: 0;
    height: 100%;
    background: linear-gradient(to top, var(--steel-900) 8%, rgba(19, 21, 24, 0.6) 45%, rgba(19, 21, 24, 0.2) 80%),
                linear-gradient(90deg, rgba(19, 21, 24, 0.85) 0%, rgba(19, 21, 24, 0.4) 50%, transparent 80%);
  }
  .hero__text {
    margin-top: -300px;
    padding-bottom: 72px;
  }
}

/* Sections Common */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-stamp);
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--hot), var(--hot-light));
  border-radius: 3px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
}

/* Pricing / Weight Plates */
.pricing-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .pricing-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

.plates-group + .plates-group {
  margin-top: 36px;
}

.group-title {
  font-family: var(--font-stamp);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hot-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--steel-850);
  padding: 16px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plate:hover {
  transform: translateY(-4px);
  border-color: var(--hot);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px var(--hot-glow);
}

.plate__disc {
  position: relative;
  width: 100px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, var(--steel-900) 0 14%, #0a0b0d 14% 17%, #2a2e35 17% 32%, #1e2227 32% 64%, #353b43 64% 68%, #1c1f24 68% 91%, #454c56 91% 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease;
}

.plate:hover .plate__disc {
  transform: scale(1.05);
}

.plate__disc b {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--steel-800);
  font-family: var(--font-stamp);
  font-size: 18px;
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.plate--hot {
  border-color: var(--hot-light);
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.12), var(--steel-850));
}

.plate--hot .plate__disc {
  outline: 3px solid var(--hot);
  outline-offset: -1px;
}

.plate--hot .plate__disc b {
  background: var(--hot);
  color: #000;
}

.plate__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}

.plate__name small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.plate__bgn {
  font-size: 12px;
  color: var(--hot-light);
  font-weight: 600;
}

.pricing-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pricing-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  filter: saturate(0.9);
}

/* Chalkboard Schedule */
.chalkboard-container {
  background: var(--board-bg);
  border: 12px solid var(--board-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.6);
  background-image: 
    radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(255, 255, 255, 0.04), transparent 50%);
  position: relative;
}

/* Chalk dust bottom ledge */
.chalkboard-container::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -22px;
  height: 10px;
  background: #36220e;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Tablist for Schedule */
.chalk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px dashed rgba(244, 241, 234, 0.2);
  padding-bottom: 14px;
}

.chalk-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--chalk-dim);
  font-family: var(--font-chalk);
  font-size: 22px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chalk-tab:hover {
  color: var(--chalk);
  border-color: rgba(244, 241, 234, 0.3);
}

.chalk-tab[aria-selected="true"] {
  color: var(--hot-light);
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--hot);
  font-weight: 700;
}

.schedule-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chalk-column h3 {
  font-family: var(--font-chalk);
  font-size: 28px;
  color: var(--hot-light);
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(244, 241, 234, 0.2);
  padding-bottom: 6px;
}

.chalk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chalk-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-chalk);
  font-size: 24px;
  color: var(--chalk);
  line-height: 1.2;
}

.chalk-item time {
  font-weight: 700;
  color: #ffdda6;
  min-width: 60px;
}

.chalk-item .class-name {
  flex: 1;
}

.chalk-item small {
  font-size: 18px;
  color: var(--chalk-dim);
}

.class-book-btn {
  background: transparent;
  border: 1px dashed rgba(244, 241, 234, 0.3);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.class-book-btn:hover {
  background: var(--hot);
  color: #000;
  border-color: var(--hot);
}

/* Gallery Strip */
.gym-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}

@media (min-width: 760px) {
  .gym-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gym-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  filter: saturate(0.9);
}

/* Visit / Location */
.visit-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 800px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.plaque {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--steel-850), var(--steel-800));
  border: 1px solid var(--steel-700);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

/* Rivets */
.plaque::before, .plaque::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a6270;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6);
}
.plaque::before { left: 14px; }
.plaque::after { right: 14px; }

.plaque address {
  font-family: var(--font-stamp);
  font-size: 26px;
  font-style: normal;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
}

.plaque-links {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.plaque-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--steel-900);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.plaque-link:hover {
  border-color: var(--hot);
  color: var(--hot-light);
}

.plaque-link.tel {
  font-family: var(--font-stamp);
  font-size: 20px;
  color: var(--hot-light);
}

.hours-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.hours-table dt {
  color: var(--muted);
}
.hours-table dd {
  font-weight: 600;
  text-align: right;
}

.visit-photo img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Booking Section */
.book-layout {
  display: grid;
  gap: 36px;
}

@media (min-width: 800px) {
  .book-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.form {
  display: grid;
  gap: 20px;
  background: var(--steel-850);
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.field-input, .field-select {
  min-height: 50px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--steel-900);
  border: 1px solid var(--steel-600);
  border-radius: 4px;
  color: var(--ink);
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus, .field-select:focus {
  outline: none;
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.3);
}

/* Modern Web Guidance: deferred invalid feedback */
.field-input:user-invalid, .field-select:user-invalid {
  border-color: #ef4444;
}

.field-error {
  display: none;
  font-size: 13px;
  color: #fca5a5;
  font-weight: 500;
}

.field-input:user-invalid ~ .field-error {
  display: block;
}

/* Native Modal Dialog (Receipt/Pass) */
dialog.modal {
  margin: auto;
  padding: 0;
  background: transparent;
  border: none;
  max-width: min(520px, calc(100vw - 32px));
  border-radius: 8px;
  overflow: visible;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overscroll-behavior: contain;
}

dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-card {
  background: var(--steel-950);
  border: 2px solid var(--hot);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover {
  color: var(--ink);
  border-color: var(--hot);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 106, 26, 0.15);
  color: var(--hot-light);
  border-radius: 4px;
  font-family: var(--font-stamp);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-family: var(--font-stamp);
  font-size: 26px;
  color: var(--ink);
}

.ticket-box {
  background: var(--steel-900);
  border: 1px dashed var(--hot);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 24px;
  text-align: center;
}

.ticket-code {
  font-family: var(--font-stamp);
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--hot-light);
}

.ticket-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* Floating Action Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 35;
  background: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  transition: transform 0.25s ease;
}

.bottom-bar.hidden {
  transform: translateY(110%);
}

@media (min-width: 840px) {
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
}

/* Footer */
footer {
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
  background: var(--steel-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* closed drawer must not be reachable by keyboard or screen readers */
dialog.drawer:not([open]) { visibility: hidden; }

/* phones: keep the header button on one line */
@media (max-width: 419px) { .top .btn, header .btn { white-space: nowrap; } }

/* phones: the sign-up grid must not grow wider than the screen */
@media (max-width: 799px) { .book-layout { grid-template-columns: minmax(0, 1fr); } }
.book-layout > * { min-width: 0; }
.form { grid-template-columns: minmax(0, 1fr); }
.field { min-width: 0; }
.field-input, .field-select { min-width: 0; max-width: 100%; }
@media (max-width: 379px) { .logo { font-size: 18px; } .top .wrap { gap: 8px; } }
@media (max-width: 379px) { .top-actions .btn { padding-inline: 12px; } }
