/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,700;1,6..72,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --x-white: #ffffff;
  --x-bg: #F6F5F0;
  --x-bg2: #EEEDEA;
  --x-yellow: #FFE500;
  --x-yellow-soft: #FFF9CC;
  --x-yellow-dark: #D4BF00;
  --x-dark: #1A1A1A;
  --x-text: #2A2A2A;
  --x-muted: #7A7A72;
  --x-border: #E0DFD8;
  --x-font-head: 'Newsreader', Georgia, serif;
  --x-font-body: 'Outfit', system-ui, sans-serif;
  --x-radius: 6px;
  --x-shadow: 0 2px 20px rgba(0,0,0,0.06);
  --x-max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--x-font-body); background: var(--x-bg); color: var(--x-text); line-height: 1.72; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
mark { background: var(--x-yellow); color: var(--x-dark); padding: 2px 6px; border-radius: 3px; font-weight: 500; }

/* HEADER */
.xh { background: var(--x-white); border-bottom: 3px solid var(--x-dark); position: sticky; top: 0; z-index: 200; }
.xh-in { max-width: var(--x-max); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.xh-logo { font-family: var(--x-font-head); font-size: 1.9rem; font-weight: 700; color: var(--x-dark); letter-spacing: -0.03em; }
.xh-logo i { font-style: normal; background: var(--x-yellow); padding: 0 4px; }
.xh-nav { display: flex; gap: 6px; list-style: none; }
.xh-nav a { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--x-muted); padding: 6px 14px; border-radius: 50px; transition: all .25s; }
.xh-nav a:hover, .xh-nav a.xa { background: var(--x-yellow); color: var(--x-dark); }
.xh-burger { display: none; cursor: pointer; background: none; border: none; padding: 8px; flex-direction: column; gap: 5px; }
.xh-burger span { width: 24px; height: 2px; background: var(--x-dark); border-radius: 2px; }
.xh-mob { display: none; background: var(--x-white); border-top: 1px solid var(--x-border); padding: 12px 20px; }
.xh-mob.open { display: block; }
.xh-mob a { display: block; padding: 10px 0; font-weight: 600; font-size: .9rem; color: var(--x-dark); border-bottom: 1px solid var(--x-bg); }

/* HERO */
.xhero { background: var(--x-white); border-bottom: 2px solid var(--x-border); padding: 56px 20px 44px; }
.xhero-in { max-width: 760px; margin: 0 auto; }
.xhero-tag { display: inline-block; background: var(--x-yellow); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 14px; margin-bottom: 18px; }
.xhero h1 { font-family: var(--x-font-head); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; color: var(--x-dark); line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.xhero-lead { font-size: 1.1rem; color: var(--x-muted); line-height: 1.8; max-width: 620px; }
.xhero-meta { margin-top: 22px; font-size: .8rem; color: var(--x-muted); display: flex; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--x-border); }
.xhero-meta strong { color: var(--x-dark); }

/* MAIN GRID — sidebar LEFT */
.xgrid { max-width: var(--x-max); margin: 0 auto; padding: 40px 20px 60px; display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }

/* SIDEBAR */
.xside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }
.xside-box { background: var(--x-white); border: 1px solid var(--x-border); border-radius: var(--x-radius); padding: 22px 18px; }
.xside-box h3 { font-family: var(--x-font-head); font-size: 1rem; color: var(--x-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--x-yellow); }
.xside-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--x-bg); font-size: .88rem; font-weight: 500; color: var(--x-text); transition: color .2s; }
.xside-link:last-child { border-bottom: none; }
.xside-link:hover { color: var(--x-yellow-dark); }
.xside-link span { display: block; font-size: .72rem; color: var(--x-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
.xside-quote { background: var(--x-dark); color: #ddd; padding: 22px 18px; border-radius: var(--x-radius); font-family: var(--x-font-head); font-style: italic; font-size: .95rem; line-height: 1.6; }
.xside-quote footer { font-style: normal; font-size: .75rem; color: #888; margin-top: 10px; }
.xside-yellow { background: var(--x-yellow); border-radius: var(--x-radius); padding: 20px 18px; }
.xside-yellow h4 { font-family: var(--x-font-head); font-size: .95rem; margin-bottom: 8px; }
.xside-yellow p { font-size: .84rem; color: var(--x-dark); line-height: 1.55; }
.xside-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.xside-tag { font-size: .75rem; background: var(--x-bg); padding: 4px 12px; border-radius: 50px; color: var(--x-muted); transition: all .2s; cursor: default; }
.xside-tag:hover { background: var(--x-yellow); color: var(--x-dark); }

/* ARTICLE CONTENT */
.xart h2 { font-family: var(--x-font-head); font-size: 1.55rem; color: var(--x-dark); margin: 36px 0 14px; line-height: 1.25; }
.xart h2::before { content: ''; display: inline-block; width: 20px; height: 3px; background: var(--x-yellow); margin-right: 10px; vertical-align: middle; }
.xart p { margin-bottom: 16px; font-size: 1.02rem; color: var(--x-text); }
.xart-img { margin: 28px 0; border-radius: var(--x-radius); overflow: hidden; box-shadow: var(--x-shadow); }
.xart-img img { width: 100%; height: 300px; object-fit: cover; }
.xart-img figcaption { background: var(--x-white); padding: 10px 16px; font-size: .78rem; color: var(--x-muted); font-style: italic; }

/* HIGHLIGHT BOX */
.xhl { background: var(--x-dark); color: #fff; padding: 28px 28px; border-radius: var(--x-radius); margin: 30px 0; position: relative; overflow: hidden; }
.xhl::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--x-yellow); }
.xhl h3 { font-family: var(--x-font-head); font-size: 1.1rem; margin-bottom: 10px; color: var(--x-yellow); }
.xhl p { color: #ccc; font-size: .94rem; line-height: 1.65; margin-bottom: 0; }
.xhl ul { margin: 12px 0 0 18px; }
.xhl li { color: #ccc; font-size: .92rem; margin-bottom: 6px; }

/* QUOTE BLOCK */
.xquote { border-left: 4px solid var(--x-yellow); padding: 20px 24px; background: var(--x-yellow-soft); margin: 28px 0; border-radius: 0 var(--x-radius) var(--x-radius) 0; }
.xquote p { font-family: var(--x-font-head); font-style: italic; font-size: 1.08rem; color: var(--x-dark); margin-bottom: 6px; }
.xquote cite { font-size: .78rem; color: var(--x-muted); font-style: normal; }

/* CARDS GRID */
.xcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.xcard { background: var(--x-white); border: 1px solid var(--x-border); border-radius: var(--x-radius); padding: 22px 20px; transition: transform .25s, box-shadow .25s; }
.xcard:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.xcard-icon { font-size: 1.6rem; margin-bottom: 8px; }
.xcard h4 { font-family: var(--x-font-head); font-size: .98rem; color: var(--x-dark); margin-bottom: 8px; }
.xcard p { font-size: .85rem; color: var(--x-muted); line-height: 1.55; }

/* TIPS LIST */
.xtips { background: var(--x-white); border: 1px solid var(--x-border); border-radius: var(--x-radius); padding: 24px; margin: 28px 0; }
.xtips h3 { font-family: var(--x-font-head); font-size: 1.15rem; margin-bottom: 16px; color: var(--x-dark); }
.xtip-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--x-bg); align-items: flex-start; }
.xtip-item:last-child { border-bottom: none; }
.xtip-num { font-family: var(--x-font-head); font-size: 1.6rem; font-weight: 700; color: var(--x-yellow); line-height: 1; flex-shrink: 0; width: 32px; }
.xtip-item h4 { font-size: .92rem; font-weight: 600; color: var(--x-dark); margin-bottom: 4px; }
.xtip-item p { font-size: .84rem; color: var(--x-muted); line-height: 1.5; }

/* NEWSLETTER */
.xnl { background: var(--x-yellow); border-radius: var(--x-radius); padding: 32px 28px; margin: 32px 0; text-align: center; }
.xnl h3 { font-family: var(--x-font-head); font-size: 1.3rem; margin-bottom: 8px; color: var(--x-dark); }
.xnl p { font-size: .88rem; color: var(--x-dark); opacity: .75; margin-bottom: 16px; }
.xnl-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.xnl-form input { flex: 1; padding: 10px 16px; border: 2px solid var(--x-dark); border-radius: 50px; font-family: var(--x-font-body); font-size: .88rem; background: var(--x-white); outline: none; }
.xnl-form button { padding: 10px 24px; background: var(--x-dark); color: var(--x-yellow); border: none; border-radius: 50px; font-family: var(--x-font-body); font-weight: 700; font-size: .85rem; cursor: pointer; transition: opacity .2s; white-space: nowrap; }
.xnl-form button:hover { opacity: .85; }

/* CONCLUSION */
.xconc { background: var(--x-yellow-soft); border-left: 5px solid var(--x-yellow); border-radius: 0 var(--x-radius) var(--x-radius) 0; padding: 28px 28px; margin: 32px 0; }
.xconc h3 { font-family: var(--x-font-head); font-size: 1.25rem; color: var(--x-dark); margin-bottom: 12px; }
.xconc p { font-size: .95rem; color: var(--x-text); margin-bottom: 10px; }

/* FOOTER */
.xf { background: var(--x-dark); color: #999; padding: 44px 20px 20px; }
.xf-in { max-width: var(--x-max); margin: 0 auto; }
.xf-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.xf-brand .xh-logo { color: #fff; font-size: 1.6rem; }
.xf-brand p { font-size: .84rem; margin-top: 10px; line-height: 1.65; max-width: 280px; }
.xf h5 { color: #fff; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.xf a { display: block; font-size: .84rem; color: #777; margin-bottom: 8px; transition: color .2s; }
.xf a:hover { color: var(--x-yellow); }
.xf-disc { font-size: .78rem; color: #666; line-height: 1.6; margin-bottom: 20px; padding: 16px 0; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.xf-bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .78rem; }
.xf-legal { display: flex; gap: 18px; }
.xf-legal a { display: inline; margin-bottom: 0; }

/* COOKIE BANNER — CSS only */
.xcb-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
#xcb-toggle { display: none; }
#xcb-toggle:not(:checked) ~ .xcb { display: flex; }
#xcb-toggle:checked ~ .xcb { display: none; }
.xcb { background: var(--x-dark); color: #ccc; padding: 18px 22px; border-radius: var(--x-radius); max-width: 380px; flex-direction: column; gap: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); font-size: .84rem; line-height: 1.55; }
.xcb-btns { display: flex; gap: 8px; }
.xcb-accept { padding: 8px 20px; background: var(--x-yellow); color: var(--x-dark); border: none; border-radius: 50px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: var(--x-font-body); }
.xcb-reject { padding: 8px 20px; background: transparent; color: #999; border: 1px solid #555; border-radius: 50px; font-weight: 600; font-size: .82rem; cursor: pointer; font-family: var(--x-font-body); }
.xcb a { color: var(--x-yellow); text-decoration: underline; }

/* LEGAL PAGES */
.xlegal { max-width: 760px; margin: 0 auto; padding: 48px 20px 60px; }
.xlegal h1 { font-family: var(--x-font-head); font-size: 2rem; color: var(--x-dark); margin-bottom: 24px; }
.xlegal h2 { font-family: var(--x-font-head); font-size: 1.2rem; color: var(--x-dark); margin: 28px 0 10px; }
.xlegal p { font-size: .95rem; color: var(--x-text); margin-bottom: 12px; }
.xlegal ul { margin: 0 0 16px 20px; }
.xlegal li { font-size: .92rem; margin-bottom: 6px; color: var(--x-text); }

/* SUCCESS / 404 */
.xmsg { max-width: 600px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.xmsg h1 { font-family: var(--x-font-head); font-size: 2.4rem; color: var(--x-dark); margin-bottom: 16px; }
.xmsg p { font-size: 1.05rem; color: var(--x-muted); margin-bottom: 24px; }
.xmsg-btn { display: inline-block; padding: 12px 32px; background: var(--x-yellow); color: var(--x-dark); font-weight: 700; border-radius: 50px; font-size: .92rem; transition: opacity .2s; }
.xmsg-btn:hover { opacity: .8; }
.xmsg-links { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.xmsg-links a { font-size: .9rem; color: var(--x-muted); transition: color .2s; }
.xmsg-links a:hover { color: var(--x-yellow-dark); }

/* ARTICLE PAGE LAYOUT */
.xart-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.xart-page-head { margin-bottom: 28px; }
.xart-page-head .xhero-tag { margin-bottom: 14px; }
.xart-page-head h1 { font-family: var(--x-font-head); font-size: 2rem; color: var(--x-dark); line-height: 1.2; margin-bottom: 14px; }
.xart-page-head .xhero-meta { margin-top: 14px; }

/* ANIMATIONS */
@keyframes xfade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.xan { animation: xfade .5s ease forwards; }
.xan2 { animation: xfade .5s .12s ease both; }
.xan3 { animation: xfade .5s .24s ease both; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .xgrid { grid-template-columns: 1fr; }
  .xside { position: static; order: 2; }
  .xart { order: 1; }
  .xf-top { grid-template-columns: 1fr; gap: 24px; }
  .xcards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .xh-nav { display: none; }
  .xh-burger { display: flex; }
  .xhero { padding: 36px 16px 28px; }
  .xhero h1 { font-size: 1.7rem; }
  .xgrid { padding: 24px 16px 40px; }
  .xnl-form { flex-direction: column; }
  .xf-bot { flex-direction: column; align-items: flex-start; }
  .xcb { max-width: calc(100vw - 40px); }
}
