:root {
  --wine: #a51f34;
  --wine-dark: #7f1427;
  --ink: #100b09;
  --cream: #f7f3ed;
  --muted: rgba(247, 243, 237, 0.72);
  --tap: 56px;
  --page-width: 620px;
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  background: #e8e1d8;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background: #e8e1d8;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.hero-shell {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: min(100%, var(--page-width));
  height: 100vh;
  height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--ink);
}

.hero-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(16, 11, 9, 0.03) 0%, rgba(16, 11, 9, 0.04) 32%, rgba(16, 11, 9, 0.82) 64%, #100b09 90%),
    linear-gradient(90deg, rgba(16, 11, 9, 0.12), transparent 36%, transparent 70%, rgba(16, 11, 9, 0.08));
}

.hero {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 17%;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-width));
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  padding:
    max(330px, 47dvh)
    max(18px, env(safe-area-inset-right))
    calc(34px + env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.content {
  width: min(100%, 520px);
  margin-inline: auto;
}

.heading {
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.72);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 12vw, 64px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.tagline {
  max-width: 460px;
  margin: 12px 0 0;
  color: rgba(247, 243, 237, 0.88);
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 560;
  line-height: 1.3;
}

.instagram-hint {
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  color: var(--cream);
  background: rgba(16, 11, 9, 0.78);
  backdrop-filter: blur(14px);
  font-size: 15px;
  line-height: 1.4;
}

.instagram-hint[hidden],
.help-panel[hidden] {
  display: none;
}

.services {
  display: grid;
  gap: 11px;
}

.service-link {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(247, 243, 237, 0.96);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.service-link:first-child {
  border-color: var(--wine);
  color: #fff;
  background: var(--wine);
}

.service-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.service-icon {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  object-fit: contain;
}

.service-arrow {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.68;
}

.service-link:active {
  transform: scale(0.985);
}

.service-link:focus-visible,
.help-toggle:focus-visible,
.copy-link:focus-visible,
#cookieAccept:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.help-toggle {
  width: 100%;
  min-height: var(--tap);
  margin-top: 10px;
  padding: 12px 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.help-panel {
  margin-top: 4px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: var(--cream);
  background: rgba(16, 11, 9, 0.9);
  backdrop-filter: blur(16px);
}

.help-panel ol {
  margin: 0;
  padding-left: 23px;
}

.help-panel li + li {
  margin-top: 9px;
}

.copy-link {
  width: 100%;
  min-height: var(--tap);
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  color: var(--cream);
  background: transparent;
  font-weight: 720;
  cursor: pointer;
}

.cookie-notice {
  position: fixed;
  z-index: 20;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  display: grid;
  width: min(calc(100% - 24px), 590px);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-inline: auto;
  padding: 13px 13px 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  visibility: hidden;
  opacity: 0;
  color: var(--cream);
  background: rgba(16, 11, 9, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.cookie-notice.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.cookie-notice p {
  margin: 0;
  color: rgba(247, 243, 237, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

#cookieAccept {
  min-height: var(--tap);
  padding: 10px 18px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--wine);
  font-size: 16px;
  font-weight: 760;
  cursor: pointer;
}

.cookie-visible .page {
  padding-bottom: calc(160px + env(safe-area-inset-bottom));
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
}

@media (max-width: 370px) {
  .page {
    padding-top: max(300px, 43dvh);
  }

  .service-link {
    min-height: 60px;
    border-radius: 19px;
    font-size: 18px;
  }

  .cookie-notice {
    grid-template-columns: 1fr;
  }

  #cookieAccept {
    width: 100%;
  }

  .cookie-visible .page {
    padding-bottom: calc(220px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 700px) {
  body {
    padding-block: 24px;
  }

  .hero-shell {
    top: 24px;
    bottom: 24px;
    height: calc(100dvh - 48px);
    border-radius: 42px;
    box-shadow: 0 24px 80px rgba(54, 38, 26, 0.24);
  }

  .page {
    min-height: calc(100dvh - 48px);
    padding-top: max(410px, 48dvh);
  }
}

@media (hover: hover) {
  .service-link:hover {
    transform: translateY(-2px);
  }

  .service-link:first-child:hover,
  #cookieAccept:hover {
    background: var(--wine-dark);
  }

  .help-toggle:hover {
    color: var(--cream);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
