*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --f1-red: #e10600;
  --f1-dark: #15151e;
  --f1-grey: #1e1e28;
  --f1-light-grey: #2a2a35;
  --f1-white: #ffffff;
  --f1-off-white: #f5f5f7;
  --f1-accent: #ffc107;
  --text-grey: #6c6c7a;
  --border-light: #e8e8ec;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-main); background: var(--f1-off-white); color: #1d1d22; line-height: 1.75; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--f1-red); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #8f0500; text-decoration: underline; }
.site-header { background: var(--f1-dark); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.header-top { max-width: 1280px; margin: 0 auto; padding: 0.8rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.my-logo { font-size: 1.9rem; font-weight: 900; letter-spacing: -1px; color: #fff; text-decoration: none; line-height: 1; display: flex; align-items: center; gap: 8px; }
.my-logo:hover { color: var(--f1-red); text-decoration: none; }
.my-logo .flag { font-size: 1.4rem; }
.site-nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0.8rem; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.site-nav a:hover { background: rgba(255,255,255,0.1); color: var(--f1-red); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 0.3rem 0.6rem; border-radius: 4px; }
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.breadcrumb-wrap { background: #1a1a22; border-top: 1px solid rgba(255,255,255,0.06); }
.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 0.5rem 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.3rem; }
.breadcrumb li+li::before { content: '/'; color: rgba(255,255,255,0.3); margin: 0 0.3rem; }
.breadcrumb a { color: var(--f1-accent); text-decoration: none; }
.breadcrumb a:hover { color: var(--f1-red); text-decoration: underline; }
.breadcrumb .current { color: rgba(255,255,255,0.85); }
main { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; }
.content-area { min-width: 0; }
.sidebar { position: sticky; top: 80px; align-self: start; }
h1 { font-size: 2.6rem; line-height: 1.2; font-weight: 900; color: var(--f1-dark); margin: 1rem 0 0.3rem; }
h1 .highlight { color: var(--f1-red); }
.subtitle { font-size: 1.2rem; color: var(--text-grey); margin-bottom: 1.8rem; font-weight: 400; }
h2 { font-size: 1.9rem; font-weight: 800; color: var(--f1-dark); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 3px solid var(--f1-red); }
h3 { font-size: 1.4rem; font-weight: 700; color: var(--f1-dark); margin: 1.8rem 0 0.8rem; }
h4 { font-size: 1.15rem; font-weight: 600; color: var(--f1-grey); margin: 1.2rem 0 0.5rem; }
p { margin-bottom: 1.1rem; }
.lead { font-size: 1.2rem; line-height: 1.7; color: #333; }
.hero-img { border-radius: 12px; overflow: hidden; margin: 1.2rem 0 2rem; box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
.hero-img img { width: 100%; transition: transform 0.4s ease; }
.hero-img:hover img { transform: scale(1.02); }
.img-caption { font-size: 0.85rem; color: var(--text-grey); text-align: center; padding: 0.6rem; background: #f0f0f2; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 1.8rem 0; }
.card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-top: 4px solid var(--f1-red); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.card h4 { color: var(--f1-red); margin-top: 0; }
.card p { font-size: 0.9rem; color: #444; }
.data-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 2rem; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.data-table th { background: var(--f1-dark); color: #fff; text-align: left; padding: 0.8rem 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 0.9rem 1rem; border-bottom: 1px solid #eee; font-size: 0.95rem; }
.data-table tr:hover td { background: #fafafa; }
.callout { background: #f8f4e5; border-left: 5px solid var(--f1-accent); border-radius: 0 10px 10px 0; padding: 1.2rem 1.5rem; margin: 2rem 0; }
.callout p { margin: 0; }
.callout strong { color: #d35400; }
.search-box { background: #fff; padding: 1.2rem 1.5rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin: 2rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-box input[type="text"] { flex: 1; min-width: 200px; padding: 0.8rem 1rem; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.search-box input[type="text"]:focus { border-color: var(--f1-red); }
.search-box button { background: var(--f1-red); color: #fff; border: none; padding: 0.8rem 1.8rem; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.search-box button:hover { background: #b00500; }
.rating-box { background: var(--f1-dark); color: #fff; border-radius: 12px; padding: 1.8rem; margin: 2rem 0; }
.rating-box h3 { color: #fff; }
.rating-stars { font-size: 2rem; color: var(--f1-accent); letter-spacing: 6px; cursor: pointer; margin: 1rem 0; }
.rating-stars i { transition: transform 0.2s, color 0.2s; }
.rating-stars i:hover { transform: scale(1.2); color: #ffdd55; }
.rating-box form { display: flex; gap: 1rem; flex-wrap: wrap; }
.rating-box select { padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.95rem; border: none; }
.rating-box button { background: var(--f1-accent); color: #1d1d22; border: none; padding: 0.7rem 2rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: transform 0.2s; }
.rating-box button:hover { transform: scale(1.05); }
.comment-form { background: #fff; border-radius: 12px; padding: 1.8rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin: 2rem 0; }
.comment-form textarea { width: 100%; min-height: 120px; padding: 1rem; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 0.95rem; font-family: inherit; resize: vertical; margin-bottom: 1rem; }
.comment-form input[type="text"] { width: 100%; max-width: 350px; padding: 0.7rem 1rem; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 0.95rem; margin-bottom: 0.8rem; }
.comment-form button { background: var(--f1-dark); color: #fff; border: none; padding: 0.8rem 2.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.comment-form button:hover { background: var(--f1-red); }
.comment-feed { list-style: none; }
.comment-feed li { background: #f9f9fc; padding: 1rem; border-radius: 8px; margin-bottom: 0.8rem; font-size: 0.9rem; }
.comment-feed li .user { font-weight: 700; color: var(--f1-dark); display: flex; align-items: center; gap: 8px; }
.toc { background: #fff; border-radius: 12px; padding: 1.5rem 1.8rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.toc h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; color: var(--f1-red); }
.toc ul { list-style: none; }
.toc li { margin: 0.4rem 0; }
.toc a { color: var(--f1-dark); text-decoration: none; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.toc a::before { content: '🏁'; color: var(--f1-red); }
.toc a:hover { color: var(--f1-red); }
.quick-facts { background: linear-gradient(145deg, var(--f1-dark), #2a2a35); color: #fff; border-radius: 16px; padding: 1.8rem; margin-bottom: 2rem; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.quick-facts h3 { color: var(--f1-accent); margin-top: 0; }
.quick-facts ul { list-style: none; }
.quick-facts li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 10px; }
.quick-facts li:last-child { border-bottom: none; }
.quick-facts .label { color: rgba(255,255,255,0.6); }
.quick-facts .value { color: #fff; font-weight: 600; }
.site-footer { background: var(--f1-dark); color: rgba(255,255,255,0.85); padding: 3rem 1.5rem 1.5rem; margin-top: 4rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; padding-bottom: 2rem; }        
.footer-grid h4 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 0.4rem 0; font-size: 0.9rem; }
.footer-grid a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-grid a:hover { color: var(--f1-accent); }
friend-link { display: block; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
friend-link a { color: var(--f1-accent); text-decoration: none; margin: 0 0.8rem; }
friend-link a:hover { text-decoration: underline; color: #ffdd55; }
.copyright { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 1rem 0; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 0.8rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  h1 { font-size: 2rem; }
  .subtitle { font-size: 1rem; }
}
@media (max-width: 600px) {
  .header-top { padding: 0.6rem 1rem; }
  h1 { font-size: 1.7rem; line-height: 1.2; }
  h2 { font-size: 1.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; align-items: stretch; }
  .search-box input[type="text"] { min-width: auto; }
  .search-box button { justify-content: center; }
  .data-table { font-size: 0.85rem; display: block; overflow-x: auto; }
  .data-table td, .data-table th { padding: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; align-items: center; }
}
section { scroll-margin-top: 80px; }
