:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-alt: #f0f0ec;
  --text: #1b1b1a;
  --text-muted: #585856;
  --border: rgba(27, 27, 26, 0.12);
  --accent: #2e2e2c;
  --accent-2: #9a7b4f;
  --secondary: #3d3d3a;
  --on-accent: #fbfbf9;
  --dark-band: #1b1b1a;
  --radius: 10px;
  --btn-radius: 0px;
  --font-heading: Baskerville, 'Baskerville Old Face', Georgia, serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --max-width: 1160px;
  --section-pad: 112px;
  --hero-lh: 1.14;
  --shadow-hover: 0 12px 40px rgba(27, 27, 26, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.4px;
  line-height: var(--hero-lh);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(38px, 6vw, 66px);
}

h2 {
  font-size: clamp(24px, 4vw, 38px);
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
}

p {
  margin: 0 0 1.2em;
}

.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section--surface {
  background: var(--surface);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--on-accent);
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.text-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.independence-notice {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.independence-notice--hero {
  max-width: 640px;
  margin: 1.5em auto 0;
  font-size: 11px;
  color: rgba(251, 251, 249, 0.72);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-lockup:hover {
  color: var(--text);
}

.brand-lockup__logo {
  width: 40px;
  height: 39px;
  object-fit: contain;
}

.brand-lockup__name {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 2px;
}

.hero {
  position: relative;
  min-height: max(420px, 62vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 27, 26, 0.55), rgba(27, 27, 26, 0.72));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  max-width: 780px;
}

.hero__content .kicker {
  color: rgba(251, 251, 249, 0.75);
}

.hero__content h1 {
  color: var(--on-accent);
}

.hero__content p {
  color: rgba(251, 251, 249, 0.88);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.category-card {
  position: relative;
  min-height: 480px;
}

.category-card__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.category-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__panel {
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  background: var(--surface);
  padding: 36px 32px;
  border-radius: var(--radius);
  transform: translateY(40%);
}

.category-card__panel h2 {
  font-size: clamp(22px, 3vw, 32px);
}

.strip-section {
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-section h2 {
  margin-bottom: 0.5em;
}

.strip-section p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 48px;
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}

.step-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 0.5em;
}

.step-item p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

.quote-section {
  text-align: center;
  padding: var(--section-pad) 24px;
}

.quote-section__pull {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.35;
  color: var(--accent);
  max-width: 780px;
  margin: 0 auto 24px;
  letter-spacing: 0.4px;
}

.quote-section__frame {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.page-header {
  padding: 80px 0 48px;
  text-align: center;
}

.page-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.masonry-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.masonry-card--image-bottom {
  flex-direction: column-reverse;
}

.masonry-card__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.masonry-card__body {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.masonry-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.masonry-card__stars {
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.masonry-card__body p {
  flex: 1;
  font-size: 15px;
  color: var(--text-muted);
}

.masonry-card__body .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.heritage-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}

.heritage-card__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.heritage-card__body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.heritage-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.heritage-card__stars {
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.heritage-card__body p {
  flex: 1;
  font-size: 15px;
  color: var(--text-muted);
}

.heritage-card__body .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.catalog-closing {
  text-align: center;
  padding: 64px 24px 0;
  max-width: 640px;
  margin: 0 auto;
}

.catalog-closing p {
  color: var(--text-muted);
}

.editorial-stack {
  max-width: 720px;
  margin: 0 auto;
}

.editorial-block {
  margin-bottom: 80px;
}

.editorial-block:last-child {
  margin-bottom: 0;
}

.editorial-block__num {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.editorial-block h2 {
  margin-bottom: 1em;
}

.editorial-block p {
  color: var(--text-muted);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.section-index {
  position: sticky;
  top: 100px;
}

.section-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-index li {
  margin-bottom: 12px;
}

.section-index a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  display: block;
}

.section-index a:hover {
  color: var(--accent);
  border-left-color: var(--accent-2);
}

.prose-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

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

.prose-section h2 {
  margin-bottom: 1em;
}

.prose-section p {
  color: var(--text-muted);
}

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
}

.contact-intro p {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-agree input {
  margin-top: 4px;
  flex-shrink: 0;
}

.form-agree label {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.form-error {
  font-size: 13px;
  color: #8b3a3a;
  margin-top: 6px;
}

.form-status {
  font-size: 14px;
  color: #8b3a3a;
  margin-top: 16px;
}

.confirmation-panel {
  background: var(--surface-alt);
  padding: 40px 32px;
  border-radius: var(--radius);
  text-align: center;
}

.confirmation-panel h2 {
  font-size: 24px;
  margin-bottom: 0.5em;
}

.confirmation-panel p {
  color: var(--text-muted);
}

.confirmation-panel .reference {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 16px 0;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 0.3em;
}

.legal-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 2em;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 1.5em;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.4em;
}

.sitemap-list {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sitemap-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.sitemap-row a {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text);
}

.sitemap-row a:hover {
  color: var(--accent-2);
}

.sitemap-row span {
  font-size: 15px;
  color: var(--text-muted);
}

.site-footer {
  background: var(--bg);
  margin-top: auto;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-links__group h3 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links__group li {
  margin-bottom: 8px;
}

.footer-links__group a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.footer-links__group a:hover {
  color: var(--accent-2);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand__blurb {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0;
}

.footer-brand__email {
  font-size: 14px;
}

.footer-brand__email a {
  color: var(--accent-2);
}

.footer-brand button[data-cookie-settings="1"] {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--accent-2);
  cursor: pointer;
  text-align: left;
}

.footer-brand button[data-cookie-settings="1"]:hover {
  color: var(--accent);
}

.footer-requisites {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.site-footer__bar {
  background: var(--surface-alt);
  padding: 32px 24px;
  text-align: center;
}

.site-footer__bar .independence-notice {
  max-width: 680px;
  margin: 0 auto 20px;
}

.footer-bar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-bar-links a,
.footer-bar-links button {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  letter-spacing: 0.04em;
}

.footer-bar-links a:hover,
.footer-bar-links button:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.reveal {
  opacity: 0;
  transition: opacity 240ms ease;
}

.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transition: none;
  }
}

.consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  display: none;
}

.consent-backdrop.is-open {
  display: block;
}

.consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 520px;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 80px rgba(27, 27, 26, 0.2);
  padding: 32px 28px;
  display: none;
}

.consent-modal.is-open {
  display: block;
}

.consent-modal__copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.consent-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.consent-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.consent-category input[disabled] {
  opacity: 0.5;
}

.consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-modal__actions .btn {
  flex: 1;
  min-width: 140px;
}

.consent-modal__actions .btn--accept {
  order: -1;
}

.consent-modal__policy {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  .consent-modal__actions {
    flex-direction: column;
  }

  .consent-modal__actions .btn {
    width: 100%;
  }

  .consent-modal__actions .btn--accept {
    order: 0;
  }
}

@media (max-width: 900px) {
  .heritage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-row::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(27, 27, 26, 0.08);
    z-index: 200;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 27, 26, 0.4);
    z-index: 150;
    display: none;
  }

  .nav-backdrop.is-open {
    display: block;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-index {
    position: static;
  }

  .section-index ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .section-index a {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
    gap: 120px;
  }

  .category-card {
    min-height: 400px;
  }
}

@media (max-width: 560px) {
  .heritage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sitemap-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 64px;
  }

  .brand-lockup__name {
    font-size: 17px;
  }

  .category-card__panel {
    left: 12px;
    right: 12px;
    padding: 24px 20px;
  }
}
