:root {
  color-scheme: light;
  --white: #ffffff;
  --surface: #f6fbff;
  --surface-strong: #edf6ff;
  --ink: #07162d;
  --text: #1d2a3d;
  --muted: #637184;
  --line: #d7e5f3;
  --blue: #075fca;
  --blue-dark: #043c86;
  --blue-footer: #0357b8;
  --shadow-soft: 0 22px 62px rgba(20, 55, 94, 0.12);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --gutter: clamp(18px, 5vw, 72px);
  font-family: "Inter", "Atkinson Hyperlegible", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--white);
  color: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(7, 95, 202, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 70%, #ffffff 100%);
}

.site-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg width='88' height='76' viewBox='0 0 88 76' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 1h44l21 37-21 37H22L1 38 22 1Z' fill='none' stroke='%23075fca' stroke-opacity='.24'/%3E%3C/svg%3E");
  background-position: right 4vw top 150px;
  background-size: 176px 152px;
  animation: science-field-drift 22s linear infinite;
}

.site-shell::after {
  position: absolute;
  inset: -20% -10% 0;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  background:
    radial-gradient(circle at 15% 28%, rgba(7, 95, 202, 0.12) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 64%, rgba(7, 95, 202, 0.14) 0 4px, transparent 5px),
    linear-gradient(115deg, transparent 0 42%, rgba(7, 95, 202, 0.1) 42.15% 42.28%, transparent 42.42% 100%),
    linear-gradient(245deg, transparent 0 61%, rgba(7, 95, 202, 0.07) 61.1% 61.24%, transparent 61.4% 100%);
  animation: science-lines-drift 18s ease-in-out infinite alternate;
}

.site-shell > * {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 20;
  padding-block: 24px 22px;
  border-bottom: 1px solid rgba(216, 230, 245, 0.72);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(86px, 120px) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(24px, 3vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 86px;
  height: 86px;
  text-decoration: none;
}

.brand-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 34px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #152238;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  opacity: 1;
}

.header-cta {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 180ms ease, background 180ms ease, box-shadow 210ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  box-shadow: none;
}

.button-primary {
  padding-inline: 28px;
  color: var(--white);
  background: linear-gradient(180deg, #0b6fde 0%, #074da5 100%);
  box-shadow: 0 14px 34px rgba(7, 95, 202, 0.22);
}

.button-primary:hover {
  opacity: 0.94;
  box-shadow: 0 18px 42px rgba(7, 95, 202, 0.28);
}

.brand:focus-visible,
.nav-link:focus-visible,
.button:focus-visible,
.dot:focus-visible,
.carousel-arrow:focus-visible,
.modal-close:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.footer-nav a:focus-visible,
.footer-contacts a:focus-visible,
.table-shell:focus-visible {
  outline: 3px solid rgba(7, 95, 202, 0.28);
  outline-offset: 4px;
}

.page-main {
  flex: 1;
  animation: page-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-leaving .page-main {
  animation: page-leave 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-section {
  padding-block: 46px 82px;
}

.media-carousel {
  position: relative;
}

.media-viewport {
  position: relative;
  aspect-ratio: 4 / 1;
  min-height: 260px;
  max-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(7, 95, 202, 0.12);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.media-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(1.008);
  filter: saturate(0.96) brightness(1.02);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 480ms ease;
  will-change: opacity, transform;
}

.media-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1) brightness(1);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 4600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.media-card.is-active img {
  transform: scale(1.036);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(7, 95, 202, 0.1);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(20, 55, 94, 0.15);
  transition: opacity 180ms ease, color 180ms ease, box-shadow 210ms ease;
}

.carousel-arrow:hover {
  color: var(--blue-dark);
  opacity: 0.92;
  box-shadow: 0 20px 50px rgba(20, 55, 94, 0.18);
}

.carousel-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.carousel-arrow-prev {
  left: -29px;
  transform: translateY(-50%);
}

.carousel-arrow-next {
  right: -29px;
  transform: translateY(-50%);
}

.carousel-controls {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: -52px;
}

.dot {
  width: 42px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(7, 95, 202, 0.18);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), background 190ms ease, box-shadow 190ms ease;
}

.dot.is-active {
  width: 66px;
  background: var(--blue);
}

.hero-grid {
  align-items: start;
  margin-top: 88px;
}

.hero-copy {
  grid-column: 1 / 8;
  padding-left: clamp(0px, 2vw, 24px);
}

.hero-copy h1 {
  margin: 0;
  color: #061f43;
  font-size: clamp(64px, 8.4vw, 126px);
  font-weight: 900;
  line-height: 0.92;
}

.hero-lead {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-top: 30px;
}

.hero-lead p {
  margin: 0;
  color: #344255;
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.68;
}

.hero-panel {
  grid-column: 8 / 13;
  padding: 28px;
  border: 1px solid rgba(7, 95, 202, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 52px rgba(20, 55, 94, 0.1);
}

.panel-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.02;
}

.hero-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.hero-panel div {
  padding-top: 16px;
  border-top: 1px solid rgba(7, 95, 202, 0.14);
}

.hero-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 6px 0 0;
  color: #22334a;
  font-size: 16px;
  line-height: 1.45;
}

.content-stage {
  padding-block: 62px 86px;
}

.page-article {
  max-width: 1040px;
}

.page-heading {
  margin-bottom: 30px;
}

.page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 900;
  line-height: 0.98;
}

.page-heading p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #26364b;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.28;
}

.text-flow {
  display: grid;
  max-width: 860px;
  gap: 18px;
}

.rich-layout,
.export-layout {
  display: grid;
  gap: 24px;
}

.rich-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.export-layout {
  grid-template-columns: 1fr;
}

.page-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 95, 202, 0.13);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(20, 55, 94, 0.08);
}

.page-visual img {
  width: 100%;
  min-height: 230px;
  object-fit: cover;
}

.page-visual-large img {
  min-height: 260px;
}

.page-visual figcaption {
  padding: 14px 16px 16px;
  color: #405065;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.text-flow p,
.content-card p,
.table-note,
.empty-panel p {
  margin: 0;
  color: #405065;
  font-size: 17px;
  line-height: 1.72;
}

.empty-panel,
.certificate-search-card,
.certificate-result {
  border: 1px solid rgba(7, 95, 202, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 55, 94, 0.08);
}

.empty-panel {
  max-width: 760px;
  padding: 28px;
}

.empty-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  padding: 24px;
  border: 1px solid rgba(7, 95, 202, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(20, 55, 94, 0.08);
}

.content-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
}

.certificate-search-card {
  padding: clamp(22px, 4vw, 34px);
}

.certificate-search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.certificate-search-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--blue);
  transform: translateY(-50%);
}

.search-icon .solar-icon {
  width: 22px;
  height: 22px;
}

.certificate-search-row input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 50px;
  border: 1px solid #cfe0f2;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fbfdff;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.certificate-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.certificate-result {
  margin-top: 22px;
  overflow: hidden;
}

.certificate-placeholder {
  padding: 32px;
}

.certificate-placeholder.is-private {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.certificate-placeholder.is-loading {
  display: grid;
  gap: 14px;
}

.certificate-loading-bar {
  position: relative;
  width: min(280px, 100%);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 95, 202, 0.1);
}

.certificate-loading-bar::after {
  position: absolute;
  inset: 0;
  width: 42%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(7, 95, 202, 0.2), rgba(7, 95, 202, 0.86));
  animation: certificate-loading 820ms ease-in-out infinite;
}

.privacy-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #0b3975;
  background: rgba(7, 95, 202, 0.08);
}

.privacy-icon .solar-icon {
  width: 22px;
  height: 22px;
}

.certificate-placeholder h2,
.certificate-meta h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.certificate-placeholder p,
.certificate-meta p {
  margin: 0;
  color: #405065;
  line-height: 1.6;
}

.certificate-hit {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 0;
}

.certificate-meta {
  padding: 30px;
  border-right: 1px solid rgba(7, 95, 202, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,251,255,0.94));
}

.certificate-code {
  display: inline-flex;
  margin-top: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(7, 95, 202, 0.08);
  font-size: 13px;
  font-weight: 850;
}

.certificate-image-wrap {
  max-height: 760px;
  overflow: auto;
  background: #f7fbff;
}

.certificate-image-wrap img {
  width: 100%;
  height: auto;
}

.table-shell {
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid rgba(7, 95, 202, 0.14);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 20px 54px rgba(20, 55, 94, 0.09);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid #e5eef8;
  text-align: left;
  vertical-align: top;
}

th {
  color: #0c3672;
  background: #edf6ff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  color: #29384d;
  font-size: 14px;
  line-height: 1.45;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  max-width: 860px;
  margin-top: 18px;
  font-size: 14px;
}

.contact-list {
  display: grid;
  max-width: 860px;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 95, 202, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(20, 55, 94, 0.08);
}

.contact-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #e5eef8;
}

.contact-list div:last-child {
  border-bottom: 0;
}

.contact-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.site-footer {
  padding-block: 44px 28px;
  color: var(--white);
  background: var(--blue-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(280px, 1.6fr);
  gap: 30px;
  align-items: start;
}

.footer-brand {
  font-size: 26px;
  font-weight: 900;
}

.footer-contacts {
  display: grid;
  gap: 12px;
}

.footer-contacts a,
.footer-nav a {
  text-decoration: none;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.solar-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes science-field-drift {
  from {
    background-position: right 4vw top 150px;
  }

  to {
    background-position: right calc(4vw + 176px) top 302px;
  }
}

@keyframes science-lines-drift {
  from {
    transform: translate3d(-12px, -8px, 0);
  }

  to {
    transform: translate3d(15px, 15px, 0);
  }
}

@keyframes certificate-loading {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(250%);
  }
}

.request-modal {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--text);
  background: transparent;
}

.request-modal::backdrop {
  background: rgba(8, 18, 35, 0.5);
  backdrop-filter: blur(7px);
}

.request-modal[open] {
  animation: modal-enter 170ms ease both;
}

.modal-card {
  position: relative;
  padding: 36px;
  border: 1px solid rgba(216, 230, 245, 0.98);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 92px rgba(8, 18, 35, 0.28);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d6e5f4;
  border-radius: 50%;
  color: #496075;
  background: transparent;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.modal-card h2 {
  max-width: 420px;
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.08;
}

.modal-lead {
  max-width: 470px;
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.request-form label {
  display: grid;
  gap: 6px;
  color: #26364b;
  font-size: 13px;
  font-weight: 800;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #cfdeee;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fbfdff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.request-form select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #496075 50%),
    linear-gradient(135deg, #496075 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.request-form textarea {
  min-height: 112px;
  padding-block: 14px;
  resize: vertical;
  line-height: 1.5;
}

.request-form input:hover,
.request-form select:hover,
.request-form textarea:hover,
.certificate-search-row input:hover {
  border-color: rgba(7, 95, 202, 0.34);
  background-color: var(--white);
}

.request-form input:focus-visible,
.request-form select:focus-visible,
.request-form textarea:focus-visible,
.certificate-search-row input:focus-visible {
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(7, 95, 202, 0.08);
}

.form-field-wide,
.submit-button {
  grid-column: 1 / -1;
}

.submit-button {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.form-status[hidden] {
  display: none;
}

.form-status[data-state="success"] {
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.26);
}

.form-status[data-state="error"] {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.24);
}

@media (max-width: 1100px) {
  .header-grid {
    grid-template-columns: minmax(86px, 108px) minmax(0, 1fr) auto;
    row-gap: 18px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .header-cta {
    grid-column: 3;
    grid-row: 1;
  }

  .hero-copy,
  .hero-panel {
    grid-column: 1 / 13;
  }

  .hero-grid {
    row-gap: 34px;
  }

  .content-list {
    grid-template-columns: 1fr;
  }

  .rich-layout {
    grid-template-columns: 1fr;
  }

  .certificate-hit {
    grid-template-columns: 1fr;
  }

  .certificate-meta {
    border-right: 0;
    border-bottom: 1px solid rgba(7, 95, 202, 0.12);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    padding-block: 18px 16px;
  }

  .header-grid {
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 14px;
  }

  .brand {
    width: 64px;
    height: 64px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .button-primary {
    min-height: 44px;
    padding-inline: 18px;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero-section {
    padding-block: 34px 66px;
  }

  .media-viewport {
    min-height: 178px;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-controls {
    justify-content: flex-start;
    margin-top: -46px;
    padding-left: 24px;
  }

  .dot {
    width: 34px;
    height: 8px;
  }

  .dot.is-active {
    width: 54px;
  }

  .hero-grid {
    margin-top: 64px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .hero-lead p {
    font-size: 16px;
    line-height: 1.58;
  }

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

  .certificate-search-row .button {
    width: 100%;
  }

  .certificate-placeholder,
  .certificate-meta {
    padding: 24px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 28px 22px 24px;
  }

  .certificate-placeholder.is-private {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
