:root {
  --color-ink: #151515;
  --color-muted: #777;
  --color-line: #e8e8e8;
  --color-soft: #f7f7f7;
  --color-accent: #ed6b8f;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--color-ink);
  font-family: Arial, "Malgun Gothic", sans-serif;
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
/* .container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
} */
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 10px 18px;
  background: #000;
  color: #fff;
}
.skip-link:focus {
  top: 10px;
}

.site-header__utility {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 12px;
}
.site-header__utility-inner,
.site-header__main,
.site-header__actions,
.site-nav__list {
  display: flex;
  align-items: center;
}
.site-header__utility-inner {
  justify-content: space-between;
}
.site-header__main {
  position: relative;
  min-height: 110px;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: 8px;
}
.site-header__logo-sub {
  display: block;
  margin-top: 2px;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 4px;
  text-align: center;
}
.site-header__actions {
  gap: 12px;
}
.site-header__button {
  padding: 10px 16px;
  border: 1px solid var(--color-line);
  border-radius: 99px;
  background: #fff;
  cursor: pointer;
}
.site-header__search {
  width: 230px;
  padding: 11px 16px;
  border: 1px solid #ccc;
  border-radius: 99px;
}
.site-header__menu-button {
  display: none;
}

.site-nav {
  border-block: 1px solid var(--color-line);
  background: #fff;
}
.site-nav__list {
  min-height: 58px;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  list-style: none;
  padding: 0;
}
.site-nav__link {
  display: block;
  padding: 19px 0 16px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
}
.site-nav__link:hover,
.site-nav__link--active {
  border-color: var(--color-ink);
}

.hero {
  position: relative;
  min-height: 535px;
  background: #e8d6d8 url("../images/hero.jpg") center/cover no-repeat;
}
.hero__content {
  display: flex;
  min-height: 535px;
  align-items: center;
}
.hero__panel {
  width: 440px;
  padding: 44px;
  background: rgb(255 255 255 / 94%);
}
.hero__eyebrow,
.section-heading__eyebrow {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.hero__title {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}
.hero__text {
  margin-bottom: 28px;
  color: #555;
}
.button {
  display: inline-flex;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
}
.button--light {
  background: #fff;
  color: #111;
}

.section {
  padding: 82px 0;
}
.section--soft {
  background: var(--color-soft);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading__title {
  margin: 5px 0 0;
  font-size: clamp(26px, 3vw, 40px);
}
.section-heading__link {
  color: var(--color-muted);
  font-size: 13px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #eee;
}
.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.category-card:hover .category-card__image {
  transform: scale(1.035);
}
.category-card__label {
  position: absolute;
  inset: auto 18px 18px;
  padding: 10px 14px;
  background: rgb(255 255 255 / 90%);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 20px;
}
.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-soft);
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.product-card:hover .product-card__image {
  transform: scale(1.04);
}
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.product-card__name {
  margin: 15px 0 8px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 500;
}
.product-card__price {
  font-size: 17px;
  font-weight: 800;
}
.product-card__price-old {
  margin-left: 6px;
  color: #aaa;
  font-size: 12px;
  text-decoration: line-through;
}
.product-card__discount {
  margin-right: 6px;
  color: var(--color-accent);
}
.product-card__meta {
  margin-top: 7px;
  color: #999;
  font-size: 12px;
}

.brand-banner {
  padding: 95px 0;
  background: #202327;
  color: #fff;
  text-align: center;
}
.brand-banner__title {
  margin: 0 0 14px;
  font-size: 48px;
  letter-spacing: 10px;
}
.brand-banner__text {
  margin: auto;
  max-width: 620px;
  color: #ccc;
}

.page-hero {
  padding: 68px 0 48px;
  text-align: center;
}
.page-hero__title {
  margin: 0 0 8px;
  font-size: 42px;
}
.page-hero__description {
  color: var(--color-muted);
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}
.filter-bar__list {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.filter-bar__button {
  border: 0;
  background: none;
  color: #777;
  cursor: pointer;
}
.filter-bar__button--active {
  color: #111;
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 55px;
  padding-bottom: 90px;
}
.side-nav__title {
  margin: 0 0 18px;
  font-size: 18px;
}
.side-nav__list {
  margin: 0;
  padding: 0;
  border-top: 2px solid #111;
  list-style: none;
}
.side-nav__link {
  display: block;
  padding: 14px 5px;
  border-bottom: 1px solid var(--color-line);
  color: #666;
}
.side-nav__link--active {
  color: #111;
  font-weight: 800;
}
.board__title {
  margin: 0 0 24px;
  font-size: 28px;
}
.board__row {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}
.board__row--head {
  border-top: 2px solid #111;
  background: var(--color-soft);
  font-weight: 800;
}
.board__date,
.board__number {
  color: #888;
  text-align: center;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.story-card {
  border: 1px solid var(--color-line);
}
.story-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.story-card__body {
  padding: 20px;
}
.story-card__type {
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
}
.story-card__title {
  margin: 8px 0;
  font-size: 18px;
}
.story-card__meta {
  color: #999;
  font-size: 12px;
}

.form {
  max-width: 760px;
}
.form__group {
  margin-bottom: 18px;
}
.form__label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}
.form__control {
  width: 100%;
  padding: 13px;
  border: 1px solid #ccc;
}
.form__control--textarea {
  min-height: 150px;
  resize: vertical;
}
.profile {
  padding: 30px;
  background: var(--color-soft);
}
.profile__grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-top: 2px solid #111;
}
.profile__term,
.profile__description {
  margin: 0;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}
.profile__term {
  font-weight: 800;
}

.site-footer {
  padding: 46px 0;
  background: #171717;
  color: #999;
  font-size: 12px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.site-footer__brand {
  margin-bottom: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
}

@media (max-width: 900px) {
  .site-header__main {
    min-height: 78px;
  }
  .site-header__logo {
    font-size: 24px;
  }
  .site-header__search,
  .site-header__button--subscribe {
    display: none;
  }
  .site-header__menu-button {
    display: block;
  }
  .site-nav {
    display: none;
  }
  .site-nav--open {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 10px;
  }
  .site-nav__link {
    padding: 12px 0;
  }
  .hero,
  .hero__content {
    min-height: 440px;
  }
  .hero__panel {
    width: min(100%, 390px);
    padding: 28px;
  }
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .side-nav {
    display: none;
  }
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  /* .container {
    width: min(calc(100% - 28px), var(--container));
  } */
  .site-header__utility {
    display: none;
  }
  .site-header__main {
    gap: 8px;
  }
  .site-header__logo {
    font-size: 20px;
    letter-spacing: 5px;
  }
  .site-header__logo-sub {
    font-size: 8px;
    letter-spacing: 3px;
  }
  .site-header__actions {
    gap: 5px;
  }
  .site-header__button {
    padding: 8px 11px;
  }
  .site-header__menu-button {
    position: absolute;
    right: 0;
    display: block;
  }
  .hero__content {
    align-items: end;
    padding-bottom: 20px;
  }
  .hero__panel {
    width: calc(100% - 10px);
  }
  .section {
    padding: 55px 0;
  }
  .section-heading {
    align-items: start;
  }
  .category-grid,
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-grid {
    gap: 28px 10px;
  }
  .product-card__name {
    font-size: 12px;
  }
  .page-hero {
    padding: 45px 0 30px;
  }
  .page-hero__title {
    font-size: 32px;
  }
  .filter-bar {
    overflow-x: auto;
  }
  .board__row {
    grid-template-columns: 55px 1fr;
  }
  .board__date {
    display: none;
  }
  .site-footer__inner {
    display: block;
  }
  .profile__grid {
    grid-template-columns: 105px 1fr;
    font-size: 12px;
  }
}
