:root {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #eef4f8;
  --color-ink: #142432;
  --color-muted: #607180;
  --color-brand: #006b61;
  --color-brand-dark: #004a44;
  --color-accent: #f5b942;
  --color-accent-dark: #d89008;
  --color-border: #d9e3e9;
  --color-success: #168267;
  --shadow-sm: 0 6px 18px rgba(18, 48, 61, 0.08);
  --shadow-md: 0 18px 45px rgba(13, 51, 61, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(0, 107, 97, 0.09), transparent 26rem),
    var(--color-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-brand-dark);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(245, 185, 66, 0.7);
  outline-offset: 4px;
  border-radius: 4px;
}

p,
ul,
ol {
  margin-top: 0;
}

p {
  margin-bottom: 1.1rem;
}

h1,
h2,
h3 {
  color: #102c35;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  margin: 0 0 0.7rem;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.45rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 42, 44, 0.94);
  box-shadow: 0 8px 24px rgba(2, 29, 31, 0.16);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 132px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.brand img {
  width: auto;
  max-width: 180px;
  height: 48px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 30px);
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  padding-block: 10px;
  color: #d9e8e6;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--color-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-actions,
.hero-actions,
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--color-brand);
  border-radius: 999px;
  background: transparent;
  color: var(--color-brand);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 107, 97, 0.07);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, #ffd56d, var(--color-accent));
  color: #173338;
  box-shadow: 0 10px 24px rgba(216, 144, 8, 0.24);
}

.btn-primary:hover {
  border-color: #ffd56d;
  background: linear-gradient(135deg, #ffe193, #f5b942);
  color: #0d292d;
}

.header .btn {
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
}

.header .btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header .btn-primary {
  border-color: var(--color-accent);
  color: #173338;
}

.breadcrumbs {
  padding-block: 22px 14px;
  font-size: 0.88rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
}

.breadcrumbs-item {
  margin: 0;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  margin-right: 8px;
  color: #9aacb7;
}

.breadcrumbs-item.current {
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  margin-block: 10px 56px;
  padding: clamp(26px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(122deg, rgba(2, 37, 40, 0.96), rgba(0, 89, 81, 0.91)),
    linear-gradient(135deg, #052b2d, #007267);
  color: #eaf5f3;
  box-shadow: var(--shadow-md);
}

main:not(.container) > .hero {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  top: -180px;
  right: -100px;
  border: 54px solid rgba(245, 185, 66, 0.13);
}

.hero::after {
  width: 170px;
  height: 170px;
  bottom: -105px;
  left: 34%;
  background: rgba(255, 255, 255, 0.045);
}

.hero > *,
.hero-inner > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: contents;
}

.hero-media,
.hero-banner {
  overflow: hidden;
  min-height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(245, 185, 66, 0.3), rgba(0, 87, 79, 0.15)),
    #123e40;
  box-shadow: 0 18px 36px rgba(0, 22, 24, 0.3);
}

.hero-media img,
.hero-banner img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.hero-media picture,
.hero-banner picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #ffffff;
}

.hero p {
  max-width: 760px;
  color: #d8e9e7;
}

.updated-date {
  display: inline-flex;
  margin-bottom: 1.15rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(245, 185, 66, 0.42);
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.1);
  color: #ffdd8b !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-actions,
.hero-buttons {
  margin-top: 1.6rem;
}

.hero .btn:not(.btn-primary) {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.hero .btn:not(.btn-primary):hover {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  margin-block: 26px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.section[id] {
  scroll-margin-top: 100px;
}

.section > :last-child {
  margin-bottom: 0;
}

.section h2::after {
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-accent));
  content: "";
}

.section li::marker {
  color: var(--color-brand);
  font-weight: 800;
}

.toc {
  padding: 0;
  overflow: hidden;
  border-color: rgba(0, 107, 97, 0.22);
  background: linear-gradient(145deg, #f7fbfa, #edf6f4);
}

.toc-box {
  padding: 0;
}

.toc-box > summary {
  padding: 22px 28px;
  color: var(--color-brand-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.toc-box[open] > summary {
  border-bottom: 1px solid rgba(0, 107, 97, 0.16);
}

.toc-box ol,
.toc-box ul,
.toc-box nav {
  margin: 0;
  padding: 22px 34px 28px 50px;
  columns: 2;
  column-gap: 48px;
}

.toc-box nav ul {
  padding: 0;
}

.toc-box li {
  break-inside: avoid;
  margin-bottom: 0.55rem;
}

details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfdfd;
}

details + details {
  margin-top: 10px;
}

summary {
  position: relative;
  padding: 17px 48px 17px 20px;
  color: #17363c;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--color-brand);
  content: "+";
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
}

details[open] > summary::after {
  content: "−";
}

details > p,
details > ul,
details > ol,
details > nav {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--color-muted);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.info-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.94rem;
  line-height: 1.5;
}

.info-table th,
.info-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.info-table thead th {
  background: var(--color-brand-dark);
  color: #ffffff;
  font-size: 0.81rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-table tbody th {
  width: 30%;
  color: #173b3e;
  background: #f1f7f6;
}

.info-table tbody tr:nth-child(even) td {
  background: #f8fbfc;
}

.info-table tbody tr:hover td,
.info-table tbody tr:hover th {
  background: #edf7f5;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: linear-gradient(150deg, #ffffff, #f5f9f9);
}

.review-card::before {
  display: block;
  margin-bottom: 14px;
  color: rgba(0, 107, 97, 0.3);
  content: "“";
  font-family: Georgia, serif;
  font-size: 3.3rem;
  line-height: 0.6;
}

.review-header {
  margin-bottom: 8px;
  color: #173b3e;
  font-weight: 900;
}

.stars {
  margin-bottom: 10px;
  color: var(--color-accent-dark);
  letter-spacing: 0.08em;
}

.review-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.related-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.related-pages li {
  margin: 0;
}

.related-pages a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #f7fafb;
  font-weight: 750;
  text-decoration: none;
}

.related-pages a:hover {
  border-color: rgba(0, 107, 97, 0.34);
  background: #edf7f5;
}

.footer {
  margin-top: 64px;
  background: #052b2d;
  color: #b9cecd;
}

.footer-inner {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.footer a {
  color: #ffffff;
  font-weight: 700;
}

.legal-page,
.error-page,
.redirect-page {
  max-width: 900px;
  margin-inline: auto;
}

.legal-page h1,
.error-page h1,
.redirect-page h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.error-page,
.redirect-page {
  min-height: 65vh;
  padding-block: 8vh;
}

.error-code {
  margin-bottom: 0;
  color: var(--color-accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
}

@media (max-width: 900px) {
  .nav {
    position: relative;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: rgba(5, 42, 44, 0.99);
    box-shadow: 0 18px 30px rgba(2, 29, 31, 0.25);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 16px;
    border-radius: 9px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-banner,
  .hero-media img,
  .hero-banner img {
    min-height: 240px;
    max-height: 390px;
  }

  .reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    line-height: 1.66;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  main:not(.container) > .hero {
    width: min(calc(100% - 24px), var(--container));
  }

  .nav {
    min-height: 68px;
    flex-wrap: nowrap;
    gap: 7px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .brand img {
    max-width: 92px;
    height: 38px;
  }

  .nav-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 7px;
  }

  .header .btn {
    min-height: 38px;
    padding: 0.54rem 0.68rem;
    font-size: 0.76rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .breadcrumbs {
    padding-block: 14px 10px;
  }

  .hero {
    gap: 24px;
    margin-block: 4px 30px;
    padding: 20px;
    border-radius: 20px;
  }

  .hero-media,
  .hero-banner,
  .hero-media img,
  .hero-banner img {
    min-height: 185px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-actions,
  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .btn {
    width: 100%;
  }

  .section {
    margin-block: 16px;
    padding: 24px 19px;
    border-radius: 14px;
  }

  .toc-box ol,
  .toc-box ul,
  .toc-box nav {
    padding: 18px 22px 22px 42px;
    columns: 1;
  }

  .toc-box nav ul {
    padding: 0;
  }

  .info-table {
    min-width: 590px;
    font-size: 0.88rem;
  }

  .info-table th,
  .info-table td {
    padding: 13px;
  }

  .related-pages {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-top: 38px;
  }

  .footer-inner {
    min-height: 138px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(calc(100% - 16px), var(--container));
  }

  main:not(.container) > .hero {
    width: min(calc(100% - 16px), var(--container));
  }

  .brand img {
    max-width: 74px;
  }

  .nav-actions {
    gap: 4px;
  }

  .header .btn {
    padding-inline: 0.52rem;
    font-size: 0.72rem;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
