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

:root {
  --ink: #15171a;
  --muted: #626970;
  --line: #dde1e4;
  --paper: #ffffff;
  --soft: #f6f7f7;
  --surface: #ffffff;
  --coral: #ff6557;
  --teal: #17657b;
}

html[data-theme="dark"] {
  --ink: #f5f7f8;
  --muted: #abb2b9;
  --line: #333a41;
  --paper: #111417;
  --soft: #20252a;
  --surface: #191d21;
  --coral: #ff7467;
  --teal: #43a8bd;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 23, 26, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(21, 23, 26, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--paper);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Sora, "DM Sans", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.hero {
  min-height: 500px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-block: 84px 92px;
}

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

h1,
h2 {
  font-family: Sora, "DM Sans", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: 68px;
  line-height: 0.98;
}

.hero p {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 20px;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  padding: 0 18px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--coral);
  outline: none;
}

.products {
  padding-block: 72px 96px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.1;
}

.section-heading p {
  margin-bottom: 2px;
  color: var(--muted);
}

.product-list {
  border-top: 1px solid var(--line);
}

.product-row {
  min-height: 126px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 28px 18px;
  text-decoration: none;
  transition: background 160ms ease;
}

.product-row:hover,
.product-row:focus-visible {
  background: var(--soft);
  outline: none;
}

.product-row:hover .product-arrow,
.product-row:focus-visible .product-arrow {
  transform: translateX(3px);
}

.product-row img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.product-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.product-copy strong {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 23px;
  line-height: 1.2;
}

.product-copy > span {
  color: var(--muted);
}

.product-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.product-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.product-arrow img {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 0;
  transform: rotate(-90deg);
  filter: none;
}

html[data-theme="dark"] .product-arrow img {
  filter: invert(1);
}

.lilcoach-row {
  border-left: 4px solid var(--coral);
}

.browse-row {
  border-left: 4px solid var(--teal);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #c8cbd0;
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner a {
  color: #fff;
}

html[lang="ru"] h1 {
  max-width: 960px;
  font-size: 62px;
}

html[lang="de"] h1,
html[lang="fr"] h1 {
  max-width: 980px;
  font-size: 58px;
}

html[lang="es"] h1 {
  max-width: 940px;
  font-size: 62px;
}

html[lang="zh-CN"] h1 {
  font-size: 64px;
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-nav a:first-child {
    display: none;
  }

  .header-nav a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-block: 72px 78px;
  }

  h1 {
    font-size: 48px;
  }

  html[lang="ru"] h1,
  html[lang="es"] h1,
  html[lang="de"] h1,
  html[lang="fr"] h1,
  html[lang="zh-CN"] h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .products {
    padding-block: 56px 72px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
  }

  .product-row {
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    gap: 16px;
    padding: 24px 12px;
  }

  .product-row img {
    width: 54px;
    height: 54px;
  }

  .product-meta {
    display: none;
  }

  .product-arrow {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .footer-inner {
    display: grid;
    padding-block: 28px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  html[lang="ru"] h1,
  html[lang="es"] h1,
  html[lang="de"] h1,
  html[lang="fr"] h1,
  html[lang="zh-CN"] h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .product-row {
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    gap: 12px;
  }

  .product-row img {
    width: 48px;
    height: 48px;
  }

  .product-arrow {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}
