:root {
  --ink: #172230;
  --muted: #647283;
  --line: #dce4ec;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --blue: #213f5f;
  --teal: #0f8f8c;
  --gold: #c49a4a;
  --green: #477a5d;
  --shadow: 0 18px 55px rgba(23, 34, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  font-weight: 800;
  background: var(--blue);
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.main-nav a,
.main-nav button,
.language-switch {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav button:hover,
.language-switch:hover {
  background: var(--soft);
}

.nav-cta {
  color: white !important;
  background: var(--teal) !important;
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 260px;
  max-height: min(72vh, 620px);
  overflow: auto;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}

.nav-subheading {
  padding: 10px 12px 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-subheading + a {
  margin-top: 2px;
}

.nav-group:hover .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  min-height: calc(100vh - 78px);
  background: #f7f8f4;
}

.hero-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 820px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 0;
}

.lead {
  max-width: 720px;
  margin-top: 22px;
  color: #405062;
  font-size: 17px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  color: var(--blue);
  background: transparent;
}

.hero-media {
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(247, 248, 244, 0.1), rgba(247, 248, 244, 0)),
    url("../img/Untitled-1.jpg") center / cover;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 64px);
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  color: white;
  background: var(--blue);
}

.section-header {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-bottom: 34px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

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

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

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

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

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 34, 48, 0.05);
}

.dark .card {
  color: var(--ink);
}

.card-number {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.card p,
.article-card p,
.legal-note p,
.contact-list {
  color: var(--muted);
}

.article-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.article-card-content {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.link {
  color: var(--teal);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.contact-copy {
  margin-bottom: 22px;
}

.contact-aside {
  display: grid;
  gap: 18px;
}

.portrait {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center top;
  background: white;
}

.form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form.is-sending {
  opacity: 0.72;
  pointer-events: none;
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfd;
}

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

.checkbox {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
}

.checkbox input {
  width: auto;
  min-height: 0;
  margin-top: 6px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(96px, 150px) 1fr;
  gap: 10px;
  align-items: end;
}

.captcha-question {
  display: grid;
  min-height: 46px;
  padding: 11px 12px;
  place-items: center;
  color: var(--blue);
  background: #eef5f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  color: var(--green);
  font-weight: 700;
}

.form-status.error {
  color: #b44343;
}

.legal-note {
  padding: 18px;
  background: #fff8e8;
  border: 1px solid #ecd7a8;
  border-radius: 8px;
}

.article-cta {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: #eef5f5;
  border: 1px solid #cfe3e2;
  border-radius: 8px;
}

.article-cta h3 {
  color: var(--blue);
}

.article-hero {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 64px);
  color: white;
  background:
    linear-gradient(90deg, rgba(23, 34, 48, 0.88), rgba(23, 34, 48, 0.62)),
    url("../img/cvvcv-min.jpg") center / cover;
}

.article-hero .lead {
  color: rgba(255, 255, 255, 0.88);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  padding: clamp(42px, 6vw, 76px) clamp(18px, 4vw, 64px);
}

.article-body {
  display: grid;
  gap: 24px;
  max-width: 820px;
}

.article-body section {
  display: grid;
  gap: 10px;
}

.article-body h2 {
  font-size: clamp(20px, 2vw, 24px);
}

.article-points {
  display: grid;
  gap: 16px;
}

.article-point {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.article-point:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article-point strong {
  color: var(--blue);
  font-size: 16px;
}

.article-point p {
  margin: 0;
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-body ul {
  margin: 0;
  padding-left: 20px;
}

.sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.source-list,
.contact-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list.card {
  padding: 26px 26px 26px 38px;
}

.contact-list li {
  padding-left: 2px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background: #f7f8f4;
}

.profile-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.profile-photo {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: center top;
  background: white;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.profile-story {
  display: grid;
  gap: 16px;
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
}

.profile-story p {
  margin: 0;
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.profile-mini-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.source-list a {
  color: var(--teal);
  font-weight: 700;
  word-break: break-word;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 64px);
  color: white;
  background: #111a24;
}

.site-footer p {
  max-width: 560px;
  margin-top: 6px;
  color: #c7d0da;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px;
}

.bug-report-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  padding: 12px 16px;
  color: white;
  font-weight: 800;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.bug-report-trigger:hover {
  background: #247a76;
}

.bug-report-modal[hidden],
.appointment-modal[hidden] {
  display: none;
}

.bug-report-modal,
.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.bug-report-backdrop,
.appointment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 26, 36, 0.58);
}

.bug-report-dialog,
.appointment-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 26px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.appointment-dialog {
  width: min(100%, 720px);
}

.bug-report-close,
.appointment-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  background: #eef5f5;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.section-header.compact,
.appointment-intro {
  max-width: 470px;
  gap: 8px;
}

.appointment-intro {
  display: grid;
  max-width: 620px;
}

.bug-report-form textarea {
  min-height: 120px;
}

body.bug-report-open,
body.appointment-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  inset: auto 20px 20px 20px;
  z-index: 75;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-card {
  width: min(980px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.cookie-copy {
  display: grid;
  gap: 8px;
}

.cookie-copy h2 {
  margin: 0;
  font-size: 22px;
}

.cookie-copy p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.cookie-actions.compact {
  margin-top: 12px;
}

.cookie-settings {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.cookie-option span {
  display: grid;
  gap: 4px;
}

.cookie-option small {
  color: var(--muted);
  line-height: 1.5;
}

.cookie-option.is-disabled {
  opacity: 0.82;
}

@media (max-width: 1120px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 77px 0 auto 0;
    display: none;
    max-height: calc(100vh - 77px);
    overflow: auto;
    padding: 18px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .main-nav {
    display: grid;
    justify-content: stretch;
  }

  .nav-dropdown {
    position: static;
    display: grid;
    visibility: visible;
    opacity: 1;
    transform: none;
    min-width: 0;
    margin: 4px 0 10px 12px;
    box-shadow: none;
  }

  .nav-group {
    display: grid;
  }
}

@media (max-width: 900px) {
  .hero,
  .split,
  .contact-split,
  .profile-hero,
  .profile-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .profile-hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 360px;
  }

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

  .sidebar {
    position: static;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand strong {
    font-size: 16px;
  }

  .hero-copy {
    padding: 38px 18px;
  }

  h1 {
    font-size: 30px;
  }

  .grid.three,
  .grid.four,
  .grid.five {
    grid-template-columns: 1fr;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .bug-report-trigger {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .bug-report-dialog,
  .appointment-dialog {
    padding: 22px 18px;
  }

  .cookie-consent {
    inset: auto 10px 10px 10px;
  }

  .cookie-card {
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 18px;
  }

  .cookie-actions {
    display: grid;
  }
}
