/* =========================================================================
   ПОДСОЛНУХ — сайт гостиницы
   Тёплая шоколадная палитра: какао, ярко-жёлтый, терракота, глубокая зелень.
   ========================================================================= */

:root {
  --bg: #ad805c;
  --bg-2: #916743;
  --surface: #ffffff;
  --ink: #2a2215;
  --ink-soft: #4a3f2e;
  --muted: #2a2215;
  --line: #c39770;
  --sun: #f9c21d;          /* яркий подсолнух */
  --sun-deep: #e8a300;
  --sun-soft: #fde9a8;
  --petal: #f7a93c;        /* лепесток */
  --terra: #c65f3d;
  --terra-dark: #a54a2c;
  --terra-soft: #fbeee4;
  --leaf: #4e7d3a;         /* листья */
  --leaf-deep: #345a24;
  --leaf-soft: #e6f1dc;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(80, 56, 20, 0.10);
  --shadow-lg: 0 28px 70px rgba(80, 56, 20, 0.18);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip; /* телефон: страница ровно по ширине экрана, без горизонтального скролла */
}

/* ---------- ДЕКОРАТИВНЫЕ ПОДСОЛНУХИ ФОНА ---------- */
.deco-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.deco {
  position: absolute; will-change: transform;
  opacity: .55;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.deco.petal {
  width: 28px; height: 18px;
  background: radial-gradient(ellipse at 30% 40%, #ffe082, #f7a93c 70%);
  border-radius: 60% 40% 60% 40% / 70% 60% 40% 30%;
  filter: drop-shadow(0 2px 6px rgba(200, 120, 20, .25));
}
.deco.leaf {
  width: 44px; height: 24px;
  background: linear-gradient(120deg, #6ea64f, #3e6b28);
  border-radius: 0 100% 0 100%;
  transform-origin: 0% 100%;
  filter: drop-shadow(0 2px 6px rgba(60, 100, 40, .25));
}
.deco.seed {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7a4f1f, #3f2910);
}

@keyframes float-slow {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(6px,-10px) rotate(1.5deg); }
}
@keyframes float-med {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(-5px,-8px) rotate(-1.5deg); }
}
@keyframes float-fast {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(4px,-6px) rotate(2deg); }
}
@keyframes fall {
  0%   { transform: translate(0,-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { transform: translate(var(--drift,60px), 110vh) rotate(540deg); opacity: 0; }
}
@keyframes sway {
  0%,100% { transform: rotate(-2deg); }
  50%     { transform: rotate(2deg); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(249, 194, 29, .55); }
  50%     { box-shadow: 0 0 0 18px rgba(249, 194, 29, 0); }
}

/* Плавающие лепестки, падающие сверху */
.falling-petal {
  position: absolute; top: -40px; z-index: 1; pointer-events: none;
  animation: fall linear infinite;
  opacity: .75;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--terra-dark); text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1,h2,h3 { font-family: 'Unbounded', sans-serif; text-wrap: balance; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.5px; max-width: 100%; overflow-wrap: break-word; }
p { text-wrap: pretty; margin: 0 0 10px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); white-space: nowrap; overflow: hidden; border: 0; padding: 0; }

.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; position: relative; z-index: 2; }

/* ---------- ШАПКА ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(173, 128, 92, 0.95);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
header.scrolled { border-color: var(--line); box-shadow: 0 8px 28px rgba(80, 56, 20, 0.08); }
.top { display: flex; align-items: center; gap: 8px; padding: 10px 0; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-flower {
  width: 52px; height: 52px; flex-shrink: 0; position: relative;
  animation: sway 6s ease-in-out infinite;
  transform-origin: 50% 80%;
  filter: drop-shadow(0 6px 12px rgba(232, 163, 0, .35));
}
.logo-text strong {
  display: block; font-family: 'Unbounded', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: .01em; color: var(--ink);
}
.logo-text span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

.top-contacts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-phone { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 14px; }
.top-phone small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }

nav ul { display: none; gap: 2px; list-style: none; margin: 0; padding: 0; }
nav a {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 8px; border-radius: 10px; transition: background .2s, color .2s, transform .2s;
  display: inline-block; white-space: nowrap;
}
nav a:hover { color: var(--ink); background: var(--sun-soft); }

/* на мобильных прячем телефон, MAX в шапке и навигацию, оставляем только кнопку Забронировать */
.header-book-btn { white-space: nowrap; }
/* на узких ноутбуках MAX в шапке уступает место меню: он есть в первом экране и контактах */
@media (min-width: 900px) and (max-width: 1239px) {
  .header-max-btn { display: none !important; }
}
@media (max-width: 899px) {
  .top-phone, nav, .header-max-btn { display: none !important; }
  .logo-text span { display: none; }
  .logo-flower { width: 42px; height: 42px; }
  .logo-text strong { font-size: 17px; }
  .header-book-btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
}

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s, background .2s;
  position: relative; overflow: hidden;
}
/* без движения при наведении */
.btn.primary {
  background: linear-gradient(135deg, #ffd33a, #f29f17);
  color: #3b2804; box-shadow: 0 10px 24px rgba(242, 159, 23, .35);
}
.btn.primary:hover { box-shadow: 0 16px 36px rgba(242, 159, 23, .5); }
.btn.green { background: linear-gradient(135deg, #6aa94a, #3e6b28); color: #fff; box-shadow: 0 10px 24px rgba(62, 107, 40, .30); }
.btn.tg { background: linear-gradient(135deg, #40b3e5, #2288c1); color: #fff; box-shadow: 0 10px 24px rgba(34, 136, 193, .30); }
.btn.max { background: linear-gradient(135deg, #7b4dff, #3f68f7); color: #fff; box-shadow: 0 10px 24px rgba(79, 88, 245, .32); }
.btn.max:hover { box-shadow: 0 16px 34px rgba(79, 88, 245, .46); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--sun); background: var(--sun-soft); }
.btn.small { min-height: 42px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- HERO ---------- */
/* Фото в первом экране убрано: оставляем текстовый блок по центру колонки. */
.hero { padding: 44px 0 36px; display: grid; gap: 24px; justify-items: center; position: relative; }
.hero-copy { width: 100%; max-width: 780px; }
.hero::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,194,29,.35), rgba(249,194,29,0) 70%);
  top: -100px; right: -120px; z-index: -1; filter: blur(20px);
  animation: float-slow 10s ease-in-out infinite;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fff3c2, #ffe082);
  color: var(--terra-dark);
  border: 1px solid #f7d572; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; margin: 0 0 18px;
  box-shadow: 0 4px 14px rgba(242, 159, 23, .20);
  animation: float-med 5s ease-in-out infinite;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; animation: pulse-glow 2s infinite; }

h1 {
  /* сплошной тёмный цвет — заголовок читается на любом фоне и без анимации */
  font-size: clamp(30px, 5.2vw, 52px);
  color: #21170f;
  max-width: 22ch;
}
.hero-copy h1 { max-width: 26ch; }
.lead { font-size: 17.5px; color: #2f2618; max-width: 56ch; margin: 0 0 24px; }
.lead b { color: var(--ink); }

.hero-points { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.hero-points li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500;
  padding: 10px 14px; background: rgba(255,255,255,.6); border-radius: 14px;
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hero-points li:hover { border-color: var(--sun); box-shadow: 0 6px 18px rgba(249, 194, 29, .2); }
.hero-points .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #6aa94a, #3e6b28);
  display: grid; place-items: center; margin-top: 1px;
  box-shadow: 0 4px 10px rgba(62, 107, 40, .35);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* большой подсолнух в углу hero */
.big-sunflower {
  position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; object-fit: contain; border-radius: 50%;
  animation: spin-slow 40s linear infinite;
  opacity: .85; pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(232, 163, 0, .35));
  z-index: 3;
}

/* ---------- ЦИФРЫ ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 44px; padding: 0; list-style: none; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.stat::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, var(--sun-soft), transparent 70%);
  opacity: .6;
}
.stat:hover { box-shadow: var(--shadow); }
.stat b { display: block; font-family: 'Unbounded'; font-size: clamp(18px, 2.4vw, 26px); color: var(--terra-dark); overflow-wrap: anywhere; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- СЕКЦИИ ---------- */
section { padding: 12px 0 52px; position: relative; }
.sec-head { margin-bottom: 24px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 10px; padding: 4px 12px;
  background: var(--terra-soft); border-radius: 999px;
}
h2 { font-size: clamp(26px, 4vw, 38px); }
.sec-sub { color: var(--muted); margin: 0; max-width: 64ch; font-size: 16px; }

/* ---------- СТРАНИЦА ЗАЯВКИ НА БРОНЬ ---------- */
.page-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 22px 0 4px; color: var(--muted); font-size: 14px; font-weight: 700;
}
.page-back:hover { color: var(--terra-dark); }
.booking-page { padding: 12px 0 40px; }
.booking-shell { max-width: 560px; margin: 0 auto; display: grid; gap: 18px; }
.booking-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 36px 34px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.booking-card::before {
  content: ''; position: absolute; right: -24px; top: -24px; width: 132px; height: 132px;
  background: url('../img/sunflower.webp') center / contain no-repeat;
  opacity: .09; transform: rotate(-18deg); pointer-events: none;
}
.booking-title {
  color: var(--ink); background: none; -webkit-background-clip: initial; background-clip: initial;
  animation: none; font-size: clamp(26px, 4.2vw, 34px); margin: 4px 0 10px;
}
.booking-sub { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
.booking-card .field input { background: #fffdf6; }
.booking-card .field input:focus { background: #fff; }
.booking-alt {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: center;
}
.booking-alt-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.booking-alt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rooms-price-note {
  display: flex; align-items: center; gap: 16px; max-width: 800px; margin: 0 auto;
  padding: 18px 22px; text-align: left; border: 1.5px solid #f3d479; border-radius: 20px;
  background: linear-gradient(135deg, #fff8df, #ffedb0); box-shadow: var(--shadow);
}
.booking-price-note { width: 100%; max-width: none; }
.price-note-icon {
  width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center;
  border-radius: 16px; background: #fff; font-size: 25px; box-shadow: 0 5px 14px rgba(80,56,20,.08);
}
.price-note-copy { flex: 1; }
.price-note-copy strong { display: block; color: var(--terra-dark); font-family: 'Unbounded', sans-serif; font-size: 15px; }
.price-note-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.benefits { display: grid; gap: 16px; }
.benefit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.benefit::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--sun-soft), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.benefit:hover { box-shadow: var(--shadow); border-color: var(--sun); }
.benefit:hover::before { opacity: 1; }
.benefit-icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sun-soft), #ffd33a);
  color: var(--terra-dark); display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(249,194,29,.35);
  transition: transform .3s;
  position: relative; z-index: 1;
}
.benefit > div { position: relative; z-index: 1; }
.benefit h3 { font-size: 17px; margin: 2px 0 6px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }

.benefit-wide {
  grid-column: 1 / -1; border-radius: 24px; overflow: hidden; padding: 0;
  display: grid; grid-template-columns: 1fr; position: relative;
  border: none; box-shadow: var(--shadow);
}
.benefit-wide .bw-img img { width: 100%; height: 260px; object-fit: cover; transition: transform .7s; }
.bw-text { padding: 24px 28px 28px; background: var(--surface); }

/* ---------- ГАЛЕРЕЯ «НАШИ НОМЕРА» ---------- */
.our-rooms-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.our-room-card {
  margin: 0; background: var(--surface); border: 2px solid var(--line);
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  cursor: zoom-in; position: relative;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.25), box-shadow .35s, border-color .3s;
}
.our-room-card:hover { transform: translateY(-4px); border-color: var(--sun); box-shadow: var(--shadow-lg); }
.our-room-card img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.our-room-card:hover img { transform: scale(1.03); }
.our-rooms-cta { margin-top: 26px; display: flex; justify-content: center; }

/* Лайтбокс просмотра фото */
.lightbox-modal .lightbox-dialog {
  width: min(100%, 980px); background: #1e180f; color: #fff;
  border-radius: 24px; padding: 14px; position: relative; box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.lightbox-modal .lightbox-img-wrap { border-radius: 16px; overflow: hidden; background: #14100a; }
.lightbox-modal .lightbox-img-wrap img {
  width: 100%; max-height: 78vh; max-height: 78dvh; object-fit: contain; margin: 0 auto;
}
.lightbox-modal .modal-close {
  top: 22px; right: 22px; z-index: 4; background: rgba(30,24,15,.8);
  border-color: rgba(255,255,255,.35); color: #fff;
}
.lightbox-modal .modal-close:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(30,24,15,.8); border: 1.5px solid rgba(255,255,255,.35);
  color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.lightbox-nav:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-count {
  text-align: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.82);
  margin: 10px 0 2px;
}
@media (min-width: 640px) {
  .our-rooms-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  /* три фото: на планшете первое идёт широкой обложкой, ниже — пара */
  .our-room-card.is-featured { grid-column: 1 / -1; }
  .our-room-card.is-featured img { aspect-ratio: 16 / 7; }
}
@media (min-width: 900px) {
  /* три фото в один ровный ряд */
  .our-rooms-grid { grid-template-columns: repeat(3, 1fr); }
  .our-room-card.is-featured { grid-column: auto; }
  .our-room-card.is-featured img { aspect-ratio: 3 / 2; }
}

/* ---------- РЯДОМ ---------- */
.near { display: grid; gap: 14px; }
.near-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.near-card::after {
  content: ''; position: absolute; right: -20px; bottom: -30px; width: 104px; height: 104px;
  background: url('../img/sunflower.webp') center / contain no-repeat;
  opacity: .06; transition: transform .4s, opacity .3s;
}
.near-card:hover { box-shadow: var(--shadow); border-color: var(--leaf); }
.near-card:hover::after { opacity: .18; }
.near-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--leaf-soft), #c2dfa7); color: var(--leaf-deep);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(78,125,58,.25);
}
.near-card h3 { font-size: 16px; margin: 2px 0 4px; font-family: 'Unbounded'; }
.near-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.near-dist {
  margin-left: auto; flex-shrink: 0; background: var(--leaf-soft); color: var(--leaf-deep);
  border-radius: 999px; font-size: 12px; font-weight: 800; padding: 6px 14px; white-space: nowrap;
}

/* ---------- ШАГИ ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.step:hover { box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: 'Unbounded';
  font-size: 56px; font-weight: 900;
  background: linear-gradient(135deg, var(--sun), var(--petal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 4px; line-height: 1;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 12px; padding: 4px 22px;
  transition: box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.faq-item:hover { box-shadow: 0 6px 18px rgba(80,56,20,.08); }
.faq-item[open] { border-color: var(--sun); box-shadow: 0 8px 22px rgba(249,194,29,.18); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 18px 0; font-weight: 700; font-size: 16px;
  font-family: 'Unbounded';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--terra); font-size: 28px; line-height: 1;
  transition: transform .3s;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--terra-soft); display: grid; place-items: center;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--sun-soft); color: var(--terra-dark); }
.faq-item p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ---------- КОНТАКТЫ ---------- */
.contacts-grid { display: grid; gap: 18px; }
.addr-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.addr-card::before {
  content: ''; position: absolute; right: -10px; top: -10px; width: 88px; height: 88px;
  background: url('../img/sunflower.webp') center / contain no-repeat;
  opacity: .08; transform: rotate(-20deg);
}
.addr-card:hover { box-shadow: var(--shadow); }
.addr-card h3 { font-size: 17px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.addr-card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.mess-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mess-row .btn { min-height: 46px; padding: 0 18px; font-size: 14px; }
.map-frame {
  width: 100%; height: 380px; border: 0; border-radius: 24px;
  box-shadow: var(--shadow); background: var(--surface);
}

/* Ссылка под картой: ведёт на карточку дома в Яндекс Картах
   (Краснодар, СТ4 Топольки, ул. Цветочная, 162). */
.map-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-size: 13.5px; line-height: 1.35; text-decoration: none;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.map-link::before { content: "📍"; font-size: 14px; }
.map-link:hover { color: var(--terra); border-color: currentColor; transform: translateY(-1px); }

/* ---------- ПОДВАЛ ---------- */
footer {
  background: linear-gradient(135deg, #2a2215, #3a2e1c);
  color: #d6c8a6; padding: 40px 0 120px; margin-top: 12px;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(249,194,29,.08), transparent 70%);
}
footer a { color: #ffd33a; transition: color .2s; }
footer a:hover { color: #ffe082; }
footer button { color: #ffd33a; font-weight: 600; border-bottom: 1px dashed #ffd33a; padding: 0; }
.foot { display: grid; gap: 20px; position: relative; z-index: 1; }
.foot strong { color: #fff; display: block; margin-bottom: 10px; font-family: 'Unbounded'; }
.foot p { margin: 0 0 8px; font-size: 14px; }
.foot-note { font-size: 12.5px; opacity: .6; }

/* ---------- ЛИПКАЯ ПАНЕЛЬ (моб) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(173,128,92,.97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 32px rgba(80, 56, 20, .12);
}
.sticky-cta .btn { flex: 1; min-height: 50px; font-size: 14px; padding: 0 14px; }

/* ---------- МОДАЛКА БРОНИ ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(40, 30, 14, .55);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center;
  padding: 18px;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop.open { display: flex; }
.modal {
  width: min(100%, 540px); max-height: 92vh; max-height: 92dvh; overflow: auto;
  background: var(--surface); border-radius: 26px; padding: 30px;
  box-shadow: var(--shadow-lg); position: relative;
  animation: popIn .35s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes popIn { from { transform: scale(.9) translateY(20px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 24px; margin-bottom: 6px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  font-size: 22px; line-height: 1; color: var(--muted);
  transition: transform .2s, background .2s, color .2s;
}
.modal-close:hover { color: var(--ink); background: var(--sun-soft); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 14px;
  background: var(--bg); padding: 14px 16px; font-size: 16px; color: var(--ink); /* 16px — без автозума на iOS */
  outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 62px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sun); box-shadow: 0 0 0 4px rgba(249,194,29,.18); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- ОТПРАВКА ЗАЯВКИ ---------- */
.form-hint-under { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.6; }
.form-hint-under .privacy-button { font: inherit; color: var(--terra-dark); text-decoration: underline; text-underline-offset: 2px; border-bottom: 0; }
.field input[aria-invalid="true"] { border-color: #b4362b; }
.form-status { min-height: 22px; font-size: 14px; margin: 12px 0 0; font-weight: 600; text-align: center; padding: 10px; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #b4362b; background: #fdecea; }
.form-status[data-state="ok"]    { color: var(--leaf-deep); background: var(--leaf-soft); }
.form-status[data-state="info"]  { color: var(--terra-dark); background: var(--sun-soft); }
.err { display: none; color: #b4362b; font-size: 13px; margin-top: 6px; font-weight: 600; }
.err.show { display: block; }

.policy-modal .modal { max-width: 640px; }
.policy-modal p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- REVEAL + SCROLL ANIMATIONS ---------- */
/* Скрываем блоки только когда JS точно работает (html.has-js ставится в <head>).
   Без JS или при сбое скрипта контент не пропадает и не оставляет пустых дыр. */
.has-js .reveal { opacity: 0; transform: translateY(48px) scale(.96); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.has-js .reveal.visible { opacity: 1; transform: none; }
.has-js .reveal-left  { opacity: 0; transform: translateX(-56px) rotate(-1.5deg); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.has-js .reveal-left.visible  { opacity: 1; transform: none; }
.has-js .reveal-right { opacity: 0; transform: translateX(56px) rotate(1.5deg); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.has-js .reveal-right.visible { opacity: 1; transform: none; }
.has-js .reveal-scale { opacity: 0; transform: scale(.72) rotate(-3deg); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.9,.3,1.45); }
.has-js .reveal-scale.visible { opacity: 1; transform: none; }
.has-js .reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.2,.8,.2,1); }
.has-js .reveal-clip.visible { clip-path: inset(0 0 0 0); }

/* слова заголовков выезжают по одному */
h2 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
h2 .wi { display: inline-block; }
h2.split-ready .wi { transform: translateY(125%); transition: transform .85s cubic-bezier(.2,.8,.2,1); }
.visible h2 .wi { transform: none; }

/* ---------- ПОДСОЛНУХ-ПРОГРЕСС СКРОЛЛА ---------- */
.scroll-sun {
  position: fixed; right: 18px; bottom: 24px; z-index: 115;
  width: 56px; height: 56px; padding: 0; border-radius: 50%;
  background: none; cursor: pointer;
  opacity: 0; pointer-events: none; transform: scale(.7);
  transition: opacity .35s, transform .35s cubic-bezier(.2,.9,.3,1.4);
}
.scroll-sun.show { opacity: 1; pointer-events: auto; transform: scale(1); }
.scroll-sun-flower {
  position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(232,163,0,.4));
}
.scroll-sun-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.scroll-sun-ring .ring-bg { fill: rgba(255,255,255,.8); stroke: #f0e2bc; stroke-width: 4; }
.scroll-sun-ring .ring-fg {
  fill: none; stroke: var(--sun-deep); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 182.2; stroke-dashoffset: 182.2;
}
.scroll-sun:hover .scroll-sun-flower { filter: drop-shadow(0 6px 14px rgba(232,163,0,.6)); }
.d1 { transition-delay: .1s }
.d2 { transition-delay: .2s }
.d3 { transition-delay: .3s }
.d4 { transition-delay: .4s }

/* ---------- АДАПТИВ ---------- */
@media (min-width: 640px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .near { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .contacts-grid .map-wrap { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  nav ul { display: flex; }
  /* 4 карточки в ряд — только когда места хватает и текст не обрезается */
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 56px 0 44px; }
  .hero-copy { max-width: 860px; }
  .hero-points { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .lead { max-width: 62ch; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .benefit-wide { grid-template-columns: 1.1fr .9fr; }
  .benefit-wide .bw-img img { height: 100%; min-height: 280px; }
  .sticky-cta { display: none !important; }
  footer { padding-bottom: 48px; }
  .foot { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
@media (max-width: 899px) {
  .sticky-cta { display: flex; }
  .scroll-sun { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* на телефоне заголовок занимает всю ширину — декор не должен закрывать текст */
  .big-sunflower { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  section { padding: 8px 0 34px; }
  .sec-head { margin-bottom: 18px; }
  .stats { gap: 8px; margin: 8px 0 18px; }
  .stat { padding: 14px 8px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 11px; }
  .hero { padding: 18px 0 8px; gap: 14px; }
  .lead { font-size: 16px; margin-bottom: 14px; }
  .hero-points { gap: 9px; margin-bottom: 18px; }
  .hero-points li { font-size: 14.5px; padding: 8px 12px; }
  .cta-row { gap: 10px; }
  .booking-page { padding: 10px 0 32px; }
  .booking-card { padding: 26px 20px; border-radius: 22px; }
  .booking-sub { font-size: 14.5px; margin-bottom: 20px; }
  .booking-alt-actions .btn { flex: 1 1 auto; }
  .rooms-price-note { flex-direction: column; align-items: stretch; gap: 10px; padding: 18px; text-align: center; }
  .price-note-icon { align-self: center; }
  .price-note-copy strong { font-size: 14px; }
  .modal-backdrop { padding: 12px; }
  .modal { padding: 24px 18px 26px; border-radius: 20px; }
  .modal h3 { font-size: 20px; padding-right: 44px; }
  .field-row { grid-template-columns: 1fr; }
  .map-frame { height: 300px; border-radius: 18px; }
  .kicker { font-size: 11px; padding: 6px 12px; letter-spacing: .04em; }
  .slider-nav { width: 36px; height: 36px; font-size: 18px; }
  .scroll-sun { width: 48px; height: 48px; }
  .faq-item { padding: 2px 16px; }
  .faq-item summary { font-size: 14.5px; }
  .step { padding: 20px; }
}
@media (max-width: 380px) {
  .logo-flower { width: 36px; height: 36px; }
  .logo-text strong { font-size: 15px; }
  .header-book-btn { padding: 0 12px; font-size: 13px; min-height: 40px; }
  h1 { font-size: 26px; }
  .slide img { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .has-js .reveal, .has-js .reveal-left, .has-js .reveal-right, .has-js .reveal-scale { opacity: 1; transform: none; }
  .has-js .reveal-clip { clip-path: none; }
}

/* ---------- ВНЕШНИЕ РЕСУРСЫ И ДОСТУПНОСТЬ ---------- */
picture { display: block; width: 100%; }
.noscript-notice {
  position: relative;
  z-index: 500;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  text-align: center;
  font-size: 14px;
}
.noscript-notice a { color: var(--sun-soft); font-weight: 800; text-decoration: underline; }
.full-width { width: 100%; }
.full-span { grid-column: 1 / -1; }
.sunflower-inline { display: inline-block; width: 19px; height: 19px; flex: 0 0 auto; object-fit: contain; vertical-align: -0.22em; }
.foot .footer-brand { display: flex; align-items: center; gap: 8px; }
.foot .footer-brand .sunflower-inline { width: 25px; height: 25px; vertical-align: middle; }
.privacy-button {
  padding: 0;
  color: #ffd33a;
  font-weight: 600;
  border-bottom: 1px dashed #ffd33a;
}

/* Модалки скрыты и от визуального, и от экранного читателя до открытия. */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop { overscroll-behavior: contain; }

/* Мягкая глубина фона без тяжёлых изображений и дополнительных запросов. */
body {
  background:
    radial-gradient(circle at 92% 3%, rgba(249, 194, 29, .14), transparent 24rem),
    radial-gradient(circle at 4% 54%, rgba(155, 111, 70, .08), transparent 26rem),
    var(--bg);
}
.bw-img > picture { height: 100%; }
.bw-img > picture img { width: 100%; }

/* =========================================================================
   СТРАНИЦЫ БЛОКА «РЯДОМ С «ПОДСОЛНУХОМ»» (near/*.html)
   ========================================================================= */

/* ---------- хлебные крошки ---------- */
.crumbs { margin: 18px 0 14px; font-size: 13px; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: '›'; color: var(--line); font-weight: 700; }
.crumbs a { color: var(--terra-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs li[aria-current] { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- обложка страницы ---------- */
.place-hero {
  display: grid; gap: 22px; padding: 6px 0 30px;
  grid-template-columns: 1fr;
}
.place-hero-media {
  position: relative; margin: 0; border-radius: 24px; overflow: hidden;
  border: 2px solid var(--line); box-shadow: var(--shadow-lg); background: #f2e6d2;
}
.place-hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place-dist {
  position: absolute; left: 12px; top: 12px; margin: 0;
  display: inline-flex; align-items: baseline; gap: 6px;
  background: rgba(255, 255, 255, .94); color: var(--leaf-deep);
  border: 1px solid rgba(78, 125, 58, .28); border-radius: 999px;
  padding: 8px 16px; font-family: 'Unbounded'; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(60, 40, 10, .18);
}
.place-dist span { font-family: 'Inter'; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.place-hero-copy h1 { font-size: clamp(24px, 4.6vw, 42px); }
.place-highlights {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; gap: 9px;
}
.place-highlights li {
  position: relative; padding: 9px 14px 9px 40px;
  background: rgba(255, 255, 255, .82); border: 1px solid var(--line);
  border-radius: 14px; font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.place-highlights li::before {
  content: ''; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-deep));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .85);
}

/* ---------- текст + факты ---------- */
.place-about {
  display: grid; gap: 18px; grid-template-columns: 1fr; padding: 8px 0 34px;
}
.place-about-copy {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 22px; box-shadow: var(--shadow);
}
.place-about-copy h2 { font-size: clamp(19px, 3vw, 26px); margin-bottom: 10px; }
.place-about-copy p { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.place-about-copy p:last-child { margin-bottom: 0; }
.place-facts {
  background: linear-gradient(160deg, #fff8df, #ffedb0);
  border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow);
}
.place-facts-title { font-size: 16px; margin: 0 0 12px; }
.place-facts dl { margin: 0; display: grid; gap: 10px; }
.place-facts dl > div { border-bottom: 1px dashed rgba(163, 122, 72, .45); padding-bottom: 8px; }
.place-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.place-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--terra-dark); }
.place-facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.place-facts-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- галерея фотографий ---------- */
.place-gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
.place-photo {
  margin: 0; background: var(--surface); border: 2px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.9,.3,1.25), box-shadow .35s, border-color .3s;
}
.place-photo:hover { transform: translateY(-4px); border-color: var(--sun); box-shadow: var(--shadow-lg); }
.place-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.place-photo:hover img { transform: scale(1.03); }
.place-photo figcaption {
  padding: 10px 14px; font-size: 12.5px; color: var(--ink-soft);
  background: var(--surface); border-top: 1px solid rgba(195, 151, 112, .45);
}

/* ---------- карта ---------- */
.place-map-sec .map-frame { height: 340px; }
.place-map-sec .map-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }

/* ---------- ссылки на другие точки ---------- */
a.place-next-card { color: inherit; text-decoration: none; padding-bottom: 34px; }
a.place-next-card h3 { transition: color .2s; }
a.place-next-card:hover h3 { color: var(--terra-dark); }
a.place-next-card::before {
  content: 'Подробнее →'; position: absolute; right: 20px; bottom: 12px;
  font-size: 12px; font-weight: 800; color: var(--leaf-deep); letter-spacing: .02em;
  transition: transform .25s, color .25s;
}
a.place-next-card:hover::before { transform: translateX(4px); color: var(--terra-dark); }

/* на главной карточки «Рядом» тоже ведут на свои страницы */
a.near-card { text-decoration: none; color: inherit; }
a.near-card::before {
  content: 'Подробнее'; position: absolute; right: 20px; bottom: 12px;
  font-size: 12px; font-weight: 800; color: var(--leaf-deep); letter-spacing: .02em;
}
a.near-card:hover::before { color: var(--terra-dark); }
a.near-card { padding-bottom: 40px; }

/* ---------- финальный призыв к действию ---------- */
.place-cta {
  margin: 6px 0 40px; padding: 26px 22px;
  background: linear-gradient(150deg, #2a2215, #3a2e1c);
  color: #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  display: grid; gap: 18px;
}
.place-cta h2 { color: #fff; font-size: clamp(20px, 3.2vw, 28px); margin-bottom: 8px; }
.place-cta p { color: rgba(255, 255, 255, .86); font-size: 14.5px; }
.place-cta-note { font-size: 13px !important; color: rgba(255, 255, 255, .7) !important; margin-bottom: 0; }
.place-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 640px) {
  .place-gallery { grid-template-columns: 1fr 1fr; }
  .place-photo:first-child { grid-column: 1 / -1; }
  .place-photo:first-child img { aspect-ratio: 16 / 9; }
  .place-cta { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 30px 28px; }
}
@media (min-width: 900px) {
  .place-hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; padding: 10px 0 38px; }
  .place-hero-media img { aspect-ratio: 4 / 3; }
  .place-about { grid-template-columns: 1.45fr .55fr; align-items: start; gap: 22px; }
  .place-gallery { grid-template-columns: repeat(3, 1fr); }
  .place-photo:first-child { grid-column: auto; }
  .place-photo:first-child img { aspect-ratio: 3 / 2; }
}
@media (max-width: 640px) {
  .place-hero-media img { aspect-ratio: 4 / 3; }
  .place-dist { left: 10px; top: 10px; padding: 6px 12px; font-size: 13px; }
  .place-about-copy, .place-facts { padding: 20px 18px; }
  .place-cta { padding: 22px 18px; }
  .place-cta-actions .btn { flex: 1 1 auto; }
}
