@font-face {
  font-family: "Adamant";
  src: url("assets/fonts/Adamant_BG.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Adamant";
  src: url("assets/fonts/Adamant_BG_B.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #241b17;
  --muted: #665d57;
  --line: #ded7cf;
  --terracotta: #c95735;
  --terracotta-dark: #8a321f;
  --green: #0b665a;
  --green-soft: #e5f0ec;
  --lavender: #ece9ff;
  --rose: #f8e8e4;
  --blue-soft: #e9f0f4;
  --shadow: 0 16px 38px rgba(36, 27, 23, 0.10);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.transliteration-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Adamant", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(222, 215, 207, 0.9);
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  display: block;
  max-width: 440px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

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

.site-nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--green);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.lang-toggle:hover,
.lang-toggle[aria-pressed="true"] {
  border-color: rgba(11, 102, 90, 0.35);
  background: var(--green-soft);
  color: var(--green);
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 8px 11px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.92) 48%, rgba(251, 250, 246, 0.38) 100%),
    radial-gradient(circle at 78% 28%, rgba(201, 87, 53, 0.15), transparent 30%),
    var(--bg);
}

.hero-inner,
.section,
.page-hero,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 560px;
  padding: 72px 0;
}

.hero-copy {
  max-width: 690px;
}

.hero-image {
  position: absolute;
  z-index: 1;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 40px;
  width: 360px;
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: none;
  border: 7px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  outline: 2px solid rgba(201, 87, 53, 0.22);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.08;
}

.page-hero h1 {
  font-size: 40px;
}

h2 {
  margin-bottom: 14px;
  font-size: 29px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.22;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.48;
}

.intro-line {
  margin-bottom: 14px;
  color: var(--terracotta-dark);
  font-weight: 700;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-secondary {
  background: var(--green);
  color: #fff;
}

.btn-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.page-hero {
  padding: 58px 0 30px;
}

.section {
  padding: 42px 0;
}

.section-header {
  max-width: 780px;
  margin-bottom: 22px;
}

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

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.proof,
.service,
.archive-card,
.contact-box,
.note-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36, 27, 23, 0.06);
}

.card,
.proof,
.service,
.contact-box,
.note-box {
  padding: 22px;
}

.card,
.proof,
.service {
  display: flex;
  flex-direction: column;
}

.service > .btn {
  align-self: flex-start;
  margin-top: auto;
}

.card p,
.proof p,
.service p,
.archive-card p,
.note-box p {
  color: var(--muted);
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  color: var(--terracotta-dark);
}

.card-link {
  display: inline-block;
  margin-top: auto;
  color: var(--terracotta-dark);
  font-weight: 700;
  text-decoration: none;
}

.document-preview {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.evidence-card .document-preview {
  margin-top: auto;
}

.document-preview summary {
  width: fit-content;
  color: var(--terracotta-dark);
  font-weight: 700;
  cursor: pointer;
}

.document-preview summary:hover {
  color: var(--green);
}

.document-preview img {
  width: 100%;
  max-height: 620px;
  margin-top: 12px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 27, 23, 0.08);
}

.offer-preview img {
  max-height: none;
}

.offer-preview {
  border-top: 0;
  padding-top: 0;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.school-offer-preview {
  grid-column: 1 / -1;
  margin-top: 0;
}

.offer-preview summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  list-style: none;
}

.offer-preview summary::-webkit-details-marker {
  display: none;
}

.band {
  margin: 28px 0;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green-soft);
}

.band .section {
  padding: 0;
}

.proof strong,
.stat {
  display: block;
  color: var(--green);
  font-size: 28px;
  line-height: 1.1;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.avatar-panel {
  display: grid;
  place-items: center;
  min-height: 340px;
}

.avatar-panel img {
  width: min(330px, 82%);
  aspect-ratio: 1;
  object-fit: cover;
  border: 7px solid var(--surface);
  border-radius: 50%;
  outline: 2px solid rgba(201, 87, 53, 0.28);
  box-shadow: var(--shadow);
}

.instagram-panel {
  display: grid;
  justify-items: center;
  align-items: start;
}

.instagram-panel > img {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.character-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 430px);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.character-panel figure {
  display: grid;
  gap: 8px;
  margin: 0;
}

.character-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  background: #f4eee6;
}

.character-panel .character-dzoni,
.character-panel .character-jana {
  object-position: center top;
}

.character-panel figcaption {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.book-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36, 27, 23, 0.06);
}

.book-cover {
  display: grid;
  gap: 10px;
  margin: 0;
}

.book-cover img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border: 1px solid rgba(222, 215, 207, 0.9);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 14px 24px rgba(36, 27, 23, 0.14);
}

.book-cover figcaption {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.manual-excerpt figure {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manual-excerpt .excerpt-image {
  display: block;
  width: min(76%, 320px);
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 27, 23, 0.08);
}

.manual-hands-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(92%, 430px);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 27, 23, 0.08);
}

.manual-hands-pair img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.manual-excerpt figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

@media (min-width: 921px) {
  .manual-excerpt-hands figure {
    min-height: 427px;
  }
}

.service {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-label,
.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--terracotta-dark);
  font-size: 15px;
  font-weight: 700;
}

.check-list {
  margin: 8px 0 22px;
  padding-left: 20px;
}

.check-list li {
  margin: 6px 0;
}

.archive-card {
  overflow: hidden;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.archive-card .archive-body {
  padding: 18px;
}

.archive-meta {
  margin-bottom: 8px;
  color: var(--terracotta-dark);
  font-size: 15px;
  font-weight: 700;
}

.project-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.project-links-card .compact-list {
  margin-top: auto;
}

.compact-list a {
  color: var(--terracotta-dark);
  font-weight: 700;
  text-decoration: none;
}

.compact-list a:hover {
  color: var(--green);
}

.work-link-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 0;
  list-style: none;
}

.work-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--terracotta-dark);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.work-link-list a::after {
  content: "↗";
  margin-left: 12px;
  color: var(--muted);
  font-size: 15px;
}

.work-link-list a:hover {
  color: var(--green);
  border-color: var(--green);
}

.project-link-grid {
  margin-top: 16px;
}

.featured-archive {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 16px;
}

.featured-archive img {
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
  object-position: center;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.exchange-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.featured-archive .exchange-duo img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-links li {
  padding: 0;
  border-bottom: 0;
}

.inline-links a,
.inline-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.inline-links span {
  color: var(--muted);
}

.ai-section-feature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36, 27, 23, 0.06);
}

.ai-section-copy {
  display: flex;
  flex-direction: column;
}

.ai-flyers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.ai-flyers a {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ai-flyers img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #fffdf8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36, 27, 23, 0.06);
}

.video-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36, 27, 23, 0.06);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e1b18;
}

.video-copy {
  padding: 16px;
}

.video-copy .btn {
  margin-top: 12px;
}

.video-copy p {
  margin-bottom: 0;
}

.wide-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.wide-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.memory-moment {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36, 27, 23, 0.06);
}

.moment-copy {
  display: flex;
  flex-direction: column;
}

.moment-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.moment-photos img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
}

.closing-trace {
  grid-column: 1 / -1;
}

.resource-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.resource-list li:last-child {
  border-bottom: 0;
}

.post-group p {
  margin-bottom: 16px;
}

.post-links {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.post-links a {
  color: var(--terracotta-dark);
  font-weight: 700;
  text-decoration: none;
}

.post-links a:hover {
  color: var(--green);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}

.contact-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  padding: 10px 12px;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  margin-top: 36px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: var(--green);
  text-decoration: none;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand small {
    max-width: min(400px, 54vw);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-image {
    right: 20px;
    width: min(360px, calc(100% - 40px));
    opacity: 0.18;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .split,
  .book-covers,
  .contact-layout,
  .project-layout,
  .ai-section-feature,
  .video-grid,
  .featured-archive,
  .wide-note,
  .memory-moment {
    grid-template-columns: 1fr;
  }

  .moment-photos img {
    max-height: 420px;
  }

  .featured-archive img {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .exchange-duo {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .featured-archive .exchange-duo img {
    min-height: 260px;
    border-bottom: 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0;
  }

  h1,
  .page-hero h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 19px;
  }

  .ai-section-feature,
  .ai-flyers,
  .memory-moment {
    padding: 12px;
  }

  .ai-flyers {
    grid-template-columns: 1fr;
  }

  .ai-flyers img {
    max-height: none;
  }

  .section {
    padding: 32px 0;
  }
}
