/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #ffffff;
  --text: #111111;
  --accent: #e63946;
  --light: #f1faee;
  --mid: #f5f5f5;
  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'DM Sans', Helvetica, sans-serif;
  --trans: 0.3s ease;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #ececec; }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { font-family: var(--font-d); font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; }
.site-logo span { color: var(--accent); }
.nav-list { list-style: none; display: flex; gap: 2.2rem; }
.nav-list a { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.13em; position: relative; padding-bottom: 3px; transition: color var(--trans); }
.nav-list a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width var(--trans); }
.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after { width: 100%; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--trans); }

/* HERO */
.hero { position: relative; height: 92vh; min-height: 580px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 9s ease; }
.hero:hover .hero-img { transform: scale(1.04); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,0.80) 0%, rgba(17,17,17,0.25) 55%, transparent 100%); }
.hero-content { position: relative; z-index: 2; padding: 3rem 2rem 4rem; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; padding: 0.28rem 0.75rem; margin-bottom: 1rem; }
.hero-title { font-family: var(--font-d); font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 900; color: #fff; line-height: 1.03; max-width: 820px; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 560px; margin-bottom: 1.75rem; line-height: 1.6; }
.hero-cta { display: inline-block; border: 1px solid rgba(255,255,255,0.8); color: #fff; padding: 0.78rem 2.2rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; transition: all var(--trans); min-height: 44px; line-height: 1.5; }
.hero-cta:hover { background: var(--accent); border-color: var(--accent); }

/* COMMON SECTION */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-d); font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.12; margin-bottom: 2.5rem; }

/* FEATURED */
.featured { background: var(--light); }
.featured-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 5rem 1.5rem; }
.featured-tag { display: inline-block; background: var(--text); color: #fff; font-size: 0.68rem; padding: 0.22rem 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.featured-title { font-family: var(--font-d); font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.13; margin-bottom: 1rem; }
.featured-excerpt { font-size: 1.02rem; color: #444; margin-bottom: 1.25rem; line-height: 1.75; }
.featured-blockquote { border-left: 3px solid var(--accent); padding: 0.75rem 1.25rem; margin: 1.5rem 0; font-family: var(--font-d); font-style: italic; font-size: 1.15rem; color: var(--text); }
.featured-visual { background: #fff; padding: 3rem 2rem; text-align: center; border: 1px solid #e8e8e8; }
.featured-visual-num { font-family: var(--font-d); font-size: 6rem; font-weight: 900; color: var(--accent); line-height: 1; }
.featured-visual-label { font-family: var(--font-d); font-size: 1.3rem; font-style: italic; margin-top: 0.5rem; }
.featured-visual-note { font-size: 0.85rem; color: #777; margin-top: 1rem; line-height: 1.5; }

/* BTN */
.btn-primary { display: inline-block; background: var(--accent); color: #fff; padding: 0.78rem 2.2rem; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: background var(--trans); min-height: 44px; line-height: 1.5; }
.btn-primary:hover { background: #c1121f; }
.btn-outline { display: inline-block; border: 1px solid var(--text); color: var(--text); padding: 0.78rem 2.2rem; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: all var(--trans); min-height: 44px; line-height: 1.5; }
.btn-outline:hover { background: var(--text); color: #fff; }

/* CARDS GRID */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.card { background: #fff; border: 1px solid #ebebeb; transition: transform var(--trans), box-shadow var(--trans); overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.09); }
.card-body { padding: 1.5rem; }
.card-tag { display: inline-block; background: var(--light); color: var(--text); font-size: 0.66rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.2rem 0.55rem; margin-bottom: 0.7rem; }
.card-title { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.6rem; }
.card-excerpt { font-size: 0.9rem; color: #555; line-height: 1.65; margin-bottom: 1rem; }
.card-link { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* RUBRICS */
.rubrics { background: var(--text); color: #fff; }
.rubrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.rubric-card { padding: 2.25rem; border: 1px solid rgba(255,255,255,0.08); transition: border-color var(--trans), background var(--trans); }
.rubric-card:hover { border-color: var(--accent); background: rgba(230,57,70,0.07); }
.rubric-num { font-family: var(--font-d); font-size: 3.5rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 0.75rem; }
.rubric-title { font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.rubric-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.65; }
.rubric-link { color: var(--accent); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1.25rem; display: inline-block; }

/* SUBSCRIBE */
.subscribe { background: var(--light); text-align: center; }
.subscribe-form { display: flex; gap: 0; max-width: 480px; margin: 2rem auto 0; }
.subscribe-form input[type="email"] { flex: 1; padding: 0.88rem 1.2rem; border: 1px solid #ccc; border-right: none; font-family: var(--font-b); font-size: 0.95rem; outline: none; transition: border-color var(--trans); min-height: 44px; }
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.subscribe-form button { background: var(--accent); color: #fff; border: none; padding: 0.88rem 1.6rem; font-family: var(--font-b); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: background var(--trans); min-height: 44px; }
.subscribe-form button:hover { background: #c1121f; }
.subscribe-note { font-size: 0.78rem; color: #999; margin-top: 0.75rem; }

/* QUOTE SECTION */
.quote-section { background: var(--text); color: #fff; text-align: center; padding: 6rem 2rem; }
.quote-section blockquote { font-family: var(--font-d); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2.2rem); max-width: 820px; margin: 0 auto; line-height: 1.45; }
.quote-section cite { display: block; font-family: var(--font-b); font-style: normal; font-size: 0.8rem; color: var(--accent); margin-top: 1.5rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ABOUT */
.about-section { padding: 5rem 1.5rem; }
.about-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text h2 { font-family: var(--font-d); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin: 0.5rem 0 1.25rem; line-height: 1.15; }
.about-text p { color: #444; line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-item { padding: 1.75rem; background: var(--light); text-align: center; }
.stat-num { font-family: var(--font-d); font-size: 2.5rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.75rem; color: #777; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.3rem; }

/* ARTICLE LAYOUT */
.article-layout { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem; display: grid; grid-template-columns: 1fr 290px; gap: 3.5rem; align-items: start; }
.article-header { margin-bottom: 2rem; }
.article-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 0.68rem; padding: 0.22rem 0.65rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.article-title { font-family: var(--font-d); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.08; margin-bottom: 0.75rem; }
.article-meta { font-size: 0.8rem; color: #aaa; margin-bottom: 1.5rem; }
.article-hero-img { width: 100%; height: 440px; object-fit: cover; margin-bottom: 2.5rem; }
.article-body p { margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.82; color: #333; }
.article-body h2 { font-family: var(--font-d); font-size: 1.65rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.article-body h3 { font-family: var(--font-d); font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 1rem 1.5rem; margin: 2rem 0; font-family: var(--font-d); font-style: italic; font-size: 1.18rem; background: var(--light); }
.article-body ul, .article-body ol { margin: 1.25rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.55rem; font-size: 1.02rem; line-height: 1.72; color: #333; }
.article-disclaimer { margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--light); border-left: 3px solid #ccc; font-size: 0.84rem; color: #666; line-height: 1.65; }
.highlight-box { background: var(--light); border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.highlight-box p { margin: 0; font-size: 0.98rem; color: #333; }

/* ASIDE */
.article-aside { position: sticky; top: 80px; }
.aside-block { margin-bottom: 2rem; padding: 1.25rem; border: 1px solid #eee; }
.aside-title { font-family: var(--font-d); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); }
.aside-list { list-style: none; }
.aside-list li { padding: 0.55rem 0; border-bottom: 1px solid #f2f2f2; font-size: 0.88rem; }
.aside-list li:last-child { border-bottom: none; }
.aside-list a { color: var(--text); }
.aside-list a:hover { color: var(--accent); }
.tip-item { padding: 0.7rem 0; border-bottom: 1px solid #f2f2f2; font-size: 0.87rem; line-height: 1.55; display: flex; align-items: flex-start; gap: 0.5rem; }
.tip-item:last-child { border-bottom: none; }
.tip-num { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-badge { display: inline-block; padding: 0.22rem 0.6rem; background: var(--light); color: var(--text); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; transition: background var(--trans), color var(--trans); }
.tag-badge:hover { background: var(--accent); color: #fff; }

/* COOKIE BANNER */
.c-toggle { display: none; }
.c-toggle:checked ~ .c-banner { display: none !important; }
.c-banner { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1000; background: #fff; border: 1px solid #eee; box-shadow: 0 8px 32px rgba(0,0,0,0.12); padding: 1.25rem; max-width: 320px; animation: slideUp 0.5s ease both; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.c-banner p { font-size: 0.87rem; color: #444; margin-bottom: 1rem; line-height: 1.5; }
.c-banner a { color: var(--accent); }
.c-actions { display: flex; gap: 0.5rem; }
.c-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.1rem; font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; transition: all var(--trans); min-height: 44px; }
.c-accept { background: var(--accent); color: #fff; }
.c-accept:hover { background: #c1121f; }
.c-reject { background: var(--light); color: var(--text); border: 1px solid #ddd; }
.c-reject:hover { border-color: var(--text); }

/* SPECIAL PAGES */
.success-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5rem 2rem; }
.success-inner { max-width: 540px; }
.success-icon { width: 68px; height: 68px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.75rem; font-size: 1.8rem; color: #fff; }
.success-title { font-family: var(--font-d); font-size: 2.8rem; font-weight: 900; margin-bottom: 1rem; }
.success-text { color: #555; margin-bottom: 2rem; line-height: 1.7; }
.not-found { min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5rem 2rem; }
.not-found-inner { max-width: 600px; }
.not-found-num { font-family: var(--font-d); font-size: clamp(7rem, 18vw, 14rem); font-weight: 900; line-height: 1; color: var(--light); -webkit-text-stroke: 2px var(--accent); }
.not-found-title { font-family: var(--font-d); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.not-found-text { color: #666; margin-bottom: 2rem; }
.not-found-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* LEGAL */
.legal-page { max-width: 760px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.legal-title { font-family: var(--font-d); font-size: 2.8rem; font-weight: 900; margin-bottom: 0.4rem; }
.legal-date { font-size: 0.8rem; color: #aaa; margin-bottom: 2.5rem; }
.legal-page h2 { font-family: var(--font-d); font-size: 1.35rem; font-weight: 700; margin: 2.25rem 0 0.75rem; }
.legal-page p { font-size: 0.96rem; color: #444; line-height: 1.78; margin-bottom: 1rem; }
.legal-page ul { margin: 1rem 0 1rem 1.5rem; color: #444; }
.legal-page li { font-size: 0.96rem; line-height: 1.72; margin-bottom: 0.3rem; }

/* FOOTER */
.site-footer { background: var(--text); color: rgba(255,255,255,0.65); padding: 3.5rem 1.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-logo { font-family: var(--font-d); font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.footer-nav { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-nav a { color: rgba(255,255,255,0.55); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; transition: color var(--trans); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.35); margin-bottom: 0.75rem; }
.footer-disclaimer { font-size: 0.76rem; color: rgba(255,255,255,0.35); max-width: 680px; margin: 0 auto; line-height: 1.65; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.7s ease both; }
.fade-in-1 { animation: fadeInUp 0.7s 0.12s ease both; }
.fade-in-2 { animation: fadeInUp 0.7s 0.24s ease both; }
.fade-in-3 { animation: fadeInUp 0.7s 0.36s ease both; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .featured-inner { grid-template-columns: 1fr; gap: 2rem; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .rubrics-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 640px) {
  .nav-burger { display: flex; }
  .nav-list { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 0.5rem 0; border-bottom: 1px solid #eee; transform: translateY(-110%); transition: transform 0.32s ease; z-index: 99; }
  .nav-list.open { transform: translateY(0); }
  .nav-list li { border-bottom: 1px solid #f5f5f5; }
  .nav-list a { display: block; padding: 0.85rem 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { border-right: 1px solid #ccc; }
  .hero-title { font-size: 2.5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .c-banner { left: 1rem; right: 1rem; max-width: 100%; }
}