:root {
  --bg: #f6fbfa;
  --bg-soft: #edf8f6;
  --surface: #ffffff;
  --surface-tint: #f2faf8;
  --text: #17323a;
  --muted: #627b7d;
  --accent: #3aa99e;
  --accent-strong: #20867f;
  --coral: #ff8f70;
  --gold: #e8b94f;
  --sky: #86aefc;
  --border: #dceceb;
  --shadow: 0 24px 70px rgba(48, 105, 98, 0.14);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1120px, calc(100% - 40px));
  --footer-gap: clamp(28px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(58, 169, 158, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 236, 235, 0.78);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  gap: 28px;
}

.brand {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  border-radius: 999px;
  color: #425f63;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  padding: 12px 15px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: #ffffff;
  color: var(--accent-strong);
}

.primary-nav a:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover {
  background: #f2faf8;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms 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);
}

main {
  padding: 54px 0 72px;
}

.article-shell {
  width: var(--container);
  margin: 0 auto;
  background: #ffffff;
}

.article-hero {
  width: 100%;
  padding: clamp(24px, 4vw, 56px) 0 clamp(34px, 5vw, 64px);
  background: #ffffff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(2.15rem, 3.7vw, 3.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.06;
}

.article-summary {
  max-width: none;
  margin-bottom: 0;
  color: #46656a;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}

.article-layout {
  width: 100%;
  padding: 0 0 clamp(34px, 5vw, 70px);
}

.article-content {
  min-width: 0;
}

.content-section + .content-section {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.content-section h2,
.content-section h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.content-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.feature-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--muted);
  padding: 16px 18px 16px 48px;
}

.feature-list li::before {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(58, 169, 158, 0.13);
  content: "";
}

.feature-list li:nth-child(2n)::before {
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 143, 112, 0.14);
}

.feature-list li:nth-child(3n)::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(232, 185, 79, 0.16);
}

.feature-list strong {
  color: var(--text);
}

.step-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 1.04rem;
}

.step-list li {
  padding-left: 8px;
}

.step-list li::marker {
  color: var(--accent-strong);
  font-weight: 800;
}

.step-list strong {
  color: var(--text);
}

.article-content a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.article-figure {
  margin: clamp(26px, 4vw, 42px) 0 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(48, 105, 98, 0.11);
}

.article-figure figcaption {
  margin-top: 10px;
  color: #647b7d;
  font-size: 0.94rem;
  line-height: 1.55;
}

.table-wrap {
  width: 100%;
  margin-top: 24px;
  overflow-x: auto;
}

.route-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
}

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

.route-table th {
  color: var(--text);
  font-weight: 800;
}

.route-table tr:last-child td {
  border-bottom: 0;
}

.breadcrumbs {
  width: var(--container);
  margin: 0 auto;
  color: #6a8082;
  font-size: 0.95rem;
  font-weight: 650;
}

.breadcrumbs a {
  color: var(--accent-strong);
}

.breadcrumbs span {
  margin-left: 8px;
}

.article-page .article-hero {
  padding-top: clamp(18px, 3vw, 42px);
}

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

.related-links a {
  display: inline-flex;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.faq-list {
  display: grid;
  gap: 12px;
}

.contact-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 24px;
}

.contact-form,
.contact-info-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 50, 58, 0.07);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
}

.form-heading {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.form-heading h3,
.contact-info-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.form-field {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfe2df;
  border-radius: 14px;
  background: #fbfefd;
  color: var(--text);
  font: inherit;
  padding: 15px 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8ba3a5;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(58, 169, 158, 0.13);
  outline: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding-top: 2px;
}

.form-actions p {
  margin: 0;
  color: #70898b;
  font-size: 0.92rem;
}

.form-button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 26px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.form-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.form-status {
  border: 1px solid rgba(58, 169, 158, 0.24);
  border-radius: 14px;
  background: #f3fbf9;
  color: var(--accent-strong);
  font-weight: 750;
  padding: 14px 16px;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status-error {
  border-color: rgba(180, 75, 53, 0.24);
  background: #fff7f4;
  color: #b44b35;
}

.contact-info-panel {
  align-self: start;
  display: grid;
  gap: 20px;
  padding: 26px;
}

.contact-info-panel div {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-info-panel span {
  color: #718789;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-info-panel a {
  color: var(--accent-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 750;
  line-height: 1.35;
  padding: 18px 20px;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  width: var(--container);
  margin: 0 auto;
  gap: var(--footer-gap);
  color: var(--muted);
  padding: 42px 0;
}

.footer-brand-block {
  display: grid;
  gap: 12px;
}

.footer-brand {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.footer-inner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-column: span 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--footer-gap);
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-group h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-inner a {
  color: #49686b;
  font-size: 0.95rem;
  font-weight: 650;
}

.footer-inner a:hover {
  color: var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  body.nav-open {
    overflow: hidden;
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .primary-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 82px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 15px 16px;
  }

  main {
    padding: 28px 0 48px;
  }

  .article-shell {
    border-radius: 0;
  }

  .article-hero,
  .article-layout {
    padding-left: 0;
    padding-right: 0;
  }

  .content-section + .content-section {
    margin-top: 36px;
    padding-top: 34px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0;
  }

  .footer-nav {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .contact-panel-grid {
    grid-template-columns: 1fr;
  }

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

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand {
    max-width: 220px;
  }

  h1 {
    font-size: 1.86rem;
    line-height: 1.09;
  }

  .article-hero,
  .article-layout {
    padding: 22px;
  }

  .article-summary,
  .content-section p {
    font-size: 1rem;
  }

  .article-summary {
    line-height: 1.62;
  }

  .feature-list li {
    padding-right: 14px;
  }
}
