:root {
  --bg: #f7f7f7;
  --paper: #ffffff;
  --text: #111111;
  --muted: #656565;
  --line: #e6e6e6;
  --red: #c91414;
  --red-dark: #990f0f;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

body.has-install-panel {
  padding-bottom: 300px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.brand-small img {
  width: 54px;
  height: 54px;
}

.menu-toggle {
  position: relative;
  z-index: 120;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--text);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.main-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(84vw, 330px);
  min-height: 100vh;
  padding: 92px 22px 28px;
  background: #ffffff;
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.main-menu.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.main-menu a {
  position: relative;
  z-index: 32;
  display: block;
  padding: 15px 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  pointer-events: auto;
  touch-action: manipulation;
}

.main-menu a:hover,
.main-menu a:focus-visible {
  color: var(--red);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(0, 0, 0, 0.35);
}

.menu-backdrop.is-open {
  display: block;
}

main {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 0 18px 36px;
}

.hero {
  position: relative;
  padding: 34px 0 20px;
  text-align: center;
}

.hero-logo {
  width: min(42vw, 170px);
  height: min(42vw, 170px);
  object-fit: contain;
}

.eyebrow {
  margin: 8px 0 6px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.15rem, 7vw, 4.5rem);
  line-height: 1;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 700;
}

.section-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0 26px;
}

.section-button,
.page-actions a,
.page-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 18px;
  color: #ffffff;
  background: var(--text);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.section-button {
  position: relative;
  justify-content: space-between;
  min-height: 66px;
  font-size: 1.16rem;
}

.section-button::after {
  content: "›";
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.section-button:hover,
.section-button:focus-visible,
.page-actions a:hover,
.page-actions button:hover,
.page-actions a:focus-visible,
.page-actions button:focus-visible {
  background: var(--red-dark);
}

.install-panel {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: 14px;
  left: max(10px, env(safe-area-inset-left));
  z-index: 70;
  display: grid;
  gap: 14px;
  width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
  max-width: 720px;
  margin: 0 auto;
  padding: 14px;
  background: #ffffff;
  border: 2px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
}

.install-panel[hidden] {
  display: none;
}

.install-panel-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.install-panel-head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.install-panel h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.install-panel h3 {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.98rem;
  line-height: 1.15;
}

.install-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.install-panel-steps {
  display: grid;
  gap: 10px;
}

.install-panel-steps article {
  min-width: 0;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.install-action {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 2px 0 10px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--red);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.install-action:hover,
.install-action:focus-visible {
  background: var(--red-dark);
}

.install-action[hidden] {
  display: none;
}

.menu-page {
  padding-top: 20px;
}

.page-title {
  padding: 30px 0 18px;
  border-bottom: 4px solid var(--red);
}

.page-title h1 {
  margin-bottom: 0;
}

.product-list {
  display: grid;
  gap: 14px;
  padding: 22px 0 28px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.product-card h2 {
  margin-bottom: 4px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.product-card strong {
  color: var(--red);
  font-size: 1.16rem;
  white-space: nowrap;
}

.page-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.page-actions button {
  background: var(--red);
}

.footer {
  padding: 28px 18px 34px;
  color: #ffffff;
  background: #111111;
  text-align: center;
}

.footer-inner {
  width: min(100%, 1060px);
  margin: 0 auto;
}

.footer h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.footer p {
  margin: 0 0 8px;
  color: #e4e4e4;
  font-size: 0.98rem;
}

.footer a {
  color: #ffffff;
  font-weight: 800;
}

.footer-buttons {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.footer-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--red);
  border-radius: 8px;
}

.footer-buttons a:nth-child(2) {
  background: #d62976;
}

.footer-buttons a:nth-child(3) {
  background: #1877f2;
}

.creator {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer .rights {
  margin-bottom: 0;
  color: #bdbdbd;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  main {
    padding-inline: 28px;
  }

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

  body.has-install-panel {
    padding-bottom: 210px;
  }

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

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

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

@media (min-width: 900px) {
  .site-header {
    padding-inline: 28px;
  }

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

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

  .product-card {
    min-height: 112px;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  body.has-install-panel {
    padding-bottom: 0;
  }

  .install-panel {
    display: none;
  }
}
