:root {
  --bg: #f3f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #14202b;
  --muted: #546473;
  --line: rgba(20, 32, 43, 0.12);
  --line-strong: rgba(20, 32, 43, 0.2);
  --accent: #2b566d;
  --accent-soft: #dbe6ee;
  --accent-deep: #183546;
  --shadow: 0 24px 80px rgba(16, 28, 38, 0.08);
  --radius: 24px;
  --container: 1120px;
  --ease: 260ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(73, 117, 143, 0.14), transparent 28%),
    radial-gradient(circle at left 10% top 25%, rgba(24, 53, 70, 0.08), transparent 22%),
    linear-gradient(180deg, #f7f9fb 0%, #eff2f5 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  min-width: 320px;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-text,
.footer-brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.container-narrow {
  width: min(100%, 620px);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(243, 245, 247, 0.82);
  border-bottom: 1px solid rgba(20, 32, 43, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent) 0%, #7e9ab0 100%);
  box-shadow: 0 0 0 7px rgba(43, 86, 109, 0.12);
}

.brand-text {
  font-size: 1.22rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.96rem;
  color: var(--muted);
}

.site-nav a,
.footer-links a,
.contact-list a {
  transition: color var(--ease);
}

.site-nav a,
.contact-list a,
.site-footer a {
  overflow-wrap: anywhere;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform var(--ease),
    background-color var(--ease),
    border-color var(--ease),
    color var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: #24495f;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
}

.button-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(20, 32, 43, 0.28);
}

.button-light {
  background: #f6fafc;
  color: var(--accent-deep);
}

.button-light:hover,
.button-light:focus-visible {
  background: #ffffff;
  color: var(--accent-deep);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 64px 0 74px;
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.58) 0%, rgba(247, 249, 251, 0.38) 43%, rgba(247, 249, 251, 0.04) 78%),
    linear-gradient(180deg, rgba(247, 249, 251, 0.22), rgba(239, 242, 245, 0.18)),
    url("media/bg_hero_tiny.png") center right / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.hero::before {
  top: 10%;
  right: 30%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 97, 120, 0.1), transparent 66%);
  filter: blur(10px);
}

.hero::after {
  left: -12%;
  bottom: -16%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 53, 70, 0.12), transparent 70%);
}

.hero-grid {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  min-height: calc(100svh - 216px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-copy > * {
  opacity: 0;
  animation: rise 0.8s ease forwards;
}

.hero-copy > :nth-child(1) {
  animation-delay: 0.05s;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.2s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.28s;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 12.5ch;
  font-size: clamp(2.75rem, 5.15vw, 4.8rem);
  line-height: 0.91;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 50ch;
  margin-bottom: 1.65rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0.15rem;
}
.section {
  padding: 104px 0;
}

.section-intro {
  padding-top: 72px;
}

.section-heading {
  max-width: 520px;
}

.section-heading-centered {
  max-width: 700px;
  text-align: center;
  margin: 0 auto 42px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}

.section-copy {
  max-width: 620px;
  color: var(--muted);
}

.institution-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
}

.institution-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(20, 32, 43, 0.1);
}

.institution-list dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.institution-list dd {
  margin: 4px 0 0;
  color: var(--ink);
}

.two-column,
.split-feature,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 56px;
  align-items: start;
}

.section-contrast {
  position: relative;
}

.section-contrast::before,
.section-responsible::before,
.summary-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 1px solid rgba(20, 32, 43, 0.06);
  pointer-events: none;
}

.section-contrast .container,
.summary-box {
  position: relative;
  padding: 44px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.process-card,
.responsible-points article,
.contact-form {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 43, 0.08);
  box-shadow: 0 12px 36px rgba(16, 28, 38, 0.05);
}

.info-card,
.process-card,
.responsible-points article {
  padding: 28px;
  transition:
    transform var(--ease),
    border-color var(--ease),
    background-color var(--ease);
}

.info-card:hover,
.process-card:hover,
.responsible-points article:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 86, 109, 0.22);
  background: rgba(255, 255, 255, 0.88);
}

.info-card h3,
.process-card h3,
.responsible-points h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.info-card p,
.process-card p,
.responsible-points p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-responsible {
  position: relative;
}

.responsible-layout {
  position: relative;
  padding: 44px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(24, 53, 70, 0.96), rgba(19, 39, 51, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  color: #f8fbfd;
  box-shadow: var(--shadow);
}

.section-responsible .eyebrow,
.section-responsible .responsible-points p,
.section-responsible .responsible-points h3 {
  color: inherit;
}

.section-responsible .eyebrow {
  color: #c1d7e6;
}

.responsible-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.responsible-points article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.responsible-points article:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(193, 215, 230, 0.3);
}

.commercial-callout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 48px;
}

.commercial-callout .section-copy {
  color: #dceaf2;
}

.commercial-callout .button {
  margin-top: 8px;
}

.contact-copy p {
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-form {
  padding: 32px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 32, 43, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(43, 86, 109, 0.55);
  box-shadow: 0 0 0 4px rgba(43, 86, 109, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.pending {
  color: var(--accent);
}

.form-status.success {
  color: #23583f;
}

.form-status.error {
  color: #8a2d2d;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-target {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.section-summary {
  padding-top: 24px;
}

.summary-box {
  position: relative;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 36px 0 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 32, 43, 0.1);
}

.footer-brand {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.site-footer p {
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  color: var(--muted);
}

.legal-page {
  padding-bottom: 64px;
}

.legal-hero {
  padding: 88px 0 46px;
}

.legal-shell {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
}

.legal-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
}

.legal-meta {
  color: var(--muted);
}

.legal-card {
  padding: 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(20, 32, 43, 0.08);
  box-shadow: var(--shadow);
}

.legal-card section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(20, 32, 43, 0.08);
}

.legal-card h2 {
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.legal-summary {
  margin-top: 40px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(24, 53, 70, 0.95);
  color: #f6fafc;
}

.legal-summary .eyebrow,
.legal-summary p,
.legal-summary h2 {
  color: inherit;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 18px;
    font-size: 0.92rem;
  }

  .hero-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .two-column,
  .split-feature,
  .contact-layout,
  .commercial-callout,
  .responsible-points,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 16px 0 14px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero {
    padding: 58px 0 64px;
    background:
      linear-gradient(90deg, rgba(247, 249, 251, 0.74) 0%, rgba(247, 249, 251, 0.6) 58%, rgba(247, 249, 251, 0.3) 100%),
      linear-gradient(180deg, rgba(247, 249, 251, 0.28), rgba(239, 242, 245, 0.24)),
      url("media/bg_hero_tiny.png") center right 22% / cover no-repeat;
  }

  .section,
  .legal-hero {
    padding: 64px 0;
  }

  .section-heading-centered {
    margin-bottom: 32px;
  }

  .section-contrast .container,
  .responsible-layout,
  .summary-box,
  .legal-card {
    padding: 28px;
  }

  .footer-links {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-grid,
  .legal-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 11.5vw, 3.2rem);
  }

  .button,
  .button-small {
    width: 100%;
  }

  .site-header .button-small {
    width: auto;
  }

  .eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero {
    padding: 48px 0 56px;
    background:
      linear-gradient(180deg, rgba(247, 249, 251, 0.86), rgba(247, 249, 251, 0.74)),
      url("media/bg_hero_tiny.png") center top / cover no-repeat;
  }

  .hero-grid {
    min-height: auto;
  }

  .lead {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .section,
  .legal-hero {
    padding: 56px 0;
  }

  .section-intro {
    padding-top: 48px;
  }

  .section h2,
  .legal-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .section-heading-centered {
    margin-bottom: 26px;
  }

  .card-grid,
  .responsible-points {
    gap: 16px;
  }

  .section-contrast .container,
  .responsible-layout,
  .summary-box,
  .legal-card {
    padding: 22px;
  }

  .info-card,
  .process-card,
  .responsible-points article,
  .contact-form,
  .legal-card,
  .legal-summary {
    padding: 20px;
    border-radius: 20px;
  }

  .contact-form {
    gap: 10px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
  }

  .footer-inner {
    gap: 16px;
    padding-top: 20px;
  }

  .footer-links {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
