:root {
  --altura-blue: #2595d2;
  --altura-blue-dark: #1674aa;
  --ink: #132532;
  --muted: #536a78;
  --line: #d9e7ee;
  --soft: #eef7fb;
  --soft-green: #edf6f0;
  --paper: #f7fbfd;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(19, 37, 50, 0.14);
  --card-image-ratio: 640 / 420;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.hero {
  background: linear-gradient(var(--altura-blue) 0 78%, var(--white) 78% 100%);
}

.hero-inner,
main,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  padding: clamp(28px, 4vw, 46px) 0 0;
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.logo {
  width: clamp(160px, 17vw, 230px);
  height: auto;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--white);
  font-size: clamp(0.76rem, 1.1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0 10px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.25);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a:focus {
  opacity: 0.9;
  text-decoration: none;
}

.nav a:hover::after,
.nav a:focus::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.eyebrow,
.meta {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta {
  display: block;
  color: var(--altura-blue-dark);
}

h1 {
  margin: 0;
  font-size: clamp(1rem, 2.45vw, 2.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-overlay p {
  max-width: 640px;
  margin: 10px auto 0;
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  line-height: 1.5;
  font-weight: 700;
}

.hero-overlay .eyebrow {
  margin: 0 auto 10px;
  max-width: none;
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  text-align: center;
}

.hero-visual {
  position: relative;
  margin-top: clamp(34px, 4.5vw, 58px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 37, 50, 0.54) 0%, rgba(19, 37, 50, 0.12) 45%, rgba(19, 37, 50, 0.28) 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  top: clamp(18px, 4.5vw, 58px);
  left: 50%;
  width: min(760px, calc(100% - 36px));
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-align: center;
  transform: translateX(-50%);
}

.photo {
  width: 100%;
  aspect-ratio: 2048 / 1024;
  display: block;
  object-fit: cover;
  object-position: center center;
}

main {
  padding: clamp(46px, 7vw, 82px) 0 0;
}

section {
  margin: 0 0 clamp(44px, 7vw, 78px);
}

.section-block {
  margin: 0 0 clamp(44px, 7vw, 78px);
}

.intro-section {
  margin-bottom: 22px;
}

.identity-section {
  margin-bottom: clamp(44px, 7vw, 78px);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 22px;
}

.section-head h2,
.feature h2,
.subpage-card h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.feature p,
.subpage-card p {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-membership-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.card,
.feature,
.subpage-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card {
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 10px 28px rgba(19, 37, 50, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(19, 37, 50, 0.1);
}

.identity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--altura-blue-dark);
  background: rgba(37, 149, 210, 0.13);
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3,
.card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card p {
  margin: 14px 0 0;
}

.card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  text-align: left;
}

.blue-card {
  border-color: transparent;
  color: var(--white);
  background: var(--altura-blue);
}

.blue-card p,
.blue-card li,
.blue-card .meta {
  color: rgba(255, 255, 255, 0.92);
}

.soft-card {
  background: var(--soft);
}

.green-card {
  background: var(--soft-green);
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  text-align: center;
  overflow: hidden;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  text-align: left;
}

.card-image {
  width: 100%;
  aspect-ratio: var(--card-image-ratio);
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  border: 1px solid rgba(22, 116, 170, 0.18);
}

.guide-card .card-image {
  max-width: 280px;
  justify-self: center;
}

.guide-card .media-body {
  align-items: flex-start;
  min-height: auto;
}

.guide-card .media-body p {
  max-width: 44ch;
  margin-left: 0;
  margin-right: 0;
}

.membership-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.membership-card p {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

.media-body {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
}

.media-body p {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

.media-body .link {
  margin-top: auto;
  padding-top: 20px;
}

.advice-card .media-body {
  min-height: 270px;
}

.cover-image {
  width: min(260px, 100%);
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--altura-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.blue-card .link {
  color: var(--white);
}

.link:hover,
.link:focus {
  text-decoration: underline;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: center;
  margin-top: 24px;
}

.feature-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 700;
}

.notice {
  border-left: 5px solid var(--altura-blue);
  padding: 18px 20px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.subpage-hero {
  background: var(--altura-blue);
}

.subpage-main {
  min-height: 50vh;
}

.subpage-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px);
}

.status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--altura-blue-dark);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  margin-top: clamp(44px, 7vw, 80px);
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  padding: 38px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--white);
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover,
.social-icon:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transform: translateY(-1px);
}

.social-icon.facebook {
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.social-icon.instagram span {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.social-icon.instagram span::before {
  position: absolute;
  inset: 4px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.social-icon.instagram span::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.site-credit {
  text-align: right;
}

.footer h2,
.footer h3,
.footer p {
  margin: 0;
}

.footer h2 {
  font-size: 1.4rem;
}

.footer h3 {
  margin-bottom: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.footer-muted {
  color: rgba(255, 255, 255, 0.7);
}

.footer-office {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .grid-3,
  .grid-main,
  .grid-2,
  .guide-membership-grid,
  .feature,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-body {
    min-height: auto;
  }

  .guide-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-credit {
    text-align: left;
  }

  .footer-legal {
    text-align: left;
  }

  .guide-card .card-image {
    max-width: 100%;
  }

  .guide-card .media-body {
    align-items: center;
  }

  .guide-card .media-body p {
    margin-left: auto;
    margin-right: auto;
  }

  .advice-card .media-body {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .hero-inner,
  main,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .hero {
    background: linear-gradient(var(--altura-blue) 0 82%, var(--white) 82% 100%);
  }

  .logo {
    width: 176px;
  }

  .nav {
    gap: 12px 18px;
    font-size: 0.72rem;
  }

  .nav a {
    padding: 5px 0 8px;
  }

  .photo {
    aspect-ratio: 1.35;
  }

  .hero-overlay {
    top: 18px;
  }

  .card,
  .feature {
    padding: 22px;
  }

}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(440px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(19, 37, 50, 0.22);
  color: var(--ink);
  text-align: left;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--altura-blue-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--altura-blue-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cookie-button.primary {
  background: var(--altura-blue-dark);
  color: var(--white);
}

.cookie-button:hover,
.cookie-button:focus {
  filter: brightness(0.96);
}

.cookie-settings {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cookie-setting-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
}

.cookie-setting-row input {
  margin-top: 4px;
}

.cookie-setting-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

@media (max-width: 620px) {
  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-button {
    width: 100%;
  }
}
