@font-face {
  font-family: "Bounded";
  src: url("./app/assets/fonts/Bounded-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --w-content: 95.833vw;
  --w-hero-logo: 95.625vw;
  --w-hero-content: 66.667vw;
  --w-col-large: 56.944vw;
  --w-col-small: 27.778vw;
  --w-col-text: 47.222vw;
  --w-col-about: 47.222vw;
  --w-col-body-large: 37.5vw;
  --w-btn-primary: 27.778vw;
  --w-btn-about: 8.333vw;
  --w-footer-logo: 37.5vw;
  --w-tagline: 16.181vw;
  --w-tagline-hero: 15.208vw;
  --h-hero: 56.944vw;
  --h-article-large: 36.528vw;
  --h-article-small: 27.778vw;
  --h-service-img: 36.528vw;
  --h-footer: 24.028vw;
  --h-logo-hero: 15.000vw;
  --h-logo-footer: 5.833vw;
  --fs-h1: clamp(42px, 4.861vw, 70px);
  --fs-h2: clamp(44px, 5.556vw, 80px);
  --fs-h3: clamp(34px, 4.167vw, 60px);
  --fs-body-lg: clamp(22px, 2.292vw, 33px);
  --fs-body-md: clamp(18px, 1.736vw, 25px);
  --fs-body: clamp(16px, 1.25vw, 18px);
  --fs-label: clamp(12px, 0.972vw, 14px);
  --fs-nav: clamp(14px, 1.25vw, 18px);
  --gap-section: 18.75vw;
  --gap-group: 12.5vw;
  --gap-block: 6.25vw;
  --gap-element: 2.083vw;
  --gap-tight: 1.389vw;
  --gap-service: 17.639vw;
  --color-bg: #111111;
  --color-text: #fcf8c9;
}

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

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", sans-serif;
  line-height: 1.2;
  min-width: 0;
  position: relative;
  overflow-x: hidden;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  position: absolute;
  left: 2.083vw;
  top: 0;
  width: 95.833vw;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.bg-grid img {
  width: 100%;
  height: 100%;
}

.site-header {
  position: relative;
  width: 100%;
  height: var(--h-hero);
  overflow: hidden;
  background-color: var(--color-bg);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  position: absolute;
  left: -23.89%;
  top: -32.14%;
  width: 147.78%;
  height: 168.55%;
  max-width: none;
  object-fit: fill;
}

.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.logo {
  position: absolute;
  left: 2.222%;
  top: 3.659%;
  width: 95.625%;
  height: 26.341%;
  z-index: 2;
}
.logo img {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  top: 55.732%;
  left: 2.083%;
  width: 66.667%;
  z-index: 2;
}

.hero-content__inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}

.hero-content__label {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

.hero-content__title {
  font-family: "Bounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -1.4px;
  text-transform: uppercase;
  color: var(--color-text);
}

.hero-tagline {
  position: absolute;
  top: 81.707%;
  left: 70.139%;
  width: 15.208%;
  z-index: 2;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--color-text);
}

.page-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-section);
  padding-top: var(--gap-block);
  width: 100%;
}

.section-group--articles {
  width: var(--w-content);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--gap-section);
}

.section-group--services {
  width: var(--w-content);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-section);
}

.about {
  width: var(--w-col-about);
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}
.about__text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-body-lg);
  line-height: 1.2;
  color: var(--color-text);
  width: var(--w-col-about);
}

@media (max-width: 1024px) {
  .page-content {
    gap: 120px;
    padding-top: 60px;
  }
  .section-group--articles,
  .section-group--services {
    width: calc(100% - 40px);
    gap: 120px;
  }
  .about {
    width: 60%;
  }
  .about__text {
    width: 100%;
    font-size: 22px;
  }
}
@media (max-width: 640px) {
  .page-content {
    gap: 80px;
    padding-top: 40px;
  }
  .section-group--articles,
  .section-group--services {
    width: calc(100% - 24px);
    gap: 80px;
  }
  .about {
    width: 100%;
  }
}
.site-nav {
  position: absolute;
  top: 34.878%;
  left: 0;
  width: 100%;
  z-index: 2;
}

.site-nav__link {
  position: absolute;
  font-family: "Bounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--fs-nav);
  line-height: 1.08;
  letter-spacing: -0.36px;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}
.site-nav__link:nth-child(1) {
  left: 2.083%;
}
.site-nav__link:nth-child(2) {
  left: 21.528%;
}
.site-nav__link:nth-child(3) {
  left: 40.972%;
}
.site-nav__link:nth-child(4) {
  left: 60.417%;
}
.site-nav__link:nth-child(5) {
  left: 79.861%;
}

@media (max-width: 1024px) {
  .site-nav {
    top: 180px;
    width: 100%;
  }
  .site-nav__link {
    font-size: 14px;
  }
  .site-nav__link:nth-child(1) {
    left: 2.08%;
  }
  .site-nav__link:nth-child(2) {
    left: 21.5%;
  }
  .site-nav__link:nth-child(3) {
    left: 40.97%;
  }
  .site-nav__link:nth-child(4) {
    left: 60.4%;
  }
  .site-nav__link:nth-child(5) {
    left: 79.86%;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 100px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}
.btn--primary {
  width: var(--w-btn-primary);
}
.btn--about {
  width: var(--w-btn-about);
  font-size: var(--fs-label);
  padding: 8px 0;
  background-color: var(--color-bg);
}

@media (max-width: 1024px) {
  .btn--primary {
    width: 260px;
    font-size: 14px;
    padding: 8px 30px;
  }
}
.articles {
  width: var(--w-content);
  display: flex;
  flex-direction: column;
  gap: var(--gap-group);
}

.articles-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: var(--w-content);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}
.article-card--large {
  width: var(--w-col-large);
  align-items: center;
}
.article-card--small {
  width: var(--w-col-small);
  align-items: flex-start;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-tight);
  width: var(--w-col-small);
}
.article-card__body--large {
  width: var(--w-col-body-large);
}

.article-card__tag {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

.article-card__title {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-body-md);
  line-height: 1.2;
  color: var(--color-text);
}

.article-img--large {
  width: var(--w-col-large);
  height: var(--h-article-large);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.article-img--small {
  width: var(--w-col-small);
  height: var(--h-article-small);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-left: 1px solid rgba(216, 216, 216, 0.1);
  border-right: 1px solid rgba(216, 216, 216, 0.1);
}

.article-img__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.article-img__photo img {
  position: absolute;
  max-width: none;
  display: block;
}

.article-img--large .article-img__photo img {
  left: -5%;
  top: -5.32%;
  width: 110.122%;
  height: 110.836%;
  object-fit: cover;
}

.article-img--small .article-img__photo img {
  left: -10.5%;
  top: -17.25%;
  width: 283.25%;
  height: 161.75%;
  object-fit: cover;
}

.article-img__overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.article-img__overlay img {
  position: absolute;
  max-width: none;
  display: block;
}

.article-img--large .article-img__overlay img {
  left: -29.24%;
  top: 0;
  width: 158.47%;
  height: 100%;
  object-fit: fill;
}

.article-img__tint {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.2);
}

.article-img--small .article-img__overlay img {
  left: -34%;
  top: -3.5%;
  width: 184.75%;
  height: 107.25%;
  object-fit: cover;
}

.article-img__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(25.75deg, #111111 14.549%, rgba(17, 17, 17, 0) 48.233%);
}

.article-img--simple .article-img__overlay {
  display: none;
}
.article-img--simple.article-img--small {
  border-left: none;
  border-right: none;
}

@media (max-width: 1024px) {
  .articles {
    width: 100%;
    gap: 80px;
  }
  .articles-row {
    width: 100%;
    flex-direction: column;
    gap: 60px;
    align-items: flex-start;
  }
  .article-card--large {
    width: 100%;
  }
  .article-card--small {
    width: 70%;
  }
  .article-img--large {
    width: 100%;
    height: 380px;
  }
  .article-img--large .article-img__photo img {
    width: 105%;
    height: auto;
    min-height: 380px;
    left: -2.5%;
    top: 0;
  }
  .article-img--small {
    width: 70%;
    height: 280px;
  }
  .article-img--small .article-img__photo img {
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
  }
}
@media (max-width: 640px) {
  .article-card--small {
    width: 100%;
  }
  .article-img--small {
    width: 100%;
    height: 240px;
  }
}
.services-header {
  width: var(--w-content);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--gap-block);
}
.services-header__title {
  font-family: "Bounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -1.6px;
  text-transform: uppercase;
  color: var(--color-text);
  width: 100%;
}
.services-header__sub {
  width: var(--w-col-text);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-body-lg);
  line-height: 1.2;
  color: var(--color-text);
}

.services-list {
  width: var(--w-content);
  display: flex;
  flex-direction: column;
  gap: var(--gap-group);
}

.service-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--w-content);
}
.service-block__content {
  width: var(--w-col-text);
  display: flex;
  flex-direction: column;
  gap: var(--gap-service);
  flex-shrink: 0;
}
.service-block__top {
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}
.service-block__divider {
  width: var(--w-col-text);
  height: 1px;
  overflow: visible;
  flex-shrink: 0;
}
.service-block__divider img {
  width: 100%;
  height: 1px;
  display: block;
}
.service-block__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}
.service-block__heading {
  font-family: "Bounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.08;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: var(--color-text);
}
.service-block__body {
  width: var(--w-col-small);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--color-text);
}

.service-img {
  width: var(--w-col-text);
  height: var(--h-service-img);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.service-img img {
  position: absolute;
  max-width: none;
  display: block;
}
.service-img--01 img {
  left: -5.588%;
  top: -41.653%;
  width: 111.324%;
  height: 192.015%;
}
.service-img--02 img {
  left: -27.647%;
  top: -28.707%;
  width: 155.147%;
  height: 157.605%;
}

@media (max-width: 1024px) {
  .services-header__title {
    font-size: 48px;
    letter-spacing: -1px;
  }
  .services-header__sub {
    width: 100%;
    font-size: 20px;
  }
  .services-list {
    width: 100%;
    gap: 80px;
  }
  .service-block {
    width: 100%;
    flex-direction: column;
    gap: 40px;
  }
  .service-block__content {
    width: 100%;
    gap: 40px;
  }
  .service-block__divider {
    width: 100%;
  }
  .service-block__body {
    width: 100%;
  }
  .service-img {
    width: 100%;
    height: 340px;
  }
  .service-img--01 img, .service-img--02 img {
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
  }
}
.site-footer {
  width: 100%;
  height: var(--h-footer);
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
  flex-shrink: 0;
}
.site-footer__logo {
  position: absolute;
  left: 2.083%;
  top: 8.671%;
  width: 37.5%;
  height: 24.28%;
}
.site-footer__logo img {
  width: 100%;
  height: 100%;
}
.site-footer__tagline {
  position: absolute;
  left: 79.861%;
  top: 21.387%;
  width: 16.181%;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--color-text);
}
.site-footer__nav {
  position: absolute;
  top: 85.84%;
  left: 0;
  width: 100%;
}
.site-footer__nav .site-nav__link:nth-child(1) {
  left: 2.083%;
}
.site-footer__nav .site-nav__link:nth-child(2) {
  left: 21.528%;
}
.site-footer__nav .site-nav__link:nth-child(3) {
  left: 40.972%;
}
.site-footer__nav .site-nav__link:nth-child(4) {
  left: 60.417%;
}
.site-footer__nav .site-nav__link:nth-child(5) {
  left: 79.861%;
}

@media (max-width: 1024px) {
  .site-footer {
    height: auto;
    min-height: 200px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .site-footer__logo {
    position: static;
    width: 200px;
    height: auto;
  }
  .site-footer__tagline {
    position: static;
    width: auto;
    font-size: 14px;
  }
  .site-footer__nav {
    position: static;
  }
  .site-footer__nav .site-nav__link {
    position: static;
    display: inline-block;
    margin-right: 20px;
    font-size: 12px;
  }
}
.tool-page {
  position: relative;
  z-index: 1;
  width: min(980px, 100% - 40px);
  margin: 48px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tool-page__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-page__back {
  width: fit-content;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.85;
}

.tool-page__title {
  font-family: "Bounded", system-ui, sans-serif;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.1px;
  text-transform: uppercase;
  color: var(--color-text);
}

.tool-page__lead {
  max-width: 760px;
  font-family: "Inter", sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.2;
  color: var(--color-text);
}

.tool-card {
  background: rgba(252, 248, 201, 0.04);
  border: 1px solid rgba(252, 248, 201, 0.25);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-form {
  display: grid;
  gap: 18px;
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-field span {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text);
}
.tool-field input,
.tool-field select,
.tool-field textarea {
  width: 100%;
  border: 1px solid rgba(252, 248, 201, 0.35);
  background: rgba(17, 17, 17, 0.55);
  color: var(--color-text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  padding: 10px 12px;
}
.tool-field textarea {
  resize: vertical;
  min-height: 68px;
}

.tool-field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}
.tool-field--checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #fcf8c9;
  cursor: pointer;
}
.tool-field--checkbox span {
  font-size: 16px;
}

.tool-submit {
  justify-self: start;
}

.tool-result {
  border-top: 1px solid rgba(252, 248, 201, 0.3);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-result pre {
  margin: 0;
  border: 1px solid rgba(252, 248, 201, 0.25);
  background: rgba(17, 17, 17, 0.75);
  color: var(--color-text);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.45;
  padding: 14px;
  white-space: pre-wrap;
}

.tool-result__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tool-result__head h2 {
  margin: 0;
  font-family: "Bounded", system-ui, sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--color-text);
}

.tool-result__note {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .tool-page {
    width: calc(100% - 24px);
    margin: 28px auto 48px;
  }
  .tool-card {
    padding: 16px;
  }
  .tool-result__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 404 — brand static page */
.brand-404 {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

.brand-404__grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
}

.brand-404__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-404__card {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  border: 1px solid rgba(252, 248, 201, 0.25);
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(2px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-404__label {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.85;
}

.brand-404__title {
  margin: 0;
  font-family: "Bounded", system-ui, sans-serif;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  text-transform: uppercase;
  color: var(--color-text);
}

.brand-404__lead {
  margin: 0;
  max-width: 640px;
  font-family: "Inter", sans-serif;
  font-size: clamp(17px, 2vw, 26px);
  line-height: 1.25;
  color: var(--color-text);
}

.brand-404__home {
  margin-top: 14px;
  width: min(360px, 100%);
}

@media (max-width: 768px) {
  .brand-404 {
    padding: 16px;
    align-items: flex-start;
  }

  .brand-404__card {
    margin-top: 56px;
    padding: 24px;
    gap: 14px;
  }

  .brand-404__title {
    font-size: clamp(30px, 10vw, 48px);
    letter-spacing: -0.8px;
  }

  .brand-404__lead {
    font-size: 18px;
  }

  .brand-404__home {
    width: 100%;
  }
}

/* Reading page */
.reading-page {
  position: relative;
  z-index: 1;
  width: var(--w-content);
  margin: 3.333vw auto 9.722vw;
  display: flex;
  flex-direction: column;
  gap: var(--gap-block);
}

.reading-page__head {
  display: flex;
  flex-direction: column;
  gap: 1.111vw;
}

.reading-page__back {
  width: fit-content;
  font-family: "Inter", sans-serif;
  font-size: var(--fs-label);
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.85;
}

.reading-page__title {
  margin: 0;
  font-family: "Bounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: var(--color-text);
}

.reading-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.694vw;
}

.reading-filters__button {
  border: 1px solid rgba(252, 248, 201, 0.35);
  background: transparent;
  color: var(--color-text);
  font-family: "Inter", sans-serif;
  font-size: var(--fs-label);
  line-height: 1.2;
  padding: 0.5vw 1.111vw;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.reading-filters__button:hover,
.reading-filters__button:focus-visible {
  opacity: 1;
}

.reading-filters__button.is-active {
  opacity: 1;
  background: rgba(252, 248, 201, 0.08);
  border-color: rgba(252, 248, 201, 0.7);
}

.reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-group);
}

.reading-grid .article-card {
  width: 100%;
}

.reading-grid .article-card--large {
  align-items: stretch;
  gap: 1.25vw;
}

.reading-grid .article-card__body,
.reading-grid .article-card__body--large {
  width: 100%;
}

.reading-grid .article-img--large {
  width: 100%;
  height: min(36.528vw, 440px);
}

.reading-grid .article-img--small {
  width: 100%;
}

.reading-grid .article-img__photo img,
.reading-grid .article-img__overlay img {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reading-grid .article-img__overlay {
  display: block;
}

.reading-grid .article-link {
  display: block;
  width: 100%;
}

.reading-grid .article-card__title a {
  text-decoration: none;
}

.reading-grid .article-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reading-grid .article-card[hidden] {
  display: none !important;
}

.reading-page__footer {
  margin-top: 2.778vw;
}

/* Article pages */
.article-page {
  position: relative;
  z-index: 1;
  width: var(--w-content);
  margin: 3.333vw auto 5.556vw;
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}

.article-page__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "Inter", sans-serif;
  font-size: var(--fs-label);
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.85;
}

.article-page__crumbs a {
  text-decoration: none;
}

.article-page__tag {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-label);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

.article-page__title {
  width: min(76vw, 980px);
  margin: 0;
  font-family: "Bounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: var(--color-text);
}

.article-page__hero {
  width: 100%;
  height: min(39vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(252, 248, 201, 0.18);
}

.article-page__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-page__author {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(252, 248, 201, 0.22);
  background: rgba(17, 17, 17, 0.55);
}

.article-page__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.article-page__author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-page__author-name {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text);
}

.article-page__author-info {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.72;
}

.article-page__content {
  width: min(62vw, 860px);
  display: grid;
  gap: 1.111vw;
}

.article-page__content p,
.article-page__content li {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.667vw, 24px);
  line-height: 1.32;
  color: var(--color-text);
}

.article-page__content ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.article-page__actions {
  width: min(62vw, 860px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(252, 248, 201, 0.28);
  border-bottom: 1px solid rgba(252, 248, 201, 0.28);
}

.article-page__actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-page__action {
  border: 1px solid rgba(252, 248, 201, 0.35);
  background: transparent;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  padding: 8px 14px;
  cursor: pointer;
}

.article-page__like-icon {
  display: inline-block;
  min-width: 14px;
  font-size: 14px;
  line-height: 1;
}

.article-page__action[data-like-button] {
  min-width: 132px;
}

.article-page__action.is-active {
  background: rgba(252, 248, 201, 0.11);
  border-color: rgba(252, 248, 201, 0.95);
}

.article-page__action[data-like-button].is-active .article-page__like-icon {
  color: #fcf8c9;
  text-shadow: 0 0 8px rgba(252, 248, 201, 0.35);
}

.article-page__views {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.85;
}

.article-page__share-status {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.72;
}

.article-page__more {
  width: min(62vw, 860px);
  display: grid;
  gap: 14px;
  padding-top: 10px;
}

.article-page__more-title {
  margin: 0;
  font-family: "Bounded", system-ui, sans-serif;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  color: var(--color-text);
}

.article-page__more-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.article-page__more-list a {
  font-family: "Inter", sans-serif;
  font-size: clamp(18px, 1.667vw, 24px);
  line-height: 1.25;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-page__footer {
  margin-top: 5.556vw;
}

@media (max-width: 1024px) {
  .reading-page {
    width: calc(100% - 40px);
    margin: 48px auto 72px;
  }

  .reading-filters {
    gap: 10px;
  }

  .reading-filters__button {
    padding: 8px 14px;
  }

  .reading-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .reading-grid .article-img--large {
    height: 380px;
  }

  .article-page {
    width: calc(100% - 40px);
    margin: 48px auto 60px;
    gap: 20px;
  }

  .article-page__title,
  .article-page__content,
  .article-page__actions,
  .article-page__more {
    width: 100%;
  }

  .article-page__hero {
    height: 380px;
  }

  .article-page__content {
    gap: 14px;
  }

  .article-page__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .reading-page {
    width: calc(100% - 24px);
    margin: 28px auto 48px;
    gap: 24px;
  }

  .reading-page__title {
    font-size: clamp(38px, 14vw, 68px);
  }

  .reading-grid {
    gap: 50px;
  }

  .reading-grid .article-img--large {
    height: 240px;
  }

  .article-page {
    width: calc(100% - 24px);
    margin: 28px auto 48px;
    gap: 18px;
  }

  .article-page__hero {
    height: 220px;
  }

  .article-page__author {
    width: 100%;
  }

  .article-page__actions-group {
    width: 100%;
  }

  .article-page__action {
    width: 100%;
    text-align: left;
  }
}
