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

:root {
  --green-dark: #2d4a3e;
  --green-main: #4a7c59;
  --green-light: #8fb996;
  --green-pale: #e8f0e8;
  --earth: #8b6f47;
  --earth-light: #c9a87c;
  --cream: #f5f1e8;
  --white: #ffffff;
  --gold: #d4af37;
  --gold-light: #f4e8c1;
  --gold-dark: #b8941f;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
}

/* Защита от горизонтального overflow на мобильных */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(45, 74, 62, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 0.1rem 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}
header.scrolled {
  padding: 0.1rem 2rem;
  background: rgba(45, 74, 62, 1);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.header-logo {
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-logo:hover {
  color: var(--gold);
  transform: scale(1.02);
}
.header-logo span {
  color: var(--gold);
}
.header-logo .logo-icon {
  font-size: 1.5rem;
}
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.3rem 0;
}
.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.header-nav a:hover {
  color: var(--gold);
}
.header-nav a:hover::after {
  width: 100%;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
}
.header-phone:hover {
  color: var(--gold-light);
  transform: scale(1.05);
}
.header-phone .phone-icon {
  font-size: 1.2rem;
}

/* Два номера телефона: колонкой, одинаковый приоритет */
.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

/* Чуть компактнее, чтобы два номера не растягивали шапку */
@media (min-width: 601px) {
  .header-phones .header-phone {
    font-size: 0.92rem;
    line-height: 1.25;
  }
}

.btn-callback {
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--green-dark);
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn-callback:hover {
  background: transparent;
  color: var(--gold);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* ===== HERO VIDEO ===== */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  margin-top: 0;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--gold-light);
  backdrop-filter: blur(8px);
  animation: fadeInDown 1s ease-out;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1.2s ease-out;
}
.hero-content h1 .title-white {
  color: var(--white);
  display: block;
  font-size: 0.85em;
  font-weight: 300;
  letter-spacing: 2px;
}
.hero-content h1 .title-gold {
  color: var(--gold);
  font-style: italic;
  display: block;
  margin-top: 0.3rem;
  text-shadow: 0 4px 40px rgba(212, 175, 55, 0.4);
}
.hero-content h2 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: normal;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1.4s ease-out;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.6s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--green-dark);
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 2px solid var(--gold);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  text-transform: uppercase;
}
.btn:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}
.btn-outline-gold {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}
.btn-full {
  width: 100%;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 2rem;
  max-width: 100%;
  box-sizing: border-box;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .overline {
  display: block;
  color: var(--green-main);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  color: var(--green-dark);
  line-height: 1.2;
}
.section-header h2 em {
  font-style: italic;
  color: var(--gold);
}
.section-header p {
  max-width: 700px;
  margin: 1.5rem auto 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* About */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.about-text h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  font-weight: normal;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.stat {
  padding: 1.5rem;
  background: var(--green-pale);
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid var(--gold);
}
.stat .number {
  font-size: 2.5rem;
  color: var(--green-main);
  font-weight: bold;
  display: block;
}
.stat .label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  min-height: 450px;
  width: 100%;
  height: 100%;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.about-image:hover img {
  transform: scale(1.05);
}
.about-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.about-footer p {
  font-size: 1.15rem;
  color: var(--green-dark);
  line-height: 1.7;
  font-style: italic;
}

/* Advantages */
.advantages {
  background: var(--green-dark);
  color: var(--white);
}
.advantages .section-header h2 {
  color: var(--white);
}
.advantages .section-header h2 em {
  color: var(--gold);
}
.advantages .section-header .overline {
  color: var(--gold);
}
.advantages .section-header p {
  color: rgba(255, 255, 255, 0.7);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.adv-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s;
}
.adv-card:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-5px);
}
.adv-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.adv-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-weight: normal;
}
.adv-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ===== PLAN - TWO IMAGES ===== */
.plan {
  background: var(--cream);
}
.plan-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.plan-image-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  transition: all 0.4s;
}
.plan-image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}
.plan-image-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.plan-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.plan-image-card:hover .plan-image-wrapper img {
  transform: scale(1.08);
}
.plan-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(45, 74, 62, 0.95));
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.caption-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
}
.caption-text {
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.plan-image-info {
  padding: 1.8rem 2rem;
}
.plan-image-info h4 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 0.7rem;
  font-weight: normal;
}
.plan-image-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Garden Center */
.garden {
  background: var(--white);
}
.garden-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.garden-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  height: 450px;
}
.garden-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.garden-image:hover img {
  transform: scale(1.05);
}
.garden-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.garden-content h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  font-weight: normal;
}
.garden-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.feature-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.feature-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ===== MARKET - ENLARGED IMAGE ===== */
.market {
  background: linear-gradient(135deg, #f5f1e8 0%, #e8f0e8 100%);
}
.market-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.market-image-large {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
  height: 550px;
  position: relative;
}
.market-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.market-image-large:hover img {
  transform: scale(1.05);
}
.market-content h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  font-weight: normal;
}
.market-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Plots */
.plots {
  background: var(--green-pale);
}
.plots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.plot-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}
.plot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.plot-card-header {
  padding: 2rem;
  background: var(--green-main);
  color: var(--white);
}
.plot-card-header.rent {
  background: var(--earth);
}
.plot-card-header.seasonal {
  background: var(--gold);
  color: var(--green-dark);
}
.plot-card-header h3 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}
.plot-card-header .tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.plot-card-body {
  padding: 2rem;
}
.plot-card-body ul {
  list-style: none;
}
.plot-card-body li {
  padding: 0.7rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--text-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.plot-card-body li:last-child {
  border-bottom: none;
}
.plot-card-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* ===== CTA WITH CONTACTS FORM AND MAP SIDE BY SIDE ===== */
.cta {
  background: var(--green-dark);
  color: var(--white);
  padding: 6rem 2rem 4rem;
}
.cta-content {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  margin-bottom: 1.5rem;
}
.cta h2 em {
  color: var(--gold);
  font-style: italic;
}
.cta p {
  opacity: 0.9;
  font-size: 1.1rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1300px;
  margin: 0 auto;
}
.contact-form-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-form-wrapper {
  background: var(--white);
  border-radius: 12px;
  padding: 0.65rem;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.contact-form-wrapper h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-weight: normal;
}
.contact-form-subtitle {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.9rem;
  color: var(--green-dark);
  font-weight: bold;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--cream);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.contact-item {
  text-align: center;
  padding: 1.2rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-item .icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.contact-item .label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-item .value {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  color: var(--gold);
  line-height: 1.4;
}

/* Два телефона в карточке контактов: колонкой, равный приоритет */
.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.contact-phones a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}
/* Тонкая линия-разделитель между номерами */
.contact-phones a:first-child::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0.45rem auto 0;
}
.contact-phones a:hover {
  color: var(--gold-light);
  transform: scale(1.06);
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.contact-map-side {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-height: 600px;
}
.map-container {
  width: 100%;
  height: 100%;
  min-height: 670px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background: var(--gold);
  color: var(--green-dark);
  border: 2px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-5px);
}

/* ===== CALLBACK MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: slideUp 0.4s;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s;
}
.modal-close:hover {
  color: var(--gold);
}
.modal h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  font-weight: normal;
}
.modal p {
  color: var(--text-light);
  margin-bottom: 2rem;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-form input,
.modal-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.modal-form textarea {
  min-height: 100px;
  resize: vertical;
}
.modal-form .btn {
  width: 100%;
  border: none;
}

/* Footer */
footer {
  background: #1a2e26;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}
footer .logo {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
footer .logo span {
  color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-map-side {
    min-height: 450px;
  }
  .map-container {
    min-height: 450px;
  }
  .map-container iframe {
    min-height: 450px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .garden-gallery {
    grid-template-columns: 1fr;
  }
  .garden-image {
    height: 350px;
  }
  section {
    padding: 4rem 1.5rem;
  }
  .plan-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .market-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .market-image-large {
    height: 400px;
    order: -1;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  header {
    padding: 0.5rem 0.8rem;
  }
  .header-container {
    gap: 0.5rem;
  }
  .header-logo {
    font-size: 1rem;
  }
  .header-logo .logo-text-full {
    display: none;
  }
  .header-logo .logo-text-short {
    display: inline;
  }
  .header-phone .phone-text {
    display: none;
  }
  .header-phone {
    font-size: 1.3rem;
  }
  .header-phones {
    flex-direction: row;
    gap: 0.7rem;
  }
  .btn-callback {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero h2 {
    font-size: 1rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 2rem 1.5rem;
  }
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }
  .plan-image-wrapper {
    height: 300px;
  }
  .market-image-large {
    height: 300px;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

@media (min-width: 601px) {
  .header-logo .logo-text-short {
    display: none;
  }
}

/* =========================================
   ГАЛЕРЕЯ ФОТОГРАФИЙ ПЕРЕСЛАВЛЯ-ЗАЛЕССКОГО
   ========================================= */
.pereslavl-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  aspect-ratio: 3/2;
  cursor: pointer;
  transition: all 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(45, 74, 62, 0.95));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Адаптивность галереи для мобильных устройств */
@media (max-width: 768px) {
  .pereslavl-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .gallery-item {
    aspect-ratio: 16/9;
  }
  .gallery-caption {
    transform: translateY(0);
    padding: 1rem;
  }
}

/* =========================================
   ИНТЕРАКТИВНАЯ КАРТА УЧАСТКОВ
   ========================================= */
.plots-map-container {
  margin-top: 4rem;
  width: 100%;
}

.plots-embed .map-container {
  position: relative;
  width: 100%;
  background: var(--white, #fff);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}
.plots-embed .map-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}
.plots-embed .map-header h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.8rem;
  font-weight: normal;
}

/* SVG вписывается по реальным пропорциям */
.plots-embed .site-plan {
  width: 100%;
  height: auto;
  aspect-ratio: 793.70081 / 1122.5197;
  display: block;
  max-height: 85vh;
}

.plots-embed .site-plan g[id^="plot-"] {
  cursor: pointer;
}
.plots-embed .site-plan g[id^="plot-"] path {
  fill: rgba(197, 225, 122, 0.55);
  stroke: #2c3e50;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}
.plots-embed .site-plan g#plot-01 path,
.plots-embed .site-plan g#plot-02 path {
  fill: rgba(237, 220, 180, 0.85) !important;
}
.plots-embed .site-plan text {
  pointer-events: none;
  user-select: none;
  font-size: 26px;
  font-weight: 700;
  fill: #2c3e50 !important;
  stroke: #ffffff !important;
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  transition: fill 0.3s ease, font-size 0.3s ease;
}
.plots-embed .site-plan g[id^="plot-"]:hover path {
  stroke: #1a5f2a !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.6));
}
.plots-embed .site-plan g[id^="plot-"]:hover text {
  fill: #1a5f2a !important;
  font-size: 36px;
}

/* Тултип */
.plots-embed #plot-tooltip {
  position: absolute;
  display: none;
  background: rgba(20, 30, 48, 0.95);
  color: white;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.plots-embed .tooltip-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: #81c784;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}
.plots-embed .tooltip-row {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}
.plots-embed .tooltip-label {
  color: #b0bec5;
}
.plots-embed .tooltip-status {
  font-weight: bold;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.plots-embed .status-free { color: #81c784; }
.plots-embed .status-sold { color: #e57373; }
.plots-embed .status-booked { color: #ffd54f; }

/* Адаптивность карты */
@media (max-width: 900px) {
  .plots-map-container {
    margin-top: 3rem;
  }
  .plots-embed .map-container {
    padding: 14px;
  }
}

@media (max-width: 600px) {
  .plots-map-container {
    margin-top: 2rem;
  }
  .plots-embed .map-container {
    padding: 10px;
    border-radius: 8px;
  }
  .plots-embed .site-plan text {
    font-size: 30px;
  }
  .plots-embed .site-plan g[id^="plot-"]:hover text {
    font-size: 34px;
  }
}

/* ===== СЛАЙДЕР: ВОЗМОЖНОСТИ ВЫРАЩИВАНИЯ ===== */
.cycle-block {
  max-width: 1300px;
  margin: 4.5rem auto 0;
}
.cycle-intro {
  max-width: 900px;
  margin: 0 auto 2.8rem;
  text-align: center;
}
.cycle-intro h3 {
  font-size: 2rem;
  font-weight: normal;
  color: var(--green-dark);
  line-height: 1.3;
}
.cycle-intro h3 em {
  font-style: italic;
  color: var(--gold);
}
.cycle-lead {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}
.cycle-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.5rem;
  max-width: 880px;
  margin: 1.8rem auto 0;
  text-align: left;
}
.cycle-list li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--green-pale);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cycle-list li:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 18px rgba(45, 74, 62, 0.12);
}
.cycle-list li::before {
  content: "✦";
  position: absolute;
  left: 0.9rem;
  color: var(--gold-dark);
}

/* Каркас слайдера */
.cycle-frame {
  position: relative;
  padding: 0 3.5rem;
}
.cycle-viewport {
  overflow: hidden;
}
.cycle-track {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.cycle-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
}
.cycle-slide figure {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 3;
  background: var(--green-pale);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.cycle-slide figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

/* Плавное появление фото */
.cycle-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s ease, transform 1.2s ease;
}
.cycle-slide img.is-loaded {
  opacity: 1;
  transform: scale(1);
}
.cycle-slide figure:hover img {
  transform: scale(1.06);
}
.cycle-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(45, 74, 62, 0.95));
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Стрелки */
.cycle-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--green-dark);
  font-size: 1.7rem;
  line-height: 1;
  padding: 0 0 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 5px 18px rgba(212, 175, 55, 0.35);
  font-family: inherit;
  transition: all 0.3s;
}
.cycle-prev { left: 0; }
.cycle-next { right: 0; }
.cycle-arrow:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

/* Точки */
.cycle-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.cycle-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.cycle-dot:hover {
  background: var(--gold-light);
}
.cycle-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}

/* Адаптивность слайдера */
@media (max-width: 999px) {
  .cycle-slide {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

@media (max-width: 768px) {
  .cycle-frame {
    padding: 0;
  }
  .cycle-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .cycle-prev { left: 10px; }
  .cycle-next { right: 10px; }
}

@media (max-width: 639px) {
  .cycle-slide {
    flex: 0 0 100%;
  }
  .cycle-list {
    grid-template-columns: 1fr;
  }
  .cycle-arrow {
    display: none;
  }
  .cycle-frame {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-track {
    transition: none;
  }
}

/* ===== ЧАТ-БОТ «МАРИНА» ===== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1500;
}
.chat-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--green-dark);
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.chat-toggle:hover {
  transform: scale(1.1) rotate(-6deg);
  background: var(--green-dark);
  color: var(--gold);
}
.chat-toggle-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: chatPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes chatPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #e57373;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Подсказка-приглашение */
.chat-teaser {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  max-width: 240px;
  background: var(--white);
  color: var(--green-dark);
  padding: 0.8rem 2.2rem 0.8rem 1rem;
  border-radius: 12px 12px 12px 2px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
}
.chat-teaser.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-teaser-close {
  position: absolute;
  top: 2px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
}

/* Панель чата */
.chat-panel {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 0;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 7rem);
  background: var(--cream);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom left;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}
.chat-widget.open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Шапка чата */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--green-dark), #1f3a2f);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.chat-header-name {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.chat-header-status {
  font-size: 0.75rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #81c784;
  animation: statusPulse 1.8s infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(129, 199, 132, 0); }
}
.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.chat-close:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Сообщения */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(143, 185, 150, 0.12) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.1) 0, transparent 40%),
    var(--cream);
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--green-light);
  border-radius: 3px;
}
.chat-msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: msgIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(74, 124, 89, 0.15);
  border-left: 3px solid var(--green-main);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 3px 10px rgba(45, 74, 62, 0.08);
  color: var(--text);
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: var(--cream);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 3px 12px rgba(45, 74, 62, 0.25);
}
.chat-msg .msg-time {
  display: block;
  font-size: 0.65rem;
  opacity: 0.55;
  margin-top: 0.3rem;
  text-align: right;
}

/* Индикатор «печатает» */
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border-radius: 14px 14px 14px 4px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 3px 10px rgba(45, 74, 62, 0.08);
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-main);
  animation: typingDot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Быстрые вопросы */
.chat-chips {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(74, 124, 89, 0.12);
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--green-light) transparent;
}
.chat-chips::-webkit-scrollbar { height: 4px; }
.chat-chips::-webkit-scrollbar-track { background: transparent; }
.chat-chips::-webkit-scrollbar-thumb {
  background: var(--green-light);
  border-radius: 2px;
}
.chat-chips::-webkit-scrollbar-thumb:hover { background: var(--green-main); }
.chat-chips:empty { display: none; }

.chat-chip {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gold-dark);
  border-radius: 20px;
  background: transparent;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
}
.chat-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.35);
}

.chat-chip-action {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  font-weight: bold;
}

/* Поле ввода */
.chat-input-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem;
  background: var(--white);
  border-top: 2px solid var(--gold);
}
.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.chat-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.chat-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--green-dark);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
}
.chat-send:hover {
  background: var(--green-dark);
  color: var(--gold);
  transform: rotate(-15deg) scale(1.05);
}

/* Мобильные чата */
@media (max-width: 600px) {
  .chat-widget {
    bottom: 1rem;
    left: 1rem;
  }
  .chat-toggle {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  .chat-panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    height: min(600px, calc(100vh - 6rem));
    transform-origin: bottom center;
  }
}

/* ===== Кнопка «Поговорим?» в шапке ===== */
.btn-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.3s;
}
.btn-chat-header .chat-ico {
  font-size: 1.05rem;
  transition: transform 0.3s;
}
.btn-chat-header:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.btn-chat-header:hover .chat-ico {
  transform: rotate(-14deg) scale(1.2);
}

/* Состояние «чат открыт» — залитая кнопка */
.btn-chat-header.active {
  background: var(--gold);
  color: var(--green-dark);
}

@media (max-width: 600px) {
  .btn-chat-header {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .btn-chat-header .btn-chat-text {
    display: none;
  }
  .btn-chat-header {
    padding: 0.5rem 0.7rem;
  }
}

/* ===== ИКОНКА MAX В ШАПКЕ ===== */
.header-max-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.header-max-link:hover {
  transform: scale(1.15);
}
.max-icon {
  width: 48px;
  height: 38px;
  display: block;
}

@media (max-width: 600px) {
  .max-icon {
    width: 30px;
    height: 30px;
  }
}

/* ===== МЕССЕНДЖЕРЫ В КОНТАКТАХ ===== */
.contact-messengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
  padding-top: 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.contact-messengers > span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: color 0.3s, transform 0.3s;
}
.messenger-link:hover {
  color: var(--gold);
  transform: translateY(-3px);
}
.messenger-icon {
  width: 48px;
  height: 30px;
  transition: transform 0.3s;
}
.messenger-icon-text {
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 0.3s;
}
.messenger-link:hover .messenger-icon,
.messenger-link:hover .messenger-icon-text {
  transform: scale(1.2);
}
.messenger-max {
  color: var(--gold);
  font-weight: bold;
}
.messenger-max:hover {
  color: var(--gold-light);
}

@media (max-width: 600px) {
  .contact-messengers {
    gap: 1.2rem;
  }
  .messenger-link {
    font-size: 0.95rem;
  }
  .messenger-icon {
    width: 26px;
    height: 26px;
  }
  .messenger-icon-text {
    font-size: 1.4rem;
  }
}

/* Финальная защита */
.cycle-arrow,
.chat-toggle,
.scroll-top,
.chat-panel,
.chat-teaser {
  max-width: 100vw;
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ ИЗОБРАЖЕНИЯ great_prospects.jpg НА МОБИЛЬНЫХ ===== */
@media (max-width: 900px) {
  .about-image {
    min-height: auto; /* Убираем принудительную минимальную высоту */
    height: auto;     /* Высота блока подстраивается под содержимое */
  }
  
  .about-image img {
    height: auto;           /* Разрешаем изображению менять высоту пропорционально ширине */
    object-fit: contain;    /* Гарантируем, что изображение покажется целиком, без обрезки краев */
    max-height: 80vh;       /* Ограничиваем максимальную высоту 80% экрана, чтобы не было гигантской прокрутки */
    background-color: var(--green-pale); /* Опционально: фон на случай, если пропорции картинки оставят пустые полосы */
  }
}
/* ===== ИСПРАВЛЕНИЕ ГОРИЗОНТАЛЬНОГО ПЕРЕПОЛНЕНИЯ В СЕКЦИИ MARKET (МОБИЛЬНЫЕ) ===== */
@media (max-width: 768px) {
  /* 1. Уменьшаем боковые отступы секции, освобождая место для контента */
  .market {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* 2. Жёстко ограничиваем сетку шириной экрана */
  .market-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Гарантирует, что ничего не вылезет за границы */
  }

  /* 3. Сбрасываем фиксированную высоту изображения на мобильных */
  .market-image-large {
    height: auto; /* Высота теперь зависит от пропорций картинки */
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* Центрируем, если вдруг останется зазор */
  }

  /* 4. Заставляем изображение строго следовать ширине контейнера */
  .market-image-large img {
    width: 100%;
    height: auto; /* Пропорциональное масштабирование без обрезки по горизонтали */
    max-width: 100%;
    object-fit: cover;
    display: block; /* Убирает микро-отступ снизу, характерный для строчных элементов */
  }

  /* 5. Защита текста от разрыва шаблона длинными словами или переполнения */
  .market-content {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto; /* Аккуратный перенос слов при необходимости */
  }

  /* 6. Чуть уменьшаем заголовок для экономии места */
  .market-content h3 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  
  /* 7. Делаем список более компактным по горизонтали */
  .feature-list li {
    padding-left: 1.5rem;
    font-size: 0.95rem;
  }
}
/* ===== ФИКС ГОРИЗОНТАЛЬНОГО ПЕРЕПОЛНЕНИЯ ТЕКСТА В СЕКЦИИ MARKET (МОБИЛЬНЫЕ) ===== */
@media (max-width: 600px) {
  /* 1. Минимальные боковые отступы секции для максимума полезного пространства */
  .market {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 2. Принудительно выстраиваем сетку в одну колонку */
  .market-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    width: 100%;
  }

  /* 3. Адаптация изображения (чтобы не ломало сетку) */
  .market-image-large {
    height: auto !important;
    width: 100%;
  }
  .market-image-large img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 4. Жёсткая защита текста от вылезания за границы экрана */
  .market-content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto; /* Автоматическая расстановка переносов для длинных слов */
  }

  /* 5. Уменьшаем заголовок, чтобы он гарантированно помещался */
  .market-content h3 {
    font-size: 1.3rem !important;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }

  /* 6. Оптимальный размер шрифта для абзацев на узком экране */
  .market-content p {
    font-size: 0.95rem !important;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* 7. Список преимуществ: строго одна колонка и уменьшенные отступы */
  .feature-list {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-left: 0 !important;
    max-width: 100%;
  }

  .feature-list li {
    padding-left: 1.2rem !important; /* Уменьшили отступ слева, освободив ~20px для текста */
    font-size: 0.9rem !important;
    line-height: 1.4;
    word-break: break-word;
  }
  
  /* Корректировка позиции маркера (галочки), если она есть */
  .feature-list li::before {
    left: 0 !important;
    font-size: 0.9rem;
  }
}
/* ===== ЦЕНТРИРОВАНИЕ ПОДСКАЗКИ НА МОБИЛЬНЫХ УСТРОЙСТВАХ ===== */
@media (max-width: 768px) {
  .plots-embed #plot-tooltip {
    position: fixed !important; /* Фиксируем относительно окна браузера, игнорируя overflow родителя */
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important; /* Идеальное центрирование */
    width: 85% !important; /* Занимает большую часть ширины экрана для удобства */
    max-width: 320px !important;
    z-index: 10000 !important; /* Гарантированно поверх карты, шапки и всех элементов */
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  /* Адаптируем содержимое подсказки для центрированного вида */
  .plots-embed .tooltip-row {
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
  }
  
  .plots-embed .tooltip-label {
    font-weight: bold;
    color: #b0bec5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .plots-embed .tooltip-status {
    margin-top: 12px;
    font-size: 15px;
  }
}
/* ===== ИДЕАЛЬНОЕ ЦЕНТРИРОВАНИЕ ПОДСКАЗКИ НА ВСЕХ УСТРОЙСТВАХ ===== */
.plots-embed #plot-tooltip {
  /* Фиксируем относительно контейнера карты, а не экрана */
  position: absolute !important; 
  left: 50% !important;
  top: 50% !important;
  /* Сдвигаем на половину собственной ширины/высоты для идеального центра */
  transform: translate(-50%, -50%) !important; 
  width: auto !important;
  min-width: 220px;
  max-width: 90%;
  z-index: 9999 !important; /* Поверх всех элементов SVG и карты */
  text-align: center;
  pointer-events: none; /* Чтобы подсказка не перехватывала клики мыши */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Адаптация содержимого для красивого отображения по центру */
.plots-embed .tooltip-title {
  text-align: center;
  margin-bottom: 10px;
}

.plots-embed .tooltip-row {
  display: flex;
  flex-direction: column; /* На узких экранах (планшет портрет) смотрится лучше */
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.plots-embed .tooltip-label {
  font-weight: bold;
  color: #b0bec5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plots-embed .tooltip-status {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
  text-align: center;
}

/* Небольшая анимация появления для красоты на десктопе */
.plots-embed #plot-tooltip[style*="display: block"] {
  animation: tooltipPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes tooltipPop {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* ===== ИДЕАЛЬНОЕ ЦЕНТРИРОВАНИЕ ПОДСКАЗКИ (ПЛАНШЕТ И ДЕСКТОП) ===== */
.plots-embed #plot-tooltip {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important; /* Сдвиг на половину собственного размера для точного центра */
  width: auto !important;
  min-width: 220px;
  max-width: 90%;
  z-index: 10000 !important; /* Поверх всех элементов SVG, шапки и модальных окон */
  text-align: center;
  pointer-events: none; /* Чтобы подсказка не мешала кликам */
}

/* Анимация появления (гарантированно сохраняет центрирование в конце) */
.plots-embed #plot-tooltip[style*="display: block"] {
  animation: tooltipPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes tooltipPop {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Адаптация содержимого для красивого отображения по центру */
.plots-embed .tooltip-title {
  text-align: center;
  margin-bottom: 10px;
}

.plots-embed .tooltip-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.plots-embed .tooltip-label {
  font-weight: bold;
  color: #b0bec5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plots-embed .tooltip-status {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
  text-align: center;
}

/* Для мобильных устройств используем fixed, чтобы гарантированно избежать обрезки overflow:hidden */
@media (max-width: 1024px) {
  .plots-embed #plot-tooltip {
    position: fixed !important; /* Отвязываем от контейнера, привязываем к экрану */
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 85% !important;
    max-width: 320px !important;
    z-index: 10001 !important;
  }
}