/* =========================================================
   Букетница — дизайн-система (MVP)
   ========================================================= */

@font-face {
  font-family: "Lighthaus";
  src: url("../fonts/Lighthaus.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy/Gilroy-RegularItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy/Gilroy-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy/Gilroy-Extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --green: #2A422A;
  --green-dark: #1B2B1B;
  --green-soft: #E7ECE2;
  --beige: #EFF1DB;
  --beige-dark: #E3E6CC;
  --dark: #222222;
  --white: #FFFFFF;
  --gold: #B9975B;

  --font-head: "Lighthaus", "Playfair Display", "Georgia", serif;
  --font-body: "Gilroy", "Manrope", "Segoe UI", sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --shadow-s: 0 4px 16px rgba(34, 34, 34, .06);
  --shadow-m: 0 12px 32px rgba(34, 34, 34, .10);
  --shadow-l: 0 24px 60px rgba(34, 34, 34, .16);

  --container: 1400px;
  --nav-h: 76px;
  --header-h: 76px;
  /* пересчитывается в JS под реальную высоту шапки (nav + сторис-бар) */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 .2em;
  color: var(--green-dark);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
}

p {
  margin: 0 0 1em;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin: 28px 0 14px 0;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--beige {
  background: var(--beige);
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.muted {
  color: #5b5f54;
  margin: 0 0 2em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  background: linear-gradient(45deg, #2A3623, #6E9A62);
  color: #fff;
  box-shadow: var(--shadow-s);
}

.btn-primary:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(45deg, #DAB777, #C58613);
  color: #fff;
  box-shadow: var(--shadow-s);
}

.btn-gold:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow-s);
}

.btn-ghost:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: .85rem;
}

.btn[disabled] {
  opacity: .5;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(239, 241, 219, 0);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-color: rgba(42, 66, 42, .08);
  box-shadow: var(--shadow-s);
}

.header-main {
  height: var(--nav-h);
  flex: 0 0 auto;
  order: 1;
}

.header-main .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stories-bar {
  order: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-dark);
  flex: 0 0 auto;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand--full img {
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: 190px;
}

@media(min-width:960px) {
  .brand--full img {
    max-height: 40px;
    max-width: 220px;
  }
}

.nav-main {
  display: none;
}

.nav-main ul {
  display: flex;
  gap: 28px;
}

.nav-main a {
  font-weight: 400;
  font-size: .94rem;
  position: relative;
  padding: 6px 0;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transition: right .25s ease;
}

.nav-main a:hover::after,
.nav-main a.active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--green-dark);
  transition: transform .2s ease, box-shadow .2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform .25s ease;
}

.cart-count.show {
  transform: scale(1);
}

.icon-btn[data-open-cart].cart-pulsing {
  animation: cart-icon-pulse 1.8s ease-in-out infinite;
}

.icon-btn[data-open-cart].cart-pulsing svg {
  width: 32px;
  height: 32px;
  transition: width .3s ease, height .3s ease;
}

.icon-btn[data-open-cart].cart-pulsing::before,
.icon-btn[data-open-cart].cart-pulsing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  animation: cart-icon-ripple 2.4s ease-out infinite;
}

.icon-btn[data-open-cart].cart-pulsing::after {
  animation-delay: 1.2s;
}

@keyframes cart-icon-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes cart-icon-ripple {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.burger {
  display: flex;
}

@media(min-width:960px) {
  .site-header.is-scrolled {
    background: rgb(255 255 255 / 60%);
  }

  .icon-btn {
    background: var(--green-dark);
    box-shadow: var(--shadow-s);
    color: #ebebea;
  }

  .nav-main {
    display: block;
  }

  .burger {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  color: var(--green-dark);
  display: flex;
  flex-direction: column;
  padding: 24px 24px 40px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.6, 0, .3, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: 1.8rem;
}

.mobile-nav ul {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(42, 66, 42, .12);
}

.mobile-nav .mobile-contacts {
  margin-top: auto;
  padding-top: 24px;
  font-size: .9rem;
}

.mobile-nav .mobile-contacts .contact-row {
  margin-bottom: 12px;
}

.mobile-nav .mobile-contacts .contact-row .ico {
  width: 38px;
  height: 38px;
  background: var(--green-soft);
}

.mobile-nav .mobile-contacts .contact-row .ico svg {
  width: 22px;
  height: 22px;
}

.mobile-nav .mobile-contacts .social-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.mobile-nav .mobile-contacts .social-icon {
  width: 34px;
  height: 34px;
}

.mobile-nav .mobile-contacts .social-icon svg {
  width: 20px;
  height: 20px;
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Hero v2 ---------- */
.hero-v2 {
  position: relative;
  padding-top: var(--header-h);
  padding-bottom: 48px;
  background: #EBEBEA;
  overflow: hidden;
}

.hero-fireflies {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  filter: blur(2px);
}

.hero-v2-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.hero-v2-text {
  position: relative;
  z-index: 2;
  display: block;
}

.hero-v2-text h1 {
  max-width: 90%;
}

.hero-v2-text p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-rating-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .72rem;
  flex: 0 0 auto;
}

.hero-rating-badge .rb-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-rating-badge svg {
  height: auto;
  display: block;
}

.hero-rating-badge .rb-yandex svg {
  width: 10px;
}

.hero-rating-badge .rb-2gis svg {
  width: 16px;
}

.hero-v2-media-wrap {
  grid-area: media;
}

.hero-v2-media {
  position: relative;
  isolation: isolate;
}

.hero-v2-actions {
  position: relative;
  z-index: 2;
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  grid-area: stats;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats div b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--green-dark);
}

.hero-stats div span {
  font-size: .82rem;
  color: #5b5f54;
}

.hero-stat--time b .unit {
  font-size: 16px;
  font-weight: 500;
}

/* сторис-полоса поверх фото (только десктоп) */
.hero-stories-strip {
  display: none;
}

@media(max-width:959px) {
  .hero-v2 {
    min-height: 880px;
    display: flex;
    flex-direction: column;
  }

  .hero-v2-grid {
    flex: 1;
  }

  .hero-v2-actions {
    justify-content: center;
  }

  .hero-v2-media-wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 0;
  }

  .hero-fireflies {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }

  .hero-v2-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 70%;
    border-radius: 0;
  }

  .hero-v2-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    margin-top: 75vw;
  }

  .hero-v2-text h1 {
    max-width: 100%;
    margin: 0 0 .1em;
  }

  .hero-v2-text p.lead {
    font-size: .9rem;
    max-width: 42ch;
    margin: 0;
    line-height: 1.4;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 700;
    margin: 18px 0 9px 0;
  }

  .hero-stats {
    gap: 5px;
    margin-top: auto;
  }

  .hero-stat {
    background: rgb(255 255 255 / 40%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-m);
    padding: 12px 4px;
    box-shadow: 0 4px 16px rgb(34 34 34 / 40%);
  }

  .hero-stats div b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--green-dark);
  }

  .hero-stats div span {
    font-size: 12px;
  }

  .hero-stats>div {
    width: 32%;
    text-align: center;
  }
}

@media(min-width:960px) {
  .hero-v2 {
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 0px;
  }

  .hero-v2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "text media"
      "stats media"
      "actions media";
    column-gap: 30px;
    row-gap: 16px;
    align-items: start;
  }

  .hero-v2-text h1 {
    max-width: 100%;
    text-transform: uppercase;
  }

  .hero-v2-media-wrap {
    position: relative;
    z-index: 1;
  }

  .hero-v2-media {
    aspect-ratio: 4/5;
  }

  .hero-v2-media img {
    position: absolute;
    right: 0;
    bottom: -10px;
    height: 100%;
    width: auto;
    max-width: none;
  }

  .hero-v2-actions {
    margin-bottom: 150px;
  }

  .hero-v2-text {
    margin-top: 90px;
    position: relative;
    z-index: 2;
    display: block;
  }

  .hero-stats {
    gap: 20px;
    margin-top: 0;
  }

  .hero-stats div span {
    font-size: .72rem;
  }

  .hero-stats>div {
    width: 20%;
    text-align: center;
    background: rgb(255 255 255 / 20%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-m);
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgb(34 34 34 / 10%);
  }

  .hero-stories-strip {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 90px;
    z-index: 2;
    transform: translate(-50%, 50%);
  }

  .hero-stories-strip.is-empty {
    display: none;
  }

  .hero-story-track {
    display: flex;
    gap: 16px;
    width: max-content;
  }

  .hero-stories-strip.is-scrolling {
    width: 608px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }

  .hero-stories-strip.is-scrolling .hero-story-track {
    animation: heroStoriesScroll linear infinite;
  }

  .hero-stories-strip.is-scrolling:hover .hero-story-track {
    animation-play-state: paused;
  }

  .hero-story-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 140px;
    background: none;
    border: none;
    padding: 0;
  }

  .hero-story-thumb {
    width: 140px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-m);
    transition: transform .2s ease;
    background: var(--green-soft);
  }

  .hero-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-story-tile:hover .hero-story-thumb {
    transform: scale(1.05);
  }

  .hero-story-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--green-dark);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    background: #fff;
    padding: 2px 8px;
    border-radius: 6px;
  }

  @keyframes heroStoriesScroll {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(-50%);
    }
  }
}

/* ---------- Triggers / how it works ---------- */
.trigger {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow-s);
  transition: transform .3s ease, box-shadow .3s ease;
}

.trigger:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.trigger .ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.trigger .ico svg {
  width: 22px;
  height: 22px;
}

.trigger strong {
  display: block;
  font-size: .98rem;
  margin-bottom: 2px;
}

.trigger span {
  font-size: .86rem;
  color: #5b5f54;
}


/* ---------- Catalog preview / grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 24px;
}

.cat-card {
  background: var(--green-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
}

.cat-photo {
  display: block;
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--green-soft);
}

.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.cat-card:hover .cat-photo img {
  transform: scale(1.06);
}

.cat-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-title-link {
  display: block;
  margin-bottom: 6px;
}

.cat-body h3 {
  font-size: 1.3rem;
  margin: 0;
  transition: color .2s ease;
}

.cat-card:hover h3 {
  color: var(--green);
}

.cat-desc {
  font-size: .84rem;
  color: #8b8f80;
  font-style: italic;
  min-height: 2.6em;
  margin-bottom: 14px;
  line-height: 1.35;
}

.cat-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.spec-row {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.spec-label {
  font-size: .78rem;
  color: #8b8f80;
  white-space: nowrap;
}

.spec-dash {
  flex: 1;
  border-bottom: 1px dashed #c9cdb8;
  margin-bottom: 3px;
  min-width: 8px;
}

.spec-val {
  font-size: .8rem;
  font-weight: 300;
  color: var(--green-dark);
  white-space: nowrap;
}

.cat-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.cat-price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--green-dark);
  line-height: 1;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Reviews ---------- */
.reviews-slider {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform .5s ease;
}

.reviews-track .review-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  border-radius: var(--radius-m);
}

@media(min-width:960px) {
  .reviews-slider {
    max-width: 1040px;
  }

  .reviews-track {
    gap: 20px;
  }

  .reviews-track .review-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 22px;
  box-shadow: var(--shadow-s);
  min-height: 180px;
}

.review-card .stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-card .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.review-card .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
  flex: 0 0 auto;
}

.review-card .who b {
  display: block;
  font-size: .9rem;
}

.review-card .who span {
  font-size: .76rem;
  color: #8b8f80;
}

.reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-s);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green-dark);
  z-index: 2;
  line-height: 1;
}

.reviews-arrow.prev {
  left: 0px;
}

.reviews-arrow.next {
  right: 0px;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.reviews-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--beige-dark);
  cursor: pointer;
}

.reviews-dots span.active {
  background: var(--green);
}

.contacts-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}

.map-embed {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  min-height: 320px;
  background: var(--green-soft);
  position: relative;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.contact-card {
  background: var(--green-soft);
  border-radius: var(--radius-m);
  padding: 26px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.contact-row .ico {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.contact-row .ico svg {
  width: 32px;
  height: 32px;
}

.contact-row b {
  display: block;
  font-size: .94rem;
}

.contact-row span,
.contact-row a {
  font-size: .86rem;
  color: #5b5f54;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--shadow-s);
  color: var(--green-dark);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .78rem;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  background: var(--green);
  color: #fff;
}

.social-icon svg {
  width: 32px;
  height: 32px;
}

.footer-brand .social-icon {
  width: 30px;
  height: 30px;
}

.footer-brand .social-icon svg {
  width: 18px;
  height: 18px;
}

@media(min-width:960px) {
  .social-row {
    width: 320px;
    display: flex;
    gap: 10px;
    margin-top: 0;
  }

  .social-icon {
    width: 54px;
    height: 54px;
  }

  .footer-brand .social-icon {
    width: 30px;
    height: 30px;
  }
}

/* ---------- FAQ ---------- */
#faq {
  background: rgb(235, 235, 234);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(42, 66, 42, .14);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--green-dark);
}

.faq-q .plus {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  position: relative;
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--green);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-q .plus::before {
  width: 16px;
  height: 2px;
}

.faq-q .plus::after {
  width: 2px;
  height: 16px;
  transition: transform .3s ease;
}

.faq-item.open .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 4px 20px;
  color: #5b5f54;
  font-size: .94rem;
  max-width: 64ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, .82);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  font-size: .86rem;
  color: rgba(255, 255, 255, .6);
  max-width: 32ch;
}

.footer-col h4,
.footer-brand h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-brand h4 {
  margin-top: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col .social-icon {
  color: var(--green-dark);
}

.footer-col .social-icon:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
}

.footer-bottom .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-credit p {
  margin: 0;
}

.footer-credit img {
  display: block;
  height: 18px;
  width: auto;
}

/* ---------- Floating messenger button ---------- */
.fab-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-m);
  position: relative;
  animation: pulse 2.6s ease-in-out infinite;
}

.fab svg {
  width: 26px;
  height: 26px;
}

.fab.wa {
  background: #25D366;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(42, 66, 42, .35), var(--shadow-m);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(42, 66, 42, 0), var(--shadow-m);
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 0;
}

.reveal-stagger>* {
  transition-delay: calc(var(--i, 0) * 80ms);
}

.how2-triggers.reveal-stagger>* {
  transition-delay: calc(var(--i, 0) * 220ms);
  transition-duration: .9s;
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 43, 27, .5);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  z-index: 260;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.6, 0, .3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-l);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--beige);
}

.drawer-head h3 {
  margin: 0;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--green-dark);
  line-height: 1;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--beige);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-s);
  object-fit: cover;
}

.cart-item .info {
  flex: 1;
}

.cart-item .info h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  margin: 0 0 4px;
}

.cart-item .qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cart-item .qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--beige-dark);
  background: #fff;
}

.cart-item .remove {
  font-size: .76rem;
  color: #b5443f;
  background: none;
  border: none;
  margin-top: 6px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8b8f80;
}

.drawer-foot {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--beige);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 1.2rem;
}

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 43, 27, .55);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

@media(min-width:720px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 100vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 32px;
  transform: translateY(40px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
  opacity: 1;
}

@media(min-width:720px) {
  .modal {
    border-radius: 24px;
  }
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--green-dark);
}

/* ---------- Промо-попап (тёмная тема) ---------- */
.promo-popup-overlay {
  background: rgba(16, 22, 15, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.promo-popup {
  position: relative;
  max-width: 420px;
  background: #182319;
  border: 1px solid rgba(239, 241, 219, .09);
  border-radius: var(--radius-m);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  padding: 40px 36px 32px;
  overflow: hidden;
  transform: translateY(14px) scale(.97);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2, .9, .25, 1), opacity .4s cubic-bezier(.2, .9, .25, 1);
}

.promo-popup-overlay.open .modal.promo-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.promo-sprig {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 132px;
  height: 132px;
  opacity: .9;
  pointer-events: none;
}

.promo-popup .modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  float: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(239, 241, 219, .09);
  background: #1f2d1e;
  color: rgba(239, 241, 219, .68);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.promo-popup .modal-close:hover {
  background: #24361f;
  color: #EFF1DB;
  border-color: #6E9A62;
}

.promo-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #DAB777;
  margin: 8px 0 14px;
}

.promo-popup h3 {
  margin: 0 0 12px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  color: #EFF1DB;
  max-width: 82%;
}

.promo-popup p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(239, 241, 219, .68);
  max-width: 90%;
}

.promo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1f2d1e;
  border: 1.5px dashed #6E9A62;
  border-radius: var(--radius-s);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.promo-code span {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #EFF1DB;
}

.promo-popup .copy-btn {
  flex-shrink: 0;
  border: none;
  background: #DAB777;
  color: #1B2B1B;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .18s ease, transform .06s ease;
}

.promo-popup .copy-btn:hover {
  filter: brightness(1.08);
}

.promo-popup .copy-btn:active {
  transform: scale(.97);
}

.promo-popup p.muted.small {
  margin: 0;
  font-size: 12px;
  color: rgba(239, 241, 219, .42);
  max-width: 100%;
}

@media(max-width:480px) {
  .modal.promo-popup {
    padding: 36px 24px 28px;
  }

  .promo-popup h3 {
    font-size: 22px;
    max-width: 100%;
  }

  .promo-sprig {
    width: 104px;
    height: 104px;
    top: -12px;
    right: -10px;
  }
}

.cookie-banner {
  position: fixed;
  width: 320px;
  right: 0;
  bottom: 0;
  z-index: 400;
  border-radius: 25px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 20px;
  font-size: .86rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner .btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  font-size: .84rem;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--beige-dark);
  background: var(--beige);
  transition: border-color .2s ease, background .2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.field.error input {
  border-color: #b5443f;
}

.field .err-msg {
  font-size: .76rem;
  color: #b5443f;
  margin-top: 4px;
  display: none;
}

.field.error .err-msg {
  display: block;
}

.order-summary {
  background: var(--beige);
  border-radius: var(--radius-m);
  padding: 16px;
  margin-bottom: 20px;
}

.order-summary .row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 4px 0;
}

.success-view {
  text-align: center;
  padding: 20px 8px;
}

.success-view .check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: pop .4s cubic-bezier(.2, .9, .3, 1.4);
}

@keyframes pop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

/* ---------- Sticky mobile cart bar (product / catalog) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  display: flex;
  gap: 12px;
  align-items: center;
  transform: translateY(100%);
  transition: transform .3s ease;
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-cta .price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  flex: 0 0 auto;
}

@media(min-width:960px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--gold);
  color: #fff;
  width: 290px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  z-index: 400;
  box-shadow: var(--shadow-m);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media(min-width:640px) {
  .reviews-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media(min-width:820px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-grid--feature {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

@media(min-width:1080px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .reviews-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Страница товара (product.html)
   ========================================================= */
#crossSellSection {
  background: rgb(235, 235, 234);
}

.breadcrumb {
  font-size: .82rem;
  color: #8b8f80;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.breadcrumb a {
  color: #8b8f80;
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb .sep {
  opacity: .6;
}

.breadcrumb .current {
  color: var(--green-dark);
  font-weight: 600;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media(min-width:960px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  .product-gallery {
    order: 2;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .product-info {
    order: 1;
  }
}

.pg-main {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--green-soft);
  box-shadow: var(--shadow-s);
}

.pg-track {
  display: flex;
  height: 100%;
  transition: transform .4s cubic-bezier(.6, 0, .3, 1);
}

.pg-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 0 0 100%;
}

.pg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-s);
  font-size: 1.2rem;
  color: var(--green-dark);
}

.pg-arrow.prev {
  left: 14px;
}

.pg-arrow.next {
  right: 14px;
}

.pg-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pg-dots span {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .85);
  transition: width .3s ease;
  display: block;
}

.pg-dots span.active {
  width: 18px;
  background: var(--green);
}

.pg-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pg-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s ease, border-color .2s ease;
  background: none;
  padding: 0;
  flex: 0 0 auto;
}

.pg-thumb.active {
  opacity: 1;
  border-color: var(--green);
}

.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: 10px;
  max-width: 18ch;
}

.product-subtitle {
  font-size: 1.05rem;
  color: #5b5f54;
  margin-bottom: 18px;
}

.product-composition {
  font-style: italic;
  color: #8b8f80;
  font-size: .92rem;
  margin-bottom: 24px;
}

.product-specs {
  display: flex;
  gap: 36px;
  margin-bottom: 28px;
  max-width: 320px;
}

.product-specs .spec-label {
  font-size: .86rem;
}

.product-specs .spec-val {
  font-size: .92rem;
}

.product-price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.3rem;
  color: var(--green-dark);
  margin-bottom: 24px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.product-actions .btn {
  flex: 1;
  min-width: 190px;
  justify-content: center;
}

.product-qty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.product-qty button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--beige-dark);
  background: #fff;
  font-size: 1.1rem;
}

.product-qty span {
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.product-qty .muted {
  margin: 0;
}

.product-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--beige-dark);
}

.product-links button {
  background: none;
  border: none;
  font-size: .86rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 0;
}

.product-info-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.product-info-panel p {
  background: var(--beige);
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: .88rem;
  color: #5b5f54;
  margin: 14px 0 0;
}

.cat-grid--feature .cat-photo {
  aspect-ratio: 5/4;
}

/* =========================================================
   Бегущая строка (marquee) — под главным экраном
   ========================================================= */
.marquee {
  background: var(--green-dark);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* пауза по наведению — только для устройств с реальным курсором (мышь/трекпад).
   На тачскринах :hover может "залипать" после тапа и не сбрасываться — из-за этого
   бегущая строка на мобильных то замирала, то пропадала из виду в паузе. */
@media (hover: hover) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 20px;
}

.marquee-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: 20px;
  flex: 0 0 auto;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media(prefers-reduced-motion:reduce) {
  .marquee-track {
    animation: none;
  }
}

/* =========================================================
   Сторис-бар (в шапке)
   ========================================================= */
.stories-bar {
  background: transparent;
  border: none;
}

.stories-bar.is-empty {
  display: none;
}

@media(min-width:960px) {
  .stories-bar {
    display: none;
  }
}

.stories-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stories-track::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 66px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.story-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.story-item:hover .story-ring {
  transform: scale(1.06);
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--beige);
  overflow: hidden;
  background: var(--green-soft);
}

.story-ring-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-label {
  font-size: .7rem;
  font-weight: 400;
  color: var(--green-dark);
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media(min-width:960px) {
  .story-item {
    width: 78px;
  }

  .story-ring {
    width: 72px;
    height: 72px;
  }

  .story-label {
    max-width: 78px;
  }
}

/* Story popup */
.story-modal {
  max-width: 400px;
  padding: 0;
  overflow: auto;
}

.story-modal .story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--green-soft);
}

.story-modal .story-media img,
.story-modal .story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-modal .story-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  float: none;
}

.story-modal .story-body {
  padding: 22px 22px 26px;
}

.story-modal .story-body h3 {
  margin-bottom: 8px;
}

.story-modal .story-body p {
  font-size: .92rem;
  color: #5b5f54;
  margin-bottom: 18px;
  line-height: 1.2;
}

/* стрелки слайдера в попапе сторис — только на десктопе, на мобильном листаем свайпом */
.story-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background .2s ease, transform .2s ease;
}

.story-nav:hover {
  background: rgba(0, 0, 0, .55);
  transform: translateY(-50%) scale(1.06);
}

.story-nav.prev {
  left: 10px;
}

.story-nav.next {
  right: 10px;
}

@media(min-width:960px) {
  .story-nav {
    display: flex;
  }
}

/* =========================================================
   «Как мы работаем» v2 — триггеры + списки слева,
   стопка карточек шагов справа (эффект как stacked-feature-cards)
   ========================================================= */
.how2 {
  background: #EBEBEA;
}

.how2-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 0;
  width: 365px;
  padding: 0;
  max-width: 100%;
  margin-inline: auto;
}

/* мобильный порядок: сначала стопка карточек, потом триггеры, потом списки —
   .how2-left «разворачивается» (display:contents), и его дети встают в общий поток. */
@media(max-width:959px) {
  .how2-left {
    display: contents;
  }
}

@media(min-width:960px) {
  .how2-layout {
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    align-items: start;
    width: auto;
    margin-inline: 0;
  }

  .how2-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin: 0;
  }

  .how2-stack-outer {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}

.how2-triggers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media(min-width:560px) {
  .how2-triggers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.how2-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media(min-width:640px) {
  .how2-lists {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.how2-list h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
  margin-bottom: 14px;
}

.how2-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how2-list li {
  display: flex;
  gap: 8px;
  font-size: .92rem;
  color: var(--dark);
  line-height: 1.45;
}

.how2-list li::before {
  content: "—";
  color: var(--gold);
  font-weight: 700;
  flex: 0 0 auto;
}

/* порядок на мобильном по наброску: Оплата, Гарантии, Доставка */
@media(max-width:639px) {
  .how2-list[data-list="payment"] {
    order: 1;
  }

  .how2-list[data-list="guarantee"] {
    order: 2;
  }

  .how2-list[data-list="delivery"] {
    order: 3;
  }
}

/* ---- стопка карточек: card 2, 3… накладываются на card 1 по очереди ---- */
.how2-stack-outer {
  position: relative;
  --steps: 3;
  height: calc(var(--steps) * 90vh);
  min-height: calc(var(--steps) * 420px);
}

.how2-stack-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 6px;
}

/* на мобильном .muted (интро-абзац) переносится сюда скриптом — едет вместе со стопкой */
.how2-stack-sticky .muted {
  text-align: center;
  margin: 0;
}

/* десктоп: просто слайдер — без скролл-джекинга, без огромной высоты и без sticky.
   Идёт после базовых правил выше, чтобы точно их переопределить. */
@media(min-width:960px) {
  .how2-stack-outer {
    height: auto;
    min-height: 0;
  }

  .how2-stack-sticky {
    position: relative;
    top: auto;
  }
}

.how2-stack-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-bottom: 44px;
}

@media(min-width:960px) {
  .how2-stack-wrap {
    margin-bottom: 0;
  }
}

.how2-stack {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
}

.how2-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 320px;
  height: 500px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.how2-card[data-step="1"] {
  z-index: 1;
  transform: translateY(0);
}

.how2-card[data-step="2"] {
  z-index: 2;
  transform: translateY(100%) rotate(-4deg);
}

.how2-card[data-step="3"] {
  z-index: 3;
  transform: translateY(100%) rotate(-6deg);
}

/* угол наклона у карточки не меняется при приземлении — едет только translateY */
.how2-card[data-step="2"].is-active {
  transform: translateY(0) rotate(-4deg);
}

.how2-card[data-step="3"].is-active {
  transform: translateY(0) rotate(-6deg);
}

.how2-card-media {
  flex: 1;
  border-radius: var(--radius-m);
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 0;
  overflow: hidden;
}

.how2-card-media svg {
  width: 56px;
  height: 56px;
}

.how2-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how2-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.how2-card .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

.how2-card-heading h3 {
  margin: 0;
}

.how2-card h3 {
  font-size: 1.2rem;
}

.how2-card p {
  font-size: .88rem;
  color: #5b5f54;
  line-height: 1.5;
  margin: 0;
}

@media(max-width:959px) {
  .how2-card {
    width: 300px;
  }
}

.how2-dots {
  display: flex;
  gap: 8px;
}

.how2-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-s);
  transition: background .3s ease, width .3s ease;
  cursor: pointer;
}

.how2-dots span.active {
  background: var(--green);
  width: 22px;
  border-radius: 999px;
}

/* стрелки слайдера — по бокам от карточки, только на десктопе; пагинация (точки) там отключена */
.how2-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: var(--shadow-s);
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 1.2rem;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.how2-arrow.prev {
  left: -16px;
}

.how2-arrow.next {
  right: -16px;
}

.how2-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: var(--shadow-m);
}

.how2-arrow:disabled {
  opacity: .35;
  pointer-events: none;
}

@media(min-width:960px) {
  .how2-arrow {
    display: flex;
  }

  .how2-dots {
    display: none;
  }
}

/* десктоп: убираем нижний паддинг у «Как мы работаем» — после блока каталога
   с тёмным фоном не нужен двойной отступ перед отзывами */
@media(min-width:960px) {
  .how2 {
    background: #EBEBEA;
    padding: 72px 0 0 0;
  }
}

/* =========================================================
   Каталог (промо-блок на главной) — тёмно-зелёный фон,
   золотой заголовок слева, сетка букетов справа.
   Текстовый блок .cat-promo-head — первая ячейка той же сетки .cat-grid,
   считается наравне с карточками товара.
   ========================================================= */
.cat-promo {
  background: var(--green-dark);
  padding-bottom: 0;
}

.cat-promo .marquee {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.cat-promo-head .eyebrow {
  color: #fff;
}

.cat-promo-head .eyebrow::before {
  background: var(--gold);
}

.cat-promo-head h2 {
  color: var(--gold);
}

.cat-promo-head p {
  color: rgba(255, 255, 255, .82);
}

@media(min-width:960px) {
  .cat-promo .container {
    max-width: 1400px;
  }

  .cat-promo .cat-grid {
    align-items: start;
  }
}

/* мобильный: фото и карточки — почти во всю ширину экрана, со скруглением */
@media(max-width:959px) {
  .cat-promo .cat-card {
    margin: 1em;
    border-radius: 25px;
    box-shadow: none;
  }
}

@media(min-width:960px) {
  .cat-promo .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* десктоп: 12-колоночная сетка, у каждой ячейки (инфо-блок и карточки) span:3 —
   это ровно 4 ячейки в ряд. Верхний ряд — инфо-блок + 3 карточки, нижний — 4 карточки. */
@media(min-width:1280px) {
  .cat-promo .cat-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .cat-promo .cat-grid>* {
    grid-column: span 3;
  }
}

/* .reveal.in обнуляет margin-bottom глобально (нужно было для «Как мы работаем») —
   здесь возвращаем отступ под текстом, иначе он схлопнется с карточками после анимации. */
.cat-promo-head.reveal {
  margin-bottom: 36px;
}

@media(min-width:960px) {
  .cat-promo-head.reveal {
    margin-bottom: 0;
  }
}

/* ---------- Виджет "Нужна помощь?" ---------- */
.help-widget {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 250;
  width: 60px;
  height: 60px;
}

@media(max-width:959px) {
  .help-widget {
    bottom: 20px;
    right: 20px;
  }
}

.help-widget-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(110, 154, 98, .4);
  z-index: 1;
  pointer-events: none;
  animation: help-widget-pulse 2.4s ease-out infinite;
}

.help-widget.open .help-widget-pulse {
  opacity: 0;
  animation: none;
}

@keyframes help-widget-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.help-widget-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(45deg, #2A3623, #6E9A62);
  color: #fff;
  box-shadow: var(--shadow-m);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}

.help-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-l);
}

.help-widget-btn-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.help-widget-btn-ico svg {
  width: 26px;
  height: 26px;
}

.help-widget-btn-ico--close {
  opacity: 0;
  transform: rotate(-80deg) scale(.4);
}

.help-widget.open .help-widget-btn-ico--chat {
  opacity: 0;
  transform: rotate(80deg) scale(.4);
}

.help-widget.open .help-widget-btn-ico--close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* тултип-подсказка слева от кнопки */
.help-widget-tooltip {
  position: absolute;
  bottom: 9px;
  right: 72px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--green-dark);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-m);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateX(6px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.help-widget-tooltip.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.help-widget-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}

.help-widget-tooltip-ico {
  display: flex;
  color: var(--green);
  flex: 0 0 auto;
}

.help-widget-tooltip-ico svg {
  width: 18px;
  height: 18px;
}

.help-widget-tooltip-text {
  font-size: .86rem;
  font-weight: 700;
}

.help-widget-tooltip-close {
  background: none;
  border: none;
  color: var(--ink-muted, #8b8f80);
  padding: 0;
  margin-left: 2px;
  display: flex;
}

.help-widget-tooltip-close svg {
  width: 14px;
  height: 14px;
}

/* сетка каналов, раскрывается вместо кнопки — крестик остаётся в её углу */
.help-widget-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.help-widget.open .help-widget-panel {
  pointer-events: auto;
}

.help-widget-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-m);
  opacity: 0;
  transform: scale(.3);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1),
    bottom .28s cubic-bezier(.34, 1.56, .64, 1), right .28s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow .2s ease;
}

.help-widget-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-l);
}

.help-widget-icon svg {
  width: 36px;
  height: 36px;
}

/* раскрытое положение — веер по дуге вокруг главной кнопки, как в референсе */
.help-widget.open .help-widget-icon {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.help-widget.open .help-widget-panel .help-widget-icon:nth-child(1) {
  bottom: 75px;
  right: -10px;
  transition-delay: 0s;
}

.help-widget.open .help-widget-panel .help-widget-icon:nth-child(2) {
  bottom: 60px;
  right: 50px;
  transition-delay: .05s;
}

.help-widget.open .help-widget-panel .help-widget-icon:nth-child(3) {
  bottom: 0px;
  right: 70px;
  transition-delay: .1s;
}

.help-widget.open .help-widget-panel .help-widget-icon:nth-child(4) {
  bottom: 40px;
  right: 100px;
  transition-delay: .15s;
}

.help-widget.open .help-widget-panel .help-widget-icon:nth-child(5) {
  bottom: 15px;
  right: 125px;
  transition-delay: .2s;
}

.help-widget-icon.channel-phone {
  background: linear-gradient(45deg, #2A3623, #6E9A62);
  color: #fff;
}

.help-widget-icon.channel-telegram {
  background: #229ED9;
  color: #fff;
}

.help-widget-icon.channel-whatsapp {
  background: #25D366;
  color: #fff;
}

.help-widget-icon.channel-vk {
  background: #0077FF;
  color: #fff;
}

.help-widget-icon.channel-max {
  background: #7C4DFF;
  color: #fff;
}