:root {
  color-scheme: light;
  --bg: #f4f6f7;
  --ink: #222222;
  --muted: #666666;
  --line: #dedede;
  --paper: #ffffff;
  --dark: #1f2023;
  --dark-soft: #2d2f33;
  --accent: #0094a3;
  --accent-strong: #00abbc;
  --accent-soft: #e8f7f9;
  --accent-ink: #ffffff;
  --shadow: 0 24px 70px rgba(34, 34, 34, 0.12);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f7 58%, #eef2f3 100%);
}

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

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 148, 163, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 10px;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 120px;
}

.logo-frame {
  display: grid;
  place-items: center;
  min-width: 124px;
  height: 42px;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.brand-logo {
  display: block;
  max-width: 124px;
  max-height: 42px;
  object-fit: contain;
}

.brand-logo.is-missing {
  display: none;
}

.brand-fallback {
  display: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-logo.is-missing + .brand-fallback {
  display: inline-block;
}

.header-logo-mark-frame {
  display: grid;
  place-items: center;
  width: 154px;
  height: 46px;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.header-logo-mark {
  display: block;
  width: 154px;
  height: 46px;
  object-fit: cover;
  transform: scale(1.55);
}

.header-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  margin: 0;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.header-contacts a {
  font-weight: 800;
  color: var(--accent);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: center;
  min-height: auto;
  padding: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 148, 163, 0.22) 0%, rgba(0, 148, 163, 0) 40%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(31, 32, 35, 0.18);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1;
  letter-spacing: 0;
  max-width: 920px;
}

.lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 750;
  line-height: 1.35;
}

.quick-actions {
  display: grid;
  gap: 12px;
}

.hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.secondary-logo-panel {
  display: grid;
  place-items: center;
  min-height: 166px;
  padding: 24px;
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(34, 34, 34, 0.08);
}

.secondary-logo {
  display: block;
  width: min(100%, 330px);
  max-height: 140px;
  object-fit: contain;
}

.primary-action,
.contact-card {
  min-width: 0;
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(34, 34, 34, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px;
  color: var(--ink);
}

.primary-action.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--accent-ink);
  border-color: rgba(0, 171, 188, 0.5);
}

.primary-action:hover,
.contact-card[href]:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 148, 163, 0.52);
  box-shadow: var(--shadow);
}

.primary-action:focus-visible,
.contact-card:focus-visible,
.site-footer a:focus-visible,
.header-contacts a:focus-visible {
  outline: 3px solid rgba(0, 148, 163, 0.28);
  outline-offset: 3px;
}

.action-mark,
.card-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #222222;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.primary-action.accent .action-mark {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.primary-action strong,
.contact-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.primary-action small,
.contact-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.primary-action.accent small {
  color: rgba(255, 255, 255, 0.78);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 54px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
}

.card-copy {
  min-width: 0;
}

.document-card {
  background: #222222;
  color: #fff;
  border-color: rgba(34, 34, 34, 0.2);
}

.document-card .card-mark {
  background: var(--accent);
  color: #ffffff;
}

.document-card small {
  color: rgba(255, 255, 255, 0.72);
}

.muted-card {
  background: rgba(232, 247, 249, 0.72);
  color: rgba(34, 34, 34, 0.66);
  box-shadow: none;
}

.muted-card .card-mark {
  background: rgba(0, 148, 163, 0.14);
  color: var(--accent);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(0, 148, 163, 0.18);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

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

  .header-contacts {
    max-width: 360px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px;
  }

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

  .hero-side {
    gap: 12px;
  }

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

@media (max-width: 580px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    position: static;
    flex-direction: column;
    gap: 10px;
  }

  .header-contacts {
    justify-content: flex-start;
    font-size: 13px;
  }

  .logo-frame {
    min-width: 124px;
    height: 42px;
  }

  .hero {
    padding: 26px 18px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .quick-actions,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .contact-card {
    min-height: 86px;
  }

  .secondary-logo-panel {
    min-height: 128px;
    padding: 18px;
  }

  .secondary-logo {
    max-height: 104px;
  }
}

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