:root {
  --primary-color: #2C7F6E;
  --secondary-color: #1A5C4F;
  --accent-color: #4AAF99;
  --light-color: #EDF7F5;
  --dark-color: #0D2922;
  --gradient-primary: linear-gradient(135deg, #1A5C4F 0%, #4AAF99 100%);
  --hover-color: #1E6B5C;
  --background-color: #F5FBF9;
  --text-color: #1C3530;
  --border-color: rgba(44, 127, 110, 0.17);
  --divider-color: rgba(26, 92, 79, 0.11);
  --shadow-color: rgba(44, 127, 110, 0.10);
  --highlight-color: #E8A838;
  --main-font: 'Cormorant Garamond', serif;
  --alt-font: 'Nunito', sans-serif;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
.hamburger .line {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 1px;
}
#menu-toggle { display: none; }
#menu-toggle:checked ~ .mobile-nav {
  max-height: 350px;
  opacity: 1;
}
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--border-color);
  z-index: 1000;
}
.mobile-nav ul { padding: 2rem; margin: 0; list-style: none; }
.mobile-nav li { margin: 0.8rem 0; }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.mobile-nav a:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* ===== Feature Cards — двухколоночные плитки с цветным левым блоком ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  margin: 2.5rem 0;
}
.feature-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 18px var(--shadow-color);
  transition: all 0.32s ease;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  border: 1px solid var(--border-color);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px var(--shadow-color);
  border-color: var(--accent-color);
}
.feature-card-icon-col {
  width: 82px;
  min-width: 82px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.3s ease;
  position: relative;
}
.feature-card-icon-col::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 10px;
  border-color: transparent transparent transparent var(--secondary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover .feature-card-icon-col::after { opacity: 1; }
.feature-card:hover .feature-card-icon-col { width: 90px; }
.feature-icon {
  font-size: 2.1rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.32s ease;
}
.feature-card-text {
  padding: 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.feature-card-text p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}
.testimonial {
  background: white;
  border-radius: 14px;
  padding: 2rem 1.8rem 1.8rem;
  margin: 0;
  box-shadow: 0 3px 18px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.testimonial-quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.15;
  font-family: Georgia, serif;
  margin-bottom: -0.5rem;
  display: block;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--shadow-color);
  border-color: var(--accent-color);
}
.testimonial-author {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.testimonial-author-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 1.1rem 0;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 2rem 2.2rem;
  position: relative;
  overflow: hidden;
}
.faq-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  transition: height 0.35s ease;
  border-radius: 12px 0 0 12px;
}
.faq-item:hover::after { height: 100%; }
.faq-item:hover {
  box-shadow: 0 8px 30px var(--shadow-color);
  transform: translateX(5px);
}
.faq-item h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.faq-q-badge {
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--alt-font);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 1.1rem;
  background-color: white;
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 127, 110, 0.11);
}
input:hover, textarea:hover { border-color: var(--secondary-color); }

/* Buttons */
button, .btn {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.2rem 2.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 3px 14px rgba(44, 127, 110, 0.28);
}
button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(44, 127, 110, 0.42);
}

/* Base */
html { scroll-behavior: smooth; }
body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.7;
  max-width: 100vw;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
}

/* Header & Footer */
header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 18px var(--shadow-color);
}
footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 3.5rem 0 1.5rem;
}

/* Focus */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Pattern BG */
.pattern-bg {
  background-image:
    radial-gradient(ellipse at 80% 10%, rgba(44, 127, 110, 0.07) 0%, transparent 48%),
    radial-gradient(ellipse at 15% 80%, rgba(74, 175, 153, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(232, 168, 56, 0.04) 0%, transparent 58%);
  background-size: 100% 100%;
}

/* ===== Random Block V5: Журнальная сетка / Медиа-блок ===== */
.magazine-block {
  width: 100%;
  background-color: #F0F9F7;
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.magazine-block h2 { color: var(--secondary-color); }
.magazine-block .subtitle {
  color: var(--text-color);
  max-width: 620px;
  margin: 0.5rem auto 2.5rem;
  text-align: center;
  opacity: 0.85;
}
.magazine-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.4rem;
}
.mag-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 16px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px var(--shadow-color);
}
.mag-card.featured {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}
.mag-card-header {
  padding: 1.6rem 1.6rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.mag-card-tag {
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--alt-font);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.mag-card-icon-big {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1A5C4F 0%, #4AAF99 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  flex-shrink: 0;
}
.mag-card.featured .mag-card-icon-big {
  height: 220px;
  font-size: 6rem;
}
.mag-card-body {
  padding: 1.4rem 1.6rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mag-card-body h4 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.mag-card.featured .mag-card-body h4 { font-size: 1.4rem; }
.mag-card-body p {
  color: var(--text-color);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.88;
  flex: 1;
}

/* Contact */
.contact-inner {
  width: 80%;
  margin: 0 auto;
}

/* Responsive */
* { box-sizing: border-box; }
body { overflow-x: hidden; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

@media (max-width: 900px) {
  .magazine-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .mag-card.featured {
    grid-row: auto;
    grid-column: 1 / 3;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .hero h1 { font-size: 2.5rem; line-height: 1.2; padding: 0 1rem; }
  .container { padding: 0 1rem; max-width: 100vw; }
  .features-grid { grid-template-columns: 1fr; gap: 1.4rem; padding: 0 0.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 0.5rem; }
  .feature-card { flex-direction: row; }
  .feature-card-icon-col { width: 68px; min-width: 68px; }
  .feature-card-icon-col::after { display: none; }
  .magazine-grid { grid-template-columns: 1fr; }
  .mag-card.featured { grid-column: auto; }
  .contact-inner { width: 100%; }
  .grid { gap: 1.5rem; }
  .space-x-8 { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; line-height: 1.2; padding: 0 0.5rem; }
  .hero p { font-size: 1rem; padding: 0 0.5rem; }
  .feature-card-text { padding: 1.2rem 1rem; }
  .feature-card-icon-col { width: 60px; min-width: 60px; }
  .testimonial, .faq-item { padding: 1.5rem 1rem; max-width: 100%; }
  .container { padding: 0 0.5rem; }
  input, textarea { font-size: 16px; padding: 1rem; }
  .btn { padding: 1rem 2rem; font-size: 0.95rem; }
}