:root {
  --accent: #e32821;
  --black: #000000;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.container {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-logo {
  height: 35px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-call,
.btn-order {
  text-decoration: none;
  padding: 0.68rem 0.9rem;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.btn-call {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}

.btn-order {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-call:hover,
.btn-order:hover {
  filter: brightness(0.92);
}

.hero {
  padding: 3rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
}

.hero p {
  margin: 1rem 0 0;
  max-width: 46ch;
}

.btn-text {
  display: inline-block;
  margin-top: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
}

.hero-image {
  margin: 0;
  overflow: hidden;
}

.hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu-section {
  padding: 2rem 0 1rem;
}

.schedule-section {
  padding: 2rem 0 1rem;
}

.schedule-grid {
  margin-top: 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0 0 0.2rem;
}

.schedule-grid::before {
  content: "";
  position: absolute;
  left: clamp(0.8rem, 3vw, 1.6rem);
  right: clamp(0.8rem, 3vw, 1.6rem);
  top: 1.9rem;
  height: 2px;
  background: var(--black);
}

.schedule-point {
  position: relative;
  flex: 1 1 0;
  text-align: center;
  padding: 2.45rem 0.2rem 0;
}

.schedule-truck {
  position: absolute;
  left: 50%;
  top: 1.25rem;
  transform: translate(-50%, -100%);
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.schedule-point.active .schedule-truck {
  opacity: 1;
}

.schedule-dot {
  position: absolute;
  top: 1.9rem;
  left: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.schedule-point.active .schedule-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.schedule-day {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.2;
}

.schedule-time {
  margin: 0.18rem 0 0;
  font-weight: 600;
  font-size: 0.74rem;
  line-height: 1.2;
}

.schedule-location {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.2;
}

.schedule-location a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.07em;
}

.schedule-point.active .schedule-day {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
}

.section-title p {
  margin: 0.45rem 0 0;
}

.menu-tabs {
  margin-top: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--black);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.menu-tab {
  appearance: none;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  padding: 0.36rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
}

.menu-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.pizza-grid {
  margin-top: 0.5rem;
}

.pizza-row {
  display: grid;
  grid-template-columns: 56px minmax(110px, 0.95fr) 2fr auto;
  align-items: center;
  gap: 0.72rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--black);
}

.pizza-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--black);
}

.pizza-name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.pizza-description {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.25;
}

.pizza-prices {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.pizza-prices strong {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--black);
  padding: 1rem 0 1.4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.footer-note {
  margin: 0;
  flex: 1 1 420px;
  max-width: 72ch;
}

.footer-note a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

.footer-top {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .pizza-row {
    grid-template-columns: 48px 1fr auto;
    gap: 0.5rem 0.62rem;
    align-items: start;
    padding: 0.56rem 0;
  }

  .pizza-thumb {
    width: 48px;
    height: 48px;
    grid-row: 1 / span 2;
  }

  .pizza-name {
    font-size: 0.9rem;
  }

  .pizza-description {
    grid-column: 2;
    font-size: 0.8rem;
  }

  .pizza-prices {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: center;
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .header-inner {
    min-height: 66px;
  }
}

@media (max-width: 700px) {
  .schedule-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.3rem 0 0.2rem;
  }

  .schedule-grid::before {
    left: 3.4rem;
    right: auto;
    top: 1rem;
    bottom: 0.8rem;
    width: 2px;
    height: auto;
    transform: none;
  }

  .schedule-point {
    text-align: left;
    padding: 2rem 0.65rem 0 4.7rem;
    min-height: 3.3rem;
  }

  .schedule-truck {
    left: 3.4rem;
    top: 1.2rem;
    width: 3rem;
    height: 3rem;
    transform: translate(calc(-100% - 0.7rem), -50%);
  }

  .schedule-dot {
    left: 3.4rem;
    top: 1.2rem;
    transform: translate(-50%, -50%);
  }

  .schedule-day {
    margin: 0;
  }

  .schedule-time,
  .schedule-location {
    margin-top: 0.15rem;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(1100px, calc(100% - 1.4rem));
  }

  .pizza-row {
    grid-template-columns: 40px 1fr;
    gap: 0.34rem 0.55rem;
    padding: 0.5rem 0;
  }

  .menu-tab {
    font-size: 0.72rem;
    padding: 0.32rem 0.56rem;
  }

  .pizza-thumb {
    width: 40px;
    height: 40px;
    grid-row: 1 / span 2;
  }

  .pizza-name {
    font-size: 0.84rem;
  }

  .pizza-description {
    font-size: 0.76rem;
  }

  .pizza-prices {
    grid-column: 2;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    font-size: 0.7rem;
  }

  .brand {
    max-width: 140px;
  }

  .brand-logo {
    height: 34px;
  }

  .btn-order {
    font-size: 0.81rem;
    padding: 0.58rem 0.66rem;
  }

  .btn-call {
    font-size: 0.81rem;
    padding: 0.58rem 0.66rem;
  }
}
