:root {
  --bg-page: #10241e;
  --bg-surface: #f7faf8;
  --bg-muted: #e7f0eb;
  --primary: #163029;
  --primary-light: #23493e;
  --accent: #8c6d3f;
  --accent-bright: #c6a15a;
  --text-main: #1c2824;
  --text-muted: #4d5c56;
  --border: #d3ddd7;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(8, 20, 16, 0.08);
  --container: 1140px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
}

body {
  font-family: var(--sans);
  overflow-wrap: break-word;
  background-color: #0e1f1b;
  background-image:
    radial-gradient(ellipse 70% 48% at 8% -8%, rgba(198, 161, 90, 0.34), transparent 56%),
    radial-gradient(ellipse 55% 42% at 100% 0%, rgba(47, 110, 90, 0.45), transparent 52%),
    linear-gradient(168deg, #0c1c18 0%, #17342c 46%, #101820 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.72;
  font-size: 17px;
  font-weight: 400;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.legal-top-bar {
  background-color: var(--primary);
  color: #e9ecea;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--primary-light);
}

.legal-top-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-header {
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(211, 221, 215, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}

.age-badge {
  flex: 0 0 auto;
  margin-left: 14px;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-bright);
  background: #163029;
  color: #f4e7c8;
  font-family: var(--serif);
  font-weight: 620;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.brand-title {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.22rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-main);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

main {
  margin-top: 28px;
  margin-bottom: 40px;
  padding: 36px 28px 52px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(241, 247, 244, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(5, 14, 12, 0.28);
}

.hero-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

.hero-content,
.hero-image {
  min-width: 0;
  max-width: 100%;
}

.hero-content {
  padding: 22px 18px;
}

.hero-image {
  min-height: 340px;
  background: #1c2420;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.figure-photo {
  margin: 18px 0 8px;
}

.figure-photo img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.figure-photo figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  max-width: 100%;
  background: var(--bg-muted);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  white-space: normal;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.55rem, 6.2vw, 2.15rem);
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.55rem;
  color: var(--primary);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: none;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent-bright), transparent);
}

h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--primary);
  margin: 18px 0 8px;
}

p {
  margin-bottom: 14px;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 3.4vw, 1.24rem);
  font-weight: 500;
  line-height: 1.45;
  color: #24332e;
}

.grid-2,
.grid-3,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.grid-2 > *,
.grid-3 > *,
.footer-grid > * {
  min-width: 0;
  max-width: 100%;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
}

ul.clean-list,
ol.clean-list {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
}

ul.clean-list li,
ol.clean-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 1.35rem;
  line-height: 1.6;
}

ul.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: transparent;
}

ol.clean-list {
  counter-reset: step;
}

ol.clean-list li {
  padding-left: 2rem;
  counter-increment: step;
}

ol.clean-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.05rem;
  color: var(--accent);
}

blockquote.quote-box {
  background: linear-gradient(90deg, #e8f1ec, #f7faf8);
  border-left: 4px solid var(--accent-bright);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

blockquote.quote-box cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.notice-box {
  background: #e8f2ec;
  border: 1px solid #c5d7cc;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 0.96rem;
}

.footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 24px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

th, td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

tr:nth-child(even) td {
  background: #eef5f1;
}

th {
  font-family: var(--sans);
  letter-spacing: 0.02em;
  font-size: 0.84rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff !important;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.btn:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.site-footer {
  background: var(--primary);
  color: #e4e8e6;
  padding: 44px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  margin-bottom: 28px;
}

.site-footer h4 {
  color: #ffffff;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 560;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 6px;
}

.site-footer h4::after {
  display: none;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 7px;
}

.site-footer a {
  color: #d6deda;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--primary-light);
  padding-top: 18px;
  font-size: 0.83rem;
  color: #bcc7c2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

@media (max-width: 920px) {
  .legal-top-bar {
    font-size: 0.72rem;
    padding: 4px 0;
  }
  .legal-top-bar .container span:last-child {
    display: none;
  }
  .hero-block {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex: 1 0 100%;
    padding-top: 6px;
  }
  .main-nav.open {
    display: block;
  }
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-title {
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub {
    display: none;
  }
  .age-badge {
    width: 34px;
    height: 34px;
    margin: 0;
    font-size: 0.72rem;
    border-width: 1.5px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 8px;
  }
  main {
    margin-top: 14px;
    margin-bottom: 24px;
    padding: 18px 14px 28px;
    border-radius: 12px;
  }
  .table-wrap {
    overflow: visible;
    background: transparent;
    border: none;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  td {
    padding: 8px 12px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    text-align: left;
    overflow-wrap: anywhere;
  }
  tr td:last-child {
    border-bottom: none;
  }
  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .hero-content {
    padding: 36px;
  }
}

@media (min-width: 960px) {
  .hero-block {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
  }
  .container {
    padding: 0 20px;
  }
}
