:root {
  --bg: #08080a;
  --bg-2: #101014;
  --panel: rgba(18, 18, 22, 0.82);
  --panel-solid: #141419;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f6f2ee;
  --muted: #a7a4a2;
  --red: #d51017;
  --red-2: #ff343d;
  --silver: #d9dde2;
  --ink: #050506;
  --green: #31d284;
  --radius: 8px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(213, 16, 23, 0.16), transparent 30%),
    linear-gradient(180deg, #070708 0%, #121216 48%, #08080a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  max-width: 100%;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 76px;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(213, 16, 23, 0.28));
}

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), #420508 58%, #111);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 40px rgba(213, 16, 23, 0.28);
}

.brand-mark strong,
.brand-mark small {
  display: block;
  overflow: hidden;
  max-width: 230px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark strong {
  font-size: 15px;
  text-transform: uppercase;
}

.brand-mark small {
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.topnav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #ddd9d6;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: white;
  background: rgba(213, 16, 23, 0.2);
}

.icon-link,
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
  white-space: nowrap;
}

.icon-link {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #ebe7e5;
  font-size: 14px;
}

.icon-link svg,
.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--red-2), var(--red) 48%, #8b070c);
  box-shadow: 0 16px 42px rgba(213, 16, 23, 0.34);
}

.button.ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: 132px clamp(18px, 5vw, 64px) 86px;
  overflow: hidden;
  align-items: end;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.94) 0%, rgba(7, 7, 9, 0.68) 45%, rgba(7, 7, 9, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.35), rgba(5, 5, 6, 0.95)),
    radial-gradient(circle at 24% 44%, rgba(213, 16, 23, 0.2), transparent 38%);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo {
  width: min(230px, 54vw);
  height: auto;
  margin: 12px 0 4px;
  object-fit: contain;
  filter: drop-shadow(0 16px 44px rgba(0, 0, 0, 0.45));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.93;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-subtitle {
  max-width: 650px;
  color: #dad6d3;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-meta {
  display: grid;
  max-width: 690px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-item,
.tariff-card,
.zone-card,
.product-card,
.cart-panel,
.booking-aside,
.admin-panel,
.admin-login,
.media-item,
.document-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028));
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 16px;
}

.stat-item strong {
  display: block;
  color: white;
  font-size: 28px;
  line-height: 1;
}

.stat-item span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  max-width: 710px;
  margin-bottom: 34px;
}

.booking-shell,
.rules-layout,
.shop-layout,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 9, 0.74);
}

.selected-tariff-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.selected-tariff-card span {
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-tariff-card strong {
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
}

.selected-tariff-card p {
  margin: 0;
}

.selected-tariff-card.has-tariff {
  border-color: rgba(255, 52, 61, 0.62);
  background: linear-gradient(135deg, rgba(213, 16, 23, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: 0 18px 46px rgba(213, 16, 23, 0.2);
}

label {
  display: grid;
  gap: 8px;
  color: #e7e2df;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 96px;
  padding: 13px;
  resize: vertical;
}

select option {
  color: #111;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 52, 61, 0.75);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(213, 16, 23, 0.18);
}

.wide {
  grid-column: 1 / -1;
}

.booking-aside {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(213, 16, 23, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(12, 12, 16, 0.8);
}

.feature-list,
.spec-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.feature-list li,
.spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ded9d5;
}

.feature-list li::before,
.spec-list li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 20px rgba(255, 52, 61, 0.8);
  content: "";
}

.tariff-grid,
.zone-grid,
.media-grid,
.product-grid {
  display: grid;
  gap: 16px;
}

.tariff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

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

.tariff-card,
.zone-card,
.product-card,
.document-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.tariff-card {
  min-height: 230px;
  cursor: pointer;
  outline: 0;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.tariff-card:hover,
.tariff-card:focus-visible {
  border-color: rgba(255, 52, 61, 0.44);
  background: linear-gradient(180deg, rgba(255, 52, 61, 0.12), rgba(255, 255, 255, 0.04));
  transform: translateY(-2px);
}

.tariff-card.is-selected {
  border-color: rgba(255, 52, 61, 0.9);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 52, 61, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(213, 16, 23, 0.2), rgba(255, 255, 255, 0.045));
  box-shadow: 0 24px 70px rgba(213, 16, 23, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.tariff-card .selected-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(213, 16, 23, 0.88);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tariff-card .selected-badge svg {
  width: 14px;
  height: 14px;
}

.tariff-card.is-selected .selected-badge {
  opacity: 1;
  transform: translateY(0);
}

.tariff-card::before,
.zone-card::before,
.product-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red-2), transparent);
  content: "";
}

.price {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--silver);
  font-weight: 900;
}

.pc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.pc-pill {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #efebe8;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}

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

.media-item {
  overflow: hidden;
  background: rgba(8, 8, 10, 0.72);
}

.media-item img,
.media-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-item h3 {
  margin: 0;
  padding: 16px;
  font-size: 16px;
}

.rules-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: rules;
}

.rules-list li {
  position: relative;
  min-height: 58px;
  padding: 18px 18px 18px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: #e8e4e1;
  line-height: 1.5;
  counter-increment: rules;
}

.rules-list li::before {
  position: absolute;
  top: 15px;
  left: 17px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  content: counter(rules);
  font-size: 13px;
  font-weight: 900;
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
}

.document-card svg {
  width: 22px;
  height: 22px;
  color: var(--red-2);
}

.shop-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  display: grid;
  gap: 14px;
  min-height: 230px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.product-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 52, 61, 0.4);
  border-radius: 999px;
  color: #ffd7d9;
  background: rgba(213, 16, 23, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 20px;
  background: rgba(8, 8, 10, 0.82);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h3 {
  margin: 0;
}

.cart-head span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 8px;
  min-height: 40px;
  color: var(--muted);
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #efeae6;
}

.cart-item button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.contact-section {
  align-items: center;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(380px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(12, 12, 16, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-color: rgba(255, 52, 61, 0.65);
}

.admin-body {
  background: #09090b;
}

.admin-main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0 80px;
}

.admin-login {
  width: min(520px, 100%);
  margin: 40px auto 0;
  padding: 26px;
}

.admin-login form {
  display: grid;
  gap: 14px;
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.is-hidden {
  display: none !important;
}

.admin-toolbar,
.panel-head,
.toolbar-actions,
.upload-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-toolbar {
  padding: 22px 0;
}

.admin-toolbar h1,
.admin-panel h2 {
  margin: 0;
}

.admin-panel {
  padding: 22px;
  background: rgba(15, 15, 19, 0.86);
}

.admin-grid,
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-item-head strong {
  overflow-wrap: anywhere;
}

.delete-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 52, 61, 0.34);
  border-radius: 6px;
  color: #ffd9db;
  background: rgba(213, 16, 23, 0.13);
}

.upload-line {
  justify-content: flex-start;
  margin-top: 16px;
}

.upload-line input {
  max-width: 420px;
  padding-top: 11px;
}

.booking-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.booking-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.booking-row small {
  display: block;
  color: var(--muted);
}

@media (max-width: 980px) {
  .topnav {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .booking-shell,
  .rules-layout,
  .shop-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .tariff-grid,
  .zone-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-panel {
    position: static;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .contact-section > *,
  .contact-actions {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 66px;
    gap: 10px;
    padding: 9px 14px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-mark strong,
  .brand-mark small {
    max-width: 146px;
  }

  .icon-link span {
    display: none;
  }

  .icon-link {
    width: 42px;
    padding: 0;
  }

  .hero {
    min-height: 780px;
    padding: 104px 18px 44px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-meta,
  .booking-form,
  .tariff-grid,
  .zone-grid,
  .media-grid,
  .product-grid,
  .admin-grid,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 68px 0;
  }

  .button {
    width: 100%;
  }

  .booking-row {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .panel-head,
  .toolbar-actions,
  .upload-line {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }
}
