: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;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  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; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rh-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.rh-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rh-nav__logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.rh-nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.rh-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

.rh-nav__link:hover,
.rh-nav__link--active {
  color: var(--ink);
}

.rh-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.rh-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .rh-nav__hamburger { display: flex; }
  .rh-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;
  }
  .rh-nav__links.is-open { display: flex; }
  .rh-nav__link {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  height: 40px;
  transition: background-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  background: var(--primary-active);
  color: var(--on-primary);
}

.btn--secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn--secondary:hover {
  background: var(--canvas);
  color: var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 20px;
  height: 44px;
}
.btn--ink:hover {
  background: #3a3830;
  color: var(--canvas);
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__label {
  margin-bottom: 20px;
}

.hero__title {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero__title { font-size: 36px; letter-spacing: -0.7px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 28px; letter-spacing: -0.4px; }
}

.hero__desc {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__image {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 440px;
}

.hero__image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.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: 16px;
}

.section__title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .section__title { font-size: 26px; letter-spacing: -0.3px; }
}

.section__desc {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--hairline-soft);
}

.card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card__excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 16px;
}

.card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.card__link:hover {
  color: var(--primary-active);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
  }
}

.article__header {
  margin-bottom: 36px;
}

.article__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.article__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .article__title { font-size: 28px; letter-spacing: -0.4px; }
}

.article__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article__hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.article__hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .article__hero-image img { height: 220px; }
}

.article__body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  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);
  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.6;
  margin-bottom: 6px;
}

.article__body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.article__body a:hover {
  color: var(--primary-active);
}

.article__body .note-block {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 28px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article__body th {
  background: var(--canvas-soft);
  color: var(--ink);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.article__body td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
}

.article__body tr:last-child td { border-bottom: none; }

.sidebar__card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}

.sidebar__links {
  list-style: none;
}

.sidebar__links li {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 8px 0;
}

.sidebar__links li:last-child { border-bottom: none; }

.sidebar__links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar__links a:hover { color: var(--primary); }

.form-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
}

.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(--surface-card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--error);
}

.form-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 5px;
  display: none;
}

.form-error.is-visible { display: block; }

.form-status {
  font-size: 14px;
  color: var(--success);
  margin-top: 14px;
  display: none;
}

.form-status.is-visible { display: block; }

.form-loading {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
  display: none;
}

.form-loading.is-visible { display: block; }

.page-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.page-header__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .page-header__title { font-size: 28px; letter-spacing: -0.4px; }
}

.page-header__desc {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.6;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 14px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; padding: 40px 24px 60px; }
}

.articles-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.articles-list__header {
  margin-bottom: 40px;
}

.rh-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.rh-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .rh-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .rh-footer__inner { grid-template-columns: 1fr; }
}

.rh-footer__brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}

.rh-footer__tagline {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  max-width: 280px;
}

.rh-footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

.rh-footer ul {
  list-style: none;
}

.rh-footer ul li {
  margin-bottom: 8px;
}

.rh-footer ul a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.rh-footer ul a:hover { color: var(--primary); }

.rh-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rh-footer__bottom p {
  font-size: 13px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  z-index: 200;
  padding: 20px 24px;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--canvas);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn--secondary {
  background: transparent;
  color: var(--canvas);
  border-color: rgba(247,247,244,0.4);
}

.cookie-banner .btn--secondary:hover {
  background: rgba(247,247,244,0.1);
  color: var(--canvas);
}

.disclaimer {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 32px 0;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .form-block { padding: 24px; }
  .page-header { padding: 40px 0 32px; }
  .articles-list { padding: 40px 16px 60px; }
}
