/* Цветы Лета — лендинг франшизы */

@font-face {
  font-family: "Autumn Sweater";
  src: url("../assets/fonts/AutumnSweater.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("../assets/fonts/Geologica-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("../assets/fonts/Geologica-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("../assets/fonts/Geologica-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("../assets/fonts/Geologica-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("../assets/fonts/Geologica-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --green: #3b863c;
  --green-dark: #337436;
  --green-soft: #e5f1e5;
  --pink: #ed73a9;
  --pink-soft: #ffd1e5;
  --purple: #4f388b;
  --purple-soft: #eee8ff;
  --yellow: #ffd237;
  --orange: #ea560e;
  --ink: #2d2c2c;
  --muted: #69696d;
  --paper: #ededed;
  --white: #ffffff;
  --line: #dcdcdf;

  --display: "Autumn Sweater", "Geologica", system-ui, sans-serif;
  --body: "Geologica", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad: 16px;
  --gap: 10px;
  --radius: 11px;
  --pill: 999px;
  --shadow: 0 24px 60px -44px rgba(28, 26, 30, 0.45);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-title {
  max-width: 780px;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head--inline {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  background: var(--purple);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background 160ms ease;
}

.btn:focus-visible,
.bar-link:focus-visible,
.nav a:focus-visible,
.nav__burger:focus-visible,
.accordion summary:focus-visible,
.field input:focus-visible {
  outline: 3px solid rgba(255, 210, 55, 0.78);
  outline-offset: 3px;
}

.btn--green {
  background: var(--green);
}

.btn--purple {
  background: var(--purple);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.78);
  background: transparent;
  color: var(--white);
}

.btn--wide {
  min-width: 240px;
}

.btn--block {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 10px;
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  min-height: 53px;
  align-items: center;
  gap: 22px;
  padding: 10px 12px 10px 22px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--white);
}

.brand__word {
  padding-top: 4px;
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand__logo {
  height: 30px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav__menu a {
  display: inline-flex;
  padding-top: 3px;
  font-family: var(--display);
  font-size: 0.96rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.92;
  transition: opacity 160ms ease;
}

.nav__cta {
  padding-inline: 22px;
}

.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background 160ms ease;
}

.nav__burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease-out), opacity 160ms ease;
}

.nav__burger span:nth-child(1) {
  transform: translateY(-6px);
}

.nav__burger span:nth-child(3) {
  transform: translateY(6px);
}

.nav.is-open .nav__burger span:nth-child(1) {
  transform: rotate(45deg);
}

.nav.is-open .nav__burger span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__burger span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  padding-top: var(--gap);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.hero__copy,
.hero__media {
  min-height: 587px;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero__copy {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  background: var(--green);
  color: var(--white);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  max-width: 510px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.hero__pre,
.hero__post {
  font-family: var(--body);
  font-weight: 500;
  font-size: 40px;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero__big {
  font-family: var(--display);
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero__tagline {
  margin-top: 14px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 30rem;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero__footnote {
  max-width: 31rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.hero__flowers {
  position: absolute;
  z-index: 1;
  top: 0px;
  right: 0px;
  width: min(100%, 530px);
  pointer-events: none;
}

.hero__media {
  position: relative;
  margin: 0;
  background: #c7dbcb;
}

.hero__media img,
.about__photo img,
.package-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-photo img {
  object-position: center bottom;
}

.metrics {
  padding-top: var(--gap);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.metric {
  display: flex;
  min-height: 212px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric strong {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
}

.metric span {
  color: var(--muted);
  font-size: 1rem;
}

.metric--green {
  background: var(--green);
  color: var(--white);
}

.metric--green span,
.metric--pink span {
  color: rgba(255, 255, 255, 0.86);
}

.metric--pink {
  background: var(--pink);
  color: var(--white);
}

.bar-actions {
  display: grid;
  grid-template-columns: 643fr 513fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.bar-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--purple);
  color: var(--white);
  font-weight: 800;
  text-align: center;
  transition: transform 160ms var(--ease-out), background 180ms ease;
}

.bar-link--light {
  background: var(--white);
  color: var(--purple);
}

.bar-link--full {
  margin-top: var(--gap);
}

.about,
.panel-section,
.approach,
.contact {
  padding-top: var(--gap);
}

.about__grid {
  display: grid;
  grid-template-columns: 725fr 433fr;
  gap: var(--gap);
}

.about__photo {
  position: relative;
  min-height: 587px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #b7b0aa;
}

.about__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
}

.about__block {
  display: flex;
  min-height: 289px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
}

.about__block h2 {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0;
}

.about__block p {
  font-size: 1rem;
}

.about__slogan {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--yellow);
}

.about__block--dark {
  background: var(--ink);
}

.about__block .source {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.panel {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.why-card {
  display: flex;
  min-height: 312px;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--pink);
  color: var(--white);
}

.why-card span {
  font-weight: 900;
  opacity: 0.74;
}

.why-card h3,
.timeline-step h3,
.support-grid h3,
.finance-card h3,
.approach__item span {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.why-card h3 {
  font-family: var(--body);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.why-card p {
  margin-top: auto;
  font-size: 0.95rem;
}

/* Ищем партнёров */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.partner-card {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
}

.partner-card h3 {
  font-family: var(--body);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
}

.partner-facts {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.btn-partner {
  display: flex;
  min-height: 48px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--pill);
  background: transparent;
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 160ms ease, transform 160ms var(--ease-out);
}

.panel--economics {
  background:
    linear-gradient(90deg, rgba(255, 210, 55, 0.14), transparent 54%),
    var(--white);
}

.economics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: var(--gap);
}

.finance-card {
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
}

.finance-card--main {
  min-height: 430px;
  padding: 34px;
}

.finance-card h3 {
  font-size: 2rem;
}

.finance-card__number {
  margin-top: 30px;
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.finance-card p {
  margin-top: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.clean-list {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.clean-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.clean-list span {
  color: rgba(255, 255, 255, 0.82);
}

.clean-list strong {
  flex: 0 0 auto;
  text-align: right;
}

.investment-stack {
  display: grid;
  gap: var(--gap);
}

.investment-card {
  display: flex;
  min-height: 136px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--paper);
}

.investment-card span {
  color: var(--muted);
  font-weight: 600;
}

.investment-card strong {
  font-family: var(--display);
  font-size: 2.45rem;
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0;
}

.investment-card--total {
  background: var(--yellow);
}

.investment-card--total span {
  color: rgba(45, 44, 44, 0.75);
}

.package-layout {
  display: grid;
  grid-template-columns: 559fr 599fr;
  gap: 44px;
  align-items: start;
}

.package-photo {
  position: relative;
  height: 568px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #171717;
}

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

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 42px 18px 0;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.accordion summary::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 180ms var(--ease-out);
}

.accordion details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -3px);
}

.accordion p {
  max-width: 620px;
  padding: 0 48px 20px 0;
  color: var(--muted);
}

/* Плавное раскрытие аккордеона */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

.accordion details::details-content {
  height: 0;
  overflow: clip;
  transition: height 250ms var(--ease-out), content-visibility 250ms allow-discrete;
}

.accordion details[open]::details-content {
  height: auto;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.timeline-step {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline-step span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: var(--pill);
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline-step h3 {
  font-size: 1.45rem;
}

.timeline-step p {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline-step--accent {
  background: var(--yellow);
}

.timeline-step--accent span {
  background: var(--ink);
  color: var(--white);
}

.panel--green {
  background: var(--green);
  color: var(--white);
}

.panel--green .section-title {
  color: var(--white);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.support-grid article {
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.support-grid h3 {
  color: var(--yellow);
  font-size: 1.48rem;
}

.support-grid p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.approach__grid {
  display: grid;
  grid-template-columns: 1.18fr repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.approach__title,
.approach__item {
  min-height: 250px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
}

.approach__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  color: var(--white);
}

.approach__title h2 {
  font-family: var(--display);
  font-size: 2.45rem;
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0;
}

.approach__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.approach__item span {
  color: var(--pink);
  font-size: 2rem;
}

.approach__item p {
  color: var(--muted);
}

.contact {
  padding-bottom: 10px;
}

.contact__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 52px;
  align-items: start;
  padding: 56px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(237, 115, 169, 0.2), transparent 58%),
    var(--green);
  color: var(--white);
  overflow: hidden;
}

.contact__copy {
  display: grid;
  gap: 18px;
}

.contact__copy h2 {
  max-width: 640px;
  font-family: var(--display);
  font-size: 3.65rem;
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0;
}

.contact__copy > p {
  max-width: 500px;
  font-size: 1.12rem;
  font-weight: 600;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
}

.contact-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
}

.form {
  display: grid;
  gap: 14px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form h3 {
  font-size: 1.45rem;
}

.form > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 0.86rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fafafb;
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease;
}

.field input:focus {
  border-color: var(--purple);
  background: var(--white);
  outline: none;
}

.consent {
  color: var(--muted);
  font-size: 0.76rem;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  cursor: pointer;
}

.consent-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--green);
  cursor: pointer;
}

.consent-check a {
  color: var(--purple);
  text-decoration: underline;
}

.form__ok {
  display: none;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.site-footer {
  padding-bottom: 16px;
}

.footer__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 34px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer__legal {
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__legal p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* Cookie-баннер */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9000;
  max-width: 380px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.cookie.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cookie p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.cookie a {
  color: var(--yellow);
  text-decoration: underline;
}

.cookie__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie__btn {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background 160ms ease;
}

.cookie__btn--accept {
  background: var(--green);
  color: var(--white);
}

.cookie__btn--decline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 540px) {
  .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media print {
  .cookie { display: none !important; }
}

.footer__disclaimer {
  max-width: 940px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .nav__menu {
    gap: 18px;
  }

  .hero__big {
    font-size: 5rem;
  }

  .hero__pre,
  .hero__post {
    font-size: 34px;
  }

  .metric strong {
    font-size: 2.55rem;
  }

  .why-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --pad: 12px;
  }

  .section-title {
    font-size: 2.45rem;
  }

  .section-head--inline,
  .hero__grid,
  .about__grid,
  .economics-grid,
  .package-layout,
  .contact__card {
    grid-template-columns: 1fr;
  }

  .hero__copy,
  .hero__media {
    min-height: 450px;
  }

  .about__photo {
    min-height: 360px;
  }

  .metrics__grid,
  .support-grid,
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-photo {
    height: 420px;
  }

  .contact__card {
    gap: 30px;
    padding: 36px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 8px;
  }

  .nav {
    min-height: 58px;
    padding: 8px 8px 8px 18px;
  }

  .nav__menu,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: block;
    margin-left: auto;
  }

  .nav.is-open {
    border-radius: 28px;
  }

  .nav.is-open .nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px;
    border-radius: 24px;
    background: var(--ink);
    box-shadow: 0 22px 44px -32px rgba(0, 0, 0, 0.72);
  }

  .nav.is-open .nav__menu a {
    width: 100%;
    padding: 15px 12px 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.is-open .nav__menu li:first-child a {
    border-top: 0;
  }

  .panel {
    padding: 28px 22px;
  }

  .hero__copy {
    min-height: 430px;
    padding: 34px 24px;
  }

  .hero__big {
    font-size: 4.3rem;
  }

  .hero__pre,
  .hero__post {
    font-size: 28px;
  }

  .hero__tagline {
    font-size: 13px;
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .metrics__grid,
  .support-grid,
  .approach__grid,
  .partners-grid,
  .bar-actions {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 160px;
  }

  .finance-card__number {
    font-size: 3.4rem;
  }

  .clean-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .clean-list strong {
    text-align: left;
  }

  .contact__copy h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 540px) {
  .brand__word {
    font-size: 1.2rem;
  }

  .brand__mark {
    width: 22px;
    height: 22px;
  }

  .section-title,
  .about__block h2,
  .approach__title h2 {
    font-size: 2rem;
  }

  .hero__copy,
  .hero__media {
    min-height: 390px;
  }

  .hero__big {
    font-size: 4.2rem;
  }

  .hero__pre,
  .hero__post {
    font-size: 22px;
  }

  .hero__flowers {
    width: 100%;
    right: 0px;
    top: 0px;
  }

  .metric strong,
  .investment-card strong {
    font-size: 2.15rem;
  }

  .why-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .about__block,
  .finance-card--main,
  .form,
  .contact__card {
    padding: 24px;
  }

  .package-photo {
    height: 330px;
  }

  .accordion summary {
    font-size: 1rem;
  }

  .contact__copy h2 {
    font-size: 2.25rem;
  }
}

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

  /* меньше движения, но смены цвета и прозрачности оставляем — они помогают понимать состояние */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, box-shadow !important;
    transition-duration: 150ms !important;
  }

  .popup__dialog,
  .cookie {
    transform: none !important;
  }
}

/* ============================================================ ФОРМАТЫ */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.format-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.format-card__photo {
  position: relative;
  height: 240px;
  margin: 0;
  overflow: hidden;
  background: #cbb;
}

.format-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.format-card__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 18px 6px;
  border-radius: var(--pill);
  background: var(--green);
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  line-height: 1;
}

.format-card__tag--alt {
  background: var(--pink);
}

.format-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
}

.format-card__body > p {
  color: var(--muted);
  font-size: 0.96rem;
}

.format-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.format-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.format-facts dt {
  color: var(--muted);
}

.format-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.format-card .btn {
  margin-top: auto;
}

/* ============================================================ КАЛЬКУЛЯТОР */
.panel--calc {
  background:
    linear-gradient(90deg, rgba(59, 134, 60, 0.08), transparent 55%),
    var(--white);
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.calc__controls {
  display: grid;
  gap: 26px;
}

.calc__field {
  display: grid;
  gap: 12px;
}

.calc__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.calc__label span {
  font-weight: 600;
}

.calc__label b {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--green);
  white-space: nowrap;
}

.calc input[type="range"] {
  --fill: 40%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) var(--fill), var(--line) var(--fill));
  cursor: pointer;
}

.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--green);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.calc input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--green);
  cursor: pointer;
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.calc__note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Переключатель формата */
.calc__switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--paper);
}

.calc__switch-btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.calc__switch-btn.is-active {
  background: var(--green);
  color: #fff;
}

/* Таблица показателей */
.calc__results {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.calc-table th,
.calc-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(45, 44, 44, 0.1);
}

.calc-table th {
  color: var(--muted);
  font-weight: 500;
}

.calc-table td {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.calc-table tr:last-child th,
.calc-table tr:last-child td {
  border-bottom: 0;
}

.calc-table tr.is-accent {
  background: var(--green);
}

.calc-table tr.is-accent th {
  color: rgba(255, 255, 255, 0.88);
}

.calc-table tr.is-accent td {
  color: #fff;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.calc__foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Ошибка отправки формы */
.form__ok.is-error {
  background: #fdecec;
  color: #c02626;
}

/* ============================================================ ПОПАП */
body.popup-open {
  overflow: hidden;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup[hidden] {
  display: none;
}

.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 20, 0.55);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}

.popup.is-open .popup__backdrop {
  opacity: 1;
}

.popup__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out);
}

.popup.is-open .popup__dialog {
  transform: none;
  opacity: 1;
  transition-duration: 220ms;
}

.popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease;
}

.popup__close svg {
  width: 18px;
  height: 18px;
}

.popup__title {
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.popup__text {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.form--popup {
  display: grid;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

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

@media (max-width: 620px) {
  .formats-grid {
    grid-template-columns: 1fr;
  }
  .calc__results {
    grid-template-columns: 1fr;
  }
}

/* ============================================================ ОТКЛИК НА ВЗАИМОДЕЙСТВИЕ */

/* Ховеры — только для мыши. На тач-устройствах :hover «залипает» после тапа. */
@media (hover: hover) and (pointer: fine) {
  /* Ховер — только сдвиг оттенка фона. Движение оставляем нажатию. */
  .btn:hover {
    background: #43307a;
  }

  .btn--green:hover {
    background: var(--green-dark);
  }

  .btn--yellow:hover {
    background: #f2c522;
  }

  .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .bar-link:hover {
    background: #43307a;
  }

  .bar-link--light:hover {
    background: #f1f1f2;
  }

  .btn-partner:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .cookie__btn:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .cookie__btn--accept:hover {
    background: var(--green-dark);
  }

  .nav__menu a:hover {
    opacity: 1;
  }

  .nav__burger:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .footer__nav a:hover,
  .footer__legal a:hover {
    color: var(--white);
  }

  .calc__switch-btn:hover {
    color: var(--ink);
  }

  .popup__close:hover {
    background: #e2e2e4;
  }
}

/* Нажатие. Идёт после ховеров, чтобы перебивать их при одновременном срабатывании. */
.btn:active,
.bar-link:active,
.btn-partner:active,
.calc__switch-btn:active,
.cookie__btn:active {
  transform: scale(0.97);
}

.popup__close:active {
  transform: scale(0.92);
}

/* Сообщение об успехе появляется вместе с display:block — фейд вместо рывка */
.form__ok {
  animation: form-ok-in 200ms var(--ease-out);
}

@keyframes form-ok-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
