:root {
  --ink: #102018;
  --ink-soft: #24362c;
  --mist: #eef3ef;
  --paper: #f7faf7;
  --line: rgba(16, 32, 24, 0.12);
  --accent: #2f6b4f;
  --accent-deep: #1d4a36;
  --warm: #c4a574;
  --max: 1140px;
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 79, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(196, 165, 116, 0.18), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 42%, #e8efe9 100%);
  line-height: 1.55;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.4rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem 1.15rem;
  font-size: 0.95rem;
}

/* Language switch — default EN visible; RU when html[lang=ru] */
html:not([lang="ru"]) [data-lang="ru"] {
  display: none !important;
}
html[lang="ru"] [data-lang="en"] {
  display: none !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.25rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #f4f8f5;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-deep);
  text-decoration: underline;
}

.hero {
  min-height: min(62vh, 560px);
  display: grid;
  align-content: center;
  padding: 3.5rem 0 2.5rem;
  animation: rise 0.8s ease both;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(16, 32, 24, 0.55);
}

.product-section {
  padding: 1rem 0 4.5rem;
  animation: rise 0.85s ease 0.12s both;
}

.section-head {
  margin-bottom: 2rem;
}

.product-section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.15rem;
  width: 100%;
}

.product-card {
  --accent: var(--accent-deep);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 32, 24, 0.1);
}

.product-card[data-accent="cardio"] { --accent: #8b3a3a; }
.product-card[data-accent="female"] { --accent: #9a4d6e; }
.product-card[data-accent="male"] { --accent: #2f5f8a; }
.product-card[data-accent="joints"] { --accent: #6b5b3a; }
.product-card[data-accent="vision"] { --accent: #3a6b8b; }
.product-card[data-accent="sugar"] { --accent: #7a5a2f; }
.product-card[data-accent="liver"] { --accent: #3f6b45; }
.product-card[data-accent="pancreas"] { --accent: #5a4a7a; }
.product-card[data-accent="stomach"] { --accent: #4a6b3a; }
.product-card[data-accent="botanical"] { --accent: #2f6b4f; }

.product-card__media {
  height: 190px;
  display: grid;
  place-items: center;
  background: #f3f6f3;
  border-bottom: 1px solid var(--line);
}

.product-card[data-accent="cardio"] .product-card__media { background: #f7eeee; }
.product-card[data-accent="female"] .product-card__media { background: #f8eef2; }
.product-card[data-accent="male"] .product-card__media { background: #eef3f8; }
.product-card[data-accent="joints"] .product-card__media { background: #f5f2ea; }
.product-card[data-accent="vision"] .product-card__media { background: #eef4f8; }
.product-card[data-accent="sugar"] .product-card__media { background: #f6f1e8; }
.product-card[data-accent="liver"] .product-card__media { background: #eef5ef; }
.product-card[data-accent="pancreas"] .product-card__media { background: #f2eff6; }
.product-card[data-accent="stomach"] .product-card__media { background: #eef5eb; }
.product-card[data-accent="botanical"] .product-card__media { background: #eef5f1; }

.product-card__media img {
  height: 150px;
  width: auto;
  max-width: 86%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.12));
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__media img {
  transform: translateY(-4px) scale(1.03);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.45rem 1.45rem 1.65rem;
}

.product-card__tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.product-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.product-card__desc {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.product-card__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-card__list li {
  position: relative;
  display: block;
  padding-left: 1.55rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.4;
}

.product-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-card__list svg {
  display: none;
}

.product-triggers {
  display: none;
}

.btn-accent {
  margin-top: auto;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}

.btn-accent:hover {
  filter: brightness(1.08);
  color: #fff;
}

.products-disclaimer {
  margin: 2.4rem auto 0;
  max-width: 48rem;
  text-align: center;
  color: rgba(16, 32, 24, 0.58);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 1.25rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f4f8f5;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.page {
  padding: 2.5rem 0 4rem;
  animation: rise 0.65s ease both;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.7rem;
}

.page p,
.page li {
  color: var(--ink-soft);
  max-width: 62ch;
}

.page ul {
  padding-left: 1.2rem;
}

.meta-line {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: rgba(16, 32, 24, 0.62);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.92rem;
}

.footer-inner > span {
  max-width: 36rem;
  line-height: 1.45;
  color: rgba(16, 32, 24, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    padding-top: 2.2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}
