/* Усадьба Островок — палитра с вывески */
:root {
  --wood-dark: #3e2723;
  --wood-medium: #5d4037;
  --wood-light: #8d6e63;
  --wood-tan: #a67c52;
  --yellow: #ffeb3b;
  --yellow-bright: #ffff00;
  --yellow-outline: #e65100;
  --teal: #80cbc4;
  --teal-dark: #4db6ac;
  --teal-light: #b2dfdb;
  --white: #ffffff;
  --cream: #faf8f3;
  --text: #2c1810;
  --text-muted: #5c4a3d;
  --whatsapp: #25d366;
  --shadow: 0 8px 32px rgba(30, 15, 10, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-script: "Marck Script", cursive;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.3s ease;
}

*,
*::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-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--wood {
  background:
    linear-gradient(180deg, rgba(62, 39, 35, 0.92), rgba(62, 39, 35, 0.96)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--white);
}

.section--teal {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.section--wood .section__label {
  color: var(--teal);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__title--brand span {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 0.55em;
  display: block;
  color: var(--white);
  margin-bottom: 0.15em;
}

.section__title--brand em {
  font-style: normal;
  color: var(--yellow);
  text-shadow: 1px 1px 0 var(--yellow-outline), -1px 1px 0 var(--yellow-outline);
}

.section__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}

.section--wood .section__lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(62, 39, 35, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__script {
  font-family: var(--font-script);
  font-size: 0.95rem;
  color: var(--white);
}

.logo__name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 var(--yellow-outline);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--yellow);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--yellow);
  color: var(--wood-dark);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 235, 59, 0.4);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.burger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--open span:nth-child(2) {
  opacity: 0;
}

.burger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(62, 39, 35, 0.75) 0%, rgba(62, 39, 35, 0.45) 50%, rgba(77, 182, 172, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5rem;
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--white);
  margin-bottom: 0.25rem;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow:
    2px 2px 0 var(--yellow-outline),
    -1px 1px 0 var(--yellow-outline),
    0 4px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--yellow);
  color: var(--wood-dark);
  box-shadow: 0 4px 20px rgba(255, 235, 59, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat__icon {
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--wood-dark);
}

.stat__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.stat__text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-pill__dot {
  width: 8px;
  height: 8px;
  background: var(--teal-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-6px);
}

.card__img {
  position: relative;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__img img {
  transform: scale(1.05);
}

.card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--teal);
  color: var(--wood-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--wood-dark);
}

.card__meta {
  font-size: 0.85rem;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card__list {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card__list li {
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

/* Territory */
.territory__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.territory-item {
  text-align: center;
  padding: 1.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--transition);
}

.territory-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.territory-item__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.territory-item__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--wood-dark);
}

.territory-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.territory-item__text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.territory__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.territory__photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--wide img {
  aspect-ratio: 2/1;
}

/* Prices */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}

.price-card--featured {
  border-color: var(--yellow);
  transform: scale(1.03);
}

.price-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wood-dark);
  margin-bottom: 0.5rem;
}

.price-card__amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--wood-medium);
  line-height: 1;
}

.price-card__amount small {
  font-size: 1rem;
  font-weight: 600;
}

.price-card__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
}

.price-card__perks {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-card__perks li {
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.price-card__perks li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
}

.prices__note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(128, 203, 196, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Nearby */
.nearby__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.nearby__item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nearby__dist {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--wood-dark);
  text-align: center;
  line-height: 1.2;
}

.nearby__title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.nearby__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__icon {
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--wood-dark);
}

.contact__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.15rem;
}

.contact__value {
  font-size: 1.05rem;
  font-weight: 700;
}

.contact__value a:hover {
  color: var(--yellow);
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Footer */
.footer {
  background: var(--wood-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__brand {
  font-weight: 800;
  color: var(--yellow);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__prev {
  left: 1.5rem;
}

.lightbox__next {
  right: 1.5rem;
}

/* Responsive */
.cards--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-inline: auto;
}

.prices__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .cards,
  .cards--two,
  .prices__grid,
  .prices__grid--two {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .price-card--featured {
    transform: none;
  }

  .territory__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(62, 39, 35, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .territory__photos,
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .nearby__list {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .territory__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
}
