/*
Theme Name: Affliction Russia
Theme URI: https://affliction-russia.vercel.app/
Author: Affliction Russia
Description: Нативная тема WordPress/WooCommerce для официального сайта Affliction Russia и ООО «РЕПЕРТА».
Version: 0.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: affliction-russia
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Small critical layer kept in the root stylesheet so privacy and navigation
   safeguards remain available even when a host caches the main design bundle. */
html.has-open-drawer,
html.has-open-drawer body {
  overflow: hidden;
}

/* Native Gutenberg buttons keep the established Affliction button language.
   The wrapper stays a normal core/button block, so editors can change its
   label, URL, order and style without touching HTML. */
.affliction-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink, #0b0b0b);
  border-radius: 0;
  background: var(--ink, #0b0b0b);
  color: var(--paper, #fff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.affliction-button .wp-block-button__link:hover {
  opacity: .82;
}

.affliction-button.is-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink, #0b0b0b);
}

.affliction-button.is-outline .wp-block-button__link:hover {
  background: var(--ink, #0b0b0b);
  color: var(--paper, #fff);
  opacity: 1;
}

.section--ink .affliction-button .wp-block-button__link,
.affliction-button.is-on-ink .wp-block-button__link {
  border-color: var(--paper, #fff);
  background: var(--paper, #fff);
  color: var(--ink, #0b0b0b);
}

.section--ink .affliction-button.is-outline .wp-block-button__link,
.affliction-button.is-on-ink.is-outline .wp-block-button__link {
  background: transparent;
  color: var(--paper, #fff);
}

.wp-block-buttons.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.affliction-media-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.affliction-media-grid > figure {
  display: grid;
  width: auto !important;
  min-height: 220px;
  margin: 0 !important;
  place-items: center;
  padding: 36px;
  border: 1px solid rgb(255 255 255 / 26%);
  background: #171717;
}

.affliction-media-grid img {
  width: 100%;
  height: auto;
  filter: invert(1);
}

@media (max-width: 767px) {
  .affliction-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .affliction-media-grid > figure {
    min-height: 180px;
  }
}

@media (max-width: 430px) {
  .affliction-button .wp-block-button__link {
    padding: 0 14px;
    letter-spacing: .03em;
  }
}

.page-hero--legal {
  min-height: 0;
}

.legal-document {
  max-width: 920px;
}

.legal-document__updated {
  margin: 0 0 40px;
  color: var(--muted-ink, #696969);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-document h2 {
  margin: 56px 0 18px;
  max-width: 760px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: .98;
  text-transform: uppercase;
}

.legal-document h2:first-of-type {
  margin-top: 0;
}

.legal-document p {
  max-width: 820px;
  color: var(--muted-ink, #696969);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
}

.legal-document a {
  color: var(--ink, #0b0b0b);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-details {
  margin: 0;
  border-top: 1px solid var(--line, #e5e5e5);
}

.legal-details > div {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.8fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line, #e5e5e5);
}

.legal-details dt,
.legal-details .affliction-definition-term {
  color: var(--muted-ink, #696969);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-details dd,
.legal-details .affliction-definition-description {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .legal-document__updated {
    margin-bottom: 28px;
  }

  .legal-document h2 {
    margin-top: 40px;
  }

  .legal-details > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
