/* ==========================================================================
   МЪЖКО ЗНАНИЕ - STYLE SYSTEM
   Natural Green Theme & Google Ads Compliant Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  --primary-dark: #1b4332;
  --primary: #2d6a4f;
  --primary-medium: #40916c;
  --primary-light: #52b788;
  --primary-soft: #d8f3dc;
  --accent-gold: #d4af37;
  --accent-gold-light: #fefae0;
  --accent-warm: #e9c46a;
  
  --bg-dark: #081c15;
  --bg-light: #f7faf8;
  --bg-card: #ffffff;
  --bg-accent: #eef7f2;
  
  --text-main: #1e2923;
  --text-muted: #4a5c52;
  --text-light: #6c7c72;
  --text-white: #ffffff;
  
  --border-color: #d1e2d8;
  --border-light: #e8f0ec;
  
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 4px 20px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 67, 50, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.25rem;
}

/* Layout Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-narrow {
  max-width: 840px;
}

.section-padding {
  padding: 80px 0;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.logo-brand span.icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

.btn-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.25);
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.35);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #eef7f2 0%, #f7faf8 100%);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(82, 183, 136, 0.12);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(45, 106, 79, 0.1);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.6rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.author-thumb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-badge .icon-box {
  width: 40px;
  height: 40px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Feature Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: var(--bg-accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Story Highlight Section */
.story-preview-section {
  background: white;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.story-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d281e 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.story-box h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.story-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.quote-highlight {
  font-family: 'Merriweather', serif;
  font-style: italic;
  border-left: 4px solid var(--accent-gold);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--accent-gold-light);
}

/* Interactive Quiz Styling */
.quiz-section {
  background: var(--bg-accent);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.quiz-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 35px;
}

.quiz-progress {
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 30px;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  width: 20%;
  transition: width 0.4s ease;
}

.quiz-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.quiz-question-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--text-main);
}

.quiz-option-btn:hover {
  border-color: var(--primary-light);
  background: var(--bg-accent);
}

.quiz-option-btn.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.quiz-option-letter {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.quiz-result-box {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.quiz-result-badge {
  width: 80px;
  height: 80px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
}

.quiz-score-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}

/* Articles Section */
.article-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-50px 0);
  box-shadow: var(--shadow-md);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.article-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-link {
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-link:hover {
  gap: 10px;
}

/* Certificates Showcase */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.cert-title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.cert-sub {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Detailed Article Content Styling */
.article-full-content {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2b3a32;
}

.article-full-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin: 35px 0 18px;
  color: var(--primary-dark);
}

.article-full-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin: 28px 0 14px;
  color: var(--primary);
}

.article-full-content ul {
  margin: 20px 0;
  padding-left: 20px;
}

.article-full-content li {
  margin-bottom: 10px;
}

.info-callout {
  background: var(--bg-accent);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
}

/* Order / Consultation Form Page */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.product-image-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  background: #f0f5f2;
}

.product-image-frame img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.order-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 2px solid var(--primary-soft);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.order-form-card::before {
  content: 'Заявка за Консултация';
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--primary-dark);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(45, 106, 79, 0.4);
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 16px;
}

/* Thank You Page */
.thankyou-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 680px;
  margin: 40px auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.success-icon {
  width: 90px;
  height: 90px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 24px;
}

/* Footer & Legal */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(27, 67, 50, 0.98);
  color: white;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.cookie-banner p {
  font-size: 0.88rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-cookie-deny {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .story-box, .order-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    display: none;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-menu.active {
    display: flex;
  }
  .hero-title {
    font-size: 2rem;
  }
  .grid-3, .grid-2, .cert-grid {
    grid-template-columns: 1fr;
  }
  .quiz-section {
    padding: 24px 16px;
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}
