/* =========================================================
   Цветочная Лавка — дизайн-система "Rose & Reverie"
   Романтичный, воздушный флористический стиль:
   айвори + тёмно-зелёный + приглушённое золото
   ========================================================= */

:root{
  --cream:        #F7F2E7;
  --cream-alt:    #EFE6D3;
  --cream-card:   #FCFAF3;
  --forest:       #3B4A38;
  --forest-dark:  #2A3628;
  --forest-soft:  #6C7A62;
  --gold:         #B08D57;
  --gold-soft:    #D9C29B;
  --text:         #46402F;
  --text-light:   #7A7261;
  --white:        #FFFFFF;

  --font-heading: 'Playfair Display', serif;
  --font-script:  'Cormorant Garamond', serif;
  --font-body:    'EB Garamond', serif;

  --radius: 4px;
  --shadow: 0 10px 30px rgba(59, 74, 56, 0.10);
  --shadow-soft: 0 4px 16px rgba(59, 74, 56, 0.08);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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; }

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

h1, h2, h3, h4{
  font-family: var(--font-heading);
  color: var(--forest);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

.eyebrow{
  display: block;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.section-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head h2{
  font-size: clamp(30px, 4vw, 42px);
}

.section-head p{
  color: var(--text-light);
  margin-top: 14px;
  font-size: 19px;
}

.divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto;
}
.divider::before, .divider::after{
  content: "";
  width: 46px;
  height: 1px;
  background: var(--gold-soft);
}
.divider span{
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

section{ padding: 96px 0; }
.section-alt{ background: var(--cream-alt); }
.divider-left{ justify-content: flex-start; margin-left: 0; }
.divider-left::before{ display: none; }

.ctor-intro-text{
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Главная: блок «Конструктор клумбы» ---------- */
.ctor-promo-inner{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.ctor-promo-copy p{ font-size: 18px; margin-bottom: 26px; }
.ctor-promo-steps{
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 18px;
}
.ctor-promo-steps li{ display: flex; gap: 16px; align-items: flex-start; }
.ctor-promo-steps li > span{
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center;
}
.ctor-promo-steps strong{
  display: block;
  font-family: var(--font-heading);
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 2px;
}
.ctor-promo-media{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}
.ctor-promo-media img{
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(59, 74, 56, .12);
  transition: transform .35s ease;
}
.ctor-promo-media img:nth-child(1){ transform: translateY(28px); }
.ctor-promo-media img:nth-child(3){ transform: translateY(-28px); }
.ctor-promo-media:hover img{ transform: translateY(0); }
@media (max-width: 900px){
  .ctor-promo-inner{ grid-template-columns: 1fr; gap: 40px; }
  .ctor-promo-media img:nth-child(1), .ctor-promo-media img:nth-child(3){ transform: none; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover{ background: var(--forest-dark); transform: translateY(-2px); }

.btn-gold{
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover{ background: #9c7a49; transform: translateY(-2px); }

.btn-outline{
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover{ background: var(--forest); color: var(--cream); }

.btn-outline-light{
  background: transparent;
  color: var(--cream);
  border-color: var(--gold-soft);
}
.btn-outline-light:hover{ background: rgba(255,255,255,0.12); }

.btn-sm{ padding: 10px 22px; font-size: 13px; }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 242, 231, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
}
.brand-name{
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--forest);
  line-height: 1.1;
}
.brand-tagline{
  font-family: var(--font-script);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a{
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}
/* Shopping links sit on the left, the about-the-company links are pushed right. */
.main-nav{ flex: 1; margin-left: 24px; gap: 24px; }
.header-inner{ max-width: 1600px; padding-left: 32px; padding-right: 32px; }
.main-nav a[href="reviews.html"]{ margin-left: auto; }
.brand{ flex-shrink: 0; }
.brand-tagline{ white-space: nowrap; }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after{ width: 100%; }
.main-nav a.active{ color: var(--gold); }

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-link{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-alt);
  color: var(--forest);
  border: 1px solid var(--gold-soft);
  transition: background .2s ease;
}
.icon-link:hover{ background: var(--gold-soft); }
.icon-link svg{ width: 18px; height: 18px; }

.burger{
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span{
  width: 24px; height: 2px; background: var(--forest);
}

/* ---------- Brand lockup (текстовая надпись в стиле логотипа) ---------- */
.brand-lockup{
  text-align: center;
  position: relative;
  z-index: 2;
}
.brand-lockup-text .brand-lockup-title{
  font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.09em;
  color: var(--forest);
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-lockup-text .brand-lockup-sub{
  display: block;
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.12em;
  margin-top: 10px;
}

/* ---------- Угловые цветочные декорации (мотив логотипа на всю страницу) ---------- */
.corner-flower{
  position: absolute;
  width: 340px;
  height: auto;
  max-width: 40vw;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.corner-flower-tr-fade{
  position: absolute;
  top: 0; right: 0;
  width: 340px;
  max-width: 40vw;
  z-index: 0;
}
.corner-flower-tr-fade-h{
  width: 100%;
  height: 100%;
}
.corner-flower-tr-fade .corner-flower--tr{
  position: static;
  width: 100%;
  max-width: none;
}
.corner-flower-bl-fade{
  position: absolute;
  bottom: 0; left: 0;
  width: 300px;
  z-index: 0;
}
.corner-flower-bl-fade .corner-flower--bl{
  position: static;
  width: 100%;
}

@media (max-width: 720px){
  .corner-flower-tr-fade{ width: 190px; }
  .corner-flower-bl-fade{ width: 170px; }
}

/* ---------- Объединённый заголовок hero ---------- */
.hero-maintitle{
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.hero-copy .hero-subtitle{
  font-family: var(--font-heading);
  color: var(--forest);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  margin: 4px auto 0;
  max-width: none;
}

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(176,141,87,0.10) 0, transparent 45%),
    radial-gradient(circle at 90% 82%, rgba(59,74,56,0.08) 0, transparent 50%);
  pointer-events: none;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-copy .eyebrow{ font-size: 24px; }
.hero-copy h1{
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
}
.hero-copy p{
  margin: 22px 0 34px;
  color: var(--text-light);
  font-size: 20px;
  max-width: 520px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media{
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-media::before{
  content: "";
  position: absolute;
  width: 92%; height: 92%;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
}
.hero-media img{
  width: 100%;
  max-width: 420px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
  border: 6px solid var(--cream-card);
}

.hero-strip{
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(176,141,87,0.3);
}
.hero-strip div{ text-align: center; }
.hero-strip strong{
  display: block;
  font-family: var(--font-heading);
  color: var(--forest);
  font-size: 26px;
}
.hero-strip span{
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

/* ---------- Флажки-флоу для заголовков секций (повтор мотива логотипа) ---------- */
.section-head-flowers{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 4px;
}
.flower-flank{
  width: 44px;
  height: auto;
  opacity: 0.75;
}
.flower-flank-left{ transform: scaleX(-1); }

/* ---------- Секция "О магазине" с фото-слайдшоу на фоне ---------- */
.about-photo-section{
  position: relative;
  overflow: hidden;
  padding: 130px 0;
}
.about-bg-slideshow{
  position: absolute;
  inset: 0;
}
.about-bg-slideshow img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  filter: sepia(0.4) saturate(0.5) brightness(1.12) hue-rotate(-8deg);
  cursor: pointer;
}
.about-bg-slideshow img.active{ opacity: 1; }
.about-overlay{
  position: absolute;
  inset: 0;
  background: rgba(247, 242, 231, 0.85);
}
.about-content{
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.about-gallery-hint{
  margin-top: 30px;
}

/* ---------- Лайтбокс фото магазина ---------- */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox-overlay.open{ display: flex; }
.lightbox-image{
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav{
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover{ background: rgba(255,255,255,0.2); }
.lightbox-close{
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  font-size: 20px;
}
.lightbox-nav{
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 26px;
}
.lightbox-prev{ left: 20px; }
.lightbox-next{ right: 20px; }
.lightbox-counter{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-script);
  font-style: italic;
  font-size: 15px;
}

@media (max-width: 640px){
  .about-photo-section{ padding: 90px 0; }
  .lightbox-nav{ width: 40px; height: 40px; font-size: 20px; }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }
  .lightbox-overlay{ padding: 16px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 56px 0;
  text-align: center;
  background: var(--cream-alt);
  border-bottom: 1px solid rgba(176,141,87,0.25);
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow{ font-size: 20px; }
.page-hero h1{ font-size: clamp(32px, 4vw, 46px); }
.page-hero--fullscreen{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}
.page-hero--fullscreen .container{ display: flex; flex-direction: column; align-items: center; }
.page-hero--fullscreen h1{ margin-bottom: 32px; }
.ctor-qty-stepper{
  display: flex;
  align-items: center;
  gap: 20px;
}
.ctor-qty-input{
  width: 160px;
  font-family: 'Bodoni Moda', serif;
  font-weight: 600;
  font-size: 72px;
  text-align: center;
  color: var(--forest);
  background: var(--cream-card);
  border: 2px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 14px 10px;
  -moz-appearance: textfield;
}
.ctor-qty-input:focus{ outline: none; border-color: var(--gold); }
.ctor-qty-input::-webkit-inner-spin-button,
.ctor-qty-input::-webkit-outer-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.ctor-qty-arrow{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold-soft);
  background: var(--cream-card);
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctor-qty-arrow:hover{ border-color: var(--gold); background: var(--cream-alt); }
.ctor-qty-arrow:disabled{ opacity: 0.4; cursor: not-allowed; }

.ctor-carousel{
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}
.ctor-carousel-track{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 267px;
}
.ctor-carousel-cell{
  width: 200px;
  height: 267px;
  flex-shrink: 0;
  background: var(--cream-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: opacity .3s ease, transform .3s ease;
}
.ctor-carousel-cell img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ctor-carousel-cell--empty{ visibility: hidden; }
.ctor-result-base{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.ctor-result-base img{
  width: 420px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.ctor-result-flowers{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.ctor-result-flower-card{
  width: 140px;
  background: var(--cream-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.ctor-result-flower-card img{
  width: 100%;
  height: 186px;
  object-fit: cover;
  display: block;
}
.ctor-carousel-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  box-shadow: var(--shadow-soft);
  transition: opacity .2s ease, background .2s ease;
}
.ctor-carousel-arrow:hover{ opacity: 1; background: rgba(255,255,255,0.85); }
.ctor-carousel-arrow--left{ left: calc(50% - 154px); }
.ctor-carousel-arrow--right{ right: calc(50% - 154px); }
.ctor-carousel-arrow:disabled{ opacity: 0.2; cursor: not-allowed; }
.ctor-qty-unit{
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.breadcrumbs{
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumbs a{ color: var(--gold); }

/* ---------- Category filter tabs ---------- */
.filter-tabs{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-tabs button{
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: all .2s ease;
}
.filter-tabs button.active, .filter-tabs button:hover{
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

/* ---------- Product / category grid ---------- */
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--cream-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }

.card-media{
  aspect-ratio: 3/4;
  background: repeating-linear-gradient(135deg, var(--cream-alt), var(--cream-alt) 12px, #E7DCC3 12px, #E7DCC3 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-media span{
  font-family: var(--font-script);
  font-style: italic;
  color: var(--forest-soft);
  font-size: 16px;
  background: rgba(255,255,255,0.55);
  padding: 6px 16px;
  border-radius: 30px;
}
.card-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.card-media[data-gallery] img{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card-media[data-gallery] img.active{
  opacity: 1;
}
.card-body{
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-cat{
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
}
.card-body h3{
  font-size: 21px;
}
.card-body p{
  color: var(--text-light);
  font-size: 15.5px;
  margin: 0;
  flex: 1;
}
.card-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.price-note{
  font-family: var(--font-script);
  font-style: italic;
  color: var(--forest-soft);
  font-size: 14px;
}
.price{
  font-weight: 700;
  color: var(--forest);
  font-size: 18px;
  white-space: nowrap;
}
.price-lg{
  font-size: 26px;
}

/* ---------- Страница товара ---------- */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light);
  transition: color .2s ease;
}
.back-link svg{ width: 18px; height: 18px; }
.back-link:hover{ color: var(--forest); }

body.product-page{ background: var(--cream-alt); }
.product-page .page-hero{ background: transparent; border-bottom: none; padding-bottom: 30px; }
.product-page-content{ position: relative; }
.corner-flower-bl-fade--page{
  position: absolute;
  bottom: 0; left: 0;
  z-index: 0;
  pointer-events: none;
}
.corner-flower-tr-fade--page{
  z-index: 0;
  pointer-events: none;
}

.product-layout{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: flex-start;
}
.product-gallery-main{
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-card);
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}
.product-gallery-main img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s ease, transform .5s ease;
}
.product-gallery-main img.active{ opacity: 1; }
.product-gallery-main:hover img.active{ transform: scale(1.18); }
.product-gallery-hint{
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}
.product-info{ padding-top: 8px; }
.product-info .card-cat{
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
}
.product-info h1{
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 8px 0 18px;
}
.product-meta{ list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.product-meta li{ font-size: 16px; color: var(--text-light); line-height: 1.5; }
.product-meta li strong{ color: var(--text); font-weight: 600; }
.product-price-row{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.catalog-category-note{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
  text-align: left;
}
.catalog-category-note p{
  margin: 0;
  max-width: 560px;
  color: var(--text);
  font-size: 18px;
}

/* ---------- Placeholder blocks (для контента "пришлю позже") ---------- */
.placeholder{
  border: 1.5px dashed var(--gold-soft);
  background: rgba(217, 194, 155, 0.08);
}
.placeholder .card-media span, .placeholder-tag{
  color: var(--gold);
}
.placeholder-tag{
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  background: var(--gold-soft);
  color: var(--forest-dark);
  padding: 4px 12px;
  border-radius: 30px;
  align-self: flex-start;
}

/* ---------- Load more / catalog count ---------- */
.load-more-wrap{
  text-align: center;
  margin-top: 44px;
}
.catalog-count{
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ---------- Конструктор клумбы ---------- */
.constructor-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.ctor-step{ margin-bottom: 44px; }
.ctor-step:last-child{ margin-bottom: 0; }
.ctor-step h3{
  font-size: 20px;
  margin-bottom: 6px;
}
.ctor-step-hint{
  color: var(--text-light);
  font-size: 14.5px;
  margin: 0 0 20px;
}
.ctor-options{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.ctor-option{
  background: var(--cream-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color .2s ease, transform .2s ease;
  text-align: center;
  padding-bottom: 10px;
}
.ctor-option:hover{ transform: translateY(-3px); }
.ctor-option.selected{ border-color: var(--gold); }
.ctor-option-media{
  aspect-ratio: 1/1;
  overflow: hidden;
}
.ctor-option-media img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.ctor-option-label{
  font-family: var(--font-heading);
  font-size: 13.5px;
  color: var(--forest);
  margin: 10px 8px 2px;
  line-height: 1.3;
}
.ctor-option-code{
  font-family: var(--font-script);
  font-style: italic;
  font-size: 12px;
  color: var(--gold);
}
.ctor-option-dims{
  font-size: 13px;
  color: var(--text-light);
  margin: 4px 8px 0;
}
.ctor-options--bases{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.ctor-options--bases .ctor-option-media{ aspect-ratio: 3/4; }
.ctor-options--bases .ctor-option-label{ font-size: 17px; margin-top: 16px; }
.ctor-options--bases .ctor-option-code{ font-size: 14px; }
.ctor-options--bases .ctor-option-dims{ font-size: 14px; margin-top: 6px; }
.ctor-qty{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.ctor-qty-btn{
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: var(--cream);
  color: var(--forest);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.ctor-qty-btn:hover{ background: var(--gold-soft); }
.ctor-qty-value{
  min-width: 16px;
  font-family: var(--font-heading);
  color: var(--forest);
}

.ctor-summary{
  position: sticky;
  top: 100px;
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.ctor-summary h3{ font-size: 21px; margin-bottom: 16px; }
.ctor-summary-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.ctor-summary-list li{
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px dashed var(--gold-soft);
  padding-bottom: 8px;
}
.ctor-summary-code{
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-script);
  font-size: 13px;
}
.ctor-empty{
  color: var(--text-light);
  font-style: italic;
  border-bottom: none !important;
}
.ctor-placeholder-note{
  border: 1.5px dashed var(--gold-soft);
  background: rgba(217, 194, 155, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

/* ---------- Services ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card{
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--cream-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gold-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.services-grid--4{ grid-template-columns: repeat(4, 1fr); gap: 24px; }
.services-grid--4 .service-card{ padding: 34px 22px; }
.service-card .btn{ margin-top: auto; }
.service-note{
  font-size: 13px !important;
  font-style: italic;
  color: var(--gold) !important;
  margin-top: -4px !important;
}
.field-hint{ font-size: 13px; color: var(--text-light); margin: 6px 0 0; }

/* ---------- Отзывы: фото заказанных товаров, форма ---------- */
.review-items{ display: flex; gap: 8px; margin-bottom: 8px; }
.review-item{
  width: 84px; height: 84px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-alt);
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.review-item img{ width: 100%; height: 100%; object-fit: cover; }
.review-item-more{ font-family: var(--font-heading); color: var(--forest); font-size: 15px; }
.review-items-caption{ font-size: 12px; color: var(--text-light); margin: 0 0 12px; line-height: 1.4; }
.reviews-empty{
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 28px;
  background: var(--cream-card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
}
.reviews-empty h3{ font-size: 22px; margin: 0 0 10px; color: var(--forest); }
.reviews-empty p{ color: var(--text-light); margin: 0; }
.review-form-card{ max-width: 560px; margin: 32px auto 0; }
.review-order-items .review-items{ flex-wrap: wrap; margin-top: 10px; }
.rating-input{ display: flex; gap: 4px; }
.rating-input button{
  background: none; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; padding: 0 2px;
  color: var(--gold-soft);
}
.rating-input button.on{ color: var(--gold); }
.form-error{ color: #a23b2c; font-size: 14px; min-height: 0; margin: 0 0 12px; }
.form-error:empty{ display: none; }
.form-notice{
  background: var(--cream-alt);
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 16px;
}
.form-notice strong{
  display: block;
  color: var(--forest);
  font-family: var(--font-heading);
  margin-bottom: 4px;
}
.service-icon svg{ width: 30px; height: 30px; }
.service-icon{
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--cream-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 26px;
}
.service-card h3{ font-size: 20px; }
.service-card p{ color: var(--text-light); font-size: 15px; margin: 0; }

/* ---------- Reviews ---------- */
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review-card{
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars{ color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.review-text{
  color: var(--text);
  font-size: 16.5px;
  font-style: italic;
  flex: 1;
}
.review-person{
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
}
.review-name{ font-family: var(--font-heading); font-size: 15px; color: var(--forest); }
.review-role{ font-size: 13px; color: var(--text-light); }

.reviews-cta{
  text-align: center;
  margin-top: 44px;
}
.reviews-cta p{ color: var(--text-light); margin-bottom: 16px; }

/* ---------- Contacts ---------- */
.contacts-wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list{ display: flex; flex-direction: column; gap: 26px; margin-top: 32px; }
.contact-item{ display: flex; gap: 16px; align-items: flex-start; }
.contact-icon{
  width: 46px; height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: var(--cream-alt);
  border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.contact-icon svg{ width: 20px; height: 20px; }
.contact-item h4{ font-size: 17px; margin-bottom: 4px; }
.contact-item p{ margin: 0; color: var(--text-light); font-size: 15.5px; overflow-wrap: anywhere; }
/* a grid column may not grow past the screen because of a long word (the e-mail) */
.contacts-wrap > *, .contact-item > div{ min-width: 0; }
.contact-item .fill-me{ color: var(--gold); font-style: italic; }

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

.map-placeholder{
  margin-top: 34px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 1.5px dashed var(--gold-soft);
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-soft);
  font-family: var(--font-script);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  padding: 20px;
}

/* ---------- Form ---------- */
.form-card{
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-card h3{ font-size: 24px; margin-bottom: 6px; }
.form-card .form-sub{ color: var(--text-light); font-size: 15px; margin-bottom: 26px; }

.field{ margin-bottom: 20px; }
.field label{
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest-soft);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.field input, .field textarea, .field select{
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}
.field-checkbox .checkbox-label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  cursor: pointer;
}
.field-checkbox input[type="checkbox"]{
  width: auto;
  margin-top: 3px;
  accent-color: var(--forest);
  flex-shrink: 0;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--gold);
}
.field textarea{ resize: vertical; min-height: 100px; }
.form-note{
  font-size: 13px;
  color: var(--text-light);
  margin-top: 14px;
  text-align: center;
}
.form-success{
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show{ display: block; }
.form-success svg{ width: 48px; height: 48px; color: var(--gold); margin-bottom: 14px; }
.form-success h4{ font-size: 22px; margin-bottom: 8px; }
.form-success p{ color: var(--text-light); }

/* ---------- Modal ---------- */
.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(42, 54, 40, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open{ display: flex; }
.modal-box{
  background: var(--cream-card);
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close{
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--forest);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover{ background: var(--cream-alt); }
.modal-product{
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold);
}

/* ---------- Floating action buttons ---------- */
.fab-stack{
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 400;
}
.fab{
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform .2s ease;
}
.fab:hover{ transform: scale(1.08); }
.fab svg{ width: 26px; height: 26px; }
.fab-vk{ background: #3b4a38; }
.fab-telegram{ background: #B08D57; }
.fab-max{ background: #6C7A62; }
.fab-call{ background: #46402F; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 80px 0;
}
.cta-band .eyebrow{ color: var(--gold-soft); }
.cta-band h2{ color: var(--cream); font-size: clamp(28px,4vw,40px); }
.cta-band p{ color: rgba(247,242,231,0.75); max-width: 560px; margin: 16px auto 30px; font-size: 18px; }
.cta-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--forest-dark);
  color: rgba(247,242,231,0.8);
  padding: 64px 0 24px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(217,194,155,0.2);
}
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img{ height: 48px; width: 48px; border-radius: 50%; }
.footer-brand span{ font-family: var(--font-heading); color: var(--cream); font-size: 19px; }
.site-footer p{ font-size: 14.5px; line-height: 1.7; }
.site-footer h4{
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul li{ margin-bottom: 10px; }
.site-footer a:hover{ color: var(--gold-soft); }
.footer-social{ display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom{
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(247,242,231,0.55);
}

/* ---------- Anchors offset for sticky header (landing page) ---------- */
section[id]{ scroll-margin-top: 90px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .product-layout{ grid-template-columns: 1fr; }
  .hero-inner{ grid-template-columns: 1fr; text-align: center; }
  .hero-copy p{ margin-left: auto; margin-right: auto; }
  .hero-actions{ justify-content: center; }
  .hero-media{ order: -1; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .services-grid, .services-grid--4{ grid-template-columns: repeat(2, 1fr); }
  .reviews-grid{ grid-template-columns: 1fr; }
  .contacts-wrap{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .constructor-grid{ grid-template-columns: 1fr; }
  .ctor-summary{ position: static; }
}

/* The full menu needs ~1200px; below that it folds into the burger. */
@media (max-width: 1200px){
  .main-nav{
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 28px;
    gap: 22px;
    border-bottom: 1px solid var(--gold-soft);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .main-nav.open{ transform: translateY(0); }
  .main-nav{ margin-left: 0; }
  .main-nav a[href="reviews.html"]{ margin-left: 0; margin-top: 14px; }
  .burger{ display: flex; }
}

@media (max-width: 720px){
  .header-actions .icon-link{ display: none; }
  .grid, .grid-4, .services-grid, .services-grid--4{ grid-template-columns: 1fr; }
  section{ padding: 64px 0; }
  .footer-grid{ grid-template-columns: 1fr; }
  .fab-stack{ right: 14px; bottom: 14px; }
  .fab{ width: 48px; height: 48px; }
  .fab svg{ width: 22px; height: 22px; }
}

/* ---------- Страница заказа (order.html) ---------- */
.order-container{ max-width: 920px; }
.order-head{ text-align: center; margin-bottom: 32px; }
.order-head h2{ font-size: clamp(28px, 4vw, 40px); margin: 6px 0 0; }
.order-head p{ color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 18px; }
.order-check{ width: 64px; height: 64px; margin: 0 auto 12px; color: var(--forest); }
.order-check svg{ width: 100%; height: 100%; }
.order-number-card{
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.order-number-label{ display: block; font-family: var(--font-script); font-style: italic; font-size: 20px; color: var(--gold-soft); }
.order-number{ display: block; font-family: var(--font-heading); font-size: clamp(36px, 6vw, 52px); letter-spacing: 6px; margin: 4px 0 10px; }
.order-number-card p{ color: rgba(247,242,231,0.8); max-width: 560px; margin: 0 auto 16px; }
.order-number-card .btn-outline{ color: var(--cream); border-color: rgba(247,242,231,0.6); }
.order-number-card .btn-outline:hover{ background: var(--cream); color: var(--forest); }
.order-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.order-card{ background: var(--cream-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.order-card h3{ font-size: 22px; margin: 0 0 18px; color: var(--forest); }
.order-steps{ list-style: none; margin: 0; padding: 0; }
.order-step{ position: relative; display: flex; gap: 16px; padding-bottom: 22px; color: var(--text-light); }
.order-step:last-child{ padding-bottom: 0; }
.order-step::before{
  content: ""; position: absolute; left: 9px; top: 22px; bottom: 0;
  width: 2px; background: var(--cream-alt);
}
.order-step:last-child::before{ display: none; }
.order-step.reached::before{ background: var(--forest-soft); }
.order-step-dot{
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gold-soft); background: var(--cream-card); margin-top: 3px; position: relative; z-index: 1;
}
.order-step.reached .order-step-dot{ background: var(--forest-soft); border-color: var(--forest-soft); }
.order-step.current .order-step-dot{ background: var(--forest); border-color: var(--forest); box-shadow: 0 0 0 5px rgba(59,74,56,0.15); }
.order-step.reached{ color: var(--text); }
.order-step-label{ font-family: var(--font-heading); font-size: 17px; }
.order-step.current .order-step-label{ color: var(--forest); font-weight: 600; }
.order-step-time{ font-size: 14px; color: var(--text-light); }
.order-step-hint{ font-size: 15px; margin-top: 4px; color: var(--text); }
.order-step.cancelled .order-step-dot{ background: #a23b2c; border-color: #a23b2c; box-shadow: 0 0 0 5px rgba(162,59,44,0.15); }
.order-step.cancelled .order-step-label{ color: #a23b2c; }
.order-updated{ font-size: 13px; color: var(--text-light); margin: 18px 0 0; }
.order-composition{ width: 100%; border-radius: var(--radius); background: var(--white); margin-bottom: 16px; display: block; }
.order-service{ margin: 0 0 12px; }
.order-items{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order-items li{ display: flex; gap: 14px; align-items: center; }
.order-items img{ width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--white); display: block; }
.order-item-title{ display: block; color: var(--forest); font-family: var(--font-heading); text-decoration: none; line-height: 1.3; }
.order-item-title:hover{ text-decoration: underline; }
.order-item-meta{ font-size: 14px; color: var(--text-light); }
.order-help{ text-align: center; color: var(--text-light); margin: 28px 0 0; }
.order-help a{ color: var(--forest); }
.order-lookup{ max-width: 480px; margin: 0 auto; }
@media (max-width: 760px){
  .order-grid{ grid-template-columns: 1fr; }
  .order-number-card, .order-card{ padding: 22px 18px; }
  .order-number{ letter-spacing: 3px; }
}
.order-stage-now{
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 0; padding: 8px 20px;
  border-radius: 30px; background: var(--forest); color: var(--cream);
  font-size: 17px;
}
.order-stage-now::before{ content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-soft); }
.order-stage-now strong{ font-family: var(--font-heading); font-weight: 600; }
.order-stage-now.cancelled{ background: #a23b2c; }
.order-stage-now:empty{ display: none; }
/* Визиты многоразовых услуг на странице заказа */
.order-visits{ margin-top: 24px; }
.visits-count{ font-size: 18px; margin-bottom: 8px; }
.visits-count strong{ font-family: var(--font-heading); color: var(--forest); }
.visits-bar{ height: 8px; border-radius: 8px; background: var(--cream-alt); overflow: hidden; margin-bottom: 20px; }
.visits-bar span{ display: block; height: 100%; background: var(--forest-soft); border-radius: 8px; }
.visit-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.visit-head{ display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); color: var(--text-light); }
.visit.done .visit-head{ color: var(--forest); }
.visit-mark{
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gold-soft); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
}
.visit.done .visit-mark{ background: var(--forest-soft); border-color: var(--forest-soft); color: var(--white); }
.visit-note{ margin: 6px 0 0; color: var(--text); }
.label-optional{ text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-light); }

/* Номер нужен в магазине; новости в Telegram; план визитов */
.order-number-note{ background: rgba(247,242,231,0.12); border-radius: var(--radius); padding: 10px 14px; color: var(--cream) !important; font-size: 16px; }
.order-notify{ margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.order-notify h3{ margin-bottom: 8px; }
.order-notify p{ margin: 0; color: var(--text-light); font-size: 15px; }
.order-notify .order-notify-on{ grid-column: 1 / -1; color: var(--forest); font-weight: 600; }
.order-notify-btns{ display: flex; flex-direction: column; gap: 10px; }
.visit-plan{ margin: 0 0 6px; color: var(--text-light); }
.visit-plan strong{ color: var(--forest); font-weight: 600; }
@media (max-width: 760px){ .order-notify{ grid-template-columns: 1fr; } .order-notify .btn{ width: 100%; text-align: center; justify-content: center; white-space: normal; padding-left: 16px; padding-right: 16px; } }
.order-notify > *{ min-width: 0; }
/* Галочки под формой заявки */
.form-checks{ display: grid; gap: 10px; margin: 4px 0 18px; }
.form-checks .checkbox-label{ display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 16px; line-height: 1.35; color: var(--text); text-transform: none; letter-spacing: 0; }
.form-checks .checkbox-label input{ width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--forest); }
.form-checks .field{ margin: 0 0 4px 28px; }
.form-checks .form-check-hint{ margin: -4px 0 4px 28px; font-size: 14px; line-height: 1.4; color: var(--text); opacity: 0.75; }

/* ---------- Личный кабинет (account.html) ---------- */
.account-page [hidden]{ display: none !important; }
.account-container{ max-width: 920px; }
.account-loading{ text-align: center; color: var(--text-light); }
.account-auth{ max-width: 480px; margin: 0 auto; }
.account-tabs{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--cream-alt); border-radius: var(--radius); padding: 5px; margin-bottom: 26px; }
.account-tab{ border: 0; background: transparent; padding: 10px; border-radius: var(--radius); font: inherit; font-size: 16px; color: var(--text-light); cursor: pointer; }
.account-tab.is-active{ background: var(--cream-card); color: var(--forest); box-shadow: var(--shadow-soft); }
.account-textlink{ display: block; margin: 14px auto 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.account-ok{ background: var(--cream-alt); border-left: 3px solid var(--forest); padding: 10px 14px; border-radius: var(--radius); font-size: 15px; color: var(--forest); }
.account-page .order-card + .order-card, .account-page .order-card + .order-help{ margin-top: 24px; }
.account-bar{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.account-who strong{ display: block; font-family: var(--font-heading); font-size: 22px; color: var(--forest); font-weight: 600; }
.account-who span{ color: var(--text-light); font-size: 15px; }
.account-bar-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.account-profile{ flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; border-top: 1px solid var(--cream-alt); padding-top: 18px; }
.account-profile .form-error, .account-profile-actions{ grid-column: 1 / -1; }
.account-profile-actions{ display: flex; gap: 10px; }
.account-orders-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.account-orders-head h3{ margin: 0; }
.account-orders{ display: grid; }
.account-order{ display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--cream-alt); text-decoration: none; color: var(--text); }
.account-order:last-child{ border-bottom: 0; }
.account-order:hover .account-order-open{ text-decoration: underline; }
.account-order-main{ display: grid; gap: 3px; min-width: 0; }
.account-order-num{ font-family: var(--font-heading); font-size: 19px; color: var(--forest); font-weight: 600; }
.account-order-date{ font-size: 14px; color: var(--text-light); }
.account-order-title{ font-size: 15px; overflow-wrap: anywhere; }
.account-order-todo{ justify-self: start; margin-top: 4px; font-size: 13px; background: var(--gold); color: #fff; padding: 3px 10px; border-radius: 20px; }
.account-order-side{ display: grid; justify-items: end; align-content: start; gap: 6px; flex: none; text-align: right; }
.account-order-stage{ font-size: 13px; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.account-order-stage.is-current{ background: var(--cream-alt); color: var(--forest); border: 1px solid var(--gold-soft); }
.account-order-stage.is-done{ background: var(--forest); color: var(--cream); }
.account-order-stage.is-cancelled{ background: #efe2df; color: #8a3b2e; }
.account-order-total{ font-family: var(--font-heading); font-size: 18px; color: var(--forest); }
.account-order-open{ font-size: 14px; color: var(--gold); }
.account-empty, .account-note{ color: var(--text-light); font-size: 15px; }
.account-link-form{ display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 16px; align-items: end; }
.account-link-form .btn{ margin-bottom: 20px; }
.account-link-form .form-error, .account-link-form .account-ok{ grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 720px){
  .account-link-form, .account-profile{ grid-template-columns: 1fr; }
  .account-order{ flex-direction: column; gap: 8px; }
  .account-order-side{ justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; }
}
/* ---------- Политика конфиденциальности (privacy.html) ---------- */
.legal-container{ max-width: 860px; }
.legal-text h3{ font-size: 20px; margin: 26px 0 8px; color: var(--forest); }
.legal-text h3:first-child{ margin-top: 0; }
.legal-text p, .legal-text li{ font-size: 16px; line-height: 1.6; color: var(--text); }
.legal-text ul{ padding-left: 22px; margin: 6px 0 12px; list-style: disc; }
.legal-text li{ margin-bottom: 4px; }
.legal-text li::marker{ color: var(--gold); }
.legal-text a{ color: var(--gold); }
.legal-text table{ width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; }
.legal-text th, .legal-text td{ border: 1px solid var(--gold-soft); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; }
.legal-text th{ background: var(--cream-alt); color: var(--forest); font-weight: 600; }
@media (max-width: 720px){
  .legal-text table, .legal-text thead, .legal-text tbody, .legal-text tr, .legal-text th, .legal-text td{ display: block; }
  .legal-text thead{ display: none; }
  .legal-text tr{ border: 1px solid var(--gold-soft); border-radius: var(--radius); margin-bottom: 10px; }
  .legal-text td{ border: 0; border-bottom: 1px solid var(--cream-alt); }
  .legal-text td:last-child{ border-bottom: 0; }
}
.legal-fill{ background: #fbe7b5; color: #6b4a00; padding: 1px 4px; border-radius: 3px; }
.form-checks .checkbox-label a, .footer-bottom a{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.account-hint{ margin: 0 0 18px; font-size: 14px; line-height: 1.4; color: var(--text-light); }
.account-hint a{ color: var(--gold); }
/* Значок кабинета в шапке */
.account-link{ position: relative; text-decoration: none; }
.account-link svg{ width: 20px; height: 20px; }
.account-link.is-signed::after{ content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 2px solid var(--cream); }
@media (max-width: 720px){ .header-actions .account-link{ display: flex; } }
button[type=submit]:disabled{ opacity: 0.45; cursor: not-allowed; }
.order-notify.highlight{ margin: 0 0 28px; border: 2px solid var(--gold); }
.service-included{ font-size: 14px; color: var(--forest); margin: -4px 0 14px; }

/* Услуги: неполный последний ряд — по центру, а не прижат влево */
.services-grid--4{ display: flex; flex-wrap: wrap; justify-content: center; }
.services-grid--4 > .service-card{ flex: 0 0 calc((100% - 72px) / 4); }
@media (max-width: 980px){ .services-grid--4 > .service-card{ flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 720px){ .services-grid--4 > .service-card{ flex-basis: 100%; } }
/* 6 услуг — два ряда по три */
.services-grid--4 > .service-card{ flex-basis: calc((100% - 48px) / 3); }
@media (max-width: 980px){ .services-grid--4 > .service-card{ flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 720px){ .services-grid--4 > .service-card{ flex-basis: 100%; } }
/* ---------- Корзина ---------- */
.cart-link{ position: relative; text-decoration: none; }
.cart-link svg{ width: 20px; height: 20px; }
.cart-badge{
  position: absolute; top: -5px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: var(--white);
  font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
  font-family: var(--font-body);
}
.cart-badge[hidden]{ display: none; }
@media (max-width: 720px){ .header-actions .cart-link{ display: flex; } }

.qty{ display: inline-flex; align-items: center; border: 1px solid var(--gold-soft); border-radius: var(--radius); background: var(--white); height: 36px; flex: none; }
.qty button{ width: 30px; height: 100%; border: none; background: none; color: var(--forest); font-size: 18px; cursor: pointer; line-height: 1; }
.qty button:hover{ background: var(--cream-alt); }
.qty input{ width: 38px; height: 100%; border: none; text-align: center; font: inherit; color: var(--text); background: transparent; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }

.card-footer{ flex-wrap: wrap; gap: 10px; }
.card-buy{ display: flex; align-items: center; gap: 8px; width: 100%; }
.card-buy .btn{ flex: 1; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.product-buy{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-buy .qty{ height: 46px; }
.product-buy .qty button{ width: 38px; }

.cart-toast{
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 140%); transition: transform .3s ease;
  display: flex; align-items: center; gap: 16px;
  background: var(--forest); color: var(--cream); padding: 12px 14px 12px 20px;
  border-radius: var(--radius); box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
.cart-toast.show{ transform: translate(-50%, 0); }
.cart-toast .btn{ white-space: nowrap; }

.cart-container{ max-width: 1100px; }
.cart-layout{ display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-list{ display: grid; gap: 12px; }
.cart-row{
  display: grid; grid-template-columns: 84px 1fr auto 130px 32px; gap: 16px; align-items: center;
  background: var(--cream-card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-soft);
}
.cart-row-media{ display: block; width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.cart-row-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-row-icon{ display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--gold); background: var(--cream-alt); text-decoration: none; }
.cart-row-title{ display: block; font-family: var(--font-heading); color: var(--forest); text-decoration: none; line-height: 1.3; }
.cart-row-title:hover{ text-decoration: underline; }
.cart-row-meta{ display: block; font-size: 14px; color: var(--text-light); margin-top: 4px; line-height: 1.4; }
.cart-row-sum{ text-align: right; font-family: var(--font-heading); color: var(--forest); }
.cart-row-sum small{ display: block; font-family: var(--font-body); font-size: 12px; color: var(--text-light); }
.cart-remove{ width: 32px; height: 32px; border: none; background: none; color: var(--text-light); font-size: 16px; cursor: pointer; border-radius: 50%; }
.cart-remove:hover{ background: var(--cream-alt); color: #a23b2c; }
.cart-clear{ margin-top: 14px; background: none; border: none; color: var(--text-light); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 0; }
.cart-checkout{ position: sticky; top: 100px; padding: 28px; }
.cart-checkout h3{ margin: 20px 0 14px; }
.cart-total-row{ display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-light); }
.cart-total-sum{ border-top: 1px solid var(--gold-soft); margin-top: 6px; padding-top: 12px; font-size: 20px; color: var(--forest); }
.cart-total-sum strong{ font-family: var(--font-heading); }
.cart-total-note{ font-size: 13px; color: var(--text-light); margin: 6px 0 0; }
.cart-empty{ text-align: center; max-width: 620px; margin: 0 auto; }
.cart-empty p{ color: var(--text-light); }
.cart-empty-actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.order-also{ background: var(--cream-alt); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: var(--radius); margin: 0 0 20px; }
.order-also a{ color: var(--forest); }
.order-items-total{ margin: 14px 0 0; text-align: right; }
@media (max-width: 900px){
  .cart-layout{ grid-template-columns: 1fr; }
  .cart-checkout{ position: static; }
}
@media (max-width: 600px){
  .cart-row{ grid-template-columns: 64px 1fr 28px; gap: 10px 12px; }
  .cart-row-media{ width: 64px; height: 64px; grid-row: span 2; }
  .cart-row-info{ grid-column: 2; }
  .cart-remove{ grid-column: 3; grid-row: 1; }
  .cart-row-qty{ grid-column: 2; }
  .cart-row-sum{ grid-column: 2 / 4; text-align: left; }
}
/* Шапка на телефоне: логотип + корзина + меню, без кнопки заявки (есть плавающие кнопки связи) */
@media (max-width: 600px){
  .header-inner{ padding-left: 16px; padding-right: 16px; }
  .header-actions .btn{ display: none; }
}
/* up to 440px: phones like 412/414 px need the compact logo too */
@media (max-width: 440px){
  .brand-tagline{ display: none; }
}
@media (max-width: 440px){
  .brand{ gap: 8px; }
  .brand img{ width: 40px; height: 40px; }
  .brand-name{ font-size: 19px !important; }
  /* кабинет + корзина + меню помещаются рядом с логотипом */
  .header-inner{ gap: 10px; }
  .header-actions{ gap: 6px; }
}
@media (max-width: 360px){
  .header-inner{ padding-left: 12px; padding-right: 12px; }
  .brand img{ width: 36px; height: 36px; }
  .brand-name{ font-size: 15px !important; }
  .header-actions .icon-link{ width: 34px; height: 34px; }
  .burger{ width: 34px; }
}
/* Стоимость клумбы на странице заказа: подтвердить / отклонить */
.order-price{ margin-bottom: 28px; }
.order-price.highlight{ border: 2px solid var(--gold); }
.order-price-head{ display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.order-price-head span{ font-family: var(--font-heading); font-size: 20px; color: var(--forest); }
.order-price-head strong{ font-family: var(--font-heading); font-size: 30px; color: var(--forest); }
.order-price p{ margin: 0 0 14px; color: var(--text-light); }
.order-price-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.order-price .order-price-note{ margin: 0; color: var(--text); }
/* Услуги: карточки ведут на страницу услуги */
.service-title-link{ color: inherit; text-decoration: none; }
.service-title-link:hover{ color: var(--gold); }
.service-actions{ display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: auto; }
.service-card .service-actions .btn{ margin-top: 0; }
/* Страница услуги */
.service-photo{ aspect-ratio: 4 / 5; }
.service-photo img{ width: 100%; height: 100%; object-fit: cover; }
.service-lead{ font-size: 19px; color: var(--text); margin: 0 0 18px; }
.service-subhead{ font-size: 18px; color: var(--forest); margin: 18px 0 8px; }
.service-list, .service-steps{ margin: 0 0 8px; padding-left: 22px; color: var(--text); }
.service-list li, .service-steps li{ margin-bottom: 6px; }
.service-option{ margin: 18px 0 8px; max-width: 360px; }
.service-option select{ width: 100%; padding: 12px 14px; border: 1px solid var(--gold-soft); border-radius: var(--radius); background: var(--white); font: inherit; color: var(--text); }
.product-info .service-list{ list-style: disc; }
.product-info .service-steps{ list-style: decimal; }
.product-info .service-list li::marker, .product-info .service-steps li::marker{ color: var(--gold); }

/* Заявка из Telegram: части заявки и согласование деталей */
.order-parts{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order-part{ display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cream-alt); }
.order-part:last-child{ border-bottom: none; }
.order-part img{ width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--white); display: block; flex-shrink: 0; }
.order-part-body{ flex: 1; min-width: 0; }
.order-part-title{ display: block; color: var(--forest); font-family: var(--font-heading); line-height: 1.3; }
.order-part-price{ font-family: var(--font-heading); color: var(--forest); white-space: nowrap; }
.order-clarify{ margin-bottom: 28px; }
.order-clarify .clarify-done{ background: var(--cream-alt); border-left: 3px solid var(--forest); padding: 10px 14px; border-radius: var(--radius); margin: 0 0 14px; color: var(--forest); }
.order-clarify .clarify-done[hidden]{ display: none; }
.approval-fix .clarify-photo-btn{ display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-bottom: 8px; color: var(--forest); font-weight: 500; }
.clarify-files{ margin: 0 0 12px; font-size: 14px; color: var(--text-light); }
.clarify-files:empty{ display: none; }
.approval-fix{ margin-top: 4px; }
.approval-fix label{ display: block; margin-bottom: 6px; color: var(--forest); font-weight: 600; }
.approval-fix textarea{ width: 100%; box-sizing: border-box; margin-bottom: 12px; padding: 10px 12px; font: inherit; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--white); resize: vertical; }
.visit-part-title{ margin: 18px 0 8px; font-family: var(--font-heading); color: var(--forest); font-size: 18px; }.order-price-actions[hidden], .approval-fix[hidden]{ display: none; }

/* ---------- Блок «Будьте с нами» и подвал «Мы в соцсетях» ---------- */
/* ---- новый блок «Будьте с нами» ---- */
.social-section{ background: var(--cream); }
.social-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}
.social-card{
  background: var(--cream-card);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 34px 28px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.social-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.social-ico{
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  margin-bottom: 18px;
}
.social-ico svg{ width: 28px; height: 28px; }
.social-ico.tg{ background: var(--gold); }
.social-ico.max{ background: var(--forest-soft); }
.social-ico.vk{ background: var(--forest); }
.social-card h3{
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 6px;
}
.social-card .social-handle{
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold);
  font-size: 19px;
  margin-bottom: 14px;
}
.social-card p{
  color: var(--text-light);
  font-size: 16.5px;
  line-height: 1.5;
  margin-bottom: 22px;
  flex: 1;
}
.social-note{
  text-align: center;
  color: var(--text-light);
  margin-top: 30px;
  font-size: 16px;
}
.social-note a{ color: var(--forest); border-bottom: 1px solid var(--gold-soft); }

/* ---- подвал: значки с подписями ---- */
.footer-social-labeled{ display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.footer-social-labeled .fs-title{
  font-family: var(--font-script); font-style: italic; color: var(--gold-soft); font-size: 18px;
}
.footer-social-labeled a{
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); opacity: .9; font-size: 15.5px;
}
.footer-social-labeled a:hover{ opacity: 1; color: var(--gold-soft); }
.footer-social-labeled .fs-ico{
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10);
}
.footer-social-labeled .fs-ico svg{ width: 15px; height: 15px; }

@media (max-width: 860px){
  .social-card{ flex-direction: row; align-items: flex-start; text-align: left; padding: 20px 18px; gap: 16px; }
  .social-ico{ width: 52px; height: 52px; flex: 0 0 52px; margin-bottom: 0; }
  .social-ico svg{ width: 22px; height: 22px; }
  .social-card h3{ font-size: 19px; margin-bottom: 2px; }
  .social-card .social-handle{ font-size: 16px; margin-bottom: 8px; }
  .social-card p{ font-size: 15.5px; margin-bottom: 12px; }
}
.social-body{ display: flex; flex-direction: column; align-items: inherit; flex: 1; }
@media (max-width: 860px){
  .social-grid{ grid-template-columns: 1fr; gap: 18px; }
  .social-card{ padding: 26px 22px; }
}

/* ---------- Шапка на экранах 1201–1380 px: всё помещается в одну строку ---------- */
@media (min-width: 1201px) and (max-width: 1380px){
  .header-inner{ padding-left: 20px; padding-right: 20px; }
  .main-nav{ margin-left: 16px; gap: 16px; }
  .main-nav a{ font-size: 13px; letter-spacing: 0.02em; }
  .header-actions{ gap: 8px; }
  .header-actions .btn-sm{ padding: 10px 16px; }
}