*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; letter-spacing: -0.045em; }
h2 { font-size: 1.625rem; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--body); line-height: 1.5; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--rounded-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 480px;
}

.hero-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.hero-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* SECTION */
.section {
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--hairline-soft);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.section-head {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.card-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover { color: var(--primary-active); }

/* ARTICLE LIST */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.article-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface-card);
  align-items: center;
  transition: background 0.15s;
}

.article-item + .article-item {
  border-top: 1px solid var(--hairline-soft);
}

.article-item:hover { background: var(--canvas-soft); }

.article-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.article-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.article-item-date {
  font-size: 13px;
  color: var(--muted-soft);
  white-space: nowrap;
}

/* ARTICLE PAGE */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.article-content {
  padding: 64px 0;
}

.article-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-hero-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.article-hero-img img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.article-body h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 6px;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-sidebar {
  padding: 64px 0;
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li + li {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 10px;
  margin-top: 10px;
}

.sidebar-links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar-links a:hover { color: var(--primary); }

/* INFO BLOCKS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 28px;
}

.info-block h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.info-block p,
.info-block li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

.info-block ul {
  padding-left: 20px;
}

.info-block li + li { margin-top: 4px; }

/* FORM */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline-soft);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.form-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border: none;
  border-radius: var(--rounded-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b3ddd0;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner p {
  font-size: 14px;
  color: var(--canvas);
  line-height: 1.4;
}

.cookie-banner a { color: var(--primary); }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--body);
  font-size: 14px;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted-soft);
}

/* PAGE HEADER */
.page-header {
  padding: 64px 0;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
}

.page-content {
  padding: 64px 0;
}

.page-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 12px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p,
.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .info-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 12px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
}
