:root{
  --site-bg:        #fdf6ef;
  --site-accent:    #b5653f;
  --accent-soft:    #e89b6c;
  --caption-bg:     rgba(74, 45, 33, 0.42);
  --caption-text:   #fff3e9;
  --text-soft:      #6b4a38;
  --graphite:       #4a2d21;
  --card-bg:        #fff;
  --shadow:         0 10px 30px rgba(181,101,63,.14);
  --radius:         22px;
}

*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; }

body{
  font-family:'Segoe UI', Roboto, Arial, sans-serif;
  background:var(--site-bg);
  color:var(--text-soft);
  line-height:1.6;
  font-size:17px;
  overflow-x:hidden;
}

.wrap{ max-width:680px; margin:0 auto; padding:0 22px; }
section{ padding:56px 0; position:relative; }

h1{ font-size:clamp(34px,8vw,52px); font-weight:800; line-height:1.1; color:var(--site-accent); }
h2{ font-size:clamp(24px,6vw,34px); font-weight:800; line-height:1.15; color:var(--site-accent); margin-bottom:18px; }
p{ margin-bottom:14px; }
strong{ color:var(--graphite); font-weight:700; }
.mt{ margin-top:16px; }
.mt-big{ margin-top:26px; }

/* Появление при скролле */
.reveal{ opacity:0; transform:translateY(36px); transition:all .7s cubic-bezier(.16,1,.3,1); }
.reveal.show{ opacity:1; transform:none; }

.divider{ width:56px; height:4px; border-radius:4px; background:var(--accent-soft); margin:0 auto 22px; }

/* Картинки-сцены */
.scene-img{
  width:100%; border-radius:var(--radius); box-shadow:var(--shadow);
  display:block; aspect-ratio:16/9; object-fit:cover;
  background:linear-gradient(135deg,var(--accent-soft),var(--site-accent));
}

/* Кнопки */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:linear-gradient(135deg,var(--site-accent),var(--accent-soft));
  color:#fff; font-weight:700; font-size:18px; padding:17px 32px;
  border:none; border-radius:50px; cursor:pointer; text-decoration:none;
  box-shadow:0 10px 28px rgba(181,101,63,.4); transition:transform .25s, box-shadow .25s;
  width:100%; max-width:380px; margin:8px auto;
}
.btn:hover{ transform:translateY(-3px) scale(1.02); box-shadow:0 16px 38px rgba(181,101,63,.5); }
.btn:active{ transform:scale(.97); }
.btn.tg{ background:linear-gradient(135deg,#2aabee,#229ed9); box-shadow:0 10px 28px rgba(34,158,217,.4); }
.btn.vk{ background:linear-gradient(135deg,#4a76a8,#5b8bc4); box-shadow:0 10px 28px rgba(74,118,168,.4); }
.btn-wrap{ display:flex; flex-direction:column; align-items:center; margin-top:24px; }

/* HERO */
.hero{ background:radial-gradient(circle at 50% 0%,#fff8f0,var(--site-bg)); text-align:center; padding-top:52px; }
.hero .badge{
  display:inline-block; background:#fff; color:var(--site-accent); font-weight:700; font-size:13px;
  padding:8px 18px; border-radius:50px; box-shadow:var(--shadow); margin-bottom:20px; letter-spacing:.04em;
}
.hero h1{ margin-bottom:16px; }
.hero .lead{ font-size:19px; color:#7a5240; max-width:560px; margin:0 auto 24px; }
.hero .scene-img{ margin:6px 0 22px; }
.small-note{ font-size:14px; color:#9a7a68; margin-top:16px; }

/* Карточка-блок (цитаты/буллеты) */
.card-block{ background:var(--card-bg); border-radius:var(--radius); padding:22px 22px; box-shadow:var(--shadow); margin-top:14px; }
.card-block p{ margin:0; }
.card-block.highlight{ background:linear-gradient(135deg,#fbe2c8,#f4c4a0); }
.card-block.highlight p{ color:var(--graphite); }
.quote-line{ font-size:20px; color:var(--site-accent); font-weight:700; }

/* Список ценностей */
.value-list{ list-style:none; margin-top:8px; }
.value-list li{
  display:flex; gap:14px; align-items:flex-start; padding:15px;
  background:#fff; border-radius:16px; margin-bottom:11px; box-shadow:0 6px 18px rgba(181,101,63,.08);
}
.value-list .em{ font-size:23px; flex-shrink:0; }

/* Честные строки */
.honest-line{ display:flex; gap:11px; align-items:flex-start; padding:12px 15px; border-radius:13px; margin-bottom:9px; font-weight:500; }
.honest-line.no{ background:#fbe6e0; color:#a3493a; }
.honest-line.yes{ background:#e7f1e6; color:#3f7a4f; }
.honest-line .em{ font-size:19px; flex-shrink:0; }

/* Боли */
.pain{ display:flex; gap:14px; align-items:flex-start; background:#fff; padding:17px; border-radius:16px; margin-bottom:11px; box-shadow:var(--shadow); }
.pain .dot{ width:13px; height:13px; border-radius:50%; flex-shrink:0; margin-top:7px; }

/* Аккордеон */
.acc{ background:#fff; border-radius:16px; margin-bottom:11px; box-shadow:0 6px 18px rgba(181,101,63,.08); overflow:hidden; }
.acc-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:18px 20px;
  font-size:17px; font-weight:700; color:var(--graphite);
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  font-family:inherit;
}
.acc-q .arrow{ transition:transform .3s; color:var(--site-accent); font-size:22px; flex-shrink:0; }
.acc.open .arrow{ transform:rotate(45deg); }
.acc-a{ max-height:0; overflow:hidden; transition:max-height .4s ease, padding .4s ease; padding:0 20px; }
.acc.open .acc-a{ max-height:400px; padding:0 20px 20px; }
.acc-a p{ margin:0; color:#7a5240; }

/* Финал */
.final{ background:radial-gradient(circle at 50% 100%,#fff3e6,var(--site-bg)); text-align:center; }
.stat{ text-align:center; margin:6px 0 22px; }
.stat .num{
  font-size:clamp(46px,12vw,70px); font-weight:800; line-height:1;
  background:linear-gradient(135deg,var(--site-accent),var(--accent-soft));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.stat .lbl{ font-size:16px; color:#9a7a68; margin-top:6px; }

footer{ text-align:center; padding:36px 20px; color:#9a7a68; font-size:13px; }

/* ═══════════ ГАЛЕРЕЯ (твоя версия) ═══════════ */
.gallery-section{ text-align:center; padding:56px 0; }
.gallery-title{ font-size:28px; color:var(--site-accent); margin-bottom:8px; }
.gallery-subtitle{ color:var(--text-soft); margin:0 auto 24px; max-width:560px; padding:0 22px; }

.carousel-wrapper{ position:relative; max-width:1000px; margin:0 auto; padding:0 60px; }

.carousel{
  display:flex; gap:16px; overflow-x:auto;
  scroll-behavior:smooth; scroll-snap-type:x mandatory;
  padding:10px 4px; -ms-overflow-style:none; scrollbar-width:none;
}
.carousel::-webkit-scrollbar{ display:none; }

.gallery-section .card{
  flex:0 0 auto; width:220px; aspect-ratio:9/16; position:relative;
  border-radius:18px; overflow:hidden; cursor:pointer; scroll-snap-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,.12); transition:transform .25s ease, box-shadow .25s ease;
}
.gallery-section .card:hover{ transform:translateY(-4px); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.gallery-section .card img{ width:100%; height:100%; object-fit:cover; display:block; }

.card-caption{
  position:absolute; left:0; right:0; bottom:0;
  background:var(--caption-bg); color:var(--caption-text);
  font-size:13px; line-height:1.35; padding:10px 12px; text-align:left;
  backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
}

.carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:none; border-radius:50%;
  background:var(--site-accent); color:#fff; font-size:24px;
  cursor:pointer; z-index:2; opacity:.9;
  display:flex; align-items:center; justify-content:center; transition:opacity .2s ease;
}
.carousel-arrow:hover{ opacity:1; }
.carousel-arrow.prev{ left:8px; }
.carousel-arrow.next{ right:8px; }

.carousel-progress{ width:120px; height:5px; background:rgba(181,101,63,.2); border-radius:10px; margin:20px auto 0; overflow:hidden; }
.carousel-progress span{ display:block; height:100%; width:0%; background:var(--site-accent); border-radius:10px; transition:width .2s ease; }

.gallery-footnote{ margin-top:24px; color:var(--text-soft); font-style:italic; }

/* Lightbox */
.lightbox{ display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.88); justify-content:center; align-items:center; padding:20px; }
.lightbox.open{ display:flex; }
.lightbox img{ max-width:90vw; max-height:90vh; border-radius:12px; object-fit:contain; }
.lightbox-close{ position:absolute; top:20px; right:30px; font-size:42px; color:#fff; cursor:pointer; line-height:1; user-select:none; z-index:10001; }
.lightbox-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:54px; height:54px; border:none; border-radius:50%;
  background:rgba(181,101,63,.85); color:#fff; font-size:32px;
  cursor:pointer; z-index:10001; opacity:.9;
  display:flex; align-items:center; justify-content:center; transition:opacity .2s ease, background .2s ease;
}
.lightbox-arrow:hover{ opacity:1; background:var(--site-accent); }
.lightbox-arrow.prev{ left:20px; }
.lightbox-arrow.next{ right:20px; }

/* Адаптив */
@media(max-width:600px){
  .carousel-wrapper{ padding:0 28px; }
  .gallery-section .card{ width:160px; }
  .gallery-title{ font-size:22px; }
  .lightbox-arrow{ width:44px; height:44px; font-size:26px; }
  .lightbox-arrow.prev{ left:8px; }
  .lightbox-arrow.next{ right:8px; }
  .lightbox-close{ top:14px; right:18px; }
}