/* 
  Стил файл за уебсайт "Мъжки свят" (Male World)
  Цветова схема: Тъмно изумрудено зелено (#1B4D3E), Злато (#D4AF37), Тъмно сив текст (#1F2937)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --primary: #1B4D3E;         /* Дълбоко изумрудено зелено */
  --primary-hover: #143A2F;
  --primary-light: #EBF3F0;
  --accent: #D4AF37;          /* Благородно злато */
  --accent-hover: #B89528;
  --accent-light: #FFFBF0;
  --dark: #0F172A;            /* Дълбок въглен */
  --text-main: #334155;       /* Меко тъмно за текст */
  --text-muted: #64748B;      /* Сиво за вторичен текст */
  --bg-light: #F8FAFC;        /* Свеж светъл фон */
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* Основно нулиране и глобални стилове */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

/* Типография */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

.heading-serif {
  font-family: var(--font-serif);
}

/* Контейнер */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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

/* Хедър и Навигация */
.site-header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-logo span.highlight {
  color: var(--accent);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #2D7A63);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(27, 77, 62, 0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.btn-header {
  background-color: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.btn-header:hover {
  background-color: var(--accent-hover);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* Мобилно меню кнопка */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* Бутони */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #276B57);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(27, 77, 62, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #143A2F, var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 77, 62, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #C5A028);
  color: #111827;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #C5A028, var(--accent));
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

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

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Значки и Баджове */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background-color: var(--accent-light);
  color: #92400E;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Секция Hero */
.hero-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 2.75rem;
  margin-top: 15px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

.author-quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.author-quick-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

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

.author-quick-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.hero-img-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--white);
  position: relative;
}

.hero-img-container img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-experience-badge {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-experience-badge .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-experience-badge .txt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

/* Секции общи */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Историческа секция */
.story-section {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-box {
  background: linear-gradient(135deg, #F0F7F4 0%, #FAF6E9 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(27, 77, 62, 0.15);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.story-quote-icon {
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.4);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 30px;
}

.story-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1E293B;
}

.story-body p {
  margin-bottom: 1.25rem;
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* Интерактивен Тест (Quiz) Component */
.quiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

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

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

.quiz-question {
  display: none;
}

.quiz-question.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-question-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option-btn {
  background-color: var(--bg-light);
  border: 2px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.quiz-result.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-result-score {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(27, 77, 62, 0.25);
}

/* Интерактивен Калкулатор Component */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--white);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.1);
}

.calc-result-box {
  margin-top: 25px;
  padding: 20px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  display: none;
}

.calc-result-box.active {
  display: block;
}

/* Картички на статии */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.article-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 77, 62, 0.2);
}

.article-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.05);
}

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.article-card-title a {
  color: var(--dark);
}

.article-card-title a:hover {
  color: var(--primary);
}

.article-card-excerpt {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  gap: 10px;
  color: var(--accent);
}

/* Сертификати и баджове */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cert-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cert-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  color: #856404;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

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

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

/* Отзиви (Reviews) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

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

.review-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.review-author-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.review-author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Оферта Страница (order.html) & Лид Форма */
.offer-hero {
  background: linear-gradient(135deg, #0F3329 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.offer-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.offer-hero p {
  color: #D1E7DD;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 40px;
}

.offer-product-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.offer-product-img {
  max-height: 400px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.offer-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: var(--accent-light);
  border: 2px dashed var(--accent);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.price-new {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ВАЖНО: Форма за оферта (Лид форма са 2 поля!) */
.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent);
  position: relative;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.lead-form-header h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.lead-form-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 15px;
  margin-bottom: 25px;
}

.form-check input {
  margin-top: 3px;
}

/* Страница "Благодарим ви" (thankyou.html) */
.thankyou-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 60px auto;
  border-top: 8px solid var(--primary);
}

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

/* Фуутър и Compliance */
.site-footer {
  background-color: #0B1D17;
  color: #94A3B8;
  padding: 70px 0 30px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #94A3B8;
}

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

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 40px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #CBD5E1;
}

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

/* Cookie Banner (GDPR Google Ads Compliant) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0F172A;
  color: var(--white);
  padding: 20px 0;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: none;
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.4s ease;
}

.cookie-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.9rem;
  max-width: 750px;
  line-height: 1.5;
}

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

/* Lightbox Modal за сертификати */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Адаптивен дизайн (Media Queries) */
@media (max-width: 992px) {
  .hero-grid,
  .offer-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-img-container img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    height: 70px;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}
