.articles-page {
  background: var(--bg);
}

.privacy-page {
  background: var(--bg);
}

.privacy-hero {
  padding: 94px 0 56px;
  background:
    linear-gradient(112deg, rgba(27, 28, 26, 0.92) 0%, rgba(31, 31, 28, 0.78) 50%, rgba(80, 64, 48, 0.36) 100%),
    url('/images/ppu-work-hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.privacy-hero .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.privacy-hero h1 {
  max-width: 820px;
  margin-top: 16px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.privacy-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.privacy-content {
  padding: 50px 0 78px;
  background: var(--bg);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.privacy-aside {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(23, 38, 34, 0.04);
}

.privacy-aside strong {
  color: var(--dark);
  font-size: 13px;
}

.privacy-aside span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.privacy-aside span:last-child {
  margin-bottom: 0;
}

.privacy-document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 4px 14px rgba(23, 38, 34, 0.04);
}

.privacy-document section + section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.privacy-document h2 {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: 0;
}

.privacy-document p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.privacy-document p + p {
  margin-top: 12px;
}

.articles-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(27, 28, 26, 0.92) 0%, rgba(31, 31, 28, 0.78) 50%, rgba(80, 64, 48, 0.36) 100%),
    url('/images/ppu-work-hero.png');
  background-size: cover;
  background-position: center;
}

.articles-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(247, 248, 244, 0) 0%, var(--bg) 100%);
  pointer-events: none;
}

.articles-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: end;
  padding: 78px 0 88px;
}

.articles-hero-copy {
  min-width: 0;
}

.articles-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.articles-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.articles-hero .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.articles-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.articles-hero .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.articles-hero .btn-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--orange);
}

.articles-hero-facts {
  display: grid;
  gap: 10px;
}

.articles-hero-facts div {
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.articles-hero-facts strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.articles-hero-facts span {
  font-size: 13px;
}

.articles-catalog {
  background: var(--bg);
}

.articles-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.articles-catalog-head .section-head {
  margin-bottom: 0;
}

.article-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.article-topic-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--dark);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.article-topic-nav a:hover {
  color: var(--orange);
  border-color: #e9b187;
  background: var(--orange-light);
}

.article-topic-nav a.active,
.article-topic-nav a[aria-current="true"] {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.articles-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.articles-empty-state strong {
  color: var(--dark);
  font-size: 18px;
  line-height: 1.35;
}

.articles-empty-state span {
  font-size: 14px;
  line-height: 1.55;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(23, 38, 34, 0.04);
  margin-bottom: 24px;
}

.featured-article-media {
  position: relative;
  min-height: 360px;
  background: linear-gradient(0deg, rgba(31, 31, 28, 0.10), rgba(31, 31, 28, 0.02));
  overflow: hidden;
}

.featured-article-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 31, 28, 0.14), rgba(31, 31, 28, 0.02));
  pointer-events: none;
}

.featured-article-content {
  min-width: 0;
  padding: 34px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.article-meta span,
.article-read-time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--green);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.featured-article h2 {
  color: var(--dark);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
  letter-spacing: 0;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.featured-article p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.featured-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  scroll-margin-top: 96px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(23, 38, 34, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: #b8cec3;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-card-image {
  position: relative;
  min-height: 150px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(0deg, rgba(31, 31, 28, 0.10), rgba(31, 31, 28, 0.02));
  overflow: hidden;
}

.article-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 31, 28, 0.14), rgba(31, 31, 28, 0.02));
  pointer-events: none;
}

.article-cover-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-image-price img { object-position: center 50%; }
.article-card-image-roof img { object-position: center 52%; }
.article-card-image-objects img { object-position: center 55%; }
.article-card-image-lifetime img { object-position: center 48%; }
.article-card-image-measurement img { object-position: center 58%; }
.article-card-image-polyurea img { object-position: center 50%; }

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.article-card-top {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.article-tag {
  align-self: flex-start;
  color: var(--green);
  background: var(--teal-light);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-read-time {
  flex: 0 0 auto;
  background: var(--orange-light);
  color: var(--orange);
}

.article-card h3 {
  color: var(--dark);
  font-size: 20px;
  line-height: 1.3;
}

.article-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.article-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(227, 107, 37, 0.28);
  border-radius: 8px;
  background: var(--orange-light);
  padding: 8px 15px;
  margin-top: auto;
  color: var(--orange);
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.article-link:hover {
  color: var(--orange-hover);
  border-color: var(--orange);
  background: #fff6ef;
}

.articles-roadmap {
  background: #edf4f0;
}

.articles-roadmap-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.articles-roadmap-list {
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: none;
}

.articles-roadmap-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.articles-roadmap-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 900;
}

.articles-roadmap-list h3 {
  color: var(--dark);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.articles-roadmap-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.articles-note {
  background: var(--surface);
}

.articles-note-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.articles-note .section-head,
.articles-note .section-title,
.articles-note .section-subtitle {
  margin-bottom: 0;
}

.article-detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  background-size: cover;
  background-position: center;
}

.article-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(112deg, rgba(27, 28, 26, 0.92) 0%, rgba(31, 31, 28, 0.78) 50%, rgba(80, 64, 48, 0.36) 100%);
  pointer-events: none;
}

.article-detail-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 0 68px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-detail-meta span {
  min-height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.article-detail-hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.article-detail-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16.5px;
  line-height: 1.68;
}

.article-detail-section {
  background: var(--surface);
  padding: 52px 0;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) 280px;
  gap: 36px;
  align-items: start;
}

.article-content {
  max-width: 700px;
}

.article-body-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px 32px;
  margin-bottom: 22px;
}

.article-body-section:last-child {
  margin-bottom: 0;
}

.article-body-section h2 {
  color: var(--dark);
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: 0;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.article-body-section p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.82;
  margin-bottom: 14px;
}

.article-body-section ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 2px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.58;
  list-style: none;
}

.article-body-section li {
  position: relative;
  padding-left: 22px;
}

.article-body-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.article-body-note {
  margin: 18px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: var(--orange-light);
}

.article-body-note-title {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.article-body-note p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.72;
  margin: 0;
}

.article-side {
  position: sticky;
  top: 92px;
}

.article-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.article-side-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
}

.article-side-panel h2 {
  color: var(--dark);
  font-size: 19px;
  line-height: 1.3;
  margin: 10px 0 10px;
}

.article-side-panel p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.article-side-panel p:last-child {
  margin-bottom: 0;
}

.related-articles {
  background: var(--surface);
  padding: 50px 0;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-article-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article-card:hover {
  border-color: #b8cec3;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.related-article-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-article-card strong {
  color: var(--dark);
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.related-article-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .articles-hero-inner,
  .articles-catalog-head,
  .featured-article,
  .articles-roadmap-inner,
  .articles-note-inner,
  .privacy-layout,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-topic-nav {
    justify-content: flex-start;
  }

  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles-note-inner .btn {
    justify-self: start;
  }

  .article-side {
    position: static;
  }

  .privacy-aside {
    position: static;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .articles-hero {
    min-height: auto;
  }

  .privacy-hero {
    padding: 56px 0 38px;
  }

  .privacy-hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .privacy-hero p,
  .privacy-document p {
    font-size: 15.5px;
  }

  .privacy-content {
    padding: 28px 0 56px;
  }

  .articles-hero-inner {
    padding: 54px 0 66px;
    gap: 28px;
  }

  .articles-hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .articles-hero p {
    font-size: 15.5px;
  }

  .articles-hero-actions,
  .featured-article-actions {
    flex-direction: column;
  }

  .articles-hero-actions .btn,
  .featured-article-actions .btn {
    width: 100%;
  }

  .articles-hero-facts {
    grid-template-columns: 1fr;
  }

  .article-topic-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-topic-nav a {
    text-align: center;
  }

  .featured-article-media {
    min-height: 220px;
  }

  .featured-article-content {
    padding: 22px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card-image {
    min-height: 180px;
  }

  .article-detail-hero-inner {
    padding: 36px 0 42px;
  }

  .article-detail-hero h1 {
    font-size: 28px;
    line-height: 1.14;
  }

  .article-detail-hero p {
    font-size: 15.5px;
  }

  .article-body-section h2 {
    font-size: 22px;
  }

  .article-body-section p {
    font-size: 16px;
  }

  .article-body-section {
    padding: 18px;
  }

  .articles-roadmap-list li {
    grid-template-columns: 1fr;
  }
}
