:root {
  --ink: #102635;
  --muted: #5f7480;
  --blue: #0878b8;
  --aqua: #19c3c7;
  --sea: #dff8fb;
  --foam: #f6fcfd;
  --coral: #ff8066;
  --gold: #f3bd45;
  --line: rgba(16, 38, 53, 0.12);
  --shadow: 0 18px 48px rgba(18, 79, 111, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ecfbff 0%, #ffffff 38%, #f6fcfd 100%);
  line-height: 1.65;
}

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

a:hover {
  color: #075b8a;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(246, 252, 253, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  box-shadow: 0 10px 24px rgba(8, 120, 184, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #244352;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #06486d;
  background: rgba(25, 195, 199, 0.15);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #96e7fb url("../images/hero.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 45, 69, 0.05) 0%, rgba(8, 45, 69, 0.46) 54%, rgba(6, 31, 45, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0 58px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #c8f8ff;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: #defbff;
  font-weight: 800;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact {
  padding: 42px 0;
}

.page-hero {
  padding: 74px 0 34px;
  background:
    radial-gradient(circle at 20% 12%, rgba(25, 195, 199, 0.2), transparent 34%),
    linear-gradient(135deg, #e8fbff 0%, #ffffff 70%);
}

.page-hero .inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 195, 199, 0.4);
  box-shadow: 0 22px 54px rgba(18, 79, 111, 0.18);
}

.card-body {
  padding: 22px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.card p,
.card li {
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.article h2 {
  margin-top: 34px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 24px;
  line-height: 1.25;
}

.article p,
.article li {
  color: var(--muted);
}

.article ul,
.article ol {
  padding-left: 22px;
}

.guide-image {
  width: 100%;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(18, 79, 111, 0.12);
}

.side-panel {
  position: sticky;
  top: 90px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.side-panel a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.note {
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--aqua);
  border-radius: var(--radius);
  background: #edfbfd;
  color: #31505e;
}

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

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
}

.check-list li::before {
  content: "+";
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--aqua);
  font-weight: 900;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(16, 38, 53, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  background: #fff;
}

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

.button {
  justify-self: start;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  box-shadow: 0 12px 24px rgba(8, 120, 184, 0.18);
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #effcf2;
  color: #245b35;
}

.alert.error {
  background: #fff4f1;
  color: #8d2d19;
}

.site-footer {
  margin-top: 40px;
  padding: 54px clamp(18px, 4vw, 54px) 22px;
  color: #d9f6fb;
  background: linear-gradient(135deg, #08344e 0%, #075b7f 56%, #0a7d91 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 6px 0;
  color: #d9f6fb;
}

.site-footer .tiny-link a {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  width: min(1120px, 100%);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .grid.two,
  .grid.three,
  .content-layout,
  .comparison,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 48px 0;
  }

  .article {
    padding: 20px;
  }
}
