@import url(VKSansDisplay.css);

:root {
  --ink: #0a090c;
  --surface: #121016;
  --elevated: #1a1620;
  --border: rgba(255, 245, 232, 0.08);
  --border-strong: rgba(255, 245, 232, 0.14);
  --text: #f4f0e8;
  --text-dim: #9c94a8;
  --accent: #fe3240;
  --amber: #fbbf24;
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --font-system: "Segoe UI", system-ui, sans-serif;
  --font-body: "VK Sans Display", "Segoe UI", system-ui, sans-serif;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --nav-height: 4.25rem;
  --button-bg: #eee;
}

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

button {
  border: none;
  cursor: pointer;
  background: none;
  font: inherit;
  color: inherit;
}

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background-color: var(--ink);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}

::selection {
  background: var(--accent);
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(10, 9, 12, 0.9);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  margin: 32px;
}

nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
}

nav .logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

nav .logo p {
  font-family: "VK Sans Display", var(--font-system);
  font-size: 2rem;
  font-weight: bold;
  font-style: normal;
  letter-spacing: -0.05em;
  color: var(--accent);
  display: inline-flex;
  align-items: baseline;
}

nav .logo span {
  color: white;
}

nav .logo::after {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: super;
  margin-left: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.75rem;
}

nav a:not(.logo) {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

nav a:not(.logo):hover {
  color: var(--text);
}

nav a:not(.logo).nav-active {
  color: var(--text);
}

nav a:not(.logo).nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  border-radius: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: calc(var(--nav-height) + 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  max-width: 1180px;
  margin: 0 auto;
  gap: 2.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(167, 139, 250, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 139, 250, 0.07) 1px, transparent 1px);
  background-size: clamp(2.25rem, 5vw, 3.25rem) clamp(2.25rem, 5vw, 3.25rem);
  background-position: center top;
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black min(78%, 70vh),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black min(78%, 70vh),
    transparent 100%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.hero-copy {
  max-width: 36rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  display: inline;
  background: linear-gradient(120deg, var(--accent), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 28rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-search-block {
  align-self: center;
  width: 100%;
  max-width: 28rem;
}

@media (min-width: 900px) {
  .hero-search-block {
    justify-self: end;
    max-width: 26rem;
  }
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .hero-search {
    flex-direction: row;
    align-items: stretch;
  }
}

.hero-search input {
  flex: 1;
  padding: 1rem 1.15rem;
  background: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.hero-search input::placeholder {
  color: var(--text-dim);
  opacity: 0.85;
}

.hero-search input:hover {
  border-color: rgba(255, 245, 232, 0.2);
}

.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.hero-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--button-bg);
  color: var(--ink);
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.12s ease,
    border-color 0.12s ease;

  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.5),
    0 0 14px 0 rgba(255, 255, 255, 0.19),
    inset 0 -1px 0.4px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0.4px 0 #fff;
}

.btn:hover {
  filter: brightness(1.04) saturate(1.06);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(4px);
  filter: brightness(0.96);
  border-top-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 0 #5c1530,
    0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ——— Section / quick links ——— */
section {
  padding: 4rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.quick-link-card {
  --card-accent: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 1.75rem 1.65rem;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.quick-link-card:nth-child(2) {
  --card-accent: var(--accent);
}

.quick-link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--card-accent);
  opacity: 0.85;
  transition: width 0.25s ease;
}

.quick-link-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.quick-link-card:hover::before {
  width: 6px;
}

.quick-link-card .ql-num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--card-accent);
  margin-bottom: 0.75rem;
}

.quick-link-card h3 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.quick-link-card p {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ——— Page header ——— */
.page-header {
  padding: calc(var(--nav-height) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  max-width: 42rem;
}

.page-header h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.page-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 32rem;
}

/* ——— List ——— */
.list-section {
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
  max-width: 820px;
  margin: 0 auto;
}

.cafe-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cafe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cafe-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--accent);
}

.cafe-card .thumb {
  width: 108px;
  height: 76px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--elevated);
  position: relative;
  overflow: hidden;
}

.cafe-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cafe-card:nth-child(1) .thumb {
  background: linear-gradient(135deg, #2d1f3d 0%, #ff5c8a55 100%);
}
.cafe-card:nth-child(2) .thumb {
  background: linear-gradient(135deg, #1a2744 0%, #a78bfa55 100%);
}
.cafe-card:nth-child(3) .thumb {
  background: linear-gradient(135deg, #2b2618 0%, #fbbf2455 100%);
}
.cafe-card:nth-child(4) .thumb {
  background: linear-gradient(135deg, #1f2d28 0%, #5eead455 100%);
}

.cafe-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.03) 4px,
    rgba(255, 255, 255, 0.03) 5px
  );
}

.cafe-card .info {
  flex: 1;
  min-width: 0;
}

.cafe-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.cafe-card .meta {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-family: var(--font-body);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.cafe-card .status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status.open {
  background: rgba(94, 234, 212, 0.12);
  color: #5eead4;
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.status.busy {
  background: rgba(251, 113, 133, 0.12);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.order-section {
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label,
.form-group .group-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

#pc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 480px) {
  #pc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pc-slot {
  padding: 0.95rem 0.5rem;
  background: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.pc-slot:hover {
  border-color: var(--accent);
}

.pc-slot.selected {
  border-color: var(--accent);
  background: var(--accent);
}

.order-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-strong);
}

.order-summary h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.order-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.order-summary .row span:last-child {
  font-family: var(--font-body);
  color: var(--text);
}

.order-summary .total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.order-summary .total span:last-child {
  font-family: var(--font-body);
  font-size: 1.25rem;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  max-width: 36rem;
  line-height: 1.6;
}
