:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --ink: #26251e;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --body-text: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --success: #1f8a65;
  --error: #cf2d56;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body-text);
  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;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }

a:hover { color: var(--primary); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- NAV ---- */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1;
}

.site-nav__logo span {
  color: var(--primary);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text);
  transition: color 0.15s;
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- HERO ---- */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.hero__badge {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 18px;
  color: var(--body-text);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero__image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  margin-top: 48px;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section__title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 16px;
  color: var(--body-text);
  max-width: 560px;
  line-height: 1.6;
}

/* ---- ARTICLE CARDS ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card__body {
  padding: 20px 24px 24px;
}

.article-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card__excerpt {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.55;
  margin-bottom: 16px;
}

.article-card__meta {
  font-size: 13px;
  color: var(--muted);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 8px;
}

.btn-text:hover { color: var(--primary); }

.btn-text::after {
  content: '→';
  transition: transform 0.15s;
}

.btn-text:hover::after { transform: translateX(3px); }

/* ---- ARTICLE PAGE ---- */
.article-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.article-header__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.article-header__title {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 16px;
}

.article-header__meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-content {
  padding: 48px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-body img {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  margin: 32px 0;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.article-body p {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
}

.article-body li {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.65;
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.article-body a:hover {
  border-bottom-color: var(--primary);
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.article-sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 8px 0;
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card li a {
  font-size: 14px;
  color: var(--body-text);
}

.sidebar-card li a:hover { color: var(--primary); }

.article-updated {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  margin-top: 32px;
}

/* ---- RELATED ARTICLES ---- */
.related {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

/* ---- PAGE CONTENT ---- */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.page-header__title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-header__desc {
  font-size: 16px;
  color: var(--body-text);
  max-width: 600px;
  line-height: 1.6;
}

.page-content {
  padding: 48px 0 80px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-content p,
.page-content li {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.page-content ul,
.page-content ol {
  margin: 0 0 16px 20px;
}

.page-content strong { color: var(--ink); font-weight: 600; }

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}

.value-card__icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.value-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ---- CONTACT FORM ---- */
.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
}

.contact-form__title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 24px;
}

.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-soft);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  height: 44px;
}

.form-group textarea {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
}

.form-group .field-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  height: 40px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.form-success {
  display: none;
  background: #edf7f3;
  border: 1px solid #a3d9c0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--success);
  margin-top: 16px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand__logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand__logo span { color: var(--primary); }

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 14px;
  color: var(--body-text);
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--canvas);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(38,37,30,0.18);
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: #c8c6be;
  flex: 1;
}

#cookie-banner p a {
  color: var(--canvas);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: #c8c6be;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

/* ---- LOADING SPINNER ---- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero__title { font-size: 36px; letter-spacing: -0.8px; }
  .section__title { font-size: 28px; }
  .article-header__title { font-size: 30px; }
  .page-header__title { font-size: 32px; }
  .articles-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .site-nav__links.open { display: flex; }

  .site-nav__links li { width: 100%; }

  .site-nav__links a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
  }

  .nav-hamburger { display: flex; }

  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-actions { width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .hero__title { font-size: 30px; }
  .hero__desc { font-size: 16px; }
  .contact-form { padding: 24px 20px; }
}
