/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --g-cream: #FBF7F0;
  --g-white: #FFFFFF;
  --g-beige: #F0E9DD;
  --g-beige-dark: #E3D9C8;
  --g-yellow: #F7E8A4;
  --g-yellow-light: #FFF9E6;
  --g-yellow-mid: #F2D977;
  --g-gold: #C9A84C;
  --g-gold-dark: #8B7330;
  --g-brown: #2D2A26;
  --g-text: #2D2A26;
  --g-text-soft: #7A7368;
  --g-text-muted: #A39E94;
  --g-border: #E8E1D5;
  --g-shadow: 0 4px 20px rgba(45,42,38,0.06);
  --g-shadow-lg: 0 8px 40px rgba(45,42,38,0.10);
  --g-radius: 16px;
  --g-radius-sm: 10px;
  --g-font-head: 'Lora', Georgia, serif;
  --g-font-body: 'Karla', sans-serif;
  --g-max: 1180px;
}

body {
  font-family: var(--g-font-body);
  background: var(--g-cream);
  color: var(--g-text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* HEADER */
.g-header {
  background: var(--g-white);
  border-bottom: 2px solid var(--g-beige-dark);
  position: sticky; top: 0; z-index: 200;
}
.g-header-inner {
  max-width: var(--g-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.g-logo {
  font-family: var(--g-font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--g-brown);
  letter-spacing: -0.03em;
}
.g-logo em {
  font-style: normal;
  color: var(--g-gold);
}
.g-nav { display: flex; gap: 6px; }
.g-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--g-text-soft);
  padding: 6px 14px;
  border-radius: 30px;
  transition: all 0.25s;
  letter-spacing: 0.02em;
}
.g-nav a:hover, .g-nav a.active {
  background: var(--g-yellow-light);
  color: var(--g-gold-dark);
}
.g-burger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.g-burger span { display: block; width: 22px; height: 2px; background: var(--g-brown); border-radius: 2px; transition: 0.3s; }
.g-mobile-menu {
  display: none; background: var(--g-white);
  border-top: 1px solid var(--g-border);
  padding: 16px 20px;
}
.g-mobile-menu.open { display: block; }
.g-mobile-menu a {
  display: block; padding: 10px 0; color: var(--g-text);
  font-weight: 500; border-bottom: 1px solid var(--g-beige);
}

/* HERO */
.g-hero {
  background: linear-gradient(160deg, var(--g-yellow-light) 0%, var(--g-beige) 50%, var(--g-cream) 100%);
  padding: 56px 20px 40px;
  border-bottom: 3px solid var(--g-beige-dark);
}
.g-hero-inner {
  max-width: var(--g-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 380px;
  gap: 44px;
  align-items: start;
}
.g-hero-tag {
  display: inline-block; background: var(--g-gold);
  color: var(--g-white); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  padding: 5px 16px; border-radius: 30px; margin-bottom: 18px;
}
.g-hero h1 {
  font-family: var(--g-font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700; color: var(--g-brown);
  line-height: 1.22; margin-bottom: 20px;
}
.g-hero-lead {
  font-size: 1.05rem; color: var(--g-text-soft);
  max-width: 600px; margin-bottom: 22px; line-height: 1.85;
}
.g-author {
  display: flex; align-items: center; gap: 12px; margin-top: 20px;
}
.g-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--g-gold); display: flex; align-items: center;
  justify-content: center; color: var(--g-white);
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.g-author-name { font-weight: 600; font-size: 0.88rem; }
.g-author-role { font-size: 0.75rem; color: var(--g-text-muted); }

/* HERO ASIDE */
.g-hero-aside {
  background: var(--g-white); border-radius: var(--g-radius);
  box-shadow: var(--g-shadow); padding: 26px 22px;
}
.g-hero-aside h3 {
  font-family: var(--g-font-head); font-size: 1.05rem;
  color: var(--g-gold-dark); margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px solid var(--g-yellow);
}
.g-fact {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
}
.g-fact-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--g-yellow-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0;
}
.g-fact p { font-size: 0.82rem; color: var(--g-text-soft); line-height: 1.55; }

/* MAIN GRID */
.g-main {
  max-width: var(--g-max); margin: 0 auto;
  padding: 44px 20px 60px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 40px; align-items: start;
}

/* ARTICLE CONTENT */
.g-block {
  background: var(--g-white); border-radius: var(--g-radius);
  padding: 32px 36px; box-shadow: var(--g-shadow);
  margin-bottom: 28px;
  animation: g-rise 0.5s ease both;
}
.g-block h2 {
  font-family: var(--g-font-head); font-size: 1.5rem;
  color: var(--g-brown); margin-bottom: 14px;
}
.g-block p { color: var(--g-text-soft); margin-bottom: 12px; }

.g-img-wrap {
  border-radius: var(--g-radius); overflow: hidden;
  margin-bottom: 28px; box-shadow: var(--g-shadow);
  position: relative;
}
.g-img-wrap img { width: 100%; height: 320px; object-fit: cover; }
.g-img-wrap figcaption {
  background: var(--g-white); padding: 10px 18px;
  font-size: 0.78rem; color: var(--g-text-muted); font-style: italic;
}

.g-sec-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--g-gold); margin-bottom: 8px;
}
.g-sec-title {
  font-family: var(--g-font-head); font-size: 1.65rem;
  color: var(--g-text); margin-bottom: 6px;
}
.g-sec-sub { color: var(--g-text-soft); font-size: 0.92rem; margin-bottom: 24px; }

/* CARDS */
.g-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.g-card {
  background: var(--g-white); border-radius: var(--g-radius);
  padding: 24px 22px; box-shadow: var(--g-shadow);
  border-left: 4px solid var(--g-yellow-mid);
  transition: transform 0.3s, box-shadow 0.3s;
}
.g-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-lg); }
.g-card:nth-child(2) { border-left-color: var(--g-gold); }
.g-card:nth-child(3) { border-left-color: #A8C6A0; }
.g-card:nth-child(4) { border-left-color: #C4A8D4; }
.g-card:nth-child(5) { border-left-color: #A8BDD4; }
.g-card-num {
  font-family: var(--g-font-head); font-size: 2.4rem;
  font-weight: 700; color: var(--g-yellow); line-height: 1; margin-bottom: 4px;
}
.g-card h3 {
  font-family: var(--g-font-head); font-size: 1rem;
  color: var(--g-gold-dark); margin-bottom: 8px;
}
.g-card p { font-size: 0.84rem; color: var(--g-text-soft); line-height: 1.6; }
.g-card-tag {
  display: inline-block; background: var(--g-yellow-light);
  color: var(--g-gold-dark); font-size: 0.68rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; margin-top: 10px;
}

/* HIGHLIGHT */
.g-highlight {
  background: linear-gradient(135deg, var(--g-brown), #3D3830);
  border-radius: var(--g-radius); padding: 32px 36px;
  color: var(--g-white); margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.g-highlight::after {
  content: '☀'; position: absolute; right: 24px; top: 16px;
  font-size: 5rem; opacity: 0.06;
}
.g-highlight h3 {
  font-family: var(--g-font-head); font-size: 1.3rem;
  margin-bottom: 12px; color: var(--g-yellow);
}
.g-highlight p { font-size: 0.92rem; opacity: 0.88; line-height: 1.7; }
.g-highlight ul { margin: 14px 0 0 18px; }
.g-highlight li { font-size: 0.88rem; opacity: 0.85; margin-bottom: 6px; list-style: disc; }

/* QUOTE */
.g-quote {
  background: var(--g-yellow-light); border-radius: var(--g-radius);
  padding: 28px 32px; margin-bottom: 28px;
  border-left: 5px solid var(--g-gold); text-align: left;
}
.g-quote blockquote {
  font-family: var(--g-font-head); font-size: 1.1rem;
  color: var(--g-gold-dark); font-style: italic; line-height: 1.6;
  margin-bottom: 8px;
}
.g-quote cite { font-size: 0.78rem; color: var(--g-text-muted); font-style: normal; }

/* REC CARDS */
.g-rec { margin-bottom: 28px; }
.g-rec-item {
  display: flex; gap: 18px; background: var(--g-white);
  border-radius: var(--g-radius-sm); padding: 20px 22px;
  box-shadow: var(--g-shadow); margin-bottom: 14px;
  transition: transform 0.2s;
}
.g-rec-item:hover { transform: translateX(4px); }
.g-rec-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--g-yellow-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.g-rec-item h4 {
  font-family: var(--g-font-head); font-size: 0.95rem;
  color: var(--g-gold-dark); margin-bottom: 4px;
}
.g-rec-item p { font-size: 0.82rem; color: var(--g-text-soft); }

/* CONCLUSION */
.g-conclusion {
  background: var(--g-beige); border-radius: var(--g-radius);
  padding: 32px 36px; border-left: 5px solid var(--g-gold);
  margin-bottom: 12px;
}
.g-conclusion h3 {
  font-family: var(--g-font-head); font-size: 1.3rem;
  color: var(--g-gold-dark); margin-bottom: 12px;
}
.g-conclusion p { color: var(--g-text-soft); font-size: 0.93rem; margin-bottom: 10px; }

/* SIDEBAR */
.g-sidebar {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 22px;
}
.g-sb-card {
  background: var(--g-white); border-radius: var(--g-radius);
  padding: 22px 18px; box-shadow: var(--g-shadow);
}
.g-sb-card h4 {
  font-family: var(--g-font-head); font-size: 1rem;
  color: var(--g-gold-dark); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--g-yellow);
}
.g-sb-link {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--g-beige); transition: opacity 0.2s;
}
.g-sb-link:last-child { border-bottom: none; }
.g-sb-link:hover { opacity: 0.7; }
.g-sb-num {
  font-family: var(--g-font-head); font-size: 1.6rem;
  font-weight: 700; color: var(--g-yellow); line-height: 1;
  flex-shrink: 0; width: 28px;
}
.g-sb-title { font-size: 0.82rem; font-weight: 500; color: var(--g-text); line-height: 1.45; }
.g-sb-cat { font-size: 0.68rem; color: var(--g-gold); font-weight: 600; margin-top: 2px; }

.g-sb-tip {
  background: linear-gradient(135deg, var(--g-yellow-light), var(--g-beige));
  border-radius: var(--g-radius-sm); padding: 16px;
  margin-bottom: 10px;
}
.g-sb-tip-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--g-gold); margin-bottom: 6px;
}
.g-sb-tip p { font-size: 0.82rem; color: var(--g-text); }

.g-sb-quote {
  background: var(--g-brown); color: var(--g-beige);
  padding: 20px 18px; border-radius: var(--g-radius-sm);
  font-style: italic; font-size: 0.9rem; line-height: 1.6;
}
.g-sb-quote footer {
  margin-top: 10px; font-style: normal;
  font-size: 0.75rem; color: var(--g-text-muted);
}

.g-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.g-tag {
  background: var(--g-beige); color: var(--g-text-soft);
  border-radius: 20px; padding: 4px 12px;
  font-size: 0.75rem; font-weight: 500;
  transition: all 0.2s; cursor: default;
}
.g-tag:hover { background: var(--g-yellow-light); color: var(--g-gold-dark); }

/* NEWSLETTER */
.g-nl {
  background: linear-gradient(135deg, var(--g-gold-dark), var(--g-gold));
  border-radius: var(--g-radius); padding: 24px 18px;
  color: var(--g-white); text-align: center;
}
.g-nl h4 { font-family: var(--g-font-head); font-size: 1.05rem; margin-bottom: 6px; }
.g-nl p { font-size: 0.8rem; opacity: 0.9; margin-bottom: 14px; }
.g-nl input[type="email"] {
  width: 100%; padding: 10px 14px; border-radius: 30px;
  border: none; font-family: var(--g-font-body);
  font-size: 0.84rem; margin-bottom: 8px; outline: none;
  background: rgba(255,255,255,0.95); color: var(--g-text);
}
.g-nl button {
  width: 100%; padding: 10px; background: var(--g-white);
  color: var(--g-gold-dark); font-weight: 700; font-size: 0.84rem;
  border: none; border-radius: 30px; cursor: pointer;
  transition: opacity 0.2s; font-family: var(--g-font-body);
}
.g-nl button:hover { opacity: 0.85; }

/* FOOTER */
.g-footer {
  background: var(--g-brown); color: rgba(255,255,255,0.65);
  padding: 44px 20px 20px;
}
.g-footer-inner {
  max-width: var(--g-max); margin: 0 auto;
}
.g-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 36px;
}
.g-footer-brand .g-logo { color: var(--g-white); font-size: 1.6rem; }
.g-footer-brand .g-logo em { color: var(--g-yellow); }
.g-footer-brand p { font-size: 0.82rem; margin-top: 10px; line-height: 1.7; max-width: 260px; }
.g-footer-col h5 {
  color: var(--g-white); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.g-footer-col a {
  display: block; color: rgba(255,255,255,0.55);
  font-size: 0.82rem; margin-bottom: 8px; transition: color 0.2s;
}
.g-footer-col a:hover { color: var(--g-white); }
.g-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px; text-align: center; font-size: 0.78rem;
}
.g-footer-bottom a {
  color: rgba(255,255,255,0.45); margin: 0 10px;
  transition: color 0.2s;
}
.g-footer-bottom a:hover { color: var(--g-white); }
.g-disclaimer {
  margin-top: 14px; font-size: 0.72rem;
  color: rgba(255,255,255,0.35); max-width: 700px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* COOKIE BANNER */
#cookie-close { display: none; }
#cookie-close:checked ~ .g-cookie { display: none; }
.g-cookie {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--g-white); border-radius: var(--g-radius);
  box-shadow: var(--g-shadow-lg); padding: 22px 24px;
  max-width: 380px; z-index: 999; border: 1px solid var(--g-border);
}
.g-cookie h5 {
  font-family: var(--g-font-head); font-size: 0.95rem;
  color: var(--g-brown); margin-bottom: 8px;
}
.g-cookie p { font-size: 0.78rem; color: var(--g-text-soft); margin-bottom: 14px; line-height: 1.5; }
.g-cookie-btns { display: flex; gap: 8px; align-items: center; }
.g-cookie-accept, .g-cookie-decline {
  padding: 8px 18px; border-radius: 30px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; transition: opacity 0.2s;
  font-family: var(--g-font-body); border: none;
}
.g-cookie-accept {
  background: var(--g-gold); color: var(--g-white);
}
.g-cookie-decline {
  background: var(--g-beige); color: var(--g-text-soft);
}
.g-cookie a {
  font-size: 0.72rem; color: var(--g-gold); margin-left: auto;
}

/* PAGE STYLES */
.g-page-hero {
  background: linear-gradient(160deg, var(--g-yellow-light), var(--g-beige));
  padding: 48px 20px; text-align: center;
  border-bottom: 3px solid var(--g-beige-dark);
}
.g-page-hero h1 {
  font-family: var(--g-font-head); font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--g-brown); margin-bottom: 12px;
}
.g-page-hero p { color: var(--g-text-soft); max-width: 600px; margin: 0 auto; }

.g-page-body {
  max-width: 800px; margin: 0 auto; padding: 40px 20px 60px;
}
.g-page-body h2 {
  font-family: var(--g-font-head); font-size: 1.2rem;
  color: var(--g-brown); margin: 28px 0 10px;
  padding-left: 14px; border-left: 3px solid var(--g-gold);
}
.g-page-body p, .g-page-body li {
  color: var(--g-text-soft); font-size: 0.92rem; margin-bottom: 10px;
}
.g-page-body ol { margin-left: 20px; }
.g-page-body ol li { list-style: decimal; margin-bottom: 14px; }

/* ARTICLE PAGE */
.g-article-body h2 {
  font-family: var(--g-font-head); font-size: 1.4rem;
  color: var(--g-brown); margin: 30px 0 12px;
  padding-left: 14px; border-left: 4px solid var(--g-gold);
}
.g-article-body p {
  color: var(--g-text-soft); margin-bottom: 14px; font-size: 1rem;
}
.g-article-body blockquote {
  margin: 24px 0; padding: 18px 22px;
  background: var(--g-yellow-light); border-left: 4px solid var(--g-gold);
  font-style: italic; color: var(--g-gold-dark);
  font-size: 1.02rem; line-height: 1.6; border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
}

/* SUCCESS */
.g-success {
  text-align: center; padding: 80px 20px;
  max-width: 600px; margin: 0 auto;
}
.g-success h1 {
  font-family: var(--g-font-head); font-size: 2rem;
  color: var(--g-gold-dark); margin-bottom: 16px;
}
.g-success p { color: var(--g-text-soft); margin-bottom: 24px; }
.g-btn {
  display: inline-block; background: var(--g-gold);
  color: var(--g-white); padding: 12px 28px; border-radius: 30px;
  font-weight: 600; font-size: 0.9rem; transition: opacity 0.2s;
}
.g-btn:hover { opacity: 0.85; }

/* 404 */
.g-404 { text-align: center; padding: 80px 20px; }
.g-404 h1 {
  font-family: var(--g-font-head); font-size: 5rem;
  color: var(--g-yellow); margin-bottom: 10px;
}
.g-404 h2 {
  font-family: var(--g-font-head); font-size: 1.4rem;
  color: var(--g-brown); margin-bottom: 16px;
}
.g-404 p { color: var(--g-text-soft); margin-bottom: 28px; }
.g-404-links { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto; }
.g-404-links a {
  background: var(--g-white); padding: 14px 20px; border-radius: var(--g-radius-sm);
  box-shadow: var(--g-shadow); font-weight: 500; color: var(--g-gold-dark);
  transition: transform 0.2s;
}
.g-404-links a:hover { transform: translateY(-2px); }

/* ANIMATIONS */
@keyframes g-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.g-anim { animation: g-rise 0.5s ease both; }
.g-anim-2 { animation: g-rise 0.5s 0.12s ease both; }
.g-anim-3 { animation: g-rise 0.5s 0.24s ease both; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .g-hero-inner { grid-template-columns: 1fr; }
  .g-hero-aside { display: none; }
  .g-main { grid-template-columns: 1fr; }
  .g-sidebar { position: static; }
  .g-cards { grid-template-columns: 1fr; }
  .g-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .g-nav { display: none; }
  .g-burger { display: flex; }
  .g-hero { padding: 32px 16px 24px; }
  .g-hero h1 { font-size: 1.6rem; }
  .g-block { padding: 22px 18px; }
  .g-main { padding: 24px 16px; gap: 20px; }
  .g-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .g-cookie { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .g-highlight { padding: 24px 18px; }
  .g-conclusion { padding: 22px 18px; }
}
