:root {
  --mint-50: #eefaf5;
  --mint-100: #dcf5ed;
  --mint-200: #c8eee3;
  --mint-300: #86d9bf;
  --mint-500: #4fc1a6;
  --mint-700: #2f7f70;
  --ink: #123f3a;
  --text: #284844;
  --muted: #66827d;
  --rose: #d783a3;
  --rose-soft: #f8e9ef;
  --line: rgba(18, 63, 58, 0.12);
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(37, 111, 99, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 18%, rgba(79, 193, 166, 0.14), transparent 24rem),
    radial-gradient(circle at 90% 8%, rgba(215, 131, 163, 0.12), transparent 22rem),
    linear-gradient(180deg, #f4fffb 0%, #e7f8f2 58%, #f8fffc 100%);
  color: var(--text);
}

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

.page {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark,
.logo-mark,
.icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--mint-500);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(79, 193, 166, 0.28);
}

.brand-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--mint-700);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(18, 63, 58, 0.08);
}

.nav-link.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.language-toggle {
  min-height: 40px;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 63, 58, 0.08);
  box-shadow: 0 10px 24px rgba(18, 63, 58, 0.06);
}

.language-button {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mint-700);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-button.active {
  background: var(--mint-500);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(79, 193, 166, 0.22);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: stretch;
  padding: 34px 0 18px;
}

.panel,
.menu-panel,
.document {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 63, 58, 0.08);
  box-shadow: var(--shadow);
}

.panel {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 580px;
}

.panel::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(79, 193, 166, 0.13);
}

.panel-content,
.panel-footer {
  position: relative;
  z-index: 1;
}

.pill {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--mint-500);
  color: var(--white);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(79, 193, 166, 0.22);
}

h1,
h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.38;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.menu-card {
  min-height: 136px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(18, 63, 58, 0.08);
  box-shadow: 0 14px 34px rgba(18, 63, 58, 0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(18, 63, 58, 0.13);
}

.menu-card strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.menu-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 750;
}

.menu-card .icon {
  display: grid;
  place-items: center;
  margin-top: 0;
}

.menu-card .icon svg {
  display: block;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: var(--mint-100);
  color: var(--mint-700);
}

.icon.rose {
  background: var(--rose-soft);
  color: var(--rose);
}

.menu-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.side-content {
  display: grid;
  gap: 14px;
}

.stat {
  border-radius: 20px;
  border: 1px solid rgba(18, 63, 58, 0.08);
  padding: 16px;
  background: #fbfffd;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.stat strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.features {
  border-radius: 20px;
  border: 1px solid rgba(18, 63, 58, 0.08);
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 63, 58, 0.08);
}

.features-title {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.features ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.features li {
  position: relative;
  min-height: 28px;
  padding-left: 38px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint-100);
  border: 1px solid rgba(79, 193, 166, 0.35);
}

.features li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 12px;
  border: solid var(--mint-700);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.button {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid rgba(18, 63, 58, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(18, 63, 58, 0.08);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(18, 63, 58, 0.18);
}

.footer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding-top: 18px;
}

.document {
  width: min(880px, 100%);
  margin: 34px auto 18px;
  padding: clamp(24px, 5vw, 54px);
}

.document h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.document .lead {
  font-size: 18px;
}

.document-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.document-language {
  display: none;
}

body[data-language="en"] .document-language[data-document-language="en"],
body[data-language="ru"] .document-language[data-document-language="ru"] {
  display: block;
}

.document-language > .document-section:first-child h2 {
  display: none;
}

.document-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.12;
}

.document-section h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
}

.document-section p,
.document-section li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.document-section a {
  color: var(--mint-700);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.document-section ul {
  padding-left: 22px;
}

.document-note {
  margin: 30px 0 0;
  border-radius: 18px;
  background: var(--mint-100);
  border: 1px solid rgba(18, 63, 58, 0.08);
  padding: 16px;
  color: var(--mint-700);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.document-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.placeholder {
  border-radius: 18px;
  background: var(--mint-100);
  border: 1px solid rgba(18, 63, 58, 0.08);
  padding: 16px;
  color: var(--mint-700);
  font-weight: 800;
}

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

  .panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding: 16px 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav-link {
    padding: 0 11px;
    font-size: 13px;
  }

  .hero {
    padding-top: 22px;
  }

  .panel,
  .menu-panel,
  .document {
    border-radius: 24px;
  }

  .panel,
  .menu-panel {
    padding: 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 118px;
  }
}
