/* Курай — warm modern UI */

:root {
  --font: 'DM Sans', system-ui, sans-serif;

  --cream: #faf6f0;
  --sand: #f0e9df;
  --white: #ffffff;
  --wood: #3d2e24;
  --wood-soft: #5c4d42;
  --muted: #8a7f74;
  --copper: #b5651d;
  --copper-hover: #9a5518;
  --copper-light: #f4e4d4;
  --line: rgba(61, 46, 36, 0.1);

  --container: min(1080px, 90vw);
  --header-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--wood-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--copper-hover); }
ul { list-style: none; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 24px rgba(61, 46, 36, 0.06);
}

.header__row {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.header__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: -0.03em;
  margin-right: auto;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--wood);
}

.header__nav-phone {
  display: none;
}

.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--wood);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--copper);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wood);
  border-radius: 1px;
  transition: 0.2s;
}

.header__menu-btn.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.header__menu-btn.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Shared typography ── */

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

.heading {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--wood);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.copy {
  font-size: 16px;
  color: var(--muted);
}

.copy p + p { margin-top: 14px; }

.copy strong { color: var(--wood); font-weight: 600; }

.copy--lead {
  font-size: 17px;
  max-width: 520px;
  margin-inline: auto;
}

.copy--center {
  text-align: center;
  max-width: 520px;
  margin: 40px auto 0;
}

.section-intro {
  text-align: center;
  margin-bottom: 48px;
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.button--primary {
  background: var(--copper);
  color: #fff;
}

.button--primary:hover {
  background: var(--copper-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(181, 101, 29, 0.25);
}

.button--secondary {
  background: var(--white);
  color: var(--wood);
  box-shadow: 0 2px 12px rgba(61, 46, 36, 0.08);
}

.button--secondary:hover {
  color: var(--copper);
  transform: translateY(-1px);
}

/* ── Hero ── */

.hero {
  padding-top: var(--header-h);
}

.hero__banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero__banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__banner::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(61, 46, 36, 0.45), transparent);
  pointer-events: none;
}

.hero__phone-area {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  width: 48%;
  max-width: 240px;
  height: 8%;
  z-index: 1;
}

.hero__cta {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vw, 32px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: min(92vw, 480px);
  padding-inline: 16px;
}

.hero__cta .button--secondary {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(61, 46, 36, 0.15);
}

/* ── About ── */

.about {
  padding: 80px 0;
  background: var(--white);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__visual img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(61, 46, 36, 0.1);
}

.features {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.features li {
  flex: 1;
}

.features strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--wood);
  margin-bottom: 4px;
}

.features span {
  font-size: 14px;
  color: var(--muted);
}

/* ── Prices ── */

.prices {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
}

.prices__notice {
  max-width: 640px;
  margin: 0 auto 36px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wood-soft);
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(181, 101, 29, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(61, 46, 36, 0.04);
}

.prices__notice a {
  font-weight: 600;
  white-space: nowrap;
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(61, 46, 36, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(61, 46, 36, 0.08);
}

.price-card--featured {
  border-color: rgba(181, 101, 29, 0.25);
  background: linear-gradient(165deg, var(--white) 0%, var(--copper-light) 100%);
}

.price-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  background: var(--copper-light);
  border-radius: 100px;
}

.price-card--featured .price-card__tag {
  background: rgba(255, 255, 255, 0.7);
}

.price-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.price-card__meta {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-card__price {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price-card__amount {
  display: block;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
  color: var(--copper);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-card__unit {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.amenities {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 28px 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(61, 46, 36, 0.04);
}

.amenities__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--wood);
  margin-bottom: 16px;
  text-align: center;
}

.amenities__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.amenities__chips li {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--wood-soft);
  background: var(--sand);
  border-radius: 100px;
  border: 1px solid transparent;
}

/* ── Services ── */

.services {
  padding: 80px 0;
  background: var(--cream);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(61, 46, 36, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61, 46, 36, 0.08);
}

.service__img {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
}

.service__img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: center top;
  margin-top: -2px;
}

.service h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--wood);
  margin-bottom: 4px;
}

.service p {
  font-size: 14px;
  color: var(--muted);
}

/* ── Gallery ── */

.gallery-section {
  padding: 80px 0;
  background: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery__item {
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--sand);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* ── Footer ── */

.footer {
  padding: 56px 0 0;
  background: var(--wood);
  color: rgba(255, 255, 255, 0.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__brand {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.5;
}

.footer__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.footer a {
  color: #fff;
  font-weight: 500;
}

.footer a:hover {
  color: var(--copper-light);
}

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Lightbox ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(61, 46, 36, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]).is-open { display: flex; }

.lightbox__photo {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__num {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox__x,
.lightbox__arrow {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
}

.lightbox__x { top: 20px; right: 20px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

/* ── Mobile nav backdrop ── */

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(61, 46, 36, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-backdrop[hidden] {
  display: block;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .prices__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .price-card {
    padding: 24px 22px 20px;
  }

  .price-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .price-card__amount {
    display: inline;
    font-size: 30px;
  }

  .price-card__unit {
    display: inline;
    margin-top: 0;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__visual { order: -1; }
  .about__visual img { aspect-ratio: 16 / 10; }

  .services__grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(1080px, calc(100vw - 32px));
    --header-h: 64px;
  }

  .header__row {
    gap: 12px;
  }

  .header__logo {
    font-size: 18px;
  }

  .header__menu-btn {
    display: flex;
    margin-left: auto;
    z-index: 102;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    left: auto;
    width: min(300px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(61, 46, 36, 0.15);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 101;
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__nav a {
    font-size: 17px;
    font-weight: 600;
    color: var(--wood);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .header__nav a:hover,
  .header__nav a.is-active {
    color: var(--copper);
  }

  .header__nav-phone {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--copper);
    background: var(--copper-light);
    border-radius: var(--radius-sm);
    border-bottom: none;
  }

  .header__phone {
    display: none;
  }
}

@media (max-width: 600px) {
  .about,
  .prices,
  .services,
  .gallery-section {
    padding: 56px 0;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .heading {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .copy--lead,
  .copy--center {
    font-size: 15px;
  }

  .copy--center {
    margin-top: 28px;
  }

  .features {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
  }

  .prices__notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    font-size: 13px;
    text-align: left;
  }

  .prices__notice a {
    white-space: normal;
  }

  .amenities {
    padding: 22px 18px 18px;
  }

  .amenities__chips {
    justify-content: flex-start;
  }

  .amenities__chips li {
    font-size: 13px;
    padding: 8px 14px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service {
    padding: 20px 12px;
  }

  .service__img {
    width: 80px;
    height: 80px;
  }

  .service__img img {
    height: 104px;
  }

  .service h3 {
    font-size: 15px;
  }

  .service p {
    font-size: 13px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .footer {
    padding-top: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 28px;
  }

  .footer__bottom {
    text-align: center;
    line-height: 1.6;
  }

  .hero__cta {
    flex-direction: column;
    width: min(92vw, 320px);
    gap: 10px;
  }

  .hero__cta .button {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
  }

  .hero__phone-area {
    bottom: 28%;
    width: 56%;
    max-width: 200px;
  }

  .lightbox__arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .lightbox__arrow--prev { left: 10px; }
  .lightbox__arrow--next { right: 10px; }
  .lightbox__x { top: 12px; right: 12px; }

  body.has-consent {
    padding-bottom: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ── Legal page ── */

.legal {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.legal__content {
  max-width: 720px;
}

.legal__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.legal__updated {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.legal__section {
  margin-top: 36px;
}

.legal__section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--wood);
  margin-bottom: 12px;
}

.legal__section p {
  margin-bottom: 12px;
}

.legal__list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 12px;
}

.legal__list li {
  margin-bottom: 6px;
}

.header__nav--static {
  display: flex;
  gap: 28px;
}

.footer__bottom--solo {
  margin-top: 0;
  text-align: center;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom a:hover {
  color: var(--copper-light);
}

/* ── Cookie consent ── */

.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 16px;
  pointer-events: none;
}

.consent:not([hidden]) {
  pointer-events: auto;
}

.consent__panel {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(61, 46, 36, 0.12);
}

.consent__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--wood-soft);
}

.consent__btn {
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 14px;
}

body.has-consent {
  padding-bottom: 100px;
}

@media (max-width: 600px) {
  .consent__panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .consent__btn {
    width: 100%;
  }

  .header__nav--static {
    display: none;
  }
}
