:root {
  --sand-bg: #f7f5f2;
  --sand-border: #e6e2d8;
  --graphite-bg: #1f2937;
  --graphite-text: #f3f4f6;
  --text-primary: #2d2d2d;
  --text-secondary: #5c5c5c;
  --accent: #a89f91;
  --accent-hover: #8c7b6c;
  --radius: 2px;
  --spacing: 1.5rem;
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-serif:
    Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida,
    "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--sand-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--sand-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.brand-wrapper svg {
  height: 32px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-link:not(.btn-cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:not(.btn-cta):hover::after {
  width: 100%;
}

.btn-cta {
  border: 1px solid var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.btn-cta:hover {
  background-color: var(--text-primary);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--graphite-bg);
  color: var(--graphite-text);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--accent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-summary {
  opacity: 0.8;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-serif);
  margin-top: 0.5rem;
}

.footer-heading {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.75rem;
  display: inline-block;
}

.footer-links,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.9;
}

.contact-link:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--sand-border);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .main-nav.is-active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem var(--spacing);
    border-left: 2px solid transparent;
  }

  .nav-link:hover {
    background-color: var(--sand-bg);
    border-left-color: var(--accent);
  }

  .btn-cta {
    border: none;
    border-radius: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
/* footer extras */
.footer__extras {
  margin-top: 16px;
}
.footer__extrasInner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-social {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
.footer-social__icon {
  display: block;
}
.footer__poemWrap {
  max-width: 520px;
}
.footer-poem {
  opacity: 0.9;
  font-size: 0.95em;
  line-height: 1.35;
}
/* --- injected by logo step --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto;
}
.brand-logo * {
  vector-effect: non-scaling-stroke;
}
/* --- /injected by logo step --- */

/* --------------------------------
   Layout
-------------------------------- */
.layout-centered-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

.section-padding-neutral-default {
  padding: 3rem 1.5rem;
}

.container-centered {
  width: 100%;
  display: flex;
  justify-content: center;
}

.max-width-contained {
  max-width: 800px;
  width: 100%;
}

/* --------------------------------
   Карточка / обёртка
-------------------------------- */
.card-wrapper {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.component-bordered {
  border: 1px solid #e2e8f0;
}

.radius-tiny {
  border-radius: 4px;
}

.bg-white {
  background-color: #ffffff;
}

.padding-large {
  padding: 2rem;
}

.shadow-subtle {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --------------------------------
   Заголовок документа
-------------------------------- */
.document-header {
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.border-bottom-accent {
  border-bottom: 2px solid #3b82f6;
}

.margin-bottom-medium {
  margin-bottom: 2rem;
}

.text-heading-large {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.text-small {
  font-size: 0.875rem;
}

.text-muted {
  color: #64748b;
}

/* --------------------------------
   Контент документа
-------------------------------- */
.document-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.space-y-medium > * + * {
  margin-top: 1.5rem;
}

.text-heading-medium {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.underline-accent {
  border-bottom: 2px solid #3b82f6;
  display: inline-block;
  padding-bottom: 0.25rem;
}

/* Списки */
.list-disc {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.padding-left-medium {
  padding-left: 2rem;
}

/* --------------------------------
   Контактный блок
-------------------------------- */
.contact-section {
  border-top: 2px solid #3b82f6;
  padding-top: 2rem;
  margin-top: 1rem;
}

.border-top-accent {
  border-top: 2px solid #3b82f6;
}

.padding-top-medium {
  padding-top: 2rem;
}

.contact-details {
  margin-top: 1rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.margin-top-small {
  margin-top: 0.5rem;
}

.link-accent {
  color: #3b82f6;
  text-decoration: none;
}

.link-accent:hover {
  text-decoration: underline;
}

/* Дополнительно для параграфов в контактах */
.contact-details strong {
  font-weight: 600;
  color: #0f172a;
}