/*
Theme Name: RecallGuardian_268
Theme URI: https://airzonevariflex-recall.com
Author: Логинов Глеб
Author URI: https://airzonevariflex-recall.com
Description: Актуальные новости об отзыве опасной продукции, советы по проверке товаров и защите своих прав.
Version: 1.1
Text Domain: recallguardian268
*/

/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --rg-anthracite:#1C1F26;
  --rg-anthracite-light:#262A33;
  --rg-white:#FAFBFC;
  --rg-offwhite:#F0F1F3;
  --rg-amber:#E67E22;
  --rg-amber-hover:rgba(230,126,34,.15);
  --rg-indigo:#2C3E50;
  --rg-indigo-light:#34495E;
  --rg-danger:#C0392B;
  --rg-text-dark:#1A1D23;
  --rg-text-light:#E8E9EB;
  --rg-text-muted:#8B9098;
  --rg-border:#3A3F4A;
  --rg-border-light:#D5D8DC;
  --rg-mono:'Fira Code',monospace;
  --rg-body:'IBM Plex Sans',sans-serif;
  --rg-display:'Playfair Display',serif;
  --rg-radius:3px;
  --rg-cut:12px;
}

html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--rg-body);line-height:1.7;color:var(--rg-text-dark);background:var(--rg-white)}

img{max-width:100%;height:auto;display:block}
a{color:var(--rg-amber);text-decoration:none;transition:color .2s}
a:hover{color:var(--rg-indigo)}

h1,h2,h3,h4,h5,h6{font-family:var(--rg-display);color:var(--rg-indigo);line-height:1.25;margin-bottom:.6em}
h1{font-size:2.2rem}
h2{font-size:1.75rem}
h3{font-size:1.35rem}

p{margin-bottom:1em}

table{border-collapse:collapse;width:100%;margin-bottom:1.5em}
th,td{border:1px solid var(--rg-border-light);padding:.65em .9em;text-align:left}
th{background:var(--rg-offwhite);font-weight:600}

/* ===== UTILITY ===== */
.rg-wrap{max-width:1200px;margin:0 auto;padding:0 1.25rem}
.rg-wrap--narrow{max-width:85%;margin:0 auto}

/* ===== BUTTONS ===== */
.rg-btn{
  display:inline-block;
  padding:.75em 1.8em;
  font-family:var(--rg-body);
  font-weight:600;
  font-size:.95rem;
  border:2px solid var(--rg-amber);
  background:var(--rg-amber);
  color:#fff;
  cursor:pointer;
  transition:all .25s;
  clip-path:polygon(0 0,100% 0,100% calc(100% - var(--rg-cut)),calc(100% - var(--rg-cut)) 100%,0 100%);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.rg-btn:hover{
  background:var(--rg-amber-hover);
  color:var(--rg-amber);
  border-color:var(--rg-amber);
}
.rg-btn--outline{
  background:transparent;
  color:var(--rg-amber);
}
.rg-btn--outline:hover{
  background:var(--rg-amber);
  color:#fff;
}

/* ===== HEADER ===== */
.rg-header{
  background:var(--rg-anthracite);
  padding:0;
  position:relative;
  z-index:100;
}
.rg-header__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
}
.rg-header__brand{display:flex;align-items:center;gap:.75rem}
.rg-header__brand img,.rg-header__brand svg{height:44px;width:auto}
.rg-header__brand-text{color:var(--rg-text-light);font-family:var(--rg-display);font-size:1.15rem;font-weight:700}

.rg-header__scanner{
  display:flex;
  align-items:center;
  background:var(--rg-anthracite-light);
  border:1px solid var(--rg-border);
  border-radius:var(--rg-radius);
  overflow:hidden;
  max-width:360px;
  width:100%;
}
.rg-header__scanner input{
  flex:1;
  border:none;
  background:transparent;
  padding:.6em 1em;
  color:var(--rg-text-light);
  font-family:var(--rg-mono);
  font-size:.9rem;
  outline:none;
}
.rg-header__scanner input::placeholder{color:var(--rg-text-muted)}
.rg-header__scanner-icon{
  padding:.6em .8em;
  background:var(--rg-amber);
  color:#fff;
  display:flex;
  align-items:center;
  cursor:pointer;
  border:none;
}
.rg-header__scanner-icon svg{width:18px;height:18px}

/* NAV */
.rg-nav{background:var(--rg-indigo)}
.rg-nav__list{
  list-style:none;
  display:flex;
  gap:0;
}
.rg-nav__list li a{
  display:block;
  padding:.85em 1.5em;
  color:var(--rg-text-light);
  font-weight:500;
  font-size:.93rem;
  transition:background .2s,color .2s;
  border-bottom:3px solid transparent;
}
.rg-nav__list li a:hover,
.rg-nav__list li.current-menu-item a,
.rg-nav__list li.current_page_item a{
  background:rgba(230,126,34,.1);
  border-bottom-color:var(--rg-amber);
  color:var(--rg-amber);
}

/* Mobile toggle */
.rg-nav__toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:.5em;
}
.rg-nav__toggle span{
  display:block;
  width:26px;height:3px;
  background:var(--rg-text-light);
  margin:5px 0;
  transition:transform .3s,opacity .3s;
  border-radius:2px;
}

/* ===== BREADCRUMBS ===== */
.rg-breadcrumbs{
  padding:.9em 0;
  font-size:.85rem;
  color:var(--rg-text-muted);
  border-bottom:1px solid var(--rg-border-light);
  margin-bottom:2rem;
}
.rg-breadcrumbs a{color:var(--rg-indigo)}
.rg-breadcrumbs a:hover{color:var(--rg-amber)}
.rg-breadcrumbs__sep{margin:0 .4em;color:var(--rg-border-light)}

/* ===== HERO / FRONT SECTIONS ===== */
.rg-hero{
  background:linear-gradient(135deg,var(--rg-anthracite) 0%,var(--rg-indigo) 100%);
  color:var(--rg-text-light);
  padding:4rem 0 3.5rem;
  position:relative;
  overflow:hidden;
}
.rg-hero::after{
  content:'';
  position:absolute;
  top:-50%;right:-20%;
  width:600px;height:600px;
  background:radial-gradient(circle,rgba(230,126,34,.08) 0%,transparent 70%);
  pointer-events:none;
}
.rg-hero__inner{position:relative;z-index:2;max-width:700px}
.rg-hero h1{color:var(--rg-text-light);font-size:2.4rem;margin-bottom:.4em}
.rg-hero p{font-size:1.1rem;color:rgba(232,233,235,.8);margin-bottom:1.5em;line-height:1.8}

/* Stats bar */
.rg-stats{
  background:var(--rg-anthracite-light);
  border-top:1px solid var(--rg-border);
  border-bottom:1px solid var(--rg-border);
}
.rg-stats__inner{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  text-align:center;
}
.rg-stats__item{
  padding:1.5rem 1rem;
  border-right:1px solid var(--rg-border);
}
.rg-stats__item:last-child{border-right:none}
.rg-stats__num{
  font-family:var(--rg-mono);
  font-size:2rem;
  font-weight:700;
  color:var(--rg-amber);
  display:block;
}
.rg-stats__label{
  font-size:.82rem;
  color:var(--rg-text-muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-top:.2em;
}

/* Info blocks */
.rg-info-blocks{
  padding:3.5rem 0;
  background:var(--rg-offwhite);
}
.rg-info-blocks__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.8rem;
}
.rg-info-block{
  background:#fff;
  padding:2rem 1.5rem;
  border:1px solid var(--rg-border-light);
  border-left:4px solid var(--rg-amber);
  transition:box-shadow .25s;
}
.rg-info-block:hover{box-shadow:0 6px 24px rgba(0,0,0,.07)}
.rg-info-block__icon{
  width:48px;height:48px;
  margin-bottom:1rem;
  color:var(--rg-amber);
}
.rg-info-block h3{font-size:1.1rem;margin-bottom:.5em;color:var(--rg-indigo)}
.rg-info-block p{font-size:.92rem;color:var(--rg-text-muted);line-height:1.65}

/* ===== POSTS SECTION ===== */
.rg-section{padding:3.5rem 0}
.rg-section--dark{background:var(--rg-anthracite);color:var(--rg-text-light)}
.rg-section__heading{
  font-size:1.6rem;
  margin-bottom:.3em;
  position:relative;
  padding-bottom:.6em;
}
.rg-section__heading::after{
  content:'';
  position:absolute;
  bottom:0;left:0;
  width:60px;height:3px;
  background:var(--rg-amber);
}
.rg-section__subtext{color:var(--rg-text-muted);margin-bottom:2rem;font-size:.95rem}

/* ===== CARD (content-card) ===== */
.rg-card{
  background:#fff;
  border:1px solid var(--rg-border-light);
  overflow:hidden;
  transition:box-shadow .25s,transform .25s;
  display:flex;
  flex-direction:column;
  position:relative;
}
.rg-card:hover{
  box-shadow:0 8px 28px rgba(0,0,0,.08);
  transform:translateY(-3px);
}
.rg-card__thumb{
  width:100%;
  aspect-ratio:16/9;
  background:var(--rg-offwhite);
  overflow:hidden;
}
.rg-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.rg-card__body{padding:1.3rem 1.4rem;flex:1;display:flex;flex-direction:column}
.rg-card__meta{
  font-size:.78rem;
  color:var(--rg-text-muted);
  font-family:var(--rg-mono);
  margin-bottom:.6em;
  display:flex;
  align-items:center;
  gap:.8em;
}
.rg-card__badge{
  display:inline-block;
  padding:.15em .6em;
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  border-radius:2px;
}
.rg-card__badge--critical{background:var(--rg-danger);color:#fff}
.rg-card__badge--warning{background:var(--rg-amber);color:#fff}
.rg-card__badge--info{background:var(--rg-indigo);color:#fff}

.rg-card__title{
  font-family:var(--rg-display);
  font-size:1.1rem;
  line-height:1.35;
  margin-bottom:.5em;
}
.rg-card__title a{color:var(--rg-indigo);transition:color .2s}
.rg-card__title a:hover{color:var(--rg-amber)}

.rg-card__excerpt{
  font-size:.9rem;
  color:var(--rg-text-muted);
  line-height:1.65;
  flex:1;
}
.rg-card__excerpt a{color:var(--rg-amber);text-decoration:underline}

.rg-card__footer{
  padding-top:.8em;
  margin-top:auto;
}
.rg-card__readmore{
  font-size:.85rem;
  font-weight:600;
  color:var(--rg-amber);
  text-transform:uppercase;
  letter-spacing:.03em;
}
.rg-card__readmore:hover{color:var(--rg-indigo)}

/* CARDS GRID */
.rg-cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.8rem;
}

/* ===== TIMELINE (Blog/Archive) ===== */
.rg-timeline{position:relative;padding-left:100px}
.rg-timeline::before{
  content:'';
  position:absolute;
  left:80px;top:0;bottom:0;
  width:2px;
  background:var(--rg-border-light);
}
.rg-timeline__item{
  position:relative;
  margin-bottom:2.5rem;
}
.rg-timeline__date{
  position:absolute;
  left:-100px;
  top:.2em;
  width:72px;
  text-align:right;
  font-family:var(--rg-mono);
  font-size:.82rem;
  color:var(--rg-text-muted);
  line-height:1.3;
}
.rg-timeline__date strong{
  display:block;
  font-size:1.6rem;
  color:var(--rg-indigo);
  font-weight:700;
}
.rg-timeline__dot{
  position:absolute;
  left:-26px;top:.5em;
  width:10px;height:10px;
  background:var(--rg-amber);
  border:2px solid var(--rg-white);
  border-radius:50%;
}
.rg-timeline__content{
  background:#fff;
  border:1px solid var(--rg-border-light);
  padding:1.4rem 1.6rem;
  border-left:3px solid var(--rg-amber);
}
.rg-timeline__content h2{font-size:1.2rem;margin-bottom:.3em}
.rg-timeline__content h2 a{color:var(--rg-indigo)}
.rg-timeline__content h2 a:hover{color:var(--rg-amber)}
.rg-timeline__excerpt{font-size:.9rem;color:var(--rg-text-muted);line-height:1.65}

/* ===== LAYOUT WITH SIDEBAR ===== */
.rg-layout{
  display:flex;
  gap:3%;
  align-items:flex-start;
}
.rg-layout__main{flex:0 0 67%}
.rg-layout__sidebar{flex:0 0 27%;position:sticky;top:1.5rem}
.rg-layout--full .rg-layout__main{flex:0 0 100%;max-width:85%;margin:0 auto}

/* ===== SIDEBAR ===== */
.rg-sidebar .widget{
  background:#fff;
  border:1px solid var(--rg-border-light);
  padding:1.3rem;
  margin-bottom:1.5rem;
}
.rg-sidebar .widget-title,
.rg-sidebar .widgettitle{
  font-family:var(--rg-display);
  font-size:1rem;
  color:var(--rg-indigo);
  margin-bottom:.8em;
  padding-bottom:.5em;
  border-bottom:2px solid var(--rg-amber);
}
.rg-sidebar .widget ul{list-style:none}
.rg-sidebar .widget ul li{
  padding:.45em 0;
  border-bottom:1px solid var(--rg-offwhite);
  font-size:.9rem;
}
.rg-sidebar .widget ul li:last-child{border-bottom:none}
.rg-sidebar .widget ul li a{color:var(--rg-text-dark)}
.rg-sidebar .widget ul li a:hover{color:var(--rg-amber)}

/* ===== PAGINATION ===== */
.rg-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.4rem;
  margin:2.5rem 0;
  flex-wrap:wrap;
}
.rg-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 .6em;
  font-family:var(--rg-mono);
  font-size:.9rem;
  font-weight:600;
  border:2px solid var(--rg-border-light);
  color:var(--rg-indigo);
  background:#fff;
  transition:all .2s;
}
.rg-pagination .page-numbers:hover{
  border-color:var(--rg-amber);
  color:var(--rg-amber);
}
.rg-pagination .page-numbers.current{
  background:var(--rg-amber);
  border-color:var(--rg-amber);
  color:#fff;
}
.rg-pagination .page-numbers.dots{
  border:none;
  background:transparent;
}

/* ===== SINGLE POST ===== */
.rg-single__header{margin-bottom:2rem}
.rg-single__meta{
  font-family:var(--rg-mono);
  font-size:.82rem;
  color:var(--rg-text-muted);
  margin-bottom:.6em;
}
.rg-single__title{font-size:2rem;margin-bottom:.5em}

.rg-content p{margin-bottom:1.1em;line-height:1.8}
.rg-content h2{margin-top:2em}
.rg-content h3{margin-top:1.5em}
.rg-content ul,.rg-content ol{margin-bottom:1.1em;padding-left:1.5em}
.rg-content li{margin-bottom:.4em}
.rg-content blockquote{
  border-left:4px solid var(--rg-amber);
  padding:.8em 1.2em;
  margin:1.5em 0;
  background:var(--rg-offwhite);
  font-style:italic;
}
.rg-content img{border-radius:var(--rg-radius);margin:1.5em 0}

/* ===== COMMENTS ===== */
.rg-comments{margin-top:3rem;padding-top:2rem;border-top:2px solid var(--rg-border-light)}
.rg-comments__title{font-size:1.3rem;margin-bottom:1.5em}
.rg-comments .comment-list{list-style:none}
.rg-comments .comment{
  padding:1.2rem;
  border:1px solid var(--rg-border-light);
  margin-bottom:1rem;
  background:var(--rg-offwhite);
}
.rg-comments .comment .children{margin-left:1.5rem;margin-top:1rem}
.rg-comments .comment-author{font-weight:600;color:var(--rg-indigo)}
.rg-comments .comment-metadata{font-size:.8rem;color:var(--rg-text-muted);font-family:var(--rg-mono)}

.rg-comments .comment-respond{margin-top:2rem}
.rg-comments .comment-form label{display:block;font-weight:600;margin-bottom:.3em;font-size:.9rem}
.rg-comments .comment-form input[type="text"],
.rg-comments .comment-form input[type="email"],
.rg-comments .comment-form input[type="url"],
.rg-comments .comment-form textarea{
  width:100%;
  padding:.65em .9em;
  border:1px solid var(--rg-border-light);
  font-family:var(--rg-body);
  font-size:.95rem;
  margin-bottom:1em;
  background:#fff;
}
.rg-comments .comment-form textarea{min-height:140px;resize:vertical}
.rg-comments .comment-form input[type="submit"]{
  padding:.75em 1.8em;
  font-weight:600;
  border:2px solid var(--rg-amber);
  background:var(--rg-amber);
  color:#fff;
  cursor:pointer;
  font-size:.95rem;
  transition:all .25s;
  clip-path:polygon(0 0,100% 0,100% calc(100% - var(--rg-cut)),calc(100% - var(--rg-cut)) 100%,0 100%);
}

/* ===== SEARCH FORM ===== */
.rg-searchform{display:flex;gap:0}
.rg-searchform input[type="search"]{
  flex:1;
  padding:.65em 1em;
  border:2px solid var(--rg-border-light);
  border-right:none;
  font-family:var(--rg-body);
  font-size:.95rem;
}
.rg-searchform button{
  padding:.65em 1.2em;
  background:var(--rg-amber);
  color:#fff;
  border:2px solid var(--rg-amber);
  cursor:pointer;
  font-weight:600;
  transition:background .2s;
}
.rg-searchform button:hover{background:var(--rg-indigo);border-color:var(--rg-indigo)}

/* ===== FOOTER ===== */
.rg-footer{
  background:var(--rg-anthracite);
  color:var(--rg-text-light);
  padding:3rem 0 0;
}
.rg-footer a{color:var(--rg-amber)}
.rg-footer a:hover{color:var(--rg-text-light)}
.rg-footer__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
.rg-footer .widget{margin-bottom:1.5rem}
.rg-footer .widget-title,
.rg-footer .widgettitle{
  font-family:var(--rg-display);
  font-size:1rem;
  color:var(--rg-text-light);
  margin-bottom:.8em;
  padding-bottom:.5em;
  border-bottom:2px solid var(--rg-amber);
}
.rg-footer .widget p{font-size:.9rem;color:rgba(232,233,235,.7);line-height:1.7}
.rg-footer .widget ul{list-style:none}
.rg-footer .widget ul li{
  padding:.35em 0;
  border-bottom:1px solid var(--rg-border);
  font-size:.88rem;
}
.rg-footer .widget ul li:last-child{border-bottom:none}
.rg-footer .widget ul li a{color:rgba(232,233,235,.7)}
.rg-footer .widget ul li a:hover{color:var(--rg-amber)}

.rg-footer__stamp{
  text-align:center;
  padding:2.5rem 0 1.5rem;
  position:relative;
}
.rg-footer__stamp-badge{
  display:inline-block;
  width:90px;height:90px;
  border:3px solid var(--rg-amber);
  border-radius:50%;
  position:relative;
  margin-bottom:.8rem;
  opacity:.6;
}
.rg-footer__stamp-badge::before{
  content:'✓';
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  font-size:2.2rem;
  color:var(--rg-amber);
  font-weight:700;
}
.rg-footer__stamp-badge::after{
  content:'ПРОВЕРЕНО';
  position:absolute;
  bottom:-2px;left:50%;
  transform:translateX(-50%);
  font-size:.55rem;
  font-family:var(--rg-mono);
  color:var(--rg-amber);
  letter-spacing:.12em;
  white-space:nowrap;
}

.rg-footer__bottom{
  border-top:1px solid var(--rg-border);
  padding:1.2rem 0;
  text-align:center;
  font-size:.82rem;
  color:var(--rg-text-muted);
}

/* ===== COOKIE NOTICE ===== */
.rg-cookie{
  position:fixed;
  bottom:0;left:0;right:0;
  background:var(--rg-anthracite);
  color:var(--rg-text-light);
  padding:1.2rem;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.5rem;
  border-top:2px solid var(--rg-amber);
  font-size:.9rem;
}
.rg-cookie p{margin:0;max-width:700px}
.rg-cookie__accept{
  padding:.55em 1.5em;
  background:var(--rg-amber);
  color:#fff;
  border:none;
  font-weight:600;
  cursor:pointer;
  font-size:.88rem;
  white-space:nowrap;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
}

/* ===== 404 ===== */
.rg-404{text-align:center;padding:4rem 0}
.rg-404__code{
  font-family:var(--rg-mono);
  font-size:6rem;
  font-weight:700;
  color:var(--rg-amber);
  line-height:1;
  margin-bottom:.2em;
}
.rg-404 p{color:var(--rg-text-muted);margin-bottom:1.5em;font-size:1.05rem}

/* ===== RESPONSIVE ===== */
@media(max-width:960px){
  .rg-header__scanner{display:none}
  .rg-info-blocks__grid{grid-template-columns:1fr 1fr}
  .rg-cards-grid{grid-template-columns:1fr 1fr}
  .rg-stats__inner{grid-template-columns:repeat(3,1fr)}
  .rg-layout{flex-direction:column}
  .rg-layout__main,.rg-layout__sidebar{flex:0 0 100%}
  .rg-layout__sidebar{position:static;margin-top:2rem}
  .rg-footer__grid{grid-template-columns:1fr 1fr}
  .rg-timeline{padding-left:80px}
  .rg-timeline::before{left:60px}
  .rg-timeline__date{left:-80px;width:55px}
  .rg-timeline__dot{left:-25px}
}

@media(max-width:600px){
  html{font-size:15px}
  .rg-hero{padding:2.5rem 0 2rem}
  .rg-hero h1{font-size:1.7rem}
  .rg-info-blocks__grid{grid-template-columns:1fr}
  .rg-cards-grid{grid-template-columns:1fr}
  .rg-stats__inner{grid-template-columns:1fr}
  .rg-stats__item{border-right:none;border-bottom:1px solid var(--rg-border);padding:1rem}
  .rg-stats__item:last-child{border-bottom:none}
  .rg-nav__list{display:none;flex-direction:column;background:var(--rg-indigo)}
  .rg-nav__list.is-active{display:flex}
  .rg-nav__toggle{display:block}
  .rg-nav .rg-wrap{display:flex;justify-content:flex-end;padding:.5rem 1.25rem}
  .rg-nav__list li a{padding:.7em 1.2em;border-bottom:1px solid rgba(255,255,255,.08)}
  .rg-footer__grid{grid-template-columns:1fr}
  .rg-cookie{flex-direction:column;gap:.8rem;text-align:center}
  .rg-timeline{padding-left:0}
  .rg-timeline::before{display:none}
  .rg-timeline__date{position:static;width:auto;text-align:left;margin-bottom:.5em;display:flex;gap:.5em;align-items:baseline}
  .rg-timeline__date strong{font-size:1.2rem}
  .rg-timeline__dot{display:none}
  .rg-layout--full .rg-layout__main{max-width:100%}
  .rg-wrap--narrow{max-width:100%}
  h1{font-size:1.7rem}
  h2{font-size:1.4rem}
}
