:root {
  --bg: #f4faf6;
  --bg-deep: #e7f3ec;
  --paper: #ffffff;
  --ink: #1c1c28;
  --muted: #5d6b64;
  --line: #d7e6dc;
  --accent: #e43d3d;
  --accent-dark: #c42828;
  --shadow: 0 12px 32px rgba(28, 28, 40, 0.08);
  --radius: 20px;
  --page: 1120px;
  --space: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 100% -10%, #ffe8e8 0%, transparent 55%),
    radial-gradient(700px 360px at -10% 0%, #e5f6ec 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 8px max(var(--space), env(safe-area-inset-right)) 8px max(var(--space), env(safe-area-inset-left));
  background: rgba(244, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 230, 220, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.top > .brand { min-width: 0; }

.brand img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand__name span { color: var(--accent); }

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  border-radius: 0;
}

.nav a.is-active {
  color: var(--ink);
  box-shadow: none;
  border-bottom: 2px solid var(--accent);
}

.langs { position: relative; flex: 0 0 auto; }

.langs summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.langs summary::-webkit-details-marker { display: none; }

.langs summary::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: var(--ink);
  margin-top: 3px;
}

.langs__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  display: grid;
  min-width: 88px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.langs__menu a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.langs__menu a.is-on {
  background: var(--ink);
  color: #fff;
}

@media (hover: hover) {
  .langs__menu a:hover {
    background: var(--bg-deep);
  }

  .langs__menu a.is-on:hover {
    background: var(--accent);
    color: #fff;
  }
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--page), calc(100% - var(--space) * 2));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}

.page-head h1, .hero h1, .article h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lead, .back {
  margin: 8px 0 0;
  color: var(--muted);
}

.back { font-size: 0.92rem; }

.back a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

.chips {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.section {
  margin-bottom: 42px;
  scroll-margin-top: 96px;
}

.section h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.section h2 a { text-decoration: none; }

.section .lead { margin-bottom: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.card__media, .hero__media, .news__media {
  background:
    linear-gradient(145deg, #f8d7d7, #e7f5ec 55%, #fff);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex: none;
  width: 100%;
}

.card__media img, .hero__media img, .news__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__media img {
  position: absolute;
  inset: 0;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 10px 10px 12px;
}

.card__name, .news__title {
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.card__short {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price, .price {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 700;
}

.card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-size: 0.95rem;
}

.card__price small, .price small, .meta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  display: block;
}

.hero__media {
  width: 100%;
  margin-bottom: 22px;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.price {
  margin: 14px 0;
  font-size: 1.8rem;
}

.story {
  margin: 0;
  font-size: 1.05rem;
  max-width: 62ch;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 0;
}

.facts div:last-child { grid-column: 1 / -1; }

.facts div {
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.news__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  width: 100%;
}

.news__media img {
  position: absolute;
  inset: 0;
}

.news__body {
  padding: 16px;
}

.news__title {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.news__preview {
  margin: 0 0 12px;
  color: var(--muted);
}

.article {
  max-width: 760px;
}

.article__figure {
  margin: 18px 0 8px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-deep);
}

.article__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose img, .prose iframe, .prose video {
  max-width: 100%;
  height: auto;
}

.prose p, .prose ul, .prose ol { margin: 0 0 1em; }

.empty {
  margin: 12px 0 28px;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

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

.footer__inner {
  width: min(var(--page), calc(100% - var(--space) * 2));
  margin: 0 auto;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  display: grid;
  gap: 22px;
}

.footer h2 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer p, .footer a { margin: 0 0 4px; }

.footer a { color: var(--accent-dark); }

.footer .brand { color: var(--ink); }

.footer a[href] {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

@media (min-width: 640px) {
  :root { --space: 24px; }
  .brand { font-size: 1.35rem; }
  .grid { gap: 16px; }
  .card__body { padding: 14px 14px 16px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts div:last-child { grid-column: auto; }
  .news { grid-template-columns: 220px 1fr; }
  .news__media { aspect-ratio: auto; min-height: 160px; height: 100%; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

@media (max-width: 719px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 6px;
  }

  .nav {
    position: static;
    transform: none;
    justify-self: center;
    gap: 2px;
  }

  .top > .brand { justify-self: start; }

  .langs { justify-self: end; }
}

@media (max-width: 480px) {
  .top { padding-left: 10px; padding-right: 10px; }

  .top > .brand { font-size: 0.95rem; gap: 6px; }

  .top > .brand img { width: 24px; height: 24px; }

  .nav a { font-size: 0.86rem; padding: 0 6px; }
}

@media (max-width: 360px) {
  .top { padding-left: 8px; padding-right: 8px; column-gap: 2px; }

  .top > .brand { font-size: 0.8rem; gap: 4px; }

  .top > .brand img { width: 20px; height: 20px; }

  .nav a { font-size: 0.78rem; padding: 0 4px; }

  .langs summary { padding: 0 8px; gap: 4px; }
}

@media (min-width: 720px) {
  .nav { gap: 8px; }
  .nav a { padding: 0 12px; }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .hero__media { aspect-ratio: 2 / 1; }
}

@media (hover: hover) {
  .card, .news, .chip { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .card:hover, .news:hover { transform: translateY(-3px); }
}
