*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-root {
  position: relative;
  z-index: 0;
}

/* контейнер и секции */

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: rgba(37, 30, 25, 0.6);
}

.section-dark {
  background: radial-gradient(circle at top, #241b15 0%, #1a1511 45%, #120e0b 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0.75rem 0 0.75rem;
}

.section-title-center {
  text-align: center;
}

.section-intro {
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--color-muted-fg);
}

.volume-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 23, 20, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

/* логотип */

.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: var(--shadow-engraved);
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* навигация */

.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease-out;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-active {
  color: var(--color-accent);
}

.nav-link-active::after {
  width: 100%;
}

/* бургер */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  margin: 4px 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle-open span:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

/* hero */

.hero-section {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 3.5rem 2.5rem;
  background-color: rgba(37, 30, 25, 0.9);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  line-height: 1.1;
  margin: 0;
}

.hero-subtitle {
  color: var(--color-muted-fg);
  margin: 0.5rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-list {
  margin: 1.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-muted-fg);
}

.hero-list li {
  margin-bottom: 0.35rem;
}

/* hero media */

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.6) contrast(0.95) brightness(0.9);
  transition: filter 0.7s ease-out, transform 0.7s ease-out;
}

.hero-image:hover img {
  filter: sepia(0) contrast(1) brightness(1);
  transform: scale(1.05);
}

/* сетка карточек */

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

/* карточка */

.card {
  position: relative;
  padding: 2.4rem 2.6rem;
  background: linear-gradient(145deg, #211912 0%, #18120e 60%, #15100c 100%);
  border-radius: 0;
  border: 1px solid rgba(201, 169, 98, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(#c9a962, #c9a962) left top / 22px 1px no-repeat,
    linear-gradient(#c9a962, #c9a962) left top / 1px 22px no-repeat,
    linear-gradient(#c9a962, #c9a962) right bottom / 22px 1px no-repeat,
    linear-gradient(#c9a962, #c9a962) right bottom / 1px 22px no-repeat;
  opacity: 0.85;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 0.7rem;
}

.card-text {
  font-size: 0.92rem;
  color: var(--color-muted-fg);
  max-width: 24rem;
  margin: 0;
}

.card:hover {
  border-color: rgba(201, 169, 98, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.card-compact {
  padding: 2rem 2.2rem;
}

/* proclamation */

.proclamation {
  background-color: rgba(37, 30, 25, 0.95);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}

.proclamation-text {
  margin: 1.25rem 0 0;
  color: var(--color-muted-fg);
}

/* footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: #181310;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-logo .logo-title {
  font-size: 1.2rem;
}

.footer-text {
  color: var(--color-muted-fg);
  font-size: 0.9rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.35rem;
  transition: color 0.3s ease-out;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--color-muted-fg);
}

.footer-meta-link {
  font-size: 0.8rem;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
}

/* контактный тизер */

.contact-teaser {
  padding: 2.5rem 2.5rem 2.75rem;
  background-color: rgba(37, 30, 25, 0.95);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}

.contact-teaser-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
  grid-template-columns: 1.3fr 1fr;
}

.contact-teaser-info p {
  margin: 0.2rem 0;
}

.contact-teaser-info a {
  color: var(--color-accent);
}

.contact-teaser-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* адаптив */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-teaser-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.5rem 0;
  }
  .hero-grid {
    padding: 2rem 1.5rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: rgba(28, 23, 20, 0.98);
    border-bottom: 1px solid var(--color-border);
    display: none;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
  }
  .site-nav-open {
    display: flex;
  }
  .nav-toggle {
    display: inline-block;
  }
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}