/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --cream:       #F3EBD8;
  --cream-light: #FFF8EA;
  --brown:       #5D2612;
  --olive:       #B6BB79;
  --olive-dark:  #2E3021;
  --pink:        #F297A0;
  --near-black:  #1E1E1E;
  --white:       #FFFFFF;

  --font-script: 'SloopScriptPro', cursive;
  --font-serif:  'Playfair Display', serif;
  --font-ui:     'Montserrat Alternates', sans-serif;
  --font-copy:   'Aldrich', sans-serif;

  --hh: 105px;
  --r:  20px;
}

/* ============================================================
   FONT FACE
   ============================================================ */
@font-face {
  font-family: 'SloopScriptPro';
  src: url('../fonts/SloopScriptPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hh);
}

body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--near-black);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 7.9vw, 114px);
}

/* ============================================================
   FONT UTILITIES
   ============================================================ */
.script-text {
  font-family: var(--font-script);
  color: var(--brown);
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.script-sm {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--near-black);
  display: block;
  line-height: 1;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--brown);
  margin-top: 4px;
  line-height: 1.1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}
.btn:hover  { opacity: .82; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Large variant — hero + section CTAs */
.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

/* Pink — hero "КУПИТИ ЗАКВАСКУ", consultation detail */
.btn--pink {
  background: var(--pink);
  border-color: var(--brown);
  color: var(--brown);
}

/* Olive — hero "КОНСУЛЬТАЦІЯ", section CTAs */
.btn--olive {
  background: var(--olive);
  border-color: var(--brown);
  color: var(--brown);
}

/* Product card "КУПИТИ" */
.btn--buy {
  background: var(--olive);
  border-color: #000;
  color: var(--brown);
  padding: 10px 20px;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

/* Consultation "Деталі" */
.btn--detail {
  background: var(--pink);
  border-color: #000;
  color: #000;
  padding: 10px 28px;
  font-size: 1rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* Contact Viber */
.btn--contact-viber {
  background: var(--pink);
  border-color: var(--brown);
  color: var(--brown);
}

/* Contact Telegram */
.btn--contact-tg {
  background: var(--olive);
  border-color: var(--brown);
  color: var(--brown);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--hh);
  z-index: 200;
  background: var(--cream);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo — vertical */
.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}
.header__logo-img {
  width: 75px;
  height: 61px;
  object-fit: contain;
}
.header__logo-name {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--brown);
  line-height: 1;
  margin-top: -4px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__link {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  padding: 10px 10px;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav__link:hover { opacity: .65; }

/* Header CTA pill */
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--olive);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  border: none;
  margin-left: 8px;
  transition: opacity .2s;
  cursor: pointer;
  white-space: nowrap;
}
.nav__cta:hover { opacity: .82; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 16px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--near-black);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--hh);
  left: 0; right: 0;
  background: var(--cream-light);
  padding: 20px 24px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 190;
}
.mobile-nav.open {
  display: block;
  animation: navSlideDown .28s cubic-bezier(.4,0,.2,1);
}
@keyframes navSlideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 16px;
}
.mobile-nav__link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--near-black);
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,.06);
  display: block;
}
.mobile-nav__link:hover { color: var(--brown); }
.mobile-nav__contacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mobile-nav__contact {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  border: 1.5px solid var(--brown);
  border-radius: 50px;
  padding: 8px 16px;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.mobile-nav__contact:hover { background: var(--brown); color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: var(--hh);
  background: var(--cream);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
}

/* Left column */
.hero__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Heading area with floating bread images */
.hero__heading-wrap {
  position: relative;
  padding-top: 110px;
}

.hero__bread {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.hero__bread--1 {
  top: 0;
  left: 0;
  width: 200px;
  height: auto;
}
.hero__bread--2 {
  top: 60px;
  right: 10px;
  width: 110px;
  height: auto;
}

.hero__heading {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 5.5vw, 5rem);
  color: var(--brown);
  line-height: 1;
  display: block;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.1;
  display: block;
  letter-spacing: 0;
}

.hero__desc {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--near-black);
  font-weight: 400;
}

.hero__btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Right column — photo */
.hero__right {
  align-self: flex-end;
}

.hero__photo {
  width: 100%;
  height: 630px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}

/* ============================================================
   PRODUCTS / ЗАКВАСКИ
   ============================================================ */
.products {
  background: var(--cream);
  padding: 80px 0 60px;
}

/* Slider wrapper */
.slider {
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider__viewport {
  flex: 1;
  overflow: hidden;
}

.slider__track {
  display: flex;
  gap: 28px;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
}

/* Arrow buttons */
.slider__arr {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--brown);
  background: transparent;
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.slider__arr:hover    { background: var(--brown); color: var(--white); }
.slider__arr:disabled { opacity: .3; pointer-events: none; }

/* Dots */
.slider__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(93,38,18,.25);
  transition: background .2s;
  padding: 0;
  cursor: pointer;
}
.slider__dot.active { background: var(--brown); }

/* ── PRODUCT CARD ── */
.pcard {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 0;
  background: var(--cream-light);
  border-radius: 110px 110px 0 0;
  border: 4px solid var(--olive);
  display: flex;
  flex-direction: column;
}

/* Photo area — pill-top, image only */
.pcard__visual {
  margin: 14px 14px 0;
  border-radius: 100px 100px 0 0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.pcard__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Info area — text below photo */
.pcard__info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pcard__name {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--near-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
}

.pcard__desc {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--near-black);
  line-height: 1.55;
  flex: 1;
}

/* Price + Buy at bottom of info */
.pcard__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: nowrap;
}

.pcard__price-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid var(--brown);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brown);
  letter-spacing: 0.08em;
}

/* How to buy info */
.buy-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding: 0 4px;
}
.buy-info__icon {
  flex-shrink: 0;
  width: 80px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buy-info p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.55;
}

/* Gift strip */
.gift-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 0 4px;
}
.gift-strip__icon {
  width: 80px;
  height: 70px;
  flex-shrink: 0;
}
.gift-strip__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.55;
}

/* ============================================================
   CONSULTATIONS
   ============================================================ */
.consults {
  background: var(--cream-light);
  border-radius: 100px 100px 0 0;
  border-top:    4px solid var(--olive);
  border-bottom: 4px solid var(--olive);
  padding: 80px 0 60px;
  margin-top: 60px;
  overflow: hidden;
  position: relative;
}

.consults__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Cards column — 2 cards side by side */
.consults__cards {
  display: flex;
  gap: 28px;
}

.ccard {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ccard__img-wrap {
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 250 / 300;
  flex-shrink: 0;
}
.ccard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ccard:hover .ccard__img { transform: scale(1.03); }

.ccard__name {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--near-black);
  line-height: 1.4;
}

.ccard__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: nowrap;
}
.ccard__price {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--near-black);
  white-space: nowrap;
}

/* Text column */
.consults__text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
  overflow: hidden;
}

.consults__flower {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.consults__flower--1 {
  right: -60px;
  top: 80px;
  width: 300px;
  opacity: .35;
}
.consults__flower--2 {
  left: -180px;
  top: -60px;
  width: 220px;
  opacity: .25;
}

.consults__heading {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 700;
  color: var(--olive);
  line-height: 1.1;
}

.consults__desc {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--near-black);
  line-height: 1.75;
}

.consults__text .btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  opacity: .96;
}

.contact__bg-wrap {
  position: absolute;
  inset: 0;
}
.contact__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,47,32,.62);
}

.contact__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
}

.contact__desc {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.75;
}

.contact__btns {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--olive);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Logo — vertical */
.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.footer__logo-img {
  width: 80px;
  height: 65px;
  object-fit: contain;
}
.footer__logo-name {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--brown);
  line-height: 1;
  margin-top: -4px;
}

.footer__nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.footer__link {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  padding: 8px 10px;
  transition: opacity .2s;
}
.footer__link:hover { opacity: .65; }

.footer__icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.footer__icon-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(93,38,18,.2);
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.footer__icon-link:hover { background: var(--brown); color: var(--olive); }

.footer__copy {
  font-family: var(--font-copy);
  font-size: 0.82rem;
  color: var(--brown);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE — TABLET ≤ 1180px
   ============================================================ */
@media (max-width: 1180px) {
  .container { padding: 0 40px; }

  .nav__link { font-size: 0.85rem; padding: 10px 6px; }
  .nav__cta  { font-size: 0.85rem; padding: 10px 16px; }

  .hero__bread--1 { width: 160px; }
  .hero__bread--2 { width: 90px; }

  .hero__script { font-size: 3.5rem; }
  .hero__title  { font-size: 2.8rem; }
  .hero__photo  { height: 520px; }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --hh: 70px; }

  .container { padding: 0 20px; }

  /* Header */
  .nav { display: none; }
  .burger { display: flex; }
  .header__logo-img  { width: 52px; height: 42px; }
  .header__logo-name { font-size: 1.5rem; }

  /* Hero — stack vertically */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
  }
  .hero__left {
    padding-top: 32px;
    padding-bottom: 32px;
    gap: 20px;
  }
  .hero__heading-wrap { padding-top: 80px; }
  .hero__bread--1 { width: 130px; }
  .hero__bread--2 { width: 70px; top: 40px; }
  .hero__script { font-size: 2.8rem; }
  .hero__title  { font-size: 2.2rem; }
  .hero__desc   { font-size: 1rem; }
  .hero__btns .btn--lg { padding: 14px 22px; font-size: 0.9rem; }
  .hero__right  { margin: 0 -20px; }
  .hero__photo  { width: calc(100% + 0px); height: 280px; border-radius: 0; }

  /* Products */
  .products { padding: 56px 0 44px; }
  .slider__dots { display: flex; }
  .slider__arr  { display: flex; }

  .slider {
    position: relative;
    padding: 0 9%;
  }
  .slider__arr {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--cream);
    width: 36px;
    height: 36px;
  }
  .slider__arr--prev { left: 4px; }
  .slider__arr--next { right: 4px; }
  .slider__viewport  { width: 100%; }

  .pcard {
    flex: 0 0 100%;
    border-radius: 60px 60px 0 0;
  }
  .pcard__visual { margin: 10px 10px 0; border-radius: 55px 55px 0 0; }
  .pcard__img    { height: 240px; }
  .pcard__name   { font-size: 1.2rem; }
  .pcard__price-pill { padding: 9px 16px; font-size: 0.9rem; }
  .btn--buy          { padding: 9px 16px; font-size: 0.9rem; }

  .gift-strip { flex-direction: column; text-align: center; }
  .gift-strip__text { font-size: 1rem; }

  .buy-info { flex-direction: column; align-items: center; text-align: center; }
  .buy-info p { font-size: 1rem; }

  /* Consultations */
  .consults {
    border-radius: 60px 60px 0 0;
    padding: 56px 0 44px;
    margin-top: 40px;
  }
  .consults__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .consults__cards {
    order: 2;
    flex-direction: column;
    gap: 20px;
  }
  .consults__text {
    order: 1;
    overflow: visible;
  }
  .consults__text .btn {
    align-self: center;
  }
  .consults__flower--1 { width: 180px; right: -30px; top: 40px; opacity: .25; }
  .consults__flower--2 { display: none; }
  .consults__heading   { font-size: 2.8rem; }
  .consults__desc      { font-size: 1rem; }

  .ccard__img-wrap { aspect-ratio: 4 / 3; }

  /* Contact */
  .contact         { padding: 80px 0; }
  .contact__btns   { flex-direction: column; gap: 12px; }
  .contact__title  { font-size: 2.4rem; }
  .contact__body   { align-items: center; text-align: center; }

  /* Footer */
  .footer__inner   { flex-direction: column; align-items: center; text-align: center; }
  .footer__nav     { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero__script { font-size: 2.4rem; }
  .hero__title  { font-size: 2rem; }
  .hero__bread--1 { width: 110px; }
  .hero__bread--2 { width: 60px; }
  .hero__heading-wrap { padding-top: 70px; }
}

/* ============================================================
   DESKTOP: show all 3 cards, no slider chrome
   ============================================================ */
@media (min-width: 769px) {
  .slider__dots { display: none !important; }
  .slider__arr  { display: none; }
  .slider__track { transform: none !important; }
  .pcard { flex: 0 0 calc((100% - 56px) / 3); }
  .hero__title { white-space: nowrap; }
}