:root{
  --coffee:#9C7652;
  --black:#000;
  --about-bg:#b1a494;
  --btn-bg:#513b2c;
  
}

/* utils */
.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0;
}


*{ box-sizing:border-box; margin:0; padding:0; }
html,body {
  height: 100%;
  scroll-behavior: smooth;
}
body{
  font-family:"Arimo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--black);
  background:#fff;
  opacity:0;
}
body.is-ready{ opacity:1; transition:opacity .2s ease; }

/* ===== HERO ===== */
.hero{
  position:relative;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  overflow:hidden;
  isolation:isolate;
  background:#fff;
}
html,body{
  overflow-x:hidden;   /* гарантія, що не буде скролу */
}


.hero-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain;
  object-position:top center;
  display:block;
}

.design-space{
  opacity:0;
  position:absolute; left:0; top:0;
  transform-origin: top left;
  pointer-events:none;
  z-index:2;
}
.is-ready .design-space{ opacity:1; transition:opacity .15s ease; }

/* Верхня лінія */
.band{
  position:absolute;
  left:0; right:0; top:0;
  padding:60px 130px 0 130px;
  opacity:0;
  transform:translateY(-200px);
  transition:opacity 2.9s ease, transform 2.9s cubic-bezier(.25,.8,.25,1);
}
.is-ready .band{ opacity:1; transform:translateY(0); transition-delay:.2s; }
.band__topline{ display:flex; justify-content:space-between; align-items:center; }
.band__brand{
  font-family:"Playfair Display", serif;
  font-weight:500;
  font-size:120px;
  color:var(--coffee);
  text-transform:uppercase;
}
.band__phone{ font-size:80px; color:var(--coffee); text-decoration:none; }
.band__phone:hover{ text-decoration:underline; }
.band__divider{ margin-top:14px; height:7px; background:var(--coffee); }
.band__subnote{ margin-top:16px; font-weight:600; font-size:60px; color:var(--coffee); }

/* Кнопка */
.cta{
  position:absolute; 
  left:50%; 
  top:1600px;
  pointer-events:auto;
  display:inline-block;
  padding:60px 60px;
  border-radius:30px;
  border:10px solid #fff;
  background:#F3CF33;
  color:#1a1a1a;
  font-size:50px;
  font-weight:500;
  text-transform:uppercase;
  text-decoration:none;
  box-shadow:0 8px 22px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.55);
  opacity:0;
  transform:translateX(-50%) scale(0.9);
  transition:opacity 1s ease, transform 1s ease;
}
.is-ready .cta{ 
  opacity:1; 
  transform:translateX(-50%) scale(1); 
  transition-delay:1s; 
}


/* Ефект при наведенні */
.cta:hover{
  background:#e5c02f;                    /* трохи темніший жовтий */
  transform:translateX(-50%) scale(1.05); /* легке збільшення */
  box-shadow:0 12px 28px rgba(0,0,0,.35);
}

/* ===== ABOUT (2-й блок) — адаптивно під ПК/планшет/телефон ===== */
.about{
  background:var(--about-bg);
  padding:clamp(40px, 6vw, 72px) clamp(16px, 4vw, 28px) clamp(50px, 6vw, 80px);
  margin:0 auto;
  overflow:visible;      /* нічого не обрізати */
  width:100%;            /* ширина керується твоїм JS (about.style.width), але не більше екрана */
  max-width:100%;
  box-sizing:border-box;
}

.about__inner{
  max-width:min(1160px, 96%);
  margin:0 auto;
  text-align:center;
}

.about__title{
  font-family:"Playfair Display", serif;
  font-weight:800;
  text-transform:uppercase;
  font-size:clamp(26px, 3.2vw, 42px);
  letter-spacing:.02em;
  margin-bottom:clamp(16px, 2.2vw, 28px);
}

.about__text{
  max-width:760px;
  margin:0 auto clamp(18px, 2.2vw, 32px);
  font-size:clamp(15px, 1.4vw, 18px);
  line-height:1.6;
  text-align:center;
}
.about__text p + p{ margin-top:.7em; }

/* Лічильники */
.stats{
  /* гнучкі параметри картки */
  --card-min: 210px;                 /* мінімальна ширина однієї картки */
  --card-max: 260px;                 /* цільова/стеля на десктопі */
  --g: clamp(12px, 2vw, 22px);       /* зазор між картками */

  display:grid;
  /* 1) якщо місця мало — автоматично 3 (або 2) колонки, нічого не «ріже» */
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr));
  gap: var(--g);

  /* 2) центруємо трек і не даємо йому розповзтися ширше за 4 картки */
  justify-content:center;
  max-width: calc(4 * var(--card-max) + 3 * var(--g));
  width:100%;
  margin: clamp(12px, 2vw, 18px) auto clamp(16px, 2.4vw, 28px);

  /* невеликий внутрішній відступ, щоб на межі екрана не прилипало */
  padding-inline: clamp(8px, 2vw, 16px);
  box-sizing: border-box;
}



.stat{
  border-radius:12px;
  padding:clamp(12px, 2vw, 18px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  min-height:clamp(120px, 20vw, 220px);
}


.stat__top{
  font-family: "Arimo", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 28px);
  color: #fff;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .1em; /* відстань між смужками і словом */
}

.stat__top::before{
  content: "";
  display: inline-block;
  width: 22px;      /* довжина смужок */
  height: 10px;     /* загальна висота блоку */
  background:
    linear-gradient(#fff 0 0) 0 0/100% 2px no-repeat,
    linear-gradient(#fff 0 0) 0 5px/100% 2px no-repeat,
    linear-gradient(#fff 0 0) 0 10px/100% 2px no-repeat;
}



/* ===== Цифра ===== */
.stat__num--vertical {
  display: inline-flex;
  align-items: flex-end;
  position: relative;
}

/* цифра */
.stat__num {
  font-family: "Bodoni Moda", serif;
  font-weight: 900;
  font-size: clamp(100px, 15vw, 200px);
  line-height: 1;
  color: var(--coffee);

  transform: scaleX(0.5) scaleY(1.3);
  transform-origin: center;
}

.stat__label{
  padding:.4em 2em;
  border:2px solid #fff;
  color:#fff;
  font-weight:700;
  border-radius:6px;
  font-size:clamp(22px, 3vw, 22px);
  white-space:nowrap;
}
.stat__sub {
  margin-top: .4em;                   /* відступ зверху */
  font-size: clamp(18px, 1.6vw, 21px); /* більший розмір тексту */
  font-weight: 600;
  color: var(--coffee);
  text-transform: uppercase;
}


/* Примітка + кнопка */
.about__note{
  max-width:780px;
  margin:clamp(14px, 2vw, 22px) auto clamp(16px, 2.4vw, 26px);
  font-size:clamp(14px, 1.3vw, 16.5px);
  line-height:1.6;
}
.about__cta{ margin-top:clamp(10px, 2vw, 16px); }
.btn-primary {
  display: inline-block;
  padding: clamp(10px, 1.6vw, 16px) clamp(16px, 2.2vw, 28px);
  border-radius: 8px;                       /* закруглені кути */
  background: #3b2414;                      /* темно-коричневий фон */
  color: #fff;                              /* білий текст */
  text-decoration: none;
  font-family: "Playfair Display", serif;   /* шрифт як у макеті */
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px);
  text-transform: uppercase;                /* всі букви великі */
  border: 2px solid #fff;                   /* біла рамка */
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); /* світіння навколо */
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #513b2c;                      /* світліший відтінок при hover */
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

/* Брейкпоїнти тільки для статистики/внутрішніх відступів */
@media (max-width: 992px){
  .stats{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 560px){
  .stats{ grid-template-columns:repeat(2, 1fr); gap:1px; }
  .stat{ min-height:unset; padding:12px; }
}
@media (max-width: 560px){
  .stat__label{
    padding: .3em 1em;   /* менший внутрішній відступ */
    border-width: 1px;   /* тонша рамка */
    font-size: 16px;     /* текст дрібніший */
  }
}



/* ===== 3-й блок: CONSULT (фон як у 2-го блоку) ===== */
.consult{
  position: relative;
  background-image: var(--bg, url('img/background/f2.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* width: 100vw; */
  /* margin: 0 calc(50% - 50vw); */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;

  padding: clamp(28px, 3.5vw, 44px) 0 0;
  overflow: visible;
  z-index: 1;
}


.consult__inner{
  max-width: min(1160px, 96%);
  margin: 0 auto;

  /* Горизонтальні падінги тут, щоб співпадало з 2 блоком */
  padding: 0 clamp(16px, 4vw, 28px);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
}

/* Ліва фотка з виступом */
.consult__media{ position: relative; }
.consult__media img{
  display: block;
  width: 100%;
  height: auto;

  margin-top: calc(-1 * var(--overlap));
  margin-bottom: calc(-1 * var(--overlap));

  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  position: relative;
  z-index: 2;
}

/* Права колонка */
.consult__content{ color: #fff; }
.consult__title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(30px, 2.2vw, 38px);
  letter-spacing: .02em;
  margin-bottom: clamp(10px, 1.4vw, 16px);
  position: relative;
}
.consult__title::after{
  content:"";
  display:block;
  width: 72%;
  height: 2px;
  background: #fff;
  opacity: .85;
  margin: .45em auto 0;
}

/* Таблиця-кнопки */
.consult__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(4px, 1.4vw, 12px);
}
.consult__btn{
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  color: #2b2b2b;
  padding: .2em 1em;

  background: rgba(217, 217, 217, 0.6);
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.consult__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.7);
  filter: saturate(1.05);
}

.consult__cta {
  margin-top: 2rem;          /* відступ від списку */
  margin-bottom: -2.5rem;    /* кнопка “вилазить” на білий фон 4-го блоку */
  text-align: center;
}

.consult__cta a {
  display: inline-block;
  padding: .7em 1.6em;
  border-radius: 10px;
  border: 3px solid #fff;
  background: #F3CF33;
  color: #1a1a1a;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 10px rgba(255,255,255,.75);
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
}

.consult__cta a:hover {
  background: #e5c02f;
  box-shadow: 0 10px 24px rgba(0,0,0,.3), 0 0 14px rgba(255,255,255,.9);
  transform: translateY(-2px);
}



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

  .consult__media img {
    margin-top: 0;           /* прибираємо накладання зверху */
    margin-bottom: 0.5rem;   /* даємо відступ вниз від картинки */
  }
}


/* ===== 4-й блок: ЕТАПИ СПІВПРАЦІ ===== */
.stages{
  background:#fff;
  /* робимо м'який перехід з 3-го блоку: кнопка трохи “вилазить” */
  padding: calc(var(--overlap) + 28px) clamp(16px,4vw,28px) clamp(50px,6vw,80px);
}

.stages__inner{
  max-width:min(1160px, 96%);
  margin:0 auto;
  text-align:center;
}

/* Заголовок "ЕТАПИ СПІВПРАЦІ": лінія зліва до слова */
.stages__title{
  font-family:"Playfair Display", serif;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:clamp(26px, 3.2vw, 42px);
  margin-bottom: clamp(14px,2vw,22px);

  /* головне: робимо заголовок флекс-рядком шириною секції */
  display:flex;
  align-items:center;
  justify-content:center;   /* текст по центру */
  gap: clamp(12px, 2vw, 20px);
  width:100%;
  color: var(--black);
}

/* лінія, що тягнеться від лівого краю до слова */
.stages__title::before{
  content:"";
  flex: 1 1 auto;           /* займає весь простір зліва до тексту */
  height:5px;
  background:var(--black);
}


.stages__title::after{
  content:"";
  flex: 1 1 auto;
  height:5px;
  background:var(--black);
}



/* Ґрід 3×3 з авто-переломами */
.stages__grid{
  list-style:none;
  margin: clamp(16px,2vw,24px) auto 0;
  padding:0;

  --cell-min: 210px;                 /* мінімальна ширина плитки */
  --gap: clamp(14px, 2.2vw, 24px);

  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  justify-items: center; /* центруємо вміст кожної клітинки */

  max-width: calc(3 * 320px + 2 * var(--gap)); /* щоб на Desktop було 3 у ряд */
}


/* Плитка етапу */
.stage{
  background: #fff;
  border: 2px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .25s ease;
}
.stage:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.stage__icon{
  display:block;
  width:min(120px, 55%);
  height:auto;
  margin: 0 auto clamp(10px,1.4vw,14px);
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.7));
}

.stage__label{
  font-weight:700;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height:1.35;
  color:#2b2b2b;
}

/* Адаптив */
@media (max-width: 920px){
 .stages__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 колонки */
  }

  /* якщо елементів непарна кількість (9), останній стає окремим рядом і центриться */
  .stages__grid > .stage:last-child{
    grid-column: 1 / -1;             /* займи обидві колонки */
    justify-self: center;             /* центр елемента в рядку */
    width: min(100%, 320px);          /* не тягнути на всю ширину */
  }
}
@media (max-width: 560px){
  .stages__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 колонки */
  }

  /* якщо елементів непарна кількість (9), останній стає окремим рядом і центриться */
  .stages__grid > .stage:last-child{
    grid-column: 1 / -1;             /* займи обидві колонки */
    justify-self: center;             /* центр елемента в рядку */
    width: min(100%, 320px);          /* не тягнути на всю ширину */
  }
}



/* ===== 5-й блок: ЧОМУ ОБИРАЮТЬ НАС ===== */
.choose {
  position: relative;
  padding: clamp(48px,7vw,96px) 0; /* тільки верх/низ */
  color: #fff;
  text-align: center;
  z-index: 2;
  --overlap: clamp(40px, 6vw, 90px);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 43px;
  justify-items: center;

  max-width: 100% !important; /* фон на всю ширину */
  margin-left: auto;
  margin-right: auto;
  
}






.choose__inner{
  max-width: min(1160px, 96%);
  margin: 0 auto;

}

.choose__title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* сітка 3×2 з «заходом» у 6-й блок */
.choose__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 в ряд */
  gap: clamp(18px, 3vw, 38px);
  justify-items: center;
  margin-bottom: calc(-2.5 * var(--overlap));
}

/* адаптив */
@media (max-width: 860px){
  .choose__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .choose__grid{ grid-template-columns: 1fr; }
}

/* Коло з градієнтним кільцем */
.choose__item {
  --size: min(28vw, 280px);
  --ring: calc(var(--size) * 0.035);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #3b2414;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.4;
  padding: 1.2em;
  position: relative;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}





.choose__item span{
  position: relative;
  z-index: 1;
  will-change: transform;
  transition: transform .28s ease;
}

/* градієнтне кільце з «світінням» назовні */
.choose__item::after{
  content:"";
  position:absolute; inset:0;
  border-radius:50%;
  padding: var(--ring);
  background: radial-gradient(circle,
              rgba(255,246,230,.95) 0%,
              rgba(234,219,204,.8) 40%,
              rgba(199,173,144,.4) 70%,
              rgba(199,173,144,0) 100%) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  box-shadow: 0 0 calc(var(--ring) * 1.6) rgba(255,246,230,.5);
  pointer-events:none;
  transition: transform .28s ease, filter .28s ease;
}

/* внутрішня віньєтка для контрасту тексту */
.choose__item::before{
  content:"";
  position:absolute;
  inset: calc(var(--ring) + 2px);
  border-radius:50%;
  background: radial-gradient(120% 120% at 50% 40%,
              rgba(0,0,0,0) 35%, rgba(0,0,0,.28) 85%);
  pointer-events:none;
  z-index:0;
}

/* HOVER: просто збільшився і тримає розмір, доки курсор на елементі */
.choose__item:hover{
  transform: scale(1.08);
}
.choose__item:hover span{
  transform: scale(1.12);
}
.choose__item:hover::after{
  transform: scale(1.08);
  filter: brightness(1.1);
}




/* легка анімація на hover (необов'язково) */
@media (hover:hover){
  .choose__item:hover::after{ animation: chooseGlow 1.6s ease-out; }
}
@keyframes chooseGlow{
  0%{ transform:scale(1.02); opacity:.9; }
  50%{ transform:scale(1.10); opacity:1; }
  100%{ transform:scale(1.08); opacity:1; }
}
/* === Фікс для мобільних: 5 блок завжди по 2 кола === */
/* === 5 блок: завжди по 2 кола на телефонах і менші розміри === */
@media (max-width: 860px) {
  .choose__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* телефон — теж 2 в ряд, але менші кола */
@media (max-width: 520px) {
  .choose__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .choose__item {
    --size: min(42vw, 180px);
    font-size: clamp(11px, 3.2vw, 14px);
    padding: 0.8em;
  }
}




/* ===== 6. ГАЛЕРЕЯ ===== */
.gallery{
  background: var(--bg, #B8A99A);
  margin-top: 100px; /* верхній відступ, щоб 5-й блок не наїжджав */
  padding: 56px 0;
  margin: 60px 0;
  padding-top: var(--gallery-top-gap, 180px); /* значення за замовчуванням */
}
.g-title{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px;
  margin-bottom: 28px;
}
.g-heading{
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 42px);
  color:#fff;
}
.g-line{
  height:8px; background:#fff; border-radius:999px; display:block;
}

.g-viewport{ overflow:hidden; }
.g-track{
  display:flex;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.g-slide{
  min-width:100%;
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap: clamp(14px, 2vw, 32px);
  padding: 8px 0 2px;
}
.g-item{ margin:0; aspect-ratio:3/4; overflow:hidden; border-radius:8px; background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.g-item img{ width:100%; height:100%; object-fit:cover; display:block; }

.g-dots{ display:flex; justify-content:center; gap: clamp(10px, 1.2vw, 18px); margin-top:18px; }
.g-dot{
  --s: 30px;
  width:var(--s); height:var(--s); border-radius:50%;
  background:#fff; border:3px solid var(--coffee, #9C7652);
  cursor:pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.g-dot:hover{ transform: scale(1.06); }
.g-dot.is-active{ background: var(--coffee, #9C7652); box-shadow:0 0 0 6px rgba(156,118,82,.15); }

/* ===== FIX: drag & select для swipe мишкою ===== */
.g-item img{
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* щоб курсор «брав» контейнер, а не саме зображення */
}
.g-viewport{
  touch-action: pan-y;  /* дозволяємо вертикальний скрол, блокуємо горизонтальний нативний drag */
  cursor: grab;
}
.g-viewport.is-dragging{
  cursor: grabbing;
}

/* мобільна поведінка — по одному зображенню в ряд */
/* ===== ГАЛЕРЕЯ: показувати лише 2 фото в слайді на мобільних ===== */
@media (max-width: 820px){
  .g-slide{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  /* ховаємо 3-є фото в кожному слайді */
  .g-slide .g-item:nth-child(n+3){
    display: none;
  }
}

@media (max-width: 480px){
  .g-slide{
    grid-template-columns: 1fr;  /* дуже вузькі — по одному */
  }
  .g-slide .g-item:nth-child(n+2){
    display: none;               /* показувати лише перше */
  }
  
}

@media (max-width: 820px){
  .gallery {
    margin: 70px 0;           /* трохи менше відступ для мобіли */
    padding-top: var(--gallery-top-gap, 80px);
  }
}

@media (max-width: 900px){
  .gallery {
    margin: 50px 0;
    padding-top: var(--gallery-top-gap, 60px);
  }
  .gallery__title,
  .g-heading {
    font-size: 35px;
    line-height: 1.2;
  }
} /* ← закриваємо @media */


/* 7 блок */
.terms{
  --coffee: #b8ab9a;

  /* тут одразу виставляєш потрібні відсотки */
  --s1: 15%;
  --s2: 34.5%;
  --s3: 40%;
  --s4: 10.5%;

  padding: clamp(40px,6vw,70px) 0;
  background:
    linear-gradient(
      to bottom,
      var(--coffee) 0 var(--s1),
      #fff var(--s1) calc(var(--s1) + var(--s2)),
      var(--coffee) calc(var(--s1) + var(--s2)) calc(var(--s1) + var(--s2) + var(--s3)),
      #fff calc(var(--s1) + var(--s2) + var(--s3)) 100%
    );
}

.terms__title{
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 0 clamp(20px,4vw,40px);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(22px,3vw,38px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff; /* на кавовому фоні видно */
}


.terms__inner {
  max-width: min(1160px, 96%);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

/* загальний контейнер */
.term__wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.term__photo {
  display: block;
  width: 40%;       /* фото займає 40% контейнера */
  margin-left: 15%; 
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.term__side {
  position: absolute;
  top: 50%;
  left: 48%;        /* зсув у відсотках відносно ширини wrap */
  transform: translateY(-50%);
  width: 35%;       /* теж у відсотках */
  max-width: 40%;   /* захист, щоб не виходив за межі */
  background: transparent;
  text-align: center;
}

.term__photo2 {
  display: block;
  width: 40%;       /* фото займає 40% контейнера */
  margin-left: 39%; 
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.term__side2 {
  position: absolute;
  top: 50%;
  left: 11%;        /* зсув у відсотках відносно ширини wrap */
  transform: translateY(-50%);
  width: 35%;       /* теж у відсотках */
  max-width: 40%;   /* захист, щоб не виходив за межі */
  background: transparent;
  text-align: center;
}


.term__plan {
  display: block;
  width: 75%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}


.term__title {
  width: 75%;          /* твердо 75% */
  min-width: 75%;
  max-width: 75%;
  margin: 2% auto 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(12px, 2.2vw, 28px);
  line-height: 1.3;
  text-align: center;
}
.term__title b { font-weight: 800; }

.term__pill {
  display: inline-block;       /* по контенту */
  margin: 1% auto 0;
  padding: 0.4em 1.2em;        /* зроби менше бокові відступи */
  border-radius: 999px;
  background: #b8ab9a;
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 20px); /* лишаємо шрифт */
  text-align: center;
}

.term__pill2 {
  display: inline-block;       /* по контенту */
  margin: 1% auto 0;
  padding: 0.4em 1.2em;        /* зроби менше бокові відступи */
  border-radius: 999px;
  background: #fff;
  color: #b8ab9a;
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 20px); /* лишаємо шрифт */
  text-align: center;
}

@media (max-width: 768px){
	.terms{
		--s1: 18%;
		--s2: 33.5%;
		--s3: 30%;
		--s4: 18.5%;
		padding-bottom: 48px;   /* запас під блоком */
	}

	/* ГОЛОВНЕ: прибираємо масштабування контейнера */
	.terms__inner{
		transform: none !important;
		transform-origin: initial !important;
	}

	/* Замість scale — трохи більші елементи */
	.term__photo{
		width: 52%;
		margin-left: 14%;
	}
	.term__side{
		left: 58%;
		width: 40%;
	}

	.term__photo2{
		width: 52%;
		margin-left: 40%;
	}
	.term__side2{
		left: 8%;
		width: 40%;
	}
}


/* ===== 8. ВІДЕО ===== */
.video{
  /* 2 смуги як у 7 блоку, але простіше */
  --s1: 60%;    /* верхня смуга */
  --s2: 40%;    /* нижня смуга = 100% - s1 */
  --coffee: #b8ab9a;

   padding: 0px 0;  
  background:
    linear-gradient(
to bottom,
       #ffffff 0 var(--s1),   /* верх білий */
      #361905 var(--s1) 100% /* низ темно-коричневий */
    );
}

.video__inner{
  max-width: min(1160px, 96%);
  margin: 0 auto;
  padding-inline: 5%;          /* відступи у % від секції */
}


/* карусель */
.v-viewport{ overflow:hidden; touch-action: pan-y; cursor: grab; }
.v-viewport.is-dragging{ cursor: grabbing; }
.v-track{
  display:flex;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* 3 картки завжди. gap у % */
.v-slide{
  min-width:100%;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
  padding: 8px 0 2px;
}

/* прев’ю  трикутна іконка */
.v-card{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  text-decoration:none;
}
.v-card img{
  width:100%; height:100%; object-fit:cover; display:block;
  -webkit-user-drag: none; user-select: none; pointer-events:none;
}

.v-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;              /* вдвічі більше */
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  opacity: 0.5;            /* 50% прозорість */
  pointer-events: none;    /* щоб не заважало кліку */
}

.v-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;        /* білий */
  /* рівнобедрений трикутник вправо */
  clip-path: polygon(30% 20%, 30% 80%, 80% 50%);
}




/* точки */
.v-dots{ display:flex; justify-content:center; gap: clamp(10px, 1.2vw, 18px); margin-top:18px; }
.v-dot{
  --s: 20px;
  width:var(--s); height:var(--s); border-radius:50%;
  background:#fff; border:3px solid var(--coffee);
  cursor:pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.v-dot:hover{ transform: scale(1.06); }
.v-dot.is-active{ background: var(--coffee); box-shadow:0 0 0 6px rgba(156,118,82,.15); }

/* ===== VIDEO MODAL ===== */
.vmodal{ position:fixed; inset:0; display:none; z-index:1000; }
.vmodal.is-open{ display:block; }
.vmodal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); }
.vmodal__dialog{
  position:absolute; inset:0; margin:auto;
  width:min(100vw, var(--parent-w, 1160px));
  aspect-ratio:16/9; max-height:100vh;
  background:#000; border-radius:20px; box-shadow:0 20px 60px rgba(0,0,0,.35);
  display:flex; align-items:stretch; justify-content:stretch;
  overflow: hidden; 
}
.vmodal__frame iframe {
  border-radius: inherit; /* повторює закруглення */
}
.vmodal__close{
  position:absolute; top:8px; right:8px; width:42px; height:42px;
  border:0; border-radius:8px; background:rgba(0,0,0,.55); color:#fff; font-size:20px; cursor:pointer;
}
.vmodal__frame{ position:relative; width:100%; height:100%; }
.vmodal__frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.v-card {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  cursor: pointer;
}

/* мобільне: 100vw; у ландшафті — не вище 100vh */
@media (max-width:820px){
  .vmodal__dialog{ width:100vw; height:auto; aspect-ratio:16/9; border-radius:0; }
  @media (orientation:landscape){
    .vmodal__dialog{ height:100vh; width:calc(100vh * 16/9); max-width:100vw; }
  }
}

/* BLUR усього сайту, крім модала */
body.is-vmodal-open > *:not(#videoModal){
  filter: blur(6px);
  transition: filter .2s ease;
  will-change: filter;
}

/* ===== BLOCK 9 ===== */
.block-9{ background:#361905; color:#fff; width:100%; }
.block-9__container{
  max-width:720px; margin:0 auto; padding:56px 20px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.block-9__title{
  font-family:"Playfair Display", serif; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; font-size:clamp(24px,2.8vw,36px); margin-bottom:22px;
}

/* центр форми */
.block-9__form{ display:grid; gap:16px; justify-items:center; width:100%; }
.field{ width:100%; }

/* поля: рамка і текст кольору кофе; контент ВЛІВО */
.field input{
  width:min(520px,100%); height:52px; border-radius:16px;
  border:2px solid var(--coffee); background:rgba(0,0,0,.15);
  color:var(--coffee); padding:0 16px; outline:none; text-align:left; font-weight:700;
}
.field input::placeholder{ color:var(--coffee); opacity:.95; }
.field input:focus{
  box-shadow:0 0 0 3px rgba(156,118,82,.25) inset, 0 0 0 2px rgba(255,255,255,.15);
}

/* кнопки */
.block-9__actions{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-top:10px; }
.btn{
  position:relative; height:56px; padding:0 30px; border-radius:18px;
  font-family:"Playfair Display", serif; font-weight:800; letter-spacing:.03em;
  text-transform:uppercase; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  transition:transform .06s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:active{ transform:translateY(1px); }
.btn--primary{
  color:#2b1a00; border:0;
  background:linear-gradient(180deg,#ffe666 0%, #f4c715 100%);
  box-shadow:0 0 0 4px #fff, inset 0 2px 0 rgba(255,255,255,.7), 0 6px 0 #a26d00, 0 10px 22px rgba(0,0,0,.35);
}
.btn--primary:hover{ filter:brightness(1.03); }
.btn--coffee{
  color:#fff; border:0;
  background:linear-gradient(180deg,#c6a382 0%, var(--coffee) 100%);
  box-shadow:0 0 0 4px #fff, inset 0 2px 0 rgba(255,255,255,.6), 0 6px 0 #5b3f2a, 0 10px 22px rgba(0,0,0,.35);
}
.btn--coffee:hover{ filter:brightness(1.03); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

/* Toast: центр екрана. Поява/зникання з прозорості */
.toast{
  position:fixed; left:50%; top:50%;
  transform:translate(-50%,-50%) scale(.96);
  min-width:260px; max-width:min(92vw,520px);
  padding:16px 18px; border-radius:18px; text-align:center;
  font-weight:800; z-index:9999; opacity:0; pointer-events:none; color:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}
.toast--ok{ background:#1f8f4e; }
.toast--err{ background:#b11f2a; }
.toast--show{
  animation:toast-fade-in .28s ease-out forwards,
           toast-fade-out .28s ease-in forwards 2.5s;
}
@keyframes toast-fade-in{
  from{ opacity:0; transform:translate(-50%,-55%) scale(.96); }
  to  { opacity:1; transform:translate(-50%,-50%) scale(1); }
}
@keyframes toast-fade-out{
  to{ opacity:0; transform:translate(-50%,-55%) scale(.96); }
}




/* Контент у тебе центрується ~ до min(1160px, 96vw).
   Вираховуємо правий відступ від краю цього контейнера. */
.contact-sidebar{
  position: fixed;
  top: 50%;
  right: max(16px, calc((100vw - min(1160px, 96vw)) / 2 + 16px));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.contact-sidebar a{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(128,128,128,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 2px 10px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.contact-sidebar a:hover{
  transform: scale(1.1);
  border-color: rgba(255,255,255,.9);
  background: rgba(128,128,128,0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 4px 16px rgba(0,0,0,.35),
    0 0 16px rgba(255,255,255,.15);
}




/* Запобіжники від горизонтального скролу */
section { max-width: 100%; }
.flex > *, .grid > * { min-width: 0; }
