﻿:root {
  --bg: #f5efe5;
  --paper: #fffaf2;
  --text: #1c1a17;
  --muted: #5e5345;
  --accent: #9b3e2f;
  --accent-dark: #752d21;
  --line: #d7c6ad;
  --navy: #1f2f44;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #f3e7d8 0, rgba(243, 231, 216, 0) 40%),
    linear-gradient(180deg, #f7f1e7 0%, #f1e7d8 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #124d8c;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  background: #fff;
  border: 2px solid #124d8c;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(7px);
  background: rgba(247, 241, 231, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-wrap,
.section,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

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

.nav-links a,
.nav-more summary {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.nav-links a.active,
.nav-links a:hover,
.nav-more summary:hover {
  color: var(--text);
}

.nav-more {
  position: relative;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: " ▾";
  font-size: 0.85em;
}

.nav-more[open] summary::after {
  content: " ▴";
}

.nav-more-menu {
  position: absolute;
  top: 1.6rem;
  right: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(30, 25, 20, 0.12);
  padding: 0.4rem;
  display: grid;
  gap: 0.2rem;
}

.nav-more-menu a {
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
}

.nav-more-menu a:hover {
  background: #f4e9da;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle:hover {
  background: #f3e7d8;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  padding: 3rem 0;
  align-items: center;
}

.kicker {
  color: var(--accent);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2 {
  line-height: 1.2;
  margin: 0.3rem 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.lead {
  font-size: 1.15rem;
  color: #2d2a25;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 7px 20px rgba(30, 25, 20, 0.08);
  overflow-wrap: anywhere;
  word-break: normal;
}

.cover {
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--line);
}

.section {
  padding: 2.5rem 0;
}

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

.cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--accent-dark);
  font-weight: 700;
}

.button:hover {
  background: var(--accent-dark);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.quote {
  border-left: 4px solid var(--accent);
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  color: #352d24;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.simple-page h1 {
  margin-top: 2rem;
}

.legal-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.legal-form label {
  font-weight: 700;
}

.legal-form input,
.legal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  background: #fff;
}

.legal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #9d1c1c;
  font-size: 0.92rem;
}

.form-status {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.form-status.ok {
  background: #e8f5ea;
  border: 1px solid #9ac6a0;
  color: #1f5f2b;
}

.form-status.err {
  background: #fdeeee;
  border: 1px solid #e0a4a4;
  color: #8a1f1f;
}

@media (max-width: 900px) {
  .hero,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    padding: 0.6rem 0;
    flex-direction: column;
  }

  .nav-more-menu {
    position: static;
    margin-top: 0.25rem;
  }
}
