/* IS STROI Rent — header + footer (stage 1) */

/* ============================ Reset / base ============================ */
:root {
  --bg: #1b1b1b;
  --bg-2: #202020;
  --line: rgba(255, 255, 255, 0.08);
  --fg: #ffffff;
  --fg-2: #d7d7d7;
  --fg-3: rgba(255, 255, 255, 0.5);
  --accent: #52bc73;
  --accent-hover: #62cc83;

  --container: 1520px;
  --pad-x: clamp(16px, 2.6vw, 40px);
  --header-h: 96px;
  --header-h-mobile: 72px;

  --font: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Roboto', 'Inter', sans-serif;
  --font-body: 'Montserrat', 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ============================ Header ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
}
.header.is-stuck {
  background: rgba(27, 27, 27, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  height: var(--header-h);
}

/* Logo */
.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 140px;
  height: 70px;
  background-color: var(--accent);
  -webkit-mask: url(../images/logo.svg) left center/contain no-repeat;
  mask: url(../images/logo.svg) left center/contain no-repeat;
  animation: logoIn .8s var(--ease) backwards;
  transition: background-color .25s, transform .35s var(--ease);
}
.header__logo img { display: none; }
.header__logo:hover { background-color: var(--accent-hover); transform: scale(1.04); }

/* Nav */
.header__nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 28px);
}
.header__nav a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 8px 13px;
  animation: navIn .6s var(--ease) backwards;
}
.header__nav a:nth-child(1) { animation-delay: .15s; }
.header__nav a:nth-child(2) { animation-delay: .25s; }
.header__nav a:nth-child(3) { animation-delay: .35s; }
.header__nav a:nth-child(4) { animation-delay: .45s; }

.header__nav a::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.header__nav a:hover { color: #fff; }
.header__nav a:hover::after { transform: scaleX(1); }

/* Phone block */
.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  flex-shrink: 0;
  animation: rightIn .6s var(--ease) .35s backwards;
}
.header__phone {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.header__phone:hover { color: var(--accent-hover); }
.header__hours {
  font-size: 11px;
  font-weight: 500;
  color: #b3b3b3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* CTA button */
.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 16px 26px;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: #202020;
  border-radius: 30px;
  white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
  animation: rightIn .6s var(--ease) .5s backwards;
  box-shadow: 0 6px 18px rgba(82, 188, 115, 0.25);
}
.header__cta:hover {
  background: var(--accent-hover);
  color: #202020;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(82, 188, 115, 0.35);
}

/* Burger */
.header__burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(82, 188, 115, 0.3);
  transition: background .2s, transform .15s var(--ease);
}
.header__burger:hover, .header__burger:active { background: var(--accent-hover); transform: scale(1.05); }
.header__burger span {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: #202020;
  border-radius: 2px;
  transition: transform .3s var(--ease), background .15s;
}
.header__burger span::before,
.header__burger span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #202020;
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.header__burger span::before { top: -5px; }
.header__burger span::after  { top: 5px; }
.header__burger.is-open span { background: transparent; }
.header__burger.is-open span::before { transform: translateY(5px) rotate(45deg); }
.header__burger.is-open span::after  { transform: translateY(-5px) rotate(-45deg); }

/* ============================ Mobile menu ============================ */
.mobile-menu {
  position: fixed;
  inset: var(--header-h-mobile) 0 0 0;
  background: var(--bg);
  padding: 32px var(--pad-x) 48px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  z-index: 55;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }

.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--accent); }

.mobile-menu__contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__phone {
  font-size: 28px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  border: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}
.mobile-menu__hours {
  font-size: 12px;
  color: #b3b3b3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: var(--accent);
  color: #202020 !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase !important;
  border-radius: 30px;
  border: 0 !important;
  margin-top: 8px;
}

/* ============================ Responsive header ============================ */
@media (max-width: 1100px) {
  :root { --header-h: var(--header-h-mobile); }
  .header__inner { grid-template-columns: auto 1fr auto; height: var(--header-h-mobile); gap: 16px; }
  .header__logo { width: 120px; height: 56px; }
  .header__nav, .header__cta { display: none; }
  .header__contact {
    display: flex;
    align-items: flex-end;
    margin-left: auto;
    text-align: right;
  }
  .header__contact .header__phone { display: none; }
  .header__contact .header__hours { display: none; }
  .header__contact::before {
    content: 'Ильинское, КП 165';
    font-size: 12px;
    font-weight: 500;
    color: #d7d7d7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .header__burger { display: inline-flex; }
}

@media (max-width: 480px) {
  .header__logo { width: 104px; height: 48px; }
  .header__contact::before { font-size: 11px; }
}

/* ============================ Hero ============================ */
.hero {
  position: relative;
  min-height: clamp(480px, 72vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(28px, 4vw, 56px);
  width: 100%;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* Левая колонка: тексты */
.hero__content { max-width: 640px; }

/* Анимированный текст сверху */
.hero__kicker {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  min-height: 1.2em;
  margin-bottom: 14px;
}
.hero__kicker-text { display: inline; }
.hero__kicker-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  background: #fff;
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.15;
}
.hero__subtitle {
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  max-width: 540px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 18px 32px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #202020;
  border-radius: 40px;
  box-shadow: 0 12px 32px rgba(82, 188, 115, 0.4);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.hero__cta:hover {
  background: var(--accent-hover);
  color: #202020;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(82, 188, 115, 0.5);
}

/* Правая колонка: слайдер фото */
.hero__slider {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: heroIn 1.2s var(--ease) backwards;
  animation-delay: .6s;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s linear;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { transform: scale(1.12); }

.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .2s, width .25s var(--ease);
  border: 0;
  padding: 0;
}
.hero__dot.is-active { background: var(--accent); width: 24px; border-radius: 4px; }

@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__kicker   { animation: heroIn .9s var(--ease) backwards; animation-delay: .15s; }
.hero__title    { animation: heroIn .9s var(--ease) backwards; animation-delay: .3s; }
.hero__subtitle { animation: heroIn .9s var(--ease) backwards; animation-delay: .45s; }
.hero__cta      { animation: heroIn .9s var(--ease) backwards; animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .hero__kicker, .hero__title, .hero__subtitle, .hero__cta, .hero__slider { animation: none; }
  .hero__kicker-caret { animation: none; }
}

@media (max-width: 900px) {
  .hero__slider { max-width: 100%; aspect-ratio: 16/10; }
  .hero__grid { text-align: center; }
  .hero__content { margin: 0 auto; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__video::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.55) 100%);
  }
}
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero__title { letter-spacing: 2px; }
}

/* ============================ Section base ============================ */
.section { padding-block: clamp(56px, 7vw, 100px); }
.section--light {
  --bg: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --fg-2: rgba(29, 29, 31, 0.7);
  background: #f5f5f5;
  color: #1d1d1f;
}
.section--dark { background: var(--bg); }
.section--bg2  { background: var(--bg-2); }

.section-header { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.h-section {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.h-sub {
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 500;
  margin-top: 14px;
  color: var(--fg-2);
}

/* ============================ Features ============================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: var(--accent); }
.feature__icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature__icon img { width: 100%; height: 100%; object-fit: contain; }
.feature__title { font-family: var(--font-body); font-size: clamp(22px, 2vw, 28px); font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.feature__desc { color: #545454; font-size: 15px; line-height: 1.6; }

/* ============================ Houses ============================ */
.houses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .houses { grid-template-columns: 1fr; } }

.house {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: #2a2a2a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s;
}
@media (max-width: 560px) { .house { grid-template-columns: 1fr; } }
.house:hover { transform: translateY(-4px); border-color: rgba(82, 188, 115, 0.4); }

.house__media {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 260px;
  border: 0;
  padding: 0;
  cursor: zoom-in;
}
@media (max-width: 560px) { .house__media { aspect-ratio: 4/3; min-height: 0; } }
.house__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.house:hover .house__media img { transform: scale(1.06); }

.house__counter {
  position: absolute; bottom: 12px; right: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.house__counter svg { width: 14px; height: 14px; }

.house__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.house__name { font-family: var(--font-body); font-size: 24px; font-weight: 700; color: var(--accent); }
.house__desc { color: #d7d7d7; font-size: 14px; line-height: 1.55; }
.house__specs { display: flex; flex-wrap: wrap; gap: 8px; }
.house__spec {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: #d7d7d7;
  border-radius: 4px;
}
.house__spec svg { width: 14px; height: 14px; opacity: 0.7; }

.house__prices {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.house__prices--two { grid-template-columns: 1fr 1fr; }
.house__price { display: flex; flex-direction: column; gap: 2px; }
.house__price-label { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 0.08em; }
.house__price-value { font-size: 15px; font-weight: 700; color: #fff; }

.house__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--accent);
  color: #202020;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 30px;
  transition: background .2s, transform .15s var(--ease);
  margin-top: 4px;
}
.house__cta:hover { background: var(--accent-hover); color: #202020; transform: translateY(-1px); }

/* ============================ About (light) ============================ */
.about-hero { text-align: center; max-width: 980px; margin: 0 auto clamp(40px, 5vw, 72px); }
.about-hero__text { font-family: var(--font-body); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.5; color: #1d1d1f; margin-top: 22px; }
.about-circles { margin-top: 36px; display: flex; gap: clamp(8px, 1.5vw, 20px); justify-content: center; flex-wrap: wrap; }
.about-circle {
  width: clamp(96px, 11vw, 128px);
  height: clamp(96px, 11vw, 128px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  transition: transform .25s var(--ease), border-color .25s;
}
.about-circle:hover { transform: scale(1.06); }
.about-circle img { width: 100%; height: 100%; object-fit: cover; }

.about-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 720px) { .about-perks { grid-template-columns: 1fr; } }
.perk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.perk:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.06); border-color: var(--accent); }
.perk__title { font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.perk__desc { font-size: 14px; color: #545454; line-height: 1.6; }

/* ============================ Gallery ============================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #222;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  border-radius: 8px;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }

/* ============================ Form (light) ============================ */
.cta-block {
  background: #f5f5f5;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid rgba(0,0,0,0.06);
  color: #1d1d1f;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.reviews-widget {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
  min-height: 600px;
}
.reviews-widget iframe { width: 100%; height: 100%; min-height: 600px; border: 0; }

.form-side h2 {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}
.form-side > p {
  text-align: center;
  color: #545454;
  margin-top: 14px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  margin-bottom: 24px;
}

.form {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #888; }
.field input, .field select, .field textarea {
  padding: 14px 18px;
  background: #f5f5f5;
  border: 1px solid transparent;
  color: #1d1d1f;
  font-size: 15px;
  border-radius: 999px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; border-radius: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #999; }
.field--error input, .field--error select, .field--error textarea { border-color: #ff5c5c; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #545454; line-height: 1.5; cursor: pointer; }
.checkbox input { margin-top: 2px; accent-color: var(--accent); width: 18px; height: 18px; }
.checkbox a { color: var(--accent); text-decoration: underline; }
.form__success { display: none; padding: 16px; background: rgba(82, 188, 115, 0.12); border: 1px solid var(--accent); color: var(--accent-2); font-size: 14px; border-radius: 10px; }
.form__success.is-visible { display: block; }
.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 28px;
  background: var(--accent);
  color: #202020;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .15s var(--ease), box-shadow .2s;
  box-shadow: 0 8px 20px rgba(82, 188, 115, 0.25);
}
.form__submit:hover { background: var(--accent-hover); color: #202020; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(82, 188, 115, 0.35); }
.form__submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================ Big CTA (готовы к отдыху) ============================ */
.big-cta { background: var(--bg); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.big-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .big-cta__grid { grid-template-columns: 1fr; } }

.big-cta h2 { font-family: var(--font-body); font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; text-transform: uppercase; color: var(--accent); line-height: 1.1; }
.big-cta__sub { font-family: var(--font-body); margin-top: 14px; font-size: clamp(20px, 2.2vw, 32px); color: #fff; font-weight: 500; }
.big-cta__phone {
  margin-top: 28px;
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--accent);
}
.big-cta__phone:hover { color: var(--accent-hover); }
.big-cta__socials { margin-top: 28px; display: flex; gap: 12px; }
.big-cta__socials a {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  transition: background .2s, transform .2s var(--ease);
}
.big-cta__socials a:hover { background: var(--accent); border-color: var(--accent); color: #202020; transform: translateY(-2px); }
.big-cta__socials svg, .big-cta__socials img { width: 22px; height: 22px; }
.big-cta__socials img { object-fit: contain; }

.big-cta__map {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  aspect-ratio: 16/11;
  background: #1a1a1a;
}
.big-cta__map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .big-cta__map { aspect-ratio: 4/3; } }

/* ============================ House modal slider ============================ */
.modal {
  position: fixed; inset: 0;
  background: rgba(10, 10, 12, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 120;
  display: none;
  padding: clamp(12px, 3vw, 32px);
  align-items: center; justify-content: center;
}
.modal.is-open { display: flex; }
.modal__dialog {
  position: relative;
  width: 100%; max-width: 1100px; max-height: 92vh;
  background: #1f1f1f;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 900px) {
  .modal__dialog { grid-template-columns: 1fr; max-height: 96vh; overflow-y: auto; }
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .2s;
}
.modal__close:hover { background: var(--accent); color: #202020; }

.modal__slider { position: relative; background: #000; overflow: hidden; aspect-ratio: 4/3; }
@media (max-width: 900px) { .modal__slider { aspect-ratio: 16/10; } }
.modal__track { display: flex; height: 100%; transition: transform .45s var(--ease); }
.modal__slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.modal__slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.modal__nav:hover { background: var(--accent); color: #202020; }
.modal__prev { left: 14px; }
.modal__next { right: 14px; }

.modal__counter {
  position: absolute; bottom: 14px; left: 14px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; color: #fff;
  border-radius: 4px;
}
.modal__thumbs {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
  max-width: 80%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
}
.modal__thumbs::-webkit-scrollbar { display: none; }
.modal__thumb {
  flex: 0 0 56px; height: 40px;
  overflow: hidden;
  opacity: 0.55;
  border: 2px solid transparent;
  background: #222;
  border-radius: 3px;
  padding: 0;
  transition: opacity .2s, border-color .2s;
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumb.is-active { opacity: 1; border-color: var(--accent); }
@media (max-width: 540px) { .modal__thumbs { display: none; } }

.modal__body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; color: #fff; overflow-y: auto; }
.modal__title { font-family: var(--font-body); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--accent); }
.modal__desc { color: #d7d7d7; font-size: 15px; line-height: 1.6; }
.modal__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.modal__cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.modal__cta-book { background: var(--accent); color: #202020; }
.modal__cta-book:hover { background: var(--accent-hover); color: #202020; }
.modal__cta-call { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid var(--line); }
.modal__cta-call:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ============================ Booking modal (quick form) ============================ */
.book-modal {
  position: fixed; inset: 0;
  background: rgba(10, 10, 12, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 125;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
}
.book-modal.is-open { display: flex; animation: bookFade .25s var(--ease); }
@keyframes bookFade { from { opacity: 0; } to { opacity: 1; } }

.book-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  color: #1d1d1f;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: bookSlide .35s var(--ease);
}
@keyframes bookSlide { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

.book-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: #1d1d1f;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.book-modal__close:hover { background: var(--accent); color: #202020; }

.book-modal__title {
  font-family: var(--font-body);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}
.book-modal__sub {
  font-size: 15px;
  color: #545454;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}
.book-modal__form { display: flex; flex-direction: column; gap: 14px; }
.book-modal__form input {
  padding: 14px 18px;
  background: #f5f5f5;
  border: 1px solid transparent;
  color: #1d1d1f;
  font-size: 15px;
  font-family: inherit;
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.book-modal__form input:focus { outline: none; border-color: var(--accent); background: #fff; }
.book-modal__form input::placeholder { color: #999; }
.book-modal__form input.is-error { border-color: #ff5c5c; }

.book-modal__submit {
  padding: 16px 24px;
  background: var(--accent);
  color: #202020;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .15s var(--ease), box-shadow .2s;
  box-shadow: 0 8px 20px rgba(82, 188, 115, 0.3);
}
.book-modal__submit:hover { background: var(--accent-hover); color: #202020; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(82, 188, 115, 0.4); }
.book-modal__legal {
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.5;
}
.book-modal__legal a { color: var(--accent); text-decoration: underline; }

.book-modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #545454;
  line-height: 1.45;
  cursor: pointer;
  padding: 2px 4px;
}
.book-modal__agree input {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.book-modal__agree a { color: var(--accent); text-decoration: underline; }
.book-modal__agree.is-error { color: #e23a1b; }
.book-modal__agree.is-error input { outline: 2px solid #ff5c5c; outline-offset: 2px; border-radius: 2px; }

.book-modal__house {
  display: none;
  padding: 10px 14px;
  background: var(--accent-dim);
  border-radius: 8px;
  font-size: 14px;
  color: var(--accent-2);
  font-weight: 600;
  text-align: center;
}
.book-modal__house.is-visible { display: block; }

/* ============================ Lightbox (gallery) ============================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 115;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  top: 50%;
  transform: translateY(-50%);
  transition: background .2s;
}
.lightbox__close { top: 20px; right: 20px; transform: none; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--accent); color: #202020; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ============================ Floating contacts (desktop) ============================ */
.float-contacts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}
.float-contacts a {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .2s var(--ease), filter .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.float-contacts a:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.08); color: #fff; }
.float-contacts a svg { width: 28px; height: 28px; fill: currentColor; }
.float-contacts a img { width: 32px; height: 32px; object-fit: contain; }

.float-contacts__tel { background: var(--accent); }
.float-contacts__wa  { background: #25D366; }
.float-contacts__max {
  background: linear-gradient(135deg, #8a3ffc 0%, #6644ff 45%, #2d7dff 100%);
  padding: 6px;
}
.float-contacts__max::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .float-contacts { display: none; }   /* на моб — заменяет toolbar внизу */
}

/* ============================ Mobile bottom toolbar ============================ */
.toolbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: rgba(20, 20, 20, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 8px;
}
.toolbar__socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.toolbar__social {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform .15s var(--ease), filter .15s;
  flex-shrink: 0;
}
.toolbar__social:hover, .toolbar__social:active { transform: translateY(-1px); filter: brightness(1.1); color: #fff; }
.toolbar__social svg { width: 22px; height: 22px; fill: currentColor; }
.toolbar__social img { width: 26px; height: 26px; object-fit: contain; }

.toolbar__social--tg  { background: #229ED9; }
.toolbar__social--wa  { background: #25D366; }
.toolbar__social--max { background: #0084FF; padding: 4px; }
.toolbar__social--tel { background: var(--accent); }

.toolbar__book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  height: 42px;
  background: var(--accent);
  color: #202020;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .2s, transform .15s var(--ease);
}
.toolbar__book:hover, .toolbar__book:active { background: var(--accent-hover); color: #202020; transform: translateY(-1px); }

@media (max-width: 1100px) {
  .toolbar { display: flex; }
  body { padding-bottom: 76px; }   /* запас под фикс. тулбар */
}
@media (max-width: 380px) {
  .toolbar { gap: 6px; padding-inline: 8px; }
  .toolbar__socials { gap: 6px; }
  .toolbar__social { width: 38px; height: 38px; }
  .toolbar__book { font-size: 12px; padding-inline: 10px; }
}

/* ============================ Footer ============================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) 24px;
  color: var(--fg-2);
  font-size: 14px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; gap: 28px; } }

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer__col p,
.footer__col a {
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.6;
}
.footer__col a:hover { color: var(--accent); }

.footer__phone {
  display: block;
  font-size: 22px !important;
  font-weight: 600;
  color: var(--accent) !important;
  margin-bottom: 4px;
}
.footer__phone:hover { color: var(--accent-hover) !important; }

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer__social {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7d7d7;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.footer__social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #202020;
  transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; }

.footer__legal {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal-links a { color: #b3b3b3; font-size: 12px; }
.footer__legal-links a:hover { color: var(--accent); }
.footer__copy { color: #b3b3b3; max-width: 720px; line-height: 1.5; }

/* ============================ Animations ============================ */
@keyframes logoIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes navIn  { from { opacity: 0; transform: translateY(-8px);  } to { opacity: 1; transform: none; } }
@keyframes rightIn{ from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .header__logo, .header__nav a, .header__contact, .header__cta { animation: none; }
}
