/* eatlovewithlove.com — современный слой поверх архивной темы (подключается последним) */

:root{
  --bg:#171B22;
  --panel:#232832;
  --panel-2:#1E232C;
  --light:#F5F7FA;
  --light-2:#E9EDF3;
  --ink:#E9EDF3;
  --ink-dark:#1B2029;
  --muted:#A7B0BE;
  --muted-dark:#5C6573;
  --line:rgba(255,255,255,.09);
  --line-light:rgba(27,32,41,.12);
  --gold:#F5B51B;
  --radius:12px;
  --wrap:1180px;
}

/* ---------- база ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body{background:var(--bg)!important}
body{
  color:var(--ink)!important;
  font:400 17px/1.6 -apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;
  padding-top:0;
  -webkit-font-smoothing:antialiased;
}
body *{font-weight:400}
.wrap{width:auto!important;max-width:var(--wrap)!important;margin:0 auto;padding:0 20px;float:none!important}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}

/* ---------- шапка ---------- */
header{
  position:sticky!important;top:0;left:0;right:0;z-index:1000;padding:0!important;
  background:rgba(23,27,34,.94);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  height:66px;display:flex;align-items:center;
}
header .wrap{width:100%}
.header_list{display:flex;align-items:center;gap:18px;height:66px;flex-wrap:nowrap}
.logo img{height:26px;width:auto;display:block}
.main_nav{margin-left:auto;min-width:0}
.main_nav ul{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0;flex-wrap:nowrap}
.main_nav li{margin:0}
.main_nav a{
  display:block;padding:8px 11px;border-radius:8px;
  color:var(--muted)!important;font-size:14.5px;line-height:1.2;white-space:nowrap;
  text-decoration:none!important;
}
.main_nav a:hover{color:#fff!important;background:rgba(255,255,255,.06)}
.main_nav li.active a{color:#fff!important;background:rgba(245,181,27,.14);box-shadow:inset 0 -2px 0 var(--gold)}
.header_buts{display:flex;align-items:center;gap:8px;margin-left:10px}
.header_but{
  display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 16px;
  border-radius:9px;font-size:14.5px!important;font-weight:600!important;text-decoration:none!important;
  white-space:nowrap;
}
.but_login{color:#fff!important;background:transparent!important;border:1px solid rgba(255,255,255,.22)}
.but_login:hover{background:rgba(255,255,255,.08)}
.but_reg{background:var(--gold)!important;color:#1B2029!important}
.but_reg:hover{background:#ffc53d}
.adapt_menu{display:none;margin-left:auto;cursor:pointer;padding:10px}
.adapt_menu span{display:block;width:22px;height:2px;background:#fff;margin:4px 0;border-radius:2px;transition:.2s}
body.menu-open .adapt_menu span:nth-child(1){transform:translateY(6px) rotate(45deg)}
body.menu-open .adapt_menu span:nth-child(2){opacity:0}
body.menu-open .adapt_menu span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ---------- hero ---------- */
.top_block{
  background:linear-gradient(160deg,#232832 0%,#171B22 70%)!important;
  border-bottom:1px solid var(--line);
  padding:0!important;margin:0!important;height:auto!important;min-height:0!important;
}
.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:36px;
  align-items:center;padding:44px 0 40px}
.hero_badge{display:inline-block;font-size:12.5px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--gold);background:rgba(245,181,27,.12);border:1px solid rgba(245,181,27,.28);
  border-radius:999px;padding:5px 12px;margin:0 0 16px}
.hero h1{margin:0 0 14px;font-size:clamp(30px,3vw,38px);line-height:1.18;color:#fff;font-weight:700!important}
.hero p{margin:0 0 22px;color:var(--muted);font-size:16.5px;max-width:54ch}
.hero_actions{display:flex;gap:10px;flex-wrap:wrap}
.hero_actions a{
  display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:10px;
  font-size:15px!important;font-weight:600!important;text-decoration:none!important;
  background:var(--gold);color:#1B2029!important;border:1px solid var(--gold);
}
.hero_actions a.ghost{background:transparent;color:#fff!important;border-color:rgba(255,255,255,.22)}
.hero_actions a:hover{filter:brightness(1.06)}
.hero_media img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:14px;
  border:1px solid var(--line);display:block}

/* ---------- светлые информационные блоки ---------- */
.info_band{background:var(--light);color:var(--ink-dark);padding:44px 0 46px}
.info_band h2{color:var(--ink-dark);font-size:26px;font-weight:700!important;margin:0 0 8px}
.info_band .sub{color:var(--muted-dark);font-size:15.5px;margin:0 0 24px}
.info_grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.info_card{background:#fff;border:1px solid var(--line-light);border-radius:var(--radius);padding:18px 20px}
.info_card b{display:block;font-size:15px;color:var(--ink-dark);font-weight:700!important;margin:0 0 6px}
.info_card span{color:var(--muted-dark);font-size:14.5px;line-height:1.55}

/* ---------- навигация по темам ---------- */
.topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 8px}
.topic{
  display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:var(--radius);
  background:var(--panel);border:1px solid var(--line);text-decoration:none!important;
  transition:border-color .15s,transform .15s;
}
.topic:hover{border-color:rgba(245,181,27,.45);transform:translateY(-2px)}
.topic b{color:#fff;font-size:15.5px;font-weight:600!important}
.topic span{color:var(--muted);font-size:13.5px;line-height:1.45}

/* ---------- секции и карточки ---------- */
.section_title{font-size:26px;font-weight:700!important;color:#fff;margin:38px 0 6px;
  padding:0;border:0;text-transform:none;letter-spacing:0}
.section_title + p{color:var(--muted);font-size:15.5px;margin:0 0 20px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;grid-auto-rows:1fr}
.card{
  width:100%!important;max-width:none!important;margin:0!important;float:none!important;
  display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;text-decoration:none!important;
  transition:border-color .15s,transform .15s;
}
.card:hover{border-color:rgba(245,181,27,.4);transform:translateY(-2px)}
.card_img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;margin:0}
.card_body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
.card_body h3{margin:0 0 8px;font-size:19px;line-height:1.3;font-weight:700!important;color:#fff}
.card_body p{margin:0 0 14px;color:var(--muted);font-size:14.5px;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card_more{margin-top:auto;color:var(--gold);font-size:14px;font-weight:600!important}

.main_but_a{
  display:inline-flex;align-items:center;height:42px;padding:0 20px;border-radius:10px;
  background:var(--gold);color:#1B2029!important;font-size:15px!important;font-weight:600!important;
  text-decoration:none!important;
}

/* ---------- статья ---------- */
.content{padding:0 0 40px}
.breadcrumbs{font-size:13px;color:var(--muted);margin:18px 0 14px}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--gold)}
.entry{max-width:820px;margin:0 auto}
.main_zag{font-size:clamp(30px,3vw,36px);line-height:1.22;font-weight:700!important;color:#fff;margin:0 0 18px}
.cover{margin:0 0 24px}
.cover img{width:100%;max-height:400px;object-fit:cover;border-radius:14px;border:1px solid var(--line);display:block}
.entry p{color:#D5DBE5;font-size:17px;line-height:1.65;margin:0 0 18px;font-weight:400!important}
.entry h2{font-size:26px;line-height:1.3;font-weight:700!important;color:#fff;margin:34px 0 14px}
.entry h3{font-size:21px;line-height:1.35;font-weight:700!important;color:#fff;margin:26px 0 10px}
.entry ul,.entry ol{margin:0 0 20px;padding-left:22px;color:#D5DBE5}
.entry li{margin:0 0 8px;font-size:17px;line-height:1.6}
.entry ul li::marker{color:var(--gold)}
.entry ol li::marker{color:var(--gold);font-weight:700}
.entry b,.entry strong{font-weight:600!important;color:#fff}
.entry a{color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(245,181,27,.35)}
.entry blockquote{margin:0 0 20px;padding:16px 18px;background:var(--panel);border-left:3px solid var(--gold);
  border-radius:10px;color:#D5DBE5;font-size:16px}
.body_img{margin:26px 0}
.body_img img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;border:1px solid var(--line);display:block}

/* таблицы */
.entry table{width:100%;border-collapse:collapse;margin:0 0 22px;font-size:15px;
  background:var(--panel-2);border-radius:10px;overflow:hidden;display:table}
.entry table th{background:var(--panel);color:#fff;font-weight:600!important;text-align:left;
  padding:12px 14px;border-bottom:1px solid var(--line)}
.entry table td{padding:12px 14px;border-bottom:1px solid var(--line);color:#D5DBE5;vertical-align:top}
.entry table tr:last-child td{border-bottom:0}
.table_scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 22px}
.table_scroll table{margin:0;min-width:520px}

/* плашки */
.notice{
  background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--gold);
  border-radius:10px;padding:14px 16px;margin:0 0 24px;color:var(--muted);font-size:14.5px;line-height:1.6;
}
.notice b{color:#fff;font-weight:600!important}
.notice.rg_box{margin:26px 0 0;font-size:13.5px;color:var(--muted)}

/* FAQ */
.faq_block{margin:40px 0 0}
.faq_b{border:1px solid var(--line);border-radius:12px;margin:0 0 10px;background:var(--panel);overflow:hidden}
.faq_b_title{padding:15px 18px;font-size:16px;font-weight:600!important;color:#fff;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq_b_title::after{content:"+";color:var(--gold);font-size:20px;line-height:1}
.faq_b.open .faq_b_title::after{content:"–"}
.faq_b_text{padding:0 18px 16px;color:var(--muted);font-size:15px;line-height:1.6;display:none}
.faq_b.open .faq_b_text{display:block}
.faq_b_text p{margin:0 0 10px}

/* связанные */
.related{margin:34px 0 0;padding-top:26px;border-top:1px solid var(--line)}
.related h2{font-size:22px;font-weight:700!important;color:#fff;margin:0 0 16px}

/* ---------- футер ---------- */
footer{
  background:#12161C!important;border-top:1px solid var(--line);
  padding:28px 0 22px;margin:0;color:var(--muted);
}
.footer_list{display:none!important}
.fimg{display:none!important}
footer .wrap{display:block}
.nav_bot ul{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:0 0 16px;padding:0}
.nav_bot a{color:var(--muted)!important;font-size:14px;text-decoration:none!important}
.nav_bot a:hover{color:#fff!important}
.copy{font-size:13px;color:#6F7887;border-top:1px solid var(--line);padding-top:14px;
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.copy .age18{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  border-radius:50%;border:1.5px solid var(--gold);color:var(--gold);font-size:12.5px;font-weight:700!important}
.go_slow{display:none}

/* ---------- адаптив ---------- */
@media (max-width:1100px){
  .topics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:980px){
  header{height:60px}
  .header_list{height:60px;gap:12px}
  .adapt_menu{display:block;order:3}
  .header_buts{order:2;margin-left:auto}
  .main_nav{
    position:fixed;top:60px;left:0;right:0;bottom:0;background:#12161C;max-width:100vw;
    border-top:1px solid var(--line);padding:10px 16px 24px;overflow-y:auto;
    display:none;z-index:999;
  }
  body.menu-open .main_nav{display:block}
  .main_nav ul{flex-direction:column;align-items:stretch;gap:2px}
  .main_nav a{padding:13px 12px;font-size:16px;border-radius:10px}
  .hero{grid-template-columns:1fr;gap:24px;padding:28px 0 30px}
  .hero_media{order:-1}
  .hero_media img{aspect-ratio:16/9}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .info_grid{grid-template-columns:1fr}
  .entry{max-width:none}
}
@media (max-width:640px){
  .cards{grid-template-columns:1fr}
  .topics{grid-template-columns:1fr}
  .hero h1{font-size:27px}
  .cover img{max-height:240px}
  .entry p,.entry li{font-size:16px}
  .entry h2{font-size:23px}
  .entry h3{font-size:19px}
  .header_but{height:34px;padding:0 12px;font-size:13.5px!important}
  .logo img{height:22px}
}


/* FAQ: убираем фоновую панель темы и лишнюю иконку */
.faq_block{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:38px 0 0!important}
.faq_b_title::before{content:none!important;display:none!important}
.faq_b_title::after{content:"+"!important;position:static!important;background:none!important;
  width:auto!important;height:auto!important;border:0!important;color:var(--gold)!important;
  font-size:20px!important;line-height:1!important;transform:none!important}
.faq_b.open .faq_b_title::after{content:"–"!important}

/* мобильная шапка: одна кнопка + бургер, без наложений */
@media (max-width:980px){
  header{height:60px!important;overflow:visible;backdrop-filter:none!important;background:#12161C!important}
  .header_list{height:60px;align-items:center;gap:8px;flex-wrap:nowrap}
  .header_buts{margin-left:auto;gap:6px;flex-wrap:nowrap}
  .but_login{display:none!important}
  .header_but{height:34px!important;padding:0 13px!important;font-size:13.5px!important;border-radius:8px}
  .logo img{height:22px!important}
  .adapt_menu{margin-left:2px!important;padding:8px!important;order:4}
  .main_nav{top:60px}
}

/* таблицы: тема даёт светлую шапку — перекрываем */
.entry table th,.entry table td{background-image:none!important}
.entry table th{
  background:var(--panel)!important;color:#fff!important;font-weight:600!important;
  border-bottom:1px solid var(--line)!important;padding:12px 14px!important;text-align:left;
}
.entry table td{background:var(--panel-2)!important;color:#D5DBE5!important}
.entry table tr:nth-child(even) td{background:#1B2029!important}

/* ---------- выравнивание: единый контейнер и вертикальный cat_head ---------- */
.wrap{max-width:1200px!important;padding-left:24px!important;padding-right:24px!important;
  margin-left:auto!important;margin-right:auto!important;width:auto!important}
.wrap .wrap{padding-left:0!important;padding-right:0!important;max-width:none!important;margin:0!important}

/* H1 и описание категории — друг под другом */
.cat_head{display:block!important;flex-direction:column!important;align-items:flex-start!important;
  grid-template-columns:none!important;gap:0!important;margin:0 0 8px!important}
.cat_head h1,.cat_head .main_zag{margin:0 0 14px!important}
.cat_head p{margin:0 0 22px!important;max-width:900px;color:var(--muted);font-size:16px;line-height:1.6}

/* вводный текст — по линии H1 */
.entry,.main_text,.main_text.entry,.cat_head + .entry{
  max-width:900px!important;margin-left:0!important;margin-right:0!important;
  padding-left:0!important;padding-right:0!important;float:none!important;
}
.entry > *,.main_text > *{margin-left:0!important;margin-right:0!important}
.entry p,.main_text p{max-width:none!important}

/* вертикальные интервалы */
.breadcrumbs{margin:18px 0 12px!important}
.cat_head + .main_text,.cat_head + .entry{margin-top:0!important;margin-bottom:22px!important}
.cards{margin:0 0 8px!important;padding:0!important}
.content > .wrap > hr, .wrap > hr{display:none!important}
.cat_head::after{content:none!important}
.article-grid{max-width:1200px;margin:0 auto}
.article-in{max-width:none!important;margin:0!important}
@media (max-width:980px){
  .article-grid{grid-template-columns:1fr!important}
  .cat_head p{max-width:none}
}

/* ---------- FAQ компактнее: снимаем padding темы, уменьшаем интервалы ---------- */
.faq_block{margin:30px 0 0!important}
.faq_b{padding:0!important;margin:0 0 8px!important;border-radius:10px!important}
.faq_b_title{padding:11px 14px!important;font-size:15px!important;line-height:1.4!important;gap:10px}
.faq_b_title::after{font-size:18px!important}
.faq_b_text{padding:0 14px 12px!important;font-size:14.5px!important;line-height:1.55!important}
.faq_b_text p{margin:0 0 8px!important}
.faq_b_text p:last-child{margin-bottom:0!important}
@media (max-width:640px){
  .faq_b_title{padding:10px 12px!important;font-size:14.5px!important}
  .faq_b_text{padding:0 12px 10px!important;font-size:14px!important}
}

/* убираем лишнюю разделительную линию под описанием категории */
.cat_head{border-bottom:0!important;padding-bottom:0!important}
