:root {
  --canvas: #f7f7f4;
  --ink: #26251e;
  --primary: #f54e00;
  --primary-active: #d04200;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --on-primary: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  background-color: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--sm {
  padding: 48px 0;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.72px;
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.325px;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

.text-muted {
  color: var(--muted);
}

.text-ink {
  color: var(--ink);
}

.label-upper {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== NAVIGATION ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav__logo span {
  color: var(--primary);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link--active {
  color: var(--ink);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 12px 24px;
  }
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background-color: var(--primary-active);
  color: var(--on-primary);
}

.btn--secondary {
  background-color: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.btn--secondary:hover {
  background-color: var(--canvas);
  color: var(--ink);
}

.btn--dark {
  background-color: var(--ink);
  color: var(--canvas);
  height: 44px;
  padding: 0 20px;
}

.btn--dark:hover {
  background-color: #3a3830;
  color: var(--canvas);
}

/* ===== HERO ===== */

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.hero__label {
  margin-bottom: 16px;
}

.hero__title {
  max-width: 700px;
  margin-bottom: 20px;
}

.hero__desc {
  max-width: 560px;
  font-size: 18px;
  color: var(--body);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===== CARDS ===== */

.card {
  background-color: var(--surface-card);
  border-radius: 12px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--hairline-strong);
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: 24px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card__tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: 9999px;
}

.card__date {
  font-size: 13px;
  color: var(--muted);
}

.card__title {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover {
  color: var(--primary);
}

.card__excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card__read-time {
  font-size: 13px;
  color: var(--muted);
}

/* ===== ARTICLE GRID ===== */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FEATURED ARTICLE ===== */

.featured {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.featured .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.featured__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

.featured__label {
  margin-bottom: 16px;
}

.featured__title {
  margin-bottom: 16px;
}

.featured__excerpt {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 24px;
}

.featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.featured__date {
  font-size: 13px;
  color: var(--muted);
}

.featured__title a {
  color: var(--ink);
}

.featured__title a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .featured .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .featured__img {
    height: 240px;
  }
}

/* ===== ARTICLE PAGE ===== */

.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  max-width: 760px;
}

.article-header__label {
  margin-bottom: 16px;
}

.article-header__title {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.article-header__desc {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-header__date,
.article-header__read-time {
  font-size: 13px;
  color: var(--muted);
}

.article-content {
  padding: 48px 0 80px;
}

.article-body {
  max-width: 760px;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 26px;
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 0;
}

.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  list-style: none;
}

.article-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.article-body ol {
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 500;
}

.article-body blockquote {
  border-left: 2px solid var(--primary);
  padding: 16px 20px;
  margin: 28px 0;
  background-color: var(--surface-card);
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  color: var(--ink);
  font-size: 17px;
  font-style: italic;
  margin: 0;
}

.article-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -40px;
  margin-bottom: 48px;
  padding-top: 8px;
}

.info-box {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}

.info-box__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.info-box ul {
  margin-bottom: 0;
}

.related-articles {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.related-articles h2 {
  margin-bottom: 32px;
}

/* ===== ABOUT PAGE ===== */

.about-hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
  max-width: 760px;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  padding: 64px 0;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 20px;
}

.about-sidebar {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}

@media (max-width: 768px) {
  .about-sidebar {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
    padding-top: 32px;
  }
}

.about-sidebar h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.about-sidebar p,
.about-sidebar a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.about-sidebar a:hover {
  color: var(--ink);
}

.about-sidebar .sidebar-block {
  margin-bottom: 32px;
}

/* ===== CONTACT FORM ===== */

.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-intro h2 {
  margin-bottom: 12px;
}

.contact-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.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-color: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  height: 44px;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.form-msg {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-msg--success {
  background-color: #e8f5f0;
  color: var(--success);
  border: 1px solid #b6dfcf;
}

.form-msg--error {
  background-color: #fce8ec;
  color: var(--error);
  border: 1px solid #f4b8c1;
}

.btn--loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== STATIC PAGES ===== */

.static-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  max-width: 760px;
}

.static-content {
  padding: 48px 0 80px;
  max-width: 760px;
}

.static-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 22px;
}

.static-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.static-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 16px;
}

.static-content ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.static-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  list-style: none;
}

.static-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.static-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.static-content a:hover {
  color: var(--primary);
}

/* ===== FOOTER ===== */

.footer {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer__brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.footer__brand-name span {
  color: var(--primary);
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 240px;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: var(--ink);
}

.footer__bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 13px;
  color: var(--muted);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer__legal a:hover {
  color: var(--ink);
}

/* ===== COOKIE BANNER ===== */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 600px;
  background-color: var(--ink);
  color: var(--canvas);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.16);
}

.cookie-banner__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #c8c6be;
}

.cookie-banner__text a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner__accept {
  height: 36px;
  padding: 0 16px;
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.cookie-banner__accept:hover {
  background-color: var(--primary-active);
}

.cookie-banner__reject {
  height: 36px;
  padding: 0 16px;
  background-color: transparent;
  color: #c8c6be;
  border: 1px solid #3a3830;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.cookie-banner__reject:hover {
  border-color: #5a5852;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__accept,
  .cookie-banner__reject {
    flex: 1;
  }
}

/* ===== BREADCRUMBS ===== */

.breadcrumbs {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs__item a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.breadcrumbs__item a:hover {
  color: var(--ink);
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  color: var(--hairline-strong);
}

.breadcrumbs__item:last-child {
  color: var(--body);
}

/* ===== SECTION HEADER ===== */

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  margin-top: 8px;
}

/* ===== DISCLAIMER ===== */

.disclaimer {
  padding: 16px 20px;
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  margin: 32px 0;
}

.disclaimer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
