/* =========================================
   0. ГЛОБАЛЬНІ ЗМІННІ ТА БАЗОВІ СТИЛІ
   ========================================= */

:root{
  --bg: #dbf0fe;
  --ink:#032233;
  --ink-soft: #153c52;
  --accent:#e74b10;
  --accent-2:#2e6a3b;
  --card:#e9f4ff;
  --card-2:#f1f3f5;
  --line: rgba(30,42,30,.12);
  --line-1: #92b7c9;
  --line-2: #246b92;
  --line-3: #cb3800;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --maxw: 1080px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-size: 16px;
  color:var(--ink);
  min-height:100vh;
  line-height:1.45;
  background-color: var(--bg);
  background-image: url(/assets/img/bg.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background-image: radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode:multiply;
  opacity:.22;
  z-index:-1;
}

/* Контент завжди над фоном/снігом */
body > *:not(#snow){
  position: relative;
  z-index: 1;
}

/* Фікс для попапів поверх усього */
body > .modal{
  position: fixed;
  z-index: 9999;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--maxw); margin:0 auto; padding:10px 15px;}


/* =========================================
   1. ХЕДЕР + НАВІГАЦІЯ
   ========================================= */

header{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0 18px;
  line-height: 1;
}
header .btn{
  line-height: 1;
  padding: 8px 12px;
}
.logo{
  display:flex; gap:10px; align-items:center; font-weight:800;
  letter-spacing:.3px;
}
.logo-badge{
  width:42px; height:42px; display:grid; place-items:center;
  background:var(--card); border-radius:999px; box-shadow:var(--shadow);
  font-size:20px;
}
nav{
  display:flex; gap:14px; flex-wrap:wrap; font-weight:600; color:var(--ink-soft);
}
nav a{padding:6px 8px; border-radius:10px}
nav a:hover{background:rgba(255,255,255,.35)}


/* =========================================
   2. HERO-БЛОК (ЗАГОЛОВОК + ВІДЕОКАРТКА + CTA)
   ========================================= */

.hero{
  display:grid;
  gap:16px;
  padding:10px 0 22px;
  margin-top:6px;
}

/* Desktop (2 колонки + заголовок зверху) */
@media (min-width: 901px){
  .hero{
    grid-template-columns: 40% 60%;
    grid-template-areas:
      "title title"
      "left  video";
    align-items:center;
    gap:22px;
  }
  .hero-title{
    grid-area:title;
    text-align:center;
    max-width:70ch;
    justify-self:center;
  }
  .hero-video{
    grid-area:video;
    width:100%;
  }
  .hero-left{
    grid-area:left;
    width:100%;
  }
  .hero-desc{
    text-align:left;
    max-width:52ch;
  }
  .cta-row{justify-content:flex-start;}
}

.hero-title h1{
  font-size: clamp(28px, 4.2vw, 52px);
  line-height:1.05;
  margin:0;
  font-weight:900;
  letter-spacing:.3px;
}
.accent{color:var(--accent);}

.hero-desc{
  font-size: 1.2em;
  color:var(--ink-soft);
  max-width:54ch;
  margin-top:8px;
  font-weight:500;
}

.hero-price{
  display:flex;
  gap:12px;
  align-items:baseline;
  justify-content:center;
  margin:4px 0 10px;
  font-weight:900;
  font-size: 1.5em;
}
.hero-price .old{
  font-size:1.65em;
  color:var(--ink);
  opacity:.7;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.hero-price .new{
  font-size:1.9em;
  color:var(--accent);
  letter-spacing:.2px;
}

.cta-row{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:6px;
  justify-content:center;
}

/* Головні кнопки (включно з CTA) */
.btn{
  appearance:none; border:0; cursor:pointer;
  font-size: 1.2em;
  padding:14px 18px; border-radius:14px;
  font-weight:800; letter-spacing:.3px;
  background:var(--accent); color:#fff;
  box-shadow:var(--shadow);
  transition: transform .08s ease, filter .2s ease, background .2s ease;
  border:2px solid var(--line-3);
}
.hero .btn{
  width: 90%;
}
.btn:hover{transform:translateY(-1px); filter:brightness(1.03)}
.btn:active{transform:translateY(1px)}
.btn.secondary{
  background:transparent;
  color:var(--ink);
  border:2px solid var(--line-2);
}

/* =========================================
   3. ВІДЕОКАРТКА В HERO
   ========================================= */

.video-card{
  position:relative;
  width:100%;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.9);
  aspect-ratio:16/11;
  min-height:220px;
  background-image: url(/assets/img/v_bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.play{
  position:absolute; inset:0;
  display:grid; place-items:center;
  background: transparent;
  z-index:1;
}
.play-btn{
  width:92px; height:92px; border-radius:999px;
  background: rgba(255,255,255,.96);
  display:grid; place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  border:3px solid #fff;
  transition:transform .15s ease;
}
.play-btn:hover{transform:scale(1.04)}
.play-tri{
  width:0;height:0;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
  border-left:20px solid var(--accent-2);
  margin-left:4px;
}

.tag{
  position:absolute; top:12px; left:12px; z-index:2;
  background:rgba(255,255,255,.92);
  padding:6px 10px; border-radius:999px;
  font-weight:800; font-size:12px; letter-spacing:.4px;
}


/* =========================================
   4. БАЗОВІ СЕКЦІЇ + КАРТКИ/СТРУКТУРА
   (HOW IT WORKS, PRICE, ДВІ КОЛОНКИ тощо)
   ========================================= */

section{padding:18px 0}
.section-title{
  font-size: clamp(20px, 3vw, 30px);
  margin:0 0 12px; font-weight:900;
  display:flex; align-items:center; gap:10px;
}
.section-title .leaf{
  width:28px;height:28px;border-radius:8px;background:var(--card);
  display:grid;place-items:center;box-shadow:var(--shadow);font-size:16px;
}

/* "Як це працює" – кроки */
.steps{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:14px;
}
.step{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px; padding:16px;
  box-shadow:var(--shadow);
  text-align:center;
}
.step .icon{
  width:70px;height:70px;border-radius:999px;margin:0 auto 10px;
  background:var(--card); display:grid; place-items:center;
  border:2px solid rgba(46,106,59,.18); font-size:30px;
}
.step h3{margin:0 0 6px; font-weight:900}
.step p{margin:0; color:var(--ink-soft); font-size:15px; font-weight:500;}

/* ========= PRICE BOX V3 (палітра 100% з :root) ========= */

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 34px;
  gap: 34px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

/* Ліва частина */
.price-left {
  flex: 1 1 300px;
}

.price-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.price-note {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 620px;
}

/* Права частина */
.price-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 220px;
  gap: 12px;
}

/* Ціни в 1 рядок */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.old-price {
  font-size: 1.6rem;
  color: var(--ink);
  opacity: .7;
  text-decoration: line-through;
  font-weight: 500;
}

.new-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-top: -2px;
}

/* Кнопка */
.order-btn {
  padding: 14px 34px;
  font-size: 1.2rem;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.order-btn:hover {
  background: #cf430d; /* темніший відтінок для hover */
}

/* ===== MOBILE ===== */
@media (max-width: 899px) {
  .price-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-right {
    align-items: flex-start;
    min-width: auto;
  }
  .price-left {
    flex: none;
  }
}

/* Дві колонки для карток (опис формату тощо) */
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px; padding:14px;
  box-shadow:var(--shadow);
}
.mini{font-size:16px; color:var(--ink-soft); font-weight:500;}

/* =========================================
   19. БЛОК "ЧОМУ ЦЕ ПРАЦЮЄ" (#whyWorks)
   ========================================= */

#whyWorks{
  padding: 26px 0 30px;
}

#whyWorks .section-title{
  margin-bottom: 14px;
}

/* фон під картками */
#whyWorks .why-inner{
  border-radius: 24px;
  padding: 18px 18px 20px;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

/* сітка карток: 2 колонки на десктопі, 1 на мобілці */
#whyWorks .why-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  #whyWorks .why-grid{
    grid-template-columns: 1fr;
  }
}

/* сама картка */
#whyWorks .why-item{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px 14px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.96);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
}

/* кружечок з номером */
#whyWorks .why-badge{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8650);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* текст у картці */
#whyWorks .why-text h3{
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

#whyWorks .why-text p{
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}


/* =========================================
   5. БЛОК "ІНДИВІДУАЛЬНЕ ВІДЕО" (#customVideo)
   ========================================= */

#customVideo{
  padding: 26px 0 30px;
}

#customVideo .custom-video-card{
  margin-top: 10px;
  padding: 20px 22px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);

  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

#customVideo .custom-video-text h3{
  margin:0 0 8px;
  font-size:22px;
  font-weight:900;
  color:var(--ink);
}

#customVideo .custom-video-text p{
  margin:0;
  font-size:16px;
  line-height:1.5;
  font-weight:500;
  color:var(--ink-soft);
}

#customVideo .custom-video-cta{
  flex:0 0 auto;
}

#customVideo .custom-video-btn{
  min-width:230px;
  padding:14px 26px;
  border-radius:18px;
  font-size:1.1em;
  background:var(--ink-soft);
  border-color:var(--accent-2);
}

/* МОБІЛЬНИЙ РЕЖИМ: блок в одну колонку */
@media (max-width: 900px){

  #customVideo .custom-video-card{
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
  }

  #customVideo .custom-video-cta{
    width:100%;
  }

  #customVideo .custom-video-btn{
    width:100%;
    text-align:center;
  }
}


/* =========================================
   6. FAQ (#faq)
   ========================================= */

.faq{
  display:grid; gap:8px;
  margin-top: 10px;
  padding: 20px 22px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}
.qa{
  background: rgba(248, 252, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  border-radius:16px;
  padding:12px 14px;
}
.qa button{
  width:100%; text-align:left; background:transparent; border:0; padding:0;
  font-weight:900; font-size:16px; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
  color: var(--ink-soft);
}
.qa .answer{
  max-height:0; overflow:hidden; transition:max-height .25s ease;
  color:var(--ink); font-size:15px;
}
.qa.open .answer{max-height:280px; margin-top:8px; font-weight:500;}
.chev{transition:transform .2s ease}
.qa.open .chev{transform:rotate(180deg)}


/* =========================================
   7. ФУТЕР + КНОПКА "ВГОРУ" + ЮРИДИЧНІ ЛІНКИ
   ========================================= */

footer{
  margin-top:10px; padding:16px 0 30px; color:var(--ink-soft);
  border-top:1px dashed var(--line);
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}

.footer-to-up{
  overflow: hidden;
}

.footer-to-up a{
  float: right;
  font-weight: 700;
}
@media (max-width: 700px){
  .footer-to-up{
    width: 100%;
  }
}

/* legal links під футером */
.legal-links{
  width: 100%;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  opacity: .85;
}
.legal-links a{
  color: var(--ink-soft);
  text-decoration: underline;
}
.legal-links .sep{
  margin: 0 6px;
  opacity: .5;
}
.legal-links a:hover{ opacity: 1; }

/* LEGAL MODALS — тільки ширина картки */
.modal-card.legal-card{
  width: min(1080px, 100%);
}


/* =========================================
   8. ГЛОБАЛЬНІ МОДАЛКИ (VIDEO / ORDER / LEGAL / STORY-UPSELL)
   ========================================= */

/* Основний шаблон модалки */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  display:none;
  min-width:360px;
  z-index:9999;
  backdrop-filter: blur(3px);
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  justify-content:center;
  align-items:flex-start;
  padding:40px 16px;
}
.modal.open{display:flex}

.modal-card{
  width:100%;
  max-width: 680px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
  position:relative;
  margin:0 auto;
  background: var(--card);
  color: var(--ink);
}

.modal-close{
  position:absolute; top:10px; right:10px; z-index:2;
  width:40px; height:40px; border-radius:999px; border:0; cursor:pointer;
  font-size:22px; font-weight:900;
  background: rgba(0,0,0,.1);
  color: var(--ink);
}

.modal-body{
  padding:4%;
}
.modal-body .btn{
  display: block;
  margin: 0px auto;
}

.modal-body h3{
  margin:0 0 20px; font-weight:900; font-size:20px; line-height: 1.1em; padding-right: 20%;
}
.modal-body p{
  margin:0; font-size:15px; line-height:1.5;
  color: var(--ink-soft);
}

/* Відео-приклад всередині модалки */
.example-video{
  width:100%;
}

.example-video video{
  display:block; width:100%; margin:auto;
}

/* ---- Stories Upsell Modal (чорний фон, зірки, список казок) ---- */

#storiesModal h3 {
  color:var(--accent);
  text-align: center;
  padding: 0;
}

#storiesModal p {
  color:#e4e7ed;
}

#storiesModal {
}

#storiesModal .modal-card {
  background-color: #000b21 !important;
  background-image: url("/assets/img/t_bg.jpg");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
}

#storiesModal .order-body {
  padding: 5% 16% 0 16%;
}

#storiesModal .order-body2 {
  padding: 0 5% 5% 5%;
}

#storiesModal .modal-text {
  padding: 5%;
  background: rgba(5, 18, 30, 0.3);
  border-radius: 14px;
}

#storiesModal .is-active {
  background: rgba(230, 75, 15, 0.8);
  color: #ffffff;
}

#storiesModal .modal-close {
  color:#b7bdc8;
}



/* ---- Video modal копірайт/опис ---- */

#videoModal .modal-card h3{
  padding-left:4%;
}

#videoModal p{
  font-size:1.1em;
  font-weight: 500;
  padding-bottom:4%;
}

/* Фікс: усі основні модалки поверх усього */
body > #videoModal,
body > #myVideosModal,
body > #orderModal,
body > #termsModal,
body > #privacyModal,
body > #offerModal,
body > #aboutModal{
  z-index: 99999;
  position: fixed;
}


/* =========================================
   9. ОВЕРЛЕЙ ОBRІЗКИ ФОТО (CROPPER)
   ========================================= */

/* === Cropper Overlay === */
#photoCropOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

/* === Inner modal === */
.crop-inner {
  background: #0a111d;
  border-radius: 16px;
  padding: 15px 25px 25px 25px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

/* Title */
.crop-title {
  color: #fff;
  font-weight: 600;
  font-size: 1em;
}

/* Image wrapper */
.crop-img-wrap {
  position: relative;
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Preview image */
.crop-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  user-select: none;
  display: block;
}

/* Selection box */
.crop-box {
  position: absolute;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
  cursor: move;
  touch-action: none;
}

/* Resize handle */
.crop-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px rgba(0,0,0,0.6);
  cursor: nwse-resize;
  touch-action: none;
}

/* Buttons */
.crop-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.crop-btn-cancel {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #e5e7eb;
  font-size: 1.2em;
  font-weight: 600;
}

.crop-btn-cancel:hover{transform:translateY(-1px); filter:brightness(1.03)}
.crop-btn-cancel:active{transform:translateY(1px)}

.crop-btn-ok {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.2em;
}

.crop-btn-ok:hover{transform:translateY(-1px); filter:brightness(1.03)}
.crop-btn-ok:active{transform:translateY(1px)}


/* =========================================
   10. ДОДАТКОВІ ЕЛЕМЕНТИ ТЕКСТУ (PILL)
   ========================================= */

.pill{
  display:inline-block;
  margin-top:10px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800; font-size:12px; letter-spacing:.3px;
  background: rgba(0,0,0,.06);
  color: var(--ink);
}


/* =========================================
   11. РЕСПОНСИВ ДЛЯ HERO / GRID / НАВІГАЦІЇ
   ========================================= */

@media (max-width: 1150px){
  .hero-video{
    width: 90%;
    max-width:100%;
  }
}

@media (max-width: 900px){
  nav{display:none;}
  .steps{grid-template-columns:1fr;}
  .grid-2{grid-template-columns:1fr;}
  .price-box{grid-template-columns:1fr;}

  .hero{
    grid-template-areas:
      "title"
      "video"
      "left";
  }
  .hero-title{ grid-area:title; }
  .hero-video{ grid-area:video; }
  .hero-left{ grid-area:left; }

  .hero-title,
  .hero-video,
  .hero-cta,
  .hero-desc{
    max-width:90%;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
  }
  .cta-row{justify-content:center;}
}


/* =========================================
   12. ВІДГУКИ (#reviews) + КАРУСЕЛЬ
   ========================================= */

#reviews{padding: 30px 0;}
.reviews-wrapper{ position: relative; overflow: hidden; }
.carousel{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.carousel::-webkit-scrollbar{ display:none; }
.review-item{
  min-width: calc(33.333% - 16px);
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  scroll-snap-stop: always;
}
.review-item img,
.review-item video{
  width: 100%;
  display: block;
}

/* Стрілки каруселі (JS змінює disabled + opacity) */
.carousel-arrow{
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.carousel-arrow[disabled]{
  opacity: .15;
  pointer-events: none;
}

/* Позиціонування стрілок */
.carousel-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s ease, transform .15s ease;
}
.carousel-arrow:hover{
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}
.carousel-arrow:active{ transform: translateY(-50%); }
.carousel-arrow.left{ left: -12px; }
.carousel-arrow.right{ right: -12px; }
.arrow-ico{
  width: 72px;
  height: 72px;
  stroke: var(--ink-soft);
}

@media(max-width:760px){
  .review-item{ min-width: calc(50% - 20px); }
}

@media(max-width:480px){
  .review-item{ min-width: 90%; }
}

@media(max-width:900px){
  .carousel-arrow{ width: 60px; height: 60px; }
  .arrow-ico{ width: 48px; height: 48px; }
}


/* =========================================
   13. ORDER FORM (СТРУКТУРА МОДАЛКИ ЗАМОВЛЕННЯ)
   ========================================= */

.order-card{ border-radius:22px; }
.order-body{ padding:18px 16px 22px; }

/* заголовок модалки — найбільший */
.modal-card h3{
  font-size:24px;
  font-weight:900;
  line-height: 1.1em;
}
.modal-card .accent{
  margin-left:0;
}

/* секційний заголовок усередині форми */
.order-section-title{
  font-weight:900;
  color:var(--ink-soft);
  margin:6px 0 10px;
  font-size:18px;
}

/* групи кнопок (дітей / статі) */
.seg-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:12px;
}
.seg-btn{
  appearance:none;
  border:2px solid var(--line-1);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  font-weight:900;
  font-size:1em;
  padding:8px 10px;
  border-radius:12px;
  box-shadow:none;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.seg-btn:hover{ transform:translateY(-1px); }
.seg-btn.is-active{
  background:#fff;
  border-color: var(--line-3);
  box-shadow: var(--shadow);
}

/* трішки дрібніші кнопки на мобільному */
@media (max-width:900px){
  .seg-btn{ font-size:.98em; padding:8px 9px; }
}

/* картки дітей */
.child-card{
  background:#eef2f4;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 12px 16px;
  margin-top:14px;
}
.child-head{
  font-weight:900;
  font-size:19px;
  margin:0 0 8px;
  color:var(--ink);
}

/* Лейбли над полями */
.field-label{
  display:block;
  margin:14px 0 7px;
  font-weight:900;
  font-size:16px;
  color:var(--ink);
}

/* inputs */
.inp{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:16px;
  outline:none;
}
.inp:focus{
  border-color: var(--line-2);
  box-shadow: 0 0 0 2px rgba(36,107,146,.12);
}

/* стандартні селекти */
.sel{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:16px;
  outline:none;
  appearance:auto;
}
.sel:focus{
  border-color: var(--line-2);
  box-shadow: 0 0 0 2px rgba(36,107,146,.12);
}

/* listbox (вік, якщо через select size=5) */
.listbox{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:16px;
  outline:none;
  padding:0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-appearance:none;
          appearance:none;
}
.listbox:focus{
  border-color: var(--line-2);
  box-shadow: 0 0 0 2px rgba(36,107,146,.12);
}
.listbox option{
  padding:8px 10px;
}

/* email card spacing */
.email-card{
  background:#eef2f4;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  margin-top:14px;
}

/* terms row alignment */
.terms-row{
  display:flex;
  gap:10px;
  align-items:center;
  margin:14px 0 6px;
  font-weight:800;
  color:var(--ink);
}
.terms-row input{
  width:18px; height:18px;
  accent-color: var(--accent);
}

/* якщо чекбокс не обраний — підсвітка */
.terms-row input.is-invalid{
  outline:2px solid var(--accent);
  outline-offset:2px;
  box-shadow: 0 0 0 2px rgba(231,75,16,.14);
  border-radius:4px;
}

/* submit row left aligned */
.order-submit-row{
  margin-top:10px;
  justify-content:flex-start;
}

/* invalid highlight (універсальна рамка) */
.is-invalid{
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(231,75,16,.14) !important;
}
.photo-drop.is-invalid{
  border-color: var(--accent) !important;
  background:#fff7f3;
}


/* =========================================
   14. CLEARABLE INPUTS (ХРЕСТИКИ В ПОЛЯХ)
   ========================================= */

.order-form-clearable {
  position: relative;
}

.order-form-clearable > .inp,
.order-form-clearable > input[type="text"],
.order-form-clearable > input[type="email"],
.order-form-clearable > input[type="tel"] {
  padding-right: 32px;
}

.order-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: rgba(0,0,0,0.5);
}

.order-clear-btn:hover {
  background: rgba(0,0,0,0.12);
}

.order-clear-btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}


/* =========================================
   15. PHOTO DROP (ЗАВАНТАЖЕННЯ ФОТО + PREVIEW)
   ========================================= */

.photo-drop {
  border:2px dashed var(--ink-soft);
  border-radius:16px;
  background:#f7fbff;
  padding:18px 14px;
  text-align:center;
  cursor:pointer;
  position:relative;
  transition: filter .15s ease, border-color .15s ease;
}
.photo-drop:hover{ filter:brightness(0.985); }
.photo-drop input[type="file"]{ display:none; }

.photo-title {
  font-weight: 900;
  font-size: 18px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.photo-ico{
  width:64px;
  height:64px;
  margin:0 auto;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%23e74b10' d='M20.5 50h25.8A11.7 11.7 0 0 0 48 26.8a15.4 15.4 0 0 0-29.7 3.7A9.7 9.7 0 0 0 20.5 50z' opacity='.18'/><path fill='none' stroke='%23e74b10' stroke-width='3' d='M20.5 50h25.8A11.7 11.7 0 0 0 48 26.8a15.4 15.4 0 0 0-29.7 3.7A9.7 9.7 0 0 0 20.5 50z'/><path fill='none' stroke='%23e74b10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M32 44V28m0 0l-6 6m6-6l6 6'/></svg>");
  font-size:0;
  color:transparent;
}

/* Кнопка очистити фото (хрестик) */
.photo-clear-btn {
  position: absolute;
  right: 8px;
  top: 20px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: rgba(0, 0, 0, 0.5);
}

.photo-clear-btn:hover {
  background: rgba(0,0,0,0.12);
}
.photo-clear-btn:focus {
  outline: none;
}

/* ЛОАДЕР НА БЛОЦІ ФОТО */
.photo-drop-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.65);
  z-index: 5;
  border-radius: 16px;
}

.photo-drop.is-loading .photo-drop-loader {
  display: flex;
}

.photo-drop-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85);
  border-top-color: var(--accent);
  animation: photoSpin 0.8s linear infinite;
}

@keyframes photoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Превʼю фото */
.photo-drop img{
  display:none;
  max-width:240px;
  width:100%;
  margin:10px auto 0;
  border-radius:12px;
  box-shadow: var(--shadow);
}


/* =========================================
   16. UPSELL "КАЗОЧКИ" – КАРТКИ ТА КНОПКИ
   ========================================= */

/* Старий контейнер – зараз використовується як обгортка */
.upsell-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}

.upsell-opt span{
  padding-right:15px;
}

/* Активний стан (додатковий, але частково перекривається новим блоком нижче) */
.upsell-opt.is-active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(46,106,59,.18), 0 8px 22px rgba(0,0,0,.08);
  background: #f6fff8;
  transform: translateY(-1px);
}

.upsell-opt:hover{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(156,204,242,.25);
}
.upsell-btn{
  width:100%;
  margin-top: 20px;
}
.upsell-btn button{
  margin: auto;
  display: block;
}

/* ---- Нова зона допродажу (stories modal) ---- */

#storiesOptions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}

/* Карточка для кожного варіанту */
.upsell-item {
  background: rgba(5, 18, 30, 0.9);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Текст над кнопкою */
.upsell-item__desc {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  opacity: 0.95;
}

/* КНОПКИ ДЛЯ 1 І 5 КАЗОК */
.upsell-opt {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);

  color: #ffffff;
  font-size: 15px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
  transition: 0.16s ease;
  position: relative;
}

.upsell-opt:hover {
  background: rgba(230, 75, 15, 0.3);
}

.upsell-opt.is-active {
  border: 1px solid #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,0.75);
}

/* текстові блоки всередині кнопки */
.upsell-opt__label {
  flex: 1 1 auto;
}

.upsell-opt__price {
  flex: 0 0 auto;
  white-space: nowrap;
}


/* КНОПКА "НЕ ДОДАВАТИ" */
.upsell-item--skip .upsell-skip {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;

  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);

  color: #ffffff;
  font-size: 15px;
  font-weight: 600;

  text-align: center;
  cursor: pointer;
  transition: 0.16s ease;
}

.upsell-item--skip .upsell-skip:hover {
  background: rgba(230, 75, 15, 0.3);
}

.upsell-item--skip .upsell-skip.is-active {
  border: 1px solid #fff;
  background: rgba(255,255,255,0.28);
}


/* БЕЙДЖ "Найпопулярніше" */
#storiesOptions .upsell-item:nth-child(2) .upsell-opt::before {
  content: 'Найпопулярніше';
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;

  background: var(--accent);
  color: #fff;

  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* мобільне */
@media (max-width: 600px) {
  .upsell-item__desc { font-size: 15px; }
  .upsell-opt, .upsell-skip { font-size: 14px; padding: 12px 18px; }
}


/* =========================================
   17. СНІГ (CANVAS #snow)
   ========================================= */

#snow {
  position: fixed;
  inset: 0;
  z-index: 500;          /* вище за звичайний контент */
  pointer-events: none;  /* щоб не блокував кліки */
}


/* =========================================
   18. КНОПКИ МЕСЕНДЖЕРІВ (в custom video modal)
   ========================================= */

.messengers-row{
  display:flex;
  flex-direction:column;
  gap:15px;
  margin-top:18px;
  max-width: 700px;
  margin: auto;
}

.messenger-btn{
  display:flex;
  align-items:center;
  gap:10px;
  width: 70%;
  margin: auto;
  padding:12px 16px;
  border-radius:14px;
  border:2px solid transparent;
  text-decoration:none;
  font-size:1em;
  font-weight:700;
  box-shadow:var(--shadow);
  cursor:pointer;
  transition:transform .08s ease, filter .15s ease, box-shadow .15s ease;
}

.messenger-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.messenger-btn:active{
  transform:translateY(1px);
}

/* "пустий" контейнер під лого */
.messenger-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  filter: invert(1);
}

/* Viber */
.messenger-viber{
  background:#7360F2;
  border-color:#7360F2;
  color:#fff;
}
.messenger-viber .messenger-icon{
  background-image:url("/assets/img/icons/viber.svg");
}

/* Telegram */
.messenger-telegram{
  background:#229ED9;
  border-color:#229ED9;
  color:#fff;
}
.messenger-telegram .messenger-icon{
  background-image:url("/assets/img/icons/telegram.svg");
}

/* WhatsApp */
.messenger-whatsapp{
  background:#25D366;
  border-color:#25D366;
  color:#fff;
}
.messenger-whatsapp .messenger-icon{
  background-image:url("/assets/img/icons/whatsapp.svg");
}

/* Телефон */
.messenger-call{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.messenger-call .messenger-icon{
  background-image:url("/assets/img/icons/phone.svg");
}

@media (max-width: 600px) {
  .messenger-btn{  width: 100%;}
}

/* =========================================
   5.1. БЛОК "ПРО НАС" (#about)
   ========================================= */

#about{
  padding: 26px 0 30px;
}

#about .about-card{
  margin-top: 10px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  align-items: center;
}

#about .about-video{
  border-radius: 12px;
  overflow: hidden;
  width: 35%;
  float: left;
}

#about .about-video video{
  display:block;
  width:100%;
}

#about .about-text{
  width: 60%;
  float: right;
}

#about .about-text h3{
  margin:0 0 8px;
  font-size:22px;
  font-weight:900;
  color:var(--ink);
}

#about .about-text p{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.5;
  color:var(--ink-soft);
}

#about .about-actions{
  margin-top:12px;
}

#about .about-actions .btn{
  min-width:230px;
}

/* мобільний: блок в одну колонку */
@media (max-width: 900px){
  #about .about-video{
	width: 100%;
  }
  #about .about-video video{
	width: 70%;
	margin: auto;
  }
  #about .about-text{
	width: 100%;
  }
  #about .about-text h3{
    margin-top:20px;
  }
  #about .about-actions .btn{
    margin-top:20px;
    width:100%;
    text-align:center;
  }
}

/* мобільний: блок в одну колонку */
@media (max-width: 600px){
  #about .about-video video{
	width: 100%;
  }
}
