/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #faf7f2;
  color: #1a1a1a;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 120, 80, 0.1);
  padding: 16px 0;
  transition: box-shadow 0.3s ease;
}

.site-header:hover {
  box-shadow: 0 4px 20px rgba(200, 120, 80, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #2d1b0e;
}

.logo span {
  color: #c0392b;
}

.main-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  font-size: 16px;
  color: #4a3728;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c0392b;
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: #c0392b;
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #2d1b0e;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 40px;
  background: linear-gradient(165deg, #faf7f2 0%, #f5ede4 100%);
  border-radius: 0 0 40px 40px;
  margin-bottom: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #2d1b0e;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 19px;
  color: #5a4a3a;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 60px;
  font-size: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.25);
}

.btn-primary:hover {
  background: #a93226;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
}

.btn-ghost {
  display: inline-block;
  font-weight: 500;
  color: #c0392b;
  padding: 14px 20px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: #a93226;
  transform: translateX(4px);
}

.hero-visual img {
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1.5 / 1;
}

/* ===== RECIPES GRID ===== */
.recipes-grid-section {
  padding: 60px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #2d1b0e;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 18px;
  color: #7a6a5a;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* ===== RECIPE CARD ===== */
.recipe-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(200, 120, 80, 0.06);
}

.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(200, 120, 80, 0.1);
}

.recipe-card a {
  display: block;
  height: 100%;
}

.card-img {
  overflow: hidden;
  background: #f5ede4;
  aspect-ratio: 16 / 9;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .card-img img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px 26px 30px;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  padding: 2px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #2d1b0e;
}

.card-body p {
  color: #5a4a3a;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-read {
  font-weight: 600;
  color: #c0392b;
  font-size: 15px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recipe-card:hover .card-read {
  gap: 10px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #2d1b0e;
  color: #d4c5b8;
  padding: 60px 0 40px;
  margin-top: 40px;
  border-radius: 40px 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand .logo {
  color: #fff;
  font-size: 26px;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand .logo span {
  color: #e74c3c;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 340px;
  color: #b8a89a;
}

.footer-copy {
  margin-top: 24px;
  font-size: 14px;
  color: #8a7a6a;
}

.footer-nav h4,
.footer-about h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #b8a89a;
  transition: color 0.2s ease;
  font-size: 15px;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-about p {
  font-size: 15px;
  color: #b8a89a;
  line-height: 1.7;
}

/* ===== ADS (общие стили) ===== */
.ad-block {
  background: #f5ede4;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 32px 0;
  text-align: center;
  border: 1px dashed rgba(200, 120, 80, 0.15);
  color: #7a6a5a;
  font-size: 14px;
  transition: background 0.2s ease;
}

.ad-block:hover {
  background: #f0e6db;
}

.ad-block-inner {
  max-width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== ARTICLE PAGE ===== */
.article-page main {
  padding: 40px 0 60px;
}

.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.article-content {
  background: #fff;
  padding: 48px 52px;
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(200, 120, 80, 0.06);
}

.article-content h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #2d1b0e;
  margin-bottom: 20px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 36px 0 16px;
  color: #2d1b0e;
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #3d2b1e;
}

.article-content p {
  font-size: 17px;
  color: #3d2b1e;
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 24px 24px;
  color: #3d2b1e;
  font-size: 17px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content img {
  border-radius: 16px;
  margin: 28px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  height: auto;
}

.article-content .recipe-info {
  background: #faf7f2;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  border-left: 4px solid #c0392b;
}

.article-content .recipe-info span {
  display: inline-block;
  margin-right: 24px;
  font-size: 15px;
  color: #5a4a3a;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(200, 120, 80, 0.06);
}

.sidebar-widget h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #2d1b0e;
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(200, 120, 80, 0.08);
  padding-bottom: 12px;
}

.sidebar-widget li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-widget a {
  font-size: 15px;
  color: #2d1b0e;
  transition: color 0.2s ease;
  display: block;
}

.sidebar-widget a:hover {
  color: #c0392b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-content {
    padding: 28px 20px;
  }

  .article-content h1 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .card-body {
    padding: 20px 18px 24px;
  }
}