﻿.landing-index,
.landing-index * {
  box-sizing: border-box;
}

.landing-index-trigger {
  position: fixed;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  z-index: 1100;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: #315b46;
  color: #ffffff;
  padding: 12px 15px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(32, 61, 49, 0.22);
  transform: translateY(-50%);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.landing-index-trigger:hover {
  background: #203d31;
  transform: translateY(calc(-50% - 2px));
}

.landing-index-trigger:focus-visible,
.landing-index-close:focus-visible,
.landing-index-nav a:focus-visible {
  outline: 3px solid #e5b36c;
  outline-offset: 3px;
}

.landing-index-trigger-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 1rem;
}

.landing-index-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(16, 28, 22, 0.54);
}

.landing-index-overlay[hidden] {
  display: none;
}

.landing-index-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2000;
  width: min(390px, calc(100vw - 28px));
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background: #fffdf8;
  color: #222923;
  box-shadow: -18px 0 40px rgba(32, 61, 49, 0.22);
  transform: translateX(102%);
  transition: transform 0.22s ease;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-index-drawer.is-open {
  transform: translateX(0);
}

.landing-index-drawer-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ddd8cd;
  background: #fffdf8;
  padding: 22px;
}

.landing-index-drawer-head p {
  margin: 0 0 6px;
  color: #c96845;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-index-drawer-head h2 {
  margin: 0;
  color: #203d31;
  font-size: 1.2rem;
  line-height: 1.2;
}

.landing-index-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #ddd8cd;
  border-radius: 999px;
  background: #f7f4ed;
  color: #203d31;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.landing-index-nav {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.landing-index-nav a {
  display: block;
  border: 1px solid #ddd8cd;
  border-radius: 8px;
  background: #ffffff;
  color: #203d31;
  padding: 14px 15px;
  font-weight: 850;
  text-decoration: none;
}

.landing-index-nav a:hover {
  border-color: rgba(49, 91, 70, 0.35);
  background: #e8f1e8;
}

body.landing-index-lock {
  overflow: hidden;
}

@media (max-width: 760px) {
  .landing-index-trigger {
    top: auto;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-width: 54px;
    min-height: 54px;
    padding: 12px 14px;
    transform: none;
  }

  .landing-index-trigger:hover {
    transform: translateY(-2px);
  }

  .landing-index-trigger-text {
    max-width: 94px;
    line-height: 1.05;
  }
}

@media (max-width: 420px) {
  .landing-index-trigger-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-index-trigger,
  .landing-index-drawer {
    transition-duration: 0.001ms !important;
  }
}