/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #faf8f5;
  --c-bg-alt: #f0ece6;
  --c-bg-dark: #2c3e3a;
  --c-primary: #5a8a7a;
  --c-primary-dark: #3d6b5c;
  --c-primary-light: #8ab5a6;
  --c-accent: #c8956c;
  --c-accent-light: #e6c9ab;
  --c-text: #3a3a3a;
  --c-text-light: #6b6b6b;
  --c-text-inv: #f0ece6;
  --c-white: #ffffff;
  --c-border: #ddd5cb;
  --c-success: #6a9f6a;
  --c-error: #c45c5c;
  --font-head: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; color: var(--c-bg-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .6em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .4em; }

p { margin-bottom: 1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary-dark);
  border: 2px solid var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-accent {
  background: var(--c-accent);
  color: var(--c-white);
}
.btn-accent:hover {
  background: #b07e58;
  color: var(--c-white);
  transform: translateY(-2px);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  padding: 8px 0;
  font-size: .88rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--c-accent-light); }
.top-bar a:hover { color: var(--c-white); }

/* ===== HEADER / NAV ===== */
.header {
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--c-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 1.4rem;
}
.logo-text h2 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--c-primary-dark);
  line-height: 1.2;
}
.logo-text span {
  font-size: .78rem;
  color: var(--c-text-light);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-text);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  background: var(--c-bg-alt);
  color: var(--c-primary-dark);
}

.header-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  white-space: nowrap;
}
.header-phone a { color: inherit; }

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}
.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all .25s;
  position: absolute;
  left: 0;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }
.burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, #3d5a50 100%);
  color: var(--c-text-inv);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero h1 { color: var(--c-white); margin-bottom: .5em; }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 600px; margin-bottom: 1.5em; }
.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.hero-badge .icon { font-size: 1.2rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, #3d5a50 100%);
  color: var(--c-text-inv);
  padding: 50px 0 55px;
  text-align: center;
}
.page-hero h1 { color: var(--c-white); margin-bottom: .3em; }
.page-hero p { opacity: .85; font-size: 1.05rem; }
.breadcrumbs {
  font-size: .85rem;
  margin-bottom: 12px;
  opacity: .7;
}
.breadcrumbs a { color: var(--c-accent-light); }

/* ===== SECTIONS ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--c-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--c-text-light);
  max-width: 600px;
  margin: 12px auto 0;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary-light);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { color: var(--c-primary-dark); }

/* ===== FEATURES ROW ===== */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.feature-item {
  padding: 24px 16px;
}
.feature-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--c-primary);
  font-weight: 700;
  line-height: 1;
}
.feature-label {
  font-size: .92rem;
  color: var(--c-text-light);
  margin-top: 6px;
}

/* ===== TWO-COL LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col-text h2 { text-align: left; }
.two-col-text h2::after { margin: 12px 0 0; }
.two-col-visual {
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.two-col-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90,138,122,.08), rgba(200,149,108,.08));
}

/* ===== PRICE TABLE ===== */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table thead { background: var(--c-primary); color: var(--c-white); }
.price-table th { padding: 16px 20px; text-align: left; font-weight: 600; }
.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-white);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: var(--c-bg-alt); }

/* ===== PRICE CARDS ===== */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.price-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 2px solid var(--c-border);
  transition: all var(--transition);
}
.price-card.featured {
  border-color: var(--c-primary);
  position: relative;
}
.price-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: var(--c-white);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-amount {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--c-primary-dark);
  margin: 12px 0 4px;
}
.price-period { color: var(--c-text-light); font-size: .9rem; }
.price-list {
  list-style: none;
  padding: 20px 0;
  text-align: left;
}
.price-list li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: .94rem;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-success);
  font-weight: 700;
}

/* ===== FAQ / ACCORDION ===== */
.accordion-item {
  background: var(--c-white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion-btn {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-text);
  font-family: var(--font-body);
}
.accordion-btn:hover { color: var(--c-primary-dark); }
.accordion-btn .arrow {
  transition: transform var(--transition);
  font-size: .85rem;
}
.accordion-item.open .accordion-btn .arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-body-inner {
  padding: 0 24px 18px;
  color: var(--c-text-light);
  line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--c-white);
  color: var(--c-text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(90,138,122,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: var(--c-white);
  padding: 50px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--c-white); margin-bottom: .4em; }
.cta-banner p { opacity: .9; margin-bottom: 1.5em; max-width: 550px; margin-left: auto; margin-right: auto; }

/* ===== MINI FORM (footer) ===== */
.mini-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
}
.mini-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: .95rem;
}
.mini-form input::placeholder { color: rgba(255,255,255,.5); }
.mini-form input:focus { outline: none; border-color: var(--c-accent); }
.mini-form .btn { white-space: nowrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  color: var(--c-white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer p, .footer a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer a:hover { color: var(--c-accent-light); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .84rem;
  opacity: .6;
}

/* ===== LIST STYLE ===== */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  line-height: 1.6;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== INFO BOXES ===== */
.info-box {
  background: var(--c-white);
  border-left: 4px solid var(--c-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.info-box.accent { border-color: var(--c-accent); }

/* ===== CONTENT SECTION ===== */
.content-section h2 { margin-top: 1.5em; }
.content-section h3 { margin-top: 1.2em; }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
  font-size: 1rem;
  border: 1px dashed var(--c-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-white);
    z-index: 105;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  .nav.open a { font-size: 1.2rem; padding: 12px 24px; }
  .burger { display: block; }
  .header-phone { display: none; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 50px 0 60px; }
  .section { padding: 50px 0; }
  .features-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature-num { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-badges { flex-direction: column; }
  .price-table { font-size: .88rem; }
  .price-table th, .price-table td { padding: 10px 12px; }
}
