:root {
  --paper: #ffffff;
  --paper-2: #f4fbfb;
  --ink: #1f2326;
  --muted: #5d686b;
  --line: #d7e7e7;
  --accent: #00a6a6;
  --accent-2: #007f86;
  --gold: #0fbfc2;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(8, 28, 32, .08);
  --shadow-md: 0 16px 40px rgba(8, 28, 32, .10);
  --shadow: 0 20px 55px rgba(8, 28, 32, .12);
  --shadow-lg: 0 30px 70px rgba(8, 28, 32, .16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(0, 166, 166, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 127, 134, .04) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(157, 63, 63, .35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(222, 214, 201, .75);
  background: rgba(251, 247, 239, .88);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, padding .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 35px rgba(31, 35, 38, .08);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

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

.nav-extra { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(31, 35, 38, .14);
  border-radius: 999px;
  background: rgba(255, 253, 248, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .46);
}

.lang-switch a {
  display: grid;
  place-items: center;
  height: 30px;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 30px;
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(31, 35, 38, .14);
}

.lang-switch a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section.tight { padding: 54px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  max-width: 640px;
  font-size: clamp(36px, 4.8vw, 58px);
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  font-size: 28px;
}

p { margin: 0; }
.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 35, 38, .16);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.hero {
  width: min(1320px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .86fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 660px;
  margin-top: 22px;
}

.proof-item {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.proof-item strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.proof-item span {
  color: var(--muted);
  font-size: 14px;
}

.hero-stage {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
}

.hero-image {
  width: 100%;
  max-height: 375px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 127, 134, .18);
}

.texture-panel {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 24% 22%, rgba(0, 166, 166, .24), transparent 30%),
    linear-gradient(145deg, rgba(0, 127, 134, .14), rgba(255, 255, 255, .86)),
    var(--paper-2);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.books { grid-template-columns: repeat(4, 1fr); }
.grid.articles { grid-template-columns: repeat(3, 1fr); }
.grid.poems {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

.book-card,
.article-card,
.poem-card,
.info-card {
  background: rgba(255, 253, 248, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.book-cover-wrap {
  min-height: 340px;
  padding: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(0,166,166,.10));
}

.book-cover-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 292px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 35px rgba(8, 28, 32, .16);
  transition: transform .2s ease;
}

.book-card:hover img { transform: scale(1.035); }

.card-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(31, 35, 38, .12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 248, .68);
  font-size: 13px;
  font-weight: 700;
}

.article-card {
  padding: 26px;
  display: grid;
  gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.poem-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: rgba(255, 253, 248, .92);
  transition: transform .25s ease, box-shadow .25s ease;
}

.poem-card[hidden],
.poems-featured-section[hidden],
.poems-empty[hidden] {
  display: none;
}

.poem-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 166, 166, .14));
}

.poem-card .card-body {
  display: block;
  align-self: start;
  padding-left: 26px;
}

.poem-card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.poem-text {
  display: grid;
  gap: 2px;
  margin-top: 2px;
  padding: 0;
  border: 1px solid rgba(31, 35, 38, .1);
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

.poem-text span {
  display: block;
}

.poem-text .poem-gap {
  height: 12px;
}

.poems-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 38px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.poems-quote {
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow-sm);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.45;
}

.section-header.compact {
  margin-bottom: 18px;
}

.poem-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.poem-filter {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .82);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.poem-filter.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 166, 166, .16);
}

.poems-empty {
  margin: 0 0 18px;
}

.featured-poems .poem-card {
  background:
    linear-gradient(135deg, rgba(0, 166, 166, .12), rgba(255, 253, 248, .4) 55%),
    rgba(255, 253, 248, .96);
}

.featured-poems .poem-card h3 {
  font-size: 20px;
}

.featured-poems .poem-text {
  font-size: 18px;
}

.article-card time,
.small-muted {
  color: var(--muted);
  font-size: 14px;
}

.band {
  background: var(--ink);
  color: var(--white);
}

.band .section { padding: 78px 0; }
.band .lead, .band .small-muted { color: rgba(255, 253, 248, .72); }
.band .btn { background: var(--white); color: var(--ink); }
.band .btn.secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }

.about-layout,
.book-detail,
.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 54px;
  align-items: center;
}

.portrait {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background:
    linear-gradient(140deg, rgba(39, 87, 101, .16), rgba(157, 63, 63, .1)),
    url("/assets/author-oksana-neelova.jpg") center/cover no-repeat;
}

.copy-stack { display: grid; gap: 20px; }

.quote {
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 253, 248, .72);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.excerpt-accordion {
  width: 100%;
}

.book-poem-card {
  position: relative;
  width: min(100%, 820px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 166, 166, .08), rgba(255, 253, 248, .96) 42%),
    var(--white);
  box-shadow: 0 14px 34px rgba(31, 35, 38, .08);
}

.book-poem-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--accent), rgba(0, 166, 166, .14));
}

.book-poem-card .poem-text {
  max-width: 680px;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.68;
}

.excerpt-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin-top: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.excerpt-toggle:hover {
  background: rgba(0, 166, 166, .12);
  border-color: var(--accent);
}

.excerpt-toggle .toggle-icon {
  transition: transform 0.2s ease;
  font-size: 11px;
}

.excerpt-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.8;
  box-shadow: 0 14px 34px rgba(31, 35, 38, .08);
  animation: slideDown 0.3s ease-out;
}

.excerpt-card p {
  margin: 0 0 1.5em 0;
  text-align: justify;
}

.excerpt-card p:last-child {
  margin-bottom: 0;
}

.excerpt-card p.ellipsis {
  color: var(--muted);
  margin-top: 0.5em;
  margin-bottom: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-hero-cover {
  width: min(100%, 380px);
  margin: 0 auto;
  filter: drop-shadow(0 34px 50px rgba(31, 35, 38, .22));
}

.book-hero-cover img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
}

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

.specs div,
.info-card {
  padding: 18px;
}

.specs span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-section {
  background:
    linear-gradient(135deg, rgba(157, 63, 63, .09), rgba(39, 87, 101, .1)),
    var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full,
.form-message { grid-column: 1 / -1; }

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 166, 166, .12);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.form-message {
  min-height: 24px;
  color: var(--accent);
  font-weight: 700;
}

.submit-btn {
  min-height: 54px;
  justify-self: start;
  padding: 14px 26px;
  border-color: rgba(0, 127, 134, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, #0fbfc2, #00959b);
  box-shadow: 0 16px 30px rgba(0, 127, 134, .18), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.submit-btn:hover {
  box-shadow: 0 18px 34px rgba(0, 127, 134, .22), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.article-layout {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.article-body {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.article-body h2 { font-size: 34px; margin-top: 18px; }
.article-body ul { margin: 0; padding-left: 24px; }
.article-body blockquote {
  margin: 0;
  padding: 22px 24px;
  border-left: 4px solid var(--accent-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, .72);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--accent);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.footer-credit {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-credit p {
  margin: 0;
}

.footer-credit a {
  color: var(--muted);
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.mobile-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media (max-width: 1040px) {
  .hero,
  .poems-hero,
  .about-layout,
  .book-detail,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage { min-height: 375px; }
  .grid.books { grid-template-columns: repeat(2, 1fr); }
  .grid.articles { grid-template-columns: 1fr; }
  .grid.poems { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 86px; }
  .header-inner { min-height: 64px; }
  .nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  body.menu-open .nav { display: flex; }
  .nav-extra {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav-extra .lang-switch {
    width: max-content;
  }

  .menu-toggle { display: block; }
  .header-actions .btn,
  .header-actions .phone-link,
  .header-actions .lang-switch { display: none; }
  .hero {
    min-height: auto;
    padding-top: 38px;
    gap: 34px;
  }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-stage { min-height: auto; }
  .hero-image {
    max-height: 300px;
    aspect-ratio: 16 / 9;
  }
  .section { padding: 58px 0; }
  .poems-quote {
    padding: 18px;
    font-size: 18px;
  }
  .featured-poems .poem-card h3 {
    font-size: 20px;
  }
  .section-header {
    display: grid;
    align-items: start;
  }
  .grid.books,
  .grid.two,
  .order-form,
  .specs {
    grid-template-columns: 1fr;
  }
  .submit-btn {
    width: 100%;
    justify-self: stretch;
  }
  .grid.poems { grid-template-columns: 1fr; }
  .book-cover-wrap { min-height: 300px; }
  .book-cover-wrap img { max-height: 260px; }
  .portrait { min-height: 380px; }
  .footer-inner { display: grid; }
  .mobile-cta { display: flex; }
}
