@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/roboto-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/roboto-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --surface: #ffffff;
  --canvas: #f7f8fa;
  --surface-muted: #eef1f5;
  --ink: #192638;
  --ink-secondary: #526176;
  --line: #d7dee7;
  --brand: #b94308;
  --brand-soft: #fff0e6;
  --on-brand: #ffffff;
  --positive: #246b3e;
  --positive-soft: #e9f5ec;
  --negative: #b42332;

  --footer-background: #192638;
  --footer-text: #d1dceb;
  font-family:
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-top: 56px;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
img {
  display: block;
  max-width: 100%;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
:target {
  scroll-margin-top: 72px;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 110;
  padding: 12px 20px;
  border-radius: 12px;
  background: white;
  min-height: 48px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}

.landing-page {
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  overflow: visible;
}
.site-container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

/* HERO */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--brand-soft) 0%,
    var(--surface) 100%
  );
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}
.hero-content {
  min-width: 0;
  max-width: 620px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--brand-soft);
  color: var(--brand);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 20px 0;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0 0 32px 0;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-btn {
  font-size: 15px;
  font-weight: 600;
  height: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  line-height: normal;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}
.stat-desc {
  font-size: 13px;
  color: var(--ink-secondary);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.1);
}
.hero-visual {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgb(15 23 42 / 5%);
  margin: 0;
}
.card-img-placeholder {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.hero-lunch-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--on-brand);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.hero-card-info .hero-card-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.hero-card-info p {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.dish-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  background: var(--surface-muted);
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

/* SECTIONS */
.section {
  padding: 60px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px 0;
}
.section-subtitle {
  font-size: 16px;
  color: var(--ink-secondary);
  margin: 0;
}

/* CAROUSEL */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ink-secondary);
  flex-shrink: 0;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}
.carousel-nav-btn.is-unavailable {
  visibility: hidden;
  pointer-events: none;
}
.carousel-track {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 12px;
  scroll-padding-inline: 4px;
  align-items: stretch;
  scroll-snap-type: x mandatory;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-card-wrap {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  display: flex;
  scroll-snap-align: start;
}
.menu-loading {
  display: grid;
  flex: 1 0 100%;
  min-height: 220px;
  place-items: center;
  color: var(--ink-secondary);
  text-align: center;
}
.menu-error {
  gap: 12px;
  align-content: center;
}
.menu-error p {
  margin: 0;
}
.menu-error .button {
  justify-self: center;
}
.day-card {
  position: relative;
  margin: 0;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(25, 38, 56, 0.04);
  border: 1px solid var(--line);
}
.day-card-cover {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 104px;
  flex: 0 0 104px;
  overflow: hidden;
  background: linear-gradient(135deg, #ead6c7, #c7d0d5 54%, #738875);
}
.day-card-cover::after {
  position: absolute;
  inset: 28% 0 0;
  background: linear-gradient(180deg, transparent, rgb(15 24 35 / 68%));
  content: '';
  pointer-events: none;
}
.day-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 2px solid var(--surface);
}
.day-card-cover.single-image img {
  grid-column: 1 / -1;
}
.day-card-cover img:last-of-type {
  border-right: 0;
}
.day-card-header {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 9px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 0;
  color: var(--on-brand);
}
.day-date {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--on-brand);
}
.day-number {
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.day-month {
  color: #ffe0cd;
  font-size: 12px;
  font-weight: 600;
}
.day-weekday {
  font-size: 12px;
  color: var(--on-brand);
  text-transform: none;
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%);
}
.day-card-body {
  flex: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
}
.complex-mini-block {
  display: block;
  min-width: 0;
}
.complex-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.c-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dish-list {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
  list-style: none;
}
.dish-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}
.dish-list li > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dish-weight {
  flex: 0 0 auto;
  color: var(--ink-secondary);
  font-size: 12px;
  white-space: nowrap;
}
.day-card-body > .snack-pill {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 9px;
  font-size: 12px;
}
.snack-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--positive-soft);
  color: var(--positive);
  padding: 8px 10px;
  margin-top: auto;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.snack-pill .icon {
  font-size: 16px;
}
.snack-pill span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.empty-day-state {
  display: grid;
  grid-column: 1 / -1;
  flex: 1;
  min-height: 72px;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 24px 8px 32px;
  color: var(--ink-secondary);
}
.empty-day-state .icon {
  display: block;
  width: 32px;
  height: 32px;
  font-size: 32px;
  margin: 0 auto 8px;
}
.empty-day-state p {
  margin: 0;
  font-size: 12px;
}

/* ADVANTAGES */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.adv-card {
  margin: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(25, 38, 56, 0.04);
  border: 1px solid var(--line);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.adv-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--brand);
}
.adv-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.adv-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}
@media (hover: hover) and (pointer: fine) {
  .adv-card:hover {
    transform: translateY(-2px);
    border-color: #c7d1dd;
    box-shadow: 0 8px 18px rgba(25, 38, 56, 0.07);
  }
}

/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.contact-card {
  margin: 0;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  padding: 10px;
}
.contact-icon {
  font-size: 32px;
  color: var(--brand);
  margin-bottom: 8px;
}
.contact-card h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.contact-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* FORM */
.form-card {
  margin: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  padding: 24px;
}
.form-header {
  text-align: center;
  margin-bottom: 28px;
}
.form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}
.form-header p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.field-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.form-native-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  outline: revert;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.form-native-input:focus {
  border-color: var(--brand);
  background: var(--surface);
}
.form-native-input.error-border {
  border-color: var(--negative);
}
.field-err {
  display: block;
  min-block-size: 2.8em;
  font-size: 12px;
  line-height: 1.4;
  color: var(--negative);
  overflow-wrap: anywhere;
}
.field-err[hidden] {
  display: block;
  visibility: hidden;
}
.form-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.submit-btn {
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
}
.toast-container {
  position: fixed;
  z-index: 150;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(
    420px,
    calc(
      100% - max(16px, env(safe-area-inset-left)) -
        max(16px, env(safe-area-inset-right))
    )
  );
  pointer-events: none;
}
.toast-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgb(25 38 56 / 18%);
  color: var(--ink);
  pointer-events: auto;
  animation: toast-enter 240ms ease-out both;
}
.toast-card.is-hiding {
  animation: toast-exit 180ms ease-in both;
}
.toast-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--positive-soft);
  color: var(--positive);
  font-size: 18px;
  font-weight: 700;
}
.toast-copy {
  display: grid;
  flex: 1;
  gap: 4px;
  padding-top: 1px;
  font-size: 14px;
  line-height: 1.4;
}
.toast-copy strong {
  font-size: 15px;
}
.toast-copy span {
  color: var(--ink-secondary);
}
.toast-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  margin: -5px -5px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover {
  background: var(--surface-muted);
  color: var(--ink);
}
@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-exit {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* FOOTER */
.landing-footer {
  background: var(--footer-background);
  color: var(--line);
  padding: 60px 0 24px;
}
.footer-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--on-brand);
  margin-bottom: 12px;
}
.footer-logo .icon {
  color: var(--brand);
}
.footer-desc {
  font-size: 14px;
  color: var(--footer-text);
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}
.footer-col h3 {
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-brand);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links .button {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s ease;
  width: 100%;
  margin: 0;
  text-transform: none;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: var(--footer-text);
}

@media (max-width: 767px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .hero-content {
    width: 100%;
    justify-self: center;
  }
  .hero-visual {
    max-width: 400px;
    justify-self: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* HTML controls and responsive layout. */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  vertical-align: middle;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16.5px;
  margin: 4px 2px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}
.button .icon {
  font-size: 18px;
}
.button-outline {
  color: var(--brand);
  background: transparent;
  border: 2px solid var(--brand);
}
.button-clear {
  background: transparent;
  color: var(--ink-secondary);
}
.button:where(:not(:disabled)):active {
  filter: brightness(0.9);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.card {
  display: block;
  overflow: hidden;
  font-size: 14px;
}
.card-content {
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.hero-card-info {
  padding: 20px;
}
.hero-actions .button {
  flex-shrink: 0;
}
.carousel-nav-btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-secondary);
}
.carousel-nav-btn .icon {
  font-size: 28px;
}
.demo-note {
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.5;
  margin: 20px 0 0;
  text-align: center;
}
.form-native-input::placeholder {
  color: var(--ink-secondary);
  opacity: 1;
}
.form-native-input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.footer-links .button {
  display: flex;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0;
  line-height: normal;
  font-weight: 400;
  border-radius: 0;
}
.landing-footer :focus-visible {
  outline-color: white;
}
.footer-bottom p {
  margin: 0;
}
.clean-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 56px;
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 4px 2px;
  color: var(--ink);
  border-radius: 8px;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
}
.brand-badge img {
  width: 32px;
  height: 32px;
}
.brand-text {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-accent {
  color: var(--brand);
}
.public-nav-links {
  display: flex;
  gap: 16px;
}
.public-nav-links .nav-link {
  min-height: 48px;
  margin: 0;
  padding: 0 8px;
  color: var(--ink-secondary);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}
.public-nav-links .nav-link.is-active,
.public-nav-links .nav-link[aria-current='location'] {
  color: var(--brand);
  background: transparent;
  font-weight: 700;
}
.login-action-btn {
  min-width: 104px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}
.login-action-btn .icon {
  margin: 0;
}
@media (hover: hover) and (pointer: fine) {
  .button:where(:not(:disabled)):hover {
    background: #a33b07;
  }
  .button-outline:hover,
  .button-clear:hover {
    background: var(--brand-soft);
    color: var(--brand);
  }
  .public-nav-links .nav-link:hover:not(.is-active) {
    background: transparent;
    color: var(--brand);
  }
  .public-nav-links .nav-link.is-active:hover {
    background: transparent;
  }
  .footer-links .button:hover {
    background: transparent;
    color: white;
    text-decoration: underline;
  }
  .carousel-nav-btn:hover {
    background: var(--canvas);
    color: var(--brand);
    border-color: var(--brand);
  }
}
@media (max-width: 1100px) {
  .carousel-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .carousel-card-wrap {
    flex-basis: calc((100% - 16px) / 2);
  }
  .carousel-nav-btn {
    display: none;
  }
  .advantages-grid,
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .advantages-grid,
  .contacts-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .carousel-card-wrap {
    flex-basis: min(344px, calc(100% - 24px));
  }
  .form-header h2 {
    font-size: 23px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
}
@media (max-width: 600px) {
  .clean-header {
    height: 104px;
    min-height: 56px;
    padding: 0;
    flex-wrap: wrap;
    gap: 0 12px;
  }
  body {
    padding-top: 104px;
  }
  :target {
    scroll-margin-top: 120px;
  }
  .header-container {
    flex-wrap: wrap;
    align-content: space-between;
    padding-block: 4px;
  }
  .header-left {
    order: 1;
  }
  .header-right {
    order: 2;
  }
  .public-nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .public-nav-links .nav-link {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 13px;
  }
  .login-action-btn {
    min-height: 48px;
    min-width: 100px;
  }
  .hero-section,
  .section {
    padding: 40px 0;
  }
  .hero-stats {
    gap: 12px;
  }
  .stat-item {
    flex: 1;
    min-width: 0;
  }
  .stat-num {
    font-size: 18px;
  }
  .stat-desc {
    font-size: 12px;
  }
  .stat-divider {
    flex-shrink: 0;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .section-title {
    font-size: 28px;
  }
  .day-card-cover {
    height: 96px;
    flex-basis: 96px;
  }

  .form-card {
    padding: 8px;
  }
  .footer-container {
    gap: 30px;
  }
}
@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button {
    justify-content: center;
  }
}
@media (min-width: 540px) and (max-width: 600px) and (max-height: 500px) {
  .clean-header {
    height: 56px;
  }
  body {
    padding-top: 56px;
  }
  :target {
    scroll-margin-top: 72px;
  }
  .header-container {
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .header-left,
  .header-right,
  .public-nav-links {
    order: 0;
  }
  .public-nav-links {
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .toast-card,
  .toast-card.is-hiding {
    animation: none !important;
  }
}
