:root {
  --paper: #f3efe6;
  --ink: #1c1916;
  --muted: #5c564c;
  --line: #d8d0c3;
  --sheet: #fffdf8;
  --green: #1e4a38;
  --green-ink: #f4f7f4;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Liberation Sans", "Nimbus Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
}

.word {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Liberation Serif", "Nimbus Roman", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mark { display: block; border-radius: 10px; }

.top-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-site {
  appearance: none;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  line-height: 1.2;
}

.share-site:hover { background: #f7f1e4; }

.sister {
  display: inline-flex;
  line-height: 0;
}

.sister img { display: block; border-radius: 8px; }

.order-link {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
}

.version {
  margin-left: 0.35rem;
  font-family: "Liberation Sans", "Nimbus Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  vertical-align: middle;
}

.tool {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.15rem 0.35rem;
  color: var(--green);
  text-decoration: none;
  font-family: "Liberation Sans", "Nimbus Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.currency-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.currency-field select {
  font: inherit;
  font-size: 16px;
  color: inherit;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.currency-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.currency-note {
  min-height: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2.5rem;
  align-items: end;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

h1, h2 { font-family: "Liberation Serif", "Nimbus Roman", Georgia, serif; font-weight: 700; letter-spacing: -0.03em; }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.lede {
  max-width: 38rem;
  font-size: 1.15rem;
}

.price-line { max-width: 36rem; }

.price-line b { font-size: 1.2rem; }

.button {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--green);
  color: var(--green-ink);
  text-decoration: none;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  min-height: 44px;
}

.button:focus-visible,
.order-link:focus-visible,
.word:focus-visible,
.order a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.sample { margin: 0; }

.sample figcaption {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 16px 40px rgba(28, 25, 22, 0.06);
}

.sheet-place {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sheet h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.8rem;
  line-height: 1.05;
}

.sheet p { margin: 0.4rem 0; }

.call {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--green);
  color: var(--green-ink);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.included {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.included ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

.prices article {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.3rem;
}

.amount {
  margin: 0;
  font-family: "Liberation Serif", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.prices h2, .split h2, .who h2, .order h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.7rem;
}

.prices p, .who p, .order p { margin: 0; color: var(--ink); }

.order p.call,
.sheet p.call,
a.call {
  background: #1e4a38;
  color: #f4f7f4;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.split ol, .split ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.split li { margin: 0.35rem 0; }

.who, .order { padding: 2rem 0 0; }

.who { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }

.who p { max-width: 40rem; font-size: 1.2rem; }

.order a { font-weight: 700; }

.seen {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
  overflow: hidden;
}

.seen-label {
  margin: 0;
  padding: 0.75rem 1rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.seen-url {
  margin: 0.35rem 1rem 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--paper);
  font-family: ui-monospace, "Liberation Mono", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.seen-page {
  padding: 1rem 1rem 0.4rem;
  border-top: 1px solid var(--line);
}

.seen-place {
  margin: 0;
  color: var(--muted);
}

.seen-page h3 {
  margin: 0.15rem 0 0.45rem;
  font-family: "Liberation Serif", "Nimbus Roman", serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.seen-note {
  margin: 0;
  padding: 0.2rem 1rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 6.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

footer p { margin: 0; }

.feedback-open {
  position: fixed;
  top: auto;
  bottom: calc(76px + env(safe-area-inset-bottom));
  right: max(12px, env(safe-area-inset-right));
  z-index: 1700;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.feedback-word { line-height: 1; }

.to-top {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: #1e4a38;
  color: #f4f7f4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
}

.to-top[hidden] { display: none; }

.feedback-open,
.to-top {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-down .feedback-open,
body.nav-down .to-top {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feedback-open, .to-top { transition: none; }
}

.feedback-pop {
  position: fixed;
  top: auto;
  bottom: calc(132px + env(safe-area-inset-bottom));
  right: 12px;
  z-index: 1700;
  width: min(360px, calc(100vw - 24px));
  margin: 0;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
  box-shadow: 0 16px 40px rgba(28, 25, 22, 0.12);
}

.feedback-pop h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.feedback-pop p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }

.feedback-pop label { display: block; margin: 0 0 0.7rem; font-size: 0.95rem; }

.feedback-pop textarea,
.feedback-pop input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.feedback-pop textarea { min-height: 7rem; resize: vertical; }

.feedback-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }

.feedback-pop button[type="submit"],
.feedback-cancel {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.feedback-pop button[type="submit"] {
  background: var(--green);
  color: var(--green-ink);
}

.feedback-cancel {
  background: transparent;
  color: var(--ink);
}

.example {
  padding: 2rem 0 2.2rem;
  border-bottom: 1px solid var(--line);
}

.example-note { max-width: 40rem; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
}

.shots figure { margin: 0; }

.shots img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  background: var(--line);
}

.shots figcaption {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.services { margin: 0.4rem 0 1rem; padding-left: 1.2rem; }

.contacts { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.mail {
  color: var(--green);
  font-weight: 700;
}

.example h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.35rem;
}

.example blockquote {
  margin: 0 0 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.example blockquote p { margin: 0; }

.example blockquote footer {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

a.sheet { color: inherit; text-decoration: none; display: block; }

.feedback-status { min-height: 1.3rem; }

.visit-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 8px 58px 0 1.25rem;
  font-size: 13px;
  font-weight: 700;
}

.visit-flags[hidden] { display: none; }

.visit-flags .flag-extra { display: none; }

.visit-flags.flags-open .flag-extra { display: inline-flex; }

.visit-flags .visit-flags-more {
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.visit-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.flag-new {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--green-ink);
  background: var(--green);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}

.flag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.flag-dot-human { background: #1e4a38; }

.flag-dot-bot { background: #a33b32; }

.flag-place {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  top: calc(100% + 4px);
  flex-direction: column;
  gap: 3px;
  min-width: 148px;
  max-width: 220px;
  max-height: 240px;
  overflow: auto;
  padding: 8px 10px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.visit-flag .flag-place.place-left { left: auto; right: 0; }

.flag-place strong { font-size: 13px; font-weight: 800; }

.flag-city { display: flex; align-items: center; gap: 6px; }

@media (min-width: 1101px) {
  .visit-flag:hover .flag-place,
  .visit-flag:focus-within .flag-place { display: flex; }
}

@media (max-width: 1100px) {
  .visit-flag { cursor: pointer; }
  .visit-flag.show-country .flag-place { display: flex; }
}

.order form {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
  margin-top: 1.1rem;
}

.order label { display: grid; gap: 0.3rem; font-weight: 700; }

.order input,
.order textarea {
  font: inherit;
  color: inherit;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.order fieldset {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.order legend { font-weight: 700; padding: 0 0.3rem; }

.order fieldset label { font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }

.order fieldset input { width: auto; }

#order-status { min-height: 1.5rem; font-weight: 700; }

#order-status.error { color: #8a2e28; }

.admin-list { display: grid; gap: 0.8rem; margin-top: 1rem; }

.admin-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.admin-card h2 { margin: 0 0 0.3rem; font-size: 1.35rem; }

.admin-card p { margin: 0.2rem 0; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }

.admin-actions button, .text-button {
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  min-height: 44px;
}

.admin-actions button.pay {
  background: var(--green);
  color: var(--green-ink);
  border-color: var(--green);
}

#admin-status, #admin-state { min-height: 1.4rem; font-weight: 700; }

@media (max-width: 760px) {
  .hero, .prices, .split, .shots { grid-template-columns: 1fr; }
  .top, .top-links { flex-wrap: wrap; }
  .share-site { min-height: 44px; }
  .hero { gap: 1.6rem; }
  h1 { font-size: 2.7rem; }
  .amount { font-size: 2.6rem; }
  main { padding-top: 1.1rem; }
}
