@font-face {
  font-family: "TT Travels";
  src: url("assets/tt-travels-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TT Travels";
  src: url("assets/tt-travels-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #0e5a67;
  --green-dark: #093e46;
  --lime: #9dd800;
  --red: #e30613;
  --paper: #fafbf7;
  --ink: #183f40;
  --muted: #5e7371;
  --line: #dce4db;
  --soft: #eef2e8;
  --max: 1320px;

  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

/* Базовые стили */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "TT Travels", Arial, sans-serif;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

p {
  line-height: 1.65;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

.section {
  padding-block: 110px;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 15px;
  background: white;
}

.skip-link:focus {
  top: 10px;
}

/* Шапка */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 116px;
}

.brand-pair {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.magnit-logo {
  width: 158px;
  height: auto;
}

.kubgau-logo {
  width: 170px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 42px;
  background: #ccd6ca;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}

.main-nav a {
  position: relative;
  padding: 14px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s;
}

.main-nav a:hover::after,
.main-nav a[aria-current]::after {
  width: 100%;
}

.main-nav .icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

.menu-toggle {
  display: none;
}

/* Первый экран */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 650px;
  border-radius: 26px;
  background: var(--green-dark);
  color: white;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 39, 38, 0.91) 0%,
      rgba(4, 43, 35, 0.64) 45%,
      rgba(6, 37, 27, 0.03) 100%
    ),
    linear-gradient(
      0deg,
      rgba(0, 28, 24, 0.4),
      transparent 40%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 650px;
  padding: 44px 52px 30px;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 65px;
}

.project-logo {
  width: 167px;
}

.season-label {
  max-width: 150px;
  padding-left: 20px;
  border-left: 1px solid #ffffff65;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px #a6d70022;
}

.hero h1 {
  margin-left: -4px;
  font-size: clamp(52px, 7.1vw, 100px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--lime);
}

.hero-lead {
  max-width: 450px;
  margin-top: 26px;
  margin-bottom: 26px;
  color: #edf2e8;
  font-size: 18px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 54px;
  padding: 16px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition:
    background 0.2s,
    transform 0.2s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-lime {
  background: var(--lime);
  color: #163c35;
}

.button-lime:hover {
  background: #b6e329;
}

.hero-bottom {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #ffffff35;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Плашка даты, если используется в разметке */

.date-stamp {
  position: absolute;
  right: 44px;
  bottom: 120px;
  z-index: 2;
  width: 220px;
  padding: 22px 21px 17px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  transform: rotate(5deg);
  transition: transform 0.2s;
}

.date-stamp:hover {
  transform: rotate(0);
}

.stamp-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stamp-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.12em;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.stamp-separator {
  flex: 0 0 auto;
  font-size: 0.5em;
  letter-spacing: 0;
}

.stamp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #ffffff65;
  font-size: 16px;
}

.stamp-bottom .icon {
  width: 18px;
  height: 18px;
}

/* Основные показатели */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.fact {
  padding-inline: 38px;
  border-right: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 10px;
}

.fact:last-child {
  padding-right: 0;
  border: 0;
}

.fact-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fact-value {
  color: var(--green);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.fact-value > span {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Заголовки разделов */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.eyebrow > span:first-child:not(:only-child) {
  margin-right: 3px;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

h2 {
  font-size: clamp(36px, 4.1vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

/* О проекте */

.about {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 100px;
}

.about-copy {
  max-width: 610px;
}

.about-copy h2 {
  margin-bottom: 29px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.about-copy > p.intro {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.55;
}

.about-note {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.note-tulip {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.about-note p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.about-note strong {
  color: var(--ink);
  font-weight: 400;
}

/* Фотография тюльпанов */

.flower-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 540px;
  border-radius: 16px;
  background: var(--green);
  color: white;
}

.about-tulips-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.flower-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(4, 45, 42, 0.96),
      rgba(4, 45, 42, 0.05) 75%
    ),
    linear-gradient(
      180deg,
      rgba(4, 45, 42, 0.35),
      transparent 30%
    );
}

.flower-top {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.flower-word {
  position: absolute;
  top: 85px;
  left: 23px;
  z-index: 0;
  color: #ffffff29;
  font-size: 83px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.flower-pattern {
  position: absolute;
  right: -45px;
  bottom: -20px;
  width: 410px;
  opacity: 0.1;
}

.flower-cutout {
  position: absolute;
  right: -38px;
  bottom: -20px;
  z-index: 1;
  width: 320px;
  max-width: none;
  height: 470px;
  object-fit: contain;
  transform: rotate(7deg);
}

.flower-caption {
  position: absolute;
  left: 28px;
  bottom: 34px;
  z-index: 2;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.flower-panel .flower-caption {
  font-size: 29px;
  line-height: 1.23;
}

.flower-caption strong {
  color: var(--lime);
}

/* История проекта */

.history-section {
  padding-bottom: 100px;
}

.history-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 36px;
}

.history-intro h2 {
  font-size: 46px;
}

.history-intro > p {
  max-width: 570px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.history-years {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-years li {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.history-year {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.history-years h3 {
  margin: 23px 0 20px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.history-count {
  color: var(--green);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.history-years li > p:not(.history-count) {
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.history-season {
  display: block;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.history-years .history-current {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.history-current .history-year {
  border-color: #ffffff50;
  color: var(--lime);
}

.history-current .history-count {
  color: var(--lime);
}

.history-years .history-current > p:not(.history-count),
.history-current .history-season {
  color: #e0ece3;
}

.history-current .history-season {
  border-color: #ffffff30;
}

.history-bottom {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  padding: 30px 32px;
  border-radius: 13px;
  background: var(--soft);
}

.history-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("assets/pattern-fragment.png")
    right bottom / 300px auto no-repeat;
  opacity: 0.1;
}

.history-sources {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.history-sources a {
  margin-left: 5px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.history-visitors {
  display: flex;
  align-items: center;
  gap: 28px;
}

.history-visitors strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.history-visitors p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Фотоархив */

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 34px;
}

.archive-heading > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.archive-photo {
  min-width: 0;
}

.archive-photo a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.archive-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
}

.archive-photo a:hover img {
  transform: scale(1.025);
}

.archive-photo figcaption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.archive-photo-year {
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
}

/* Схема высадки */

.plan-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 48px;
  padding: 48px;
  border-radius: 16px;
  background: var(--soft);
}

.plan-copy h2 {
  margin-bottom: 22px;
  font-size: 42px;
}

.plan-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.plan-copy .plan-description {
  margin-top: 19px;
}

.plan-copy .plan-hint {
  margin-top: 24px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.plan-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.plan-tag > span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.plan-figure {
  justify-self: center;
  width: 100%;
  max-width: none;
  padding: 18px 18px 15px;
  border: 1px solid #d8dfd1;
  background: var(--paper);
  box-shadow: 0 8px 20px #16493608;
  transform: none;
}

.plan-open {
  position: relative;
  display: block;
}

.plan-figure img {
  width: 100%;
  max-height: 550px;
  border-radius: 1px;
  object-fit: contain;
}

.plan-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 12px #102e2330;
  transition: background 0.2s;
}

.plan-open:hover .plan-expand {
  background: var(--lime);
}

.plan-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.plan-text-open {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Просмотр схемы крупным планом */

.plan-dialog {
  width: calc(100% - 32px);
  max-width: 1440px;
  height: 94dvh;
  max-height: 94dvh;
  padding: 24px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 25px 100px #001d3160;
  box-sizing: border-box;
}

.plan-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-dialog::backdrop {
  background: #062d3bd9;
  backdrop-filter: blur(5px);
}

.plan-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.plan-dialog-header h2 {
  font-size: 28px;
  line-height: 1.2;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--lime);
}

.plan-dialog > img {
  width: 100%;
  max-width: 620px;
  margin: 25px auto 18px;
  border-radius: 5px;
}

.plan-dialog > p {
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
  margin-inline: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.plan-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-toolbar button,
.plan-toolbar a {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.plan-toolbar button:hover,
.plan-toolbar a:hover {
  background: var(--lime);
}

.plan-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}

.plan-toolbar output {
  min-width: 112px;
  font-size: 14px;
  text-align: center;
}

.plan-toolbar a {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.plan-viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
  background: #e5eadf;
  touch-action: pan-x pan-y pinch-zoom;
}

.plan-viewport img {
  display: block;
  max-width: none;
  height: auto;
  margin: auto;
  user-select: none;
}

/* Сорта тюльпанов */

.varieties-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 480px;
  margin-bottom: 95px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.varieties-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("assets/pattern-fragment.png")
    right bottom / 340px auto no-repeat;
  opacity: 0.1;
}

.varieties-section h2 {
  max-width: 100%;
  color: var(--green);
  font-size: 48px;
  overflow-wrap: break-word;
}

.varieties-content {
  position: relative;
  margin-top: 34px;
}

.variety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.variety-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: start;
  column-gap: 16px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffffed;
}

.variety-swatch {
  grid-row: 1 / 4;
  width: 32px;
  height: 48px;
  margin-top: 3px;
  border-radius: 5px 5px 19px 19px;
  box-shadow: inset 0 0 0 1px #00000012;
}

.variety-pink {
  background: #ef83a7;
}

.variety-red {
  background: #ed3348;
}

.variety-yellow {
  background: #f7d83e;
}

.variety-orange {
  background: #f49036;
}

.variety-white {
  border: 1px solid #d9dfd2;
  background: #f8f6ec;
}

.variety-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.variety-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Программа, если используется в разметке */

.program {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  padding-bottom: 115px;
}

.program-heading {
  position: sticky;
  top: 40px;
  align-self: start;
}

.program-heading h2 {
  margin-bottom: 29px;
}

.program-date {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.program-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 29px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c2cebe;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.calendar-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.calendar-link .icon {
  width: 19px;
  height: 19px;
}

.calendar-link .small {
  width: 14px;
  height: 14px;
  margin-left: 7px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:first-child {
  padding-top: 0;
}

.timeline li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-time time {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.05em;
}

.timeline-time > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.timeline-copy h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.timeline-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.timeline-featured .timeline-time time,
.timeline-featured .timeline-copy h3 {
  color: var(--red);
}

/* Место проведения */

.location {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: 465px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--green);
  color: white;
}

.location-photo {
  position: relative;
  min-height: 465px;
  overflow: hidden;
}

.location-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

.photo-label {
  position: absolute;
  left: 23px;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 6px;
  background: white;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.photo-label .icon {
  width: 17px;
  height: 17px;
}

.location-copy {
  padding: 49px 50px 38px;
}

.location .eyebrow::before {
  background: var(--lime);
}

.location .eyebrow > span:first-child {
  color: var(--lime);
}

.location h2 {
  max-width: 520px;
  font-size: 38px;
  line-height: 1.16;
}

.venue-affiliation {
  max-width: 440px;
  margin-top: 13px;
  color: #e0ece3;
  font-size: 14px;
  line-height: 1.65;
}

.venue-date {
  margin-top: 22px;
  margin-bottom: 25px;
  color: #e8f0e4;
  font-size: 16px;
}

.button-white {
  background: white;
  color: var(--green);
  font-size: 14px;
}

.button-white:hover {
  background: #f0f4df;
}

/* Отступ кнопки от текста */

.location-copy .button {
  margin-top: 24px;
}

.access-note {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid #ffffff30;
}

.access-note p {
  max-width: 430px;
  color: #d0e0d7;
  font-size: 16px;
  line-height: 1.7;
}

.access-dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--lime);
}

/* Заключительный блок */

.closing {
  position: relative;
  padding-block: 95px 80px;
}

.closing > p {
  font-size: clamp(36px, 5.2vw, 70px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.closing > p:first-child {
  color: #7d938a;
}

.closing > p:nth-child(2) > span {
  color: var(--red);
}

.closing > p .icon {
  width: 45px;
  height: 45px;
  margin-left: 22px;
  stroke-width: 1.2;
}

.closing-year {
  position: absolute;
  right: 0;
  bottom: 89px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Подвал */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding-block: 30px 35px;
  border-top: 1px solid var(--line);
}

.footer-partners {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.footer-partners > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 67px;
}

.footer-partners > div:first-child img {
  width: 118px;
  margin-top: 10px;
}

.footer-partners > div:nth-child(2) img {
  width: 125px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.footer-partners span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.site-footer > p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.site-footer > p > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.back-top {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid #cdd8cc;
  border-radius: 50%;
}

.back-top:hover {
  border-color: var(--lime);
  background: var(--lime);
}

/* Большие экраны */

@media (min-width: 1600px) {
  .hero h1 {
    font-size: 102px;
  }
}

/* Экраны до 1150 px */

@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 56px);
  }

  .main-nav {
    gap: 22px;
    font-size: 14px;
  }

  .brand-pair {
    gap: 20px;
  }

  .magnit-logo {
    width: 140px;
  }

  .kubgau-logo {
    width: 150px;
  }

  .hero-content {
    padding: 36px 38px 27px;
  }

  .hero-topline {
    margin-bottom: 60px;
  }

  .hero h1 {
    font-size: 7.4vw;
  }

  .hero-bottom {
    margin-top: 40px;
  }

  .date-stamp {
    right: 30px;
    bottom: 115px;
    width: 165px;
    padding: 18px;
  }

  .stamp-date {
    font-size: 43px;
  }

  .about {
    gap: 55px;
  }

  .flower-panel {
    min-height: 510px;
  }

  .flower-word {
    font-size: 70px;
  }

  .flower-cutout {
    right: -45px;
    width: 290px;
  }

  .flower-caption {
    font-size: 23px;
  }

  .plan-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    padding: 48px;
  }

  .plan-copy h2 {
    font-size: 36px;
  }

  .program {
    gap: 55px;
  }

  .location-copy {
    padding: 42px 35px 34px;
  }

  .location h2 {
    font-size: 34px;
  }

  .closing-year {
    position: static;
    display: block;
    margin-top: 28px;
  }

  .closing {
    padding-block: 80px 65px;
  }
}

/* Экраны до 1050 px */

@media (max-width: 1050px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 22px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .history-intro {
    gap: 40px;
  }

  .history-intro h2 {
    font-size: 38px;
  }

  .history-years li {
    padding: 23px;
  }

  .history-count {
    font-size: 35px;
  }

  .history-years h3 {
    font-size: 14px;
  }

  .history-bottom {
    align-items: start;
    padding: 25px;
  }

  .history-visitors {
    display: block;
  }

  .history-visitors strong {
    font-size: 25px;
  }

  .history-visitors p {
    margin-top: 7px;
  }

  .history-sources {
    max-width: 230px;
  }

  .plan-section {
    gap: 32px;
    padding: 35px;
  }

  .plan-copy h2 {
    font-size: 34px;
  }

  .plan-figure {
    padding: 12px;
  }

  .plan-figure figcaption {
    font-size: 12px;
  }

  .flower-panel .flower-caption {
    font-size: 24px;
  }

  .venue-affiliation {
    font-size: 14px;
  }
}

@media (max-width: 1000px) {
  .variety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Экраны до 900 px */

@media (max-width: 900px) {
  .site-header {
    min-height: 100px;
    gap: 16px;
  }

  .brand-pair {
    gap: 15px;
  }

  .magnit-logo {
    width: 118px;
  }

  .kubgau-logo {
    width: 130px;
  }

  .main-nav {
    gap: 18px;
    font-size: 16px;
  }

  .main-nav .icon {
    width: 13px;
    height: 13px;
    margin-left: 2px;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content {
    padding-inline: 32px;
  }

  .hero h1 {
    font-size: 8vw;
    letter-spacing: -0.06em;
  }

  .hero-topline {
    margin-bottom: 63px;
  }

  .date-stamp {
    right: 27px;
    bottom: 115px;
    width: 220px;
  }

  .stamp-label {
    font-size: 12px;
  }

  .stamp-date {
    font-size: 36px;
  }

  .stamp-bottom {
    font-size: 16px;
  }

  .hero-lead {
    max-width: 400px;
    font-size: 16px;
  }

  .hero-bottom {
    font-size: 12px;
  }

  .facts {
    padding-block: 35px;
  }

  .fact {
    padding-inline: 25px;
  }

  .fact-value {
    font-size: 30px;
  }

  .fact-value > span,
  .fact-label {
    font-size: 12px;
  }

  .section {
    padding-block: 80px;
  }

  .about {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 35px;
  }

  .flower-panel {
    min-height: 490px;
  }

  .flower-word {
    left: 20px;
    font-size: 58px;
  }

  .flower-cutout {
    right: -52px;
    width: 260px;
    height: 425px;
  }

  .flower-top {
    left: 22px;
    font-size: 12px;
  }

  .flower-caption {
    left: 22px;
    bottom: 32px;
    font-size: 20px;
  }

  .plan-copy h2 {
    font-size: 34px;
  }

  .plan-tag {
    font-size: 12px;
  }

  .program {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
  }

  .timeline li {
    grid-template-columns: 76px 1fr;
    gap: 13px;
  }

  .timeline-time time {
    font-size: 23px;
  }

  .timeline-copy h3 {
    font-size: 16px;
  }

  .timeline-copy p {
    font-size: 14px;
  }

  .program-date {
    font-size: 18px;
  }

  .location {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .location-copy {
    padding: 35px 26px;
  }

  .location h2 {
    font-size: 29px;
  }

  .venue-date {
    font-size: 14px;
  }

  .footer-partners {
    gap: 25px;
  }

  .closing > p .icon {
    width: 35px;
    height: 35px;
  }
}

/* Мобильные экраны */

@media (max-width: 700px) {
  :root {
    scroll-padding-top: 18px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 88px;
    padding-block: 22px;
  }

  .brand-pair {
    gap: 16px;
  }

  .magnit-logo {
    width: 106px;
  }

  .kubgau-logo {
    width: 124px;
  }

  .brand-divider {
    height: 31px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    border: 1px solid #d0dacd;
    border-radius: 50%;
    background: transparent;
    color: var(--green);
    cursor: pointer;
  }

  .menu-toggle > span {
    width: 17px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
    padding: 16px 0 0;
    font-size: 16px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 4px;
    border-top: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hero {
    min-height: 0;
    border-radius: 17px;
  }

  .hero-content {
    min-height: 0;
    padding: 27px 23px 28px;
  }

  .hero-photo {
    object-position: 61% center;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(3, 35, 29, 0.87),
        rgba(4, 36, 31, 0.36)
      ),
      linear-gradient(
        0deg,
        rgba(0, 28, 24, 0.45),
        transparent 70%
      );
  }

  .hero-topline {
    gap: 15px;
    margin-bottom: 61px;
  }

  .project-logo {
    width: 143px;
  }

  .season-label {
    max-width: 110px;
    padding-left: 15px;
    font-size: 12px;
  }

  .hero-kicker {
    gap: 9px;
    margin-bottom: 19px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    margin-left: -2px;
    font-size: clamp(41px, 10.2vw, 68px);
    line-height: 1.06;
  }

  .hero-lead {
    max-width: 300px;
    margin-top: 24px;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
  }

  .button {
    gap: 25px;
    min-height: 49px;
    padding: 15px 18px;
    font-size: 14px;
  }

  .hero-bottom {
    gap: 16px;
    max-width: 100%;
    margin-top: 32px;
    padding-top: 17px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  .hero-bottom > span:last-child {
    max-width: 160px;
    text-align: right;
  }

  .date-stamp {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: 190px;
    margin: 0 23px 24px;
    padding: 13px 14px 12px;
    transform: none;
  }

  .stamp-label {
    font-size: 12px;
  }

  .stamp-date {
    font-size: 42px;
  }

  .stamp-bottom {
    padding-top: 8px;
    font-size: 16px;
  }

  .stamp-bottom .icon {
    width: 13px;
    height: 13px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
    padding: 30px 4px;
  }

  .fact {
    padding: 0 15px;
  }

  .fact:first-child {
    padding-left: 0;
  }

  .fact:nth-child(2) {
    padding-right: 0;
    border: 0;
  }

  .fact:last-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 15px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
  }

  .fact:last-child .fact-label {
    margin: 0;
  }

  .fact:last-child .fact-value {
    font-size: 24px;
  }

  .fact-value {
    font-size: 31px;
    letter-spacing: -0.06em;
  }

  .fact-value > span {
    margin-top: 9px;
    font-size: 12px;
  }

  .fact-label {
    margin-bottom: 11px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .section {
    padding-block: 65px;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 21px;
    font-size: 12px;
  }

  h2 {
    font-size: 38px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-copy {
    max-width: none;
  }

  .about-copy h2 {
    margin-bottom: 22px;
  }

  .about-copy > p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.75;
  }

  .about-copy > p.intro {
    max-width: 400px;
    font-size: 20px;
  }

  .about-note {
    margin-top: 27px;
    padding-top: 21px;
  }

  .about-note p {
    font-size: 16px;
  }

  .flower-panel {
    min-height: 430px;
  }

  .flower-word {
    top: 77px;
    left: 23px;
    font-size: 80px;
  }

  .flower-top {
    top: 25px;
    left: 25px;
    font-size: 12px;
  }

  .flower-cutout {
    right: -5px;
    bottom: -35px;
    width: 265px;
    height: 410px;
    transform: rotate(5deg);
  }

  .flower-caption {
    left: 25px;
    bottom: 30px;
    font-size: 24px;
  }

  .flower-panel .flower-caption {
    font-size: 24px;
  }

  .flower-pattern {
    right: -30px;
    width: 390px;
  }

  .history-section {
    padding-bottom: 65px;
  }

  .history-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }

  .history-intro h2 {
    font-size: 35px;
  }

  .history-intro > p {
    font-size: 17px;
    line-height: 1.75;
  }

  .history-years {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .history-years li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 18px;
    padding: 23px;
  }

  .history-year {
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: start;
    padding: 7px 8px;
    font-size: 14px;
    text-align: center;
  }

  .history-years h3 {
    grid-column: 2;
    margin: 0 0 12px;
    font-size: 16px;
  }

  .history-count {
    grid-column: 2;
    font-size: 35px;
  }

  .history-years li > p:not(.history-count) {
    grid-column: 2;
    margin-top: 7px;
    font-size: 16px;
    line-height: 1.7;
  }

  .history-season {
    grid-column: 2;
    margin-top: 15px;
    padding-top: 13px;
    font-size: 12px;
  }

  .history-bottom {
    flex-direction: column-reverse;
    gap: 20px;
    padding: 24px;
  }

  .history-visitors {
    width: 100%;
  }

  .history-visitors strong {
    font-size: 30px;
  }

  .history-visitors p {
    margin-top: 11px;
    font-size: 16px;
  }

  .history-sources {
    max-width: none;
    font-size: 12px;
  }

  .history-bottom::before {
    background-size: 225px auto;
  }

  .archive-heading {
    display: block;
  }

  .archive-heading h2 {
    font-size: 35px;
  }

  .archive-heading > p {
    margin-top: 18px;
    font-size: 17px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .archive-photo figcaption {
    font-size: 12px;
  }

  .plan-section {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 30px 23px;
    border-radius: 14px;
  }

  .plan-copy h2 {
    font-size: 34px;
  }

  .plan-copy > p:not(.eyebrow),
  .plan-copy .plan-description {
    font-size: 17px;
  }

  .plan-copy .plan-hint {
    margin-top: 20px;
    font-size: 12px;
  }

  .plan-tag {
    gap: 9px;
    max-width: 255px;
    margin-top: 23px;
    font-size: 12px;
    line-height: 1.8;
  }

  .plan-figure {
    width: 100%;
    max-width: none;
    padding: 12px;
    transform: none;
  }

  .plan-figure img {
    width: 100%;
    max-height: none;
  }

  .plan-figure figcaption {
    font-size: 12px;
  }

  .plan-expand {
    right: 9px;
    bottom: 9px;
    width: 38px;
    height: 38px;
  }

  .plan-dialog {
    width: calc(100% - 12px);
    height: 96dvh;
    max-height: 96dvh;
    padding: 14px;
  }

  .plan-dialog[open] {
    gap: 16px;
  }

  .plan-dialog-header h2 {
    font-size: 19px;
  }

  .dialog-close {
    width: 37px;
    height: 37px;
    font-size: 28px;
  }

  .plan-toolbar {
    gap: 5px;
  }

  .plan-toolbar button,
  .plan-toolbar a {
    padding: 7px 10px;
    font-size: 14px;
  }

  .plan-toolbar output {
    min-width: 100px;
  }

  .plan-toolbar a {
    margin-left: 0;
  }

  .plan-dialog > p {
    font-size: 13px;
  }

  .varieties-section {
    min-height: 340px;
    margin-bottom: 65px;
    padding: 30px 24px;
  }

  .varieties-section h2 {
    font-size: 35px;
  }

  .varieties-section::after {
    background-size: 235px auto;
  }

  .varieties-content {
    margin-top: 25px;
  }

  .program {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .program-heading {
    position: static;
  }

  .program-heading h2 {
    margin-bottom: 22px;
  }

  .program-date {
    font-size: 19px;
  }

  .program-subtitle {
    font-size: 14px;
  }

  .calendar-link {
    margin-top: 23px;
    font-size: 14px;
  }

  .timeline li {
    grid-template-columns: 87px 1fr;
    gap: 18px;
    padding-block: 23px;
  }

  .timeline-copy h3 {
    font-size: 18px;
  }

  .timeline-copy p {
    font-size: 14px;
    line-height: 1.75;
  }

  .timeline-time time {
    font-size: 26px;
  }

  .timeline-time > span {
    font-size: 12px;
  }

  .location {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .location-photo {
    min-height: 260px;
  }

  .location-photo > img {
    object-position: center 50%;
  }

  .photo-label {
    left: 20px;
    bottom: 20px;
    font-size: 12px;
  }

  .location-copy {
    padding: 32px 24px;
  }

  .location h2 {
    font-size: 31px;
  }

  .venue-affiliation {
    margin-top: 12px;
    font-size: 14px;
  }

  .venue-date {
    margin-top: 18px;
    font-size: 14px;
  }

  .access-note p {
    font-size: 16px;
  }

  .closing {
    padding-block: 60px 45px;
  }

  .closing > p {
    font-size: clamp(29px, 7vw, 48px);
    line-height: 1.16;
  }

  .closing > p .icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
  }

  .closing-year {
    margin-top: 22px;
    font-size: 12px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 25px;
    padding-block: 25px 27px;
  }

  .footer-partners {
    justify-content: space-between;
    gap: 24px;
    width: 100%;
  }

  .footer-partners > div {
    height: 64px;
  }

  .footer-partners > div:first-child img {
    width: 115px;
  }

  .footer-partners > div:nth-child(2) img {
    width: 125px;
  }

  .footer-partners span {
    font-size: 12px;
  }

  .site-footer > p {
    font-size: 12px;
    line-height: 1.8;
  }

  .site-footer > p > span {
    font-size: 12px;
  }

  .back-top {
    width: 40px;
    height: 40px;
  }

  .back-top .icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 600px) {
  .variety-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .variety-card {
    padding: 20px;
  }

  .variety-card h3 {
    font-size: 18px;
  }

  .variety-card p {
    margin-bottom: 0;
  }
}

/* Узкие экраны */

@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .brand-pair {
    gap: 11px;
  }

  .magnit-logo {
    width: 95px;
  }

  .kubgau-logo {
    width: 112px;
  }

  .hero-content {
    padding-inline: 19px;
  }

  .hero h1 {
    font-size: 10vw;
  }

  .hero-topline {
    gap: 11px;
  }

  .project-logo {
    width: 128px;
  }

  .season-label {
    padding-left: 11px;
    font-size: 12px;
  }

  .fact-value {
    font-size: 28px;
  }

  .fact:last-child .fact-value {
    font-size: 22px;
  }

  h2 {
    font-size: 34px;
  }

  .flower-word {
    font-size: 68px;
  }

  .flower-cutout {
    right: -25px;
  }

  .flower-caption {
    font-size: 21px;
  }

  .timeline li {
    grid-template-columns: 75px 1fr;
    gap: 13px;
  }

  .timeline-copy h3 {
    font-size: 16px;
  }

  .location h2 {
    font-size: 27px;
  }

  .footer-partners {
    gap: 18px;
  }
}

/* Печать */

@media print {
  .varieties-section {
    break-before: page;
    break-after: page;
    width: 100%;
    min-height: 70vh;
    margin: 0;
    padding: 36px 0;
    border: 0;
  }

  .varieties-section::after {
    display: none;
  }
}

/* Уменьшение движения */

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}