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

:root {
  --bg: #FFF1F2;
  --surface: #FFFFFF;
  --text: #3F1D22;
  --muted: #9F5F68;
  --primary: #FB7185;
  --secondary: #FDBA74;
  --accent: #34D399;
  --border: rgba(63,29,34,0.12);
  --font-serif: Georgia, "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --font-sans: "Segoe UI", Candara, "Trebuchet MS", "Lucida Grande", sans-serif;
  --max-w: 1200px;
  --nav-dark: #3F1D22;
  --travel-mist: rgba(253,186,116,0.18);
  --journal-line: rgba(63,29,34,0.06);
  --story-glow: rgba(251,113,133,0.14);
  --exploration-tint: rgba(52,211,153,0.12);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(255,241,242,0.97) 0%, rgba(255,255,255,0.88) 42%, rgba(255,241,242,1) 100%),
    radial-gradient(ellipse at 8% 12%, var(--travel-mist), transparent 48%),
    radial-gradient(ellipse at 92% 78%, var(--story-glow), transparent 50%);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      var(--journal-line) 39px,
      var(--journal-line) 40px
    );
  opacity: 0.55;
}

body.travel-journal {
  scroll-padding-top: 80px;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.disclosure-banner {
  width: 100%;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(63,29,34,0.18);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.disclosure-banner p {
  margin: 0 auto;
  max-width: 920px;
  line-height: 1.45;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFF1F2;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

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

.brand-lockup img {
  width: 36px;
  height: 34px;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  list-style: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  position: relative;
  display: inline-block;
  padding: 6px 10px;
  color: rgba(255,241,242,0.82);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  background: var(--accent);
  width: 0;
  transition: width 0.28s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #FFF1F2;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: calc(100% - 20px);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255,241,242,0.22);
  cursor: pointer;
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFF1F2;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(63,29,34,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1100;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1200;
  padding: 72px 24px 24px;
  overflow-y: auto;
}

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

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  border-left-color: var(--accent);
  background: rgba(251,113,133,0.08);
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 48px;
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.55;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 440px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-badges a {
  display: inline-flex;
}

.footer-badges img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-requisites {
  font-size: 0.8rem;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(63,29,34,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(63,29,34,0.12);
}

.modal-box h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 2500;
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 -8px 28px rgba(63,29,34,0.08);
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner p {
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.page-hero {
  padding: 48px 24px 36px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--exploration-tint), transparent 70%),
    var(--surface);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-top: 8px;
}

.page-hero .journal-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-content h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.page-content p {
  margin-bottom: 14px;
  color: rgba(63,29,34,0.88);
}

.page-content ul {
  margin: 0 0 16px 1.2rem;
  color: rgba(63,29,34,0.88);
}

.page-content li {
  margin-bottom: 8px;
}

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.decor-clip {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 767px) {
  .decor-img {
    max-width: 100%;
    max-height: 200px;
  }

  .decor-clip {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
}

.topic-cta {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.topic-cta:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-1px);
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: var(--primary);
}

.field-error {
  display: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
}

.field-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.35);
  color: var(--text);
  margin-top: 20px;
}

.form-success.visible {
  display: block;
}

.story-note {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--secondary);
  padding-left: 14px;
  margin: 18px 0;
}

.exploration-chip {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

@keyframes journal-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes travel-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes story-underline {
  from { width: 0; }
  to { width: 72px; }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .burger {
    display: none;
  }
}
