:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --text: #1d232b;
  --muted: #5f6b7a;
  --line: #d7dde5;
  --accent: #005f8f;
  --accent-hover: #004a70;
  --max-width: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans", "Segoe UI", "Liberation Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: #ecf1f5;
  background-image:
    radial-gradient(1200px 600px at 95% -10%, rgba(0, 95, 143, 0.13), transparent 65%),
    radial-gradient(900px 500px at -10% 100%, rgba(0, 74, 112, 0.1), transparent 60%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 95, 143, 0.08) 0,
      rgba(0, 95, 143, 0.08) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 95, 143, 0.08) 0,
      rgba(0, 95, 143, 0.08) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0, 95, 143, 0.03) 0,
      rgba(0, 95, 143, 0.03) 1px,
      transparent 1px,
      transparent 48px
    ),
    linear-gradient(180deg, rgba(249, 251, 253, 0.78) 0%, rgba(237, 242, 246, 0.78) 100%);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 251, 253, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 17px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.95;
  transform: translateY(-0.25px);
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.92;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 1;
}

.nav .nav-contact {
  margin-left: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 95, 143, 0.42);
  border-radius: 999px;
  background: rgba(233, 244, 255, 0.75);
}

.nav .nav-contact:hover,
.nav .nav-contact.active {
  background: rgba(220, 236, 251, 0.95);
  border-color: rgba(0, 95, 143, 0.6);
  border-bottom-color: rgba(0, 95, 143, 0.6);
}

.section {
  padding: 52px 0;
}

.section + .section {
  position: relative;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 32px, var(--max-width));
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c7d5e3 14%, #9eb8cf 50%, #c7d5e3 86%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 8px rgba(76, 112, 145, 0.16);
}

.hero {
  padding-top: 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 480px at 8% 2%, rgba(20, 50, 76, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(13, 28, 44, 0.18) 0%, rgba(13, 28, 44, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-layout {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 58%;
}

.hero-media {
  position: absolute;
  right: -6%;
  top: -12px;
  width: 68%;
  z-index: 2;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(16, 28, 45, 0.12);
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.65) 28%,
    rgba(0, 0, 0, 1) 48%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.65) 28%,
    rgba(0, 0, 0, 1) 48%
  );
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

h3 {
  font-size: 1.12rem;
}

.lead {
  max-width: 68ch;
  margin: 0 0 12px;
  color: #2f3e4f;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sublead,
.tag,
.muted {
  color: var(--muted);
}

.sublead {
  color: #2c3a4a;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.tag {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f3e4f;
  font-weight: 500;
}

.btn {
  display: inline-block;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-hover);
}

.btn[disabled] {
  cursor: default;
  opacity: 0.7;
}

#submit-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.grid-2x2,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 8px 26px rgba(15, 30, 48, 0.07);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 95, 143, 0.2));
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-title .icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border: 1px solid rgba(0, 95, 143, 0.5);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7fcff 0%, #e9f4ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 2px 8px rgba(22, 61, 92, 0.15);
}

.card-title .icon svg {
  width: 36px;
  height: 36px;
}

.card-title .icon path {
  fill: none;
  stroke: #005f8f;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card ul,
.plain-list,
.steps {
  margin: 0;
  padding-left: 20px;
}

.steps li {
  margin: 10px 0;
}

.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 12px 12px 12px 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ebf4fb;
  border: 1px solid #b9d3e7;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-panel {
  border: 1px solid #24405c;
  border-radius: 16px;
  padding: 22px;
  background:
    linear-gradient(180deg, #17324a 0%, #102738 100%);
  box-shadow: 0 16px 34px rgba(8, 18, 31, 0.22);
}

.cta-panel h2 {
  color: #f2f8ff;
}

.cta-panel .muted {
  color: #c7d7e6;
}

.section-slogan {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid #9ab8d2;
  border-radius: 6px;
  background: rgba(234, 243, 251, 0.65);
  font-weight: 500;
}

.contact form {
  max-width: 100%;
}

.contact-panel {
  max-width: 840px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #cfdbe7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
  box-shadow: 0 14px 36px rgba(12, 26, 45, 0.1);
}

.contact-panel h2,
.contact-panel > .muted {
  text-align: center;
}

.direct-email {
  margin: 10px 0 2px;
  text-align: center;
  color: var(--muted);
}

.direct-email a {
  color: var(--accent);
  font-weight: 600;
}

.copy-email-btn {
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid #b8cfe2;
  border-radius: 8px;
  background: #f3f9ff;
  color: #1e4663;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.copy-email-btn:hover,
.copy-email-btn:focus-visible {
  background: #e8f2fc;
}

.field {
  margin-top: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.hint,
.error,
.form-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.form-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f2f6fb;
}

.form-note.is-hidden {
  display: none;
}

.form-note.is-pending {
  background: #eef5fb;
  border-color: #c9dcee;
  color: #1e4a6a;
}

.form-note.is-success {
  background: #edf8f1;
  border-color: #b8e1c5;
  color: #215b34;
}

.form-note.is-error {
  background: #fff1f1;
  border-color: #edc4c4;
  color: #8a2f2f;
}

.hint {
  color: var(--muted);
}

.error {
  color: #c03636;
  min-height: 1em;
}

.form-status {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf5ff;
  border: 1px solid #c7ddff;
}

.checkbox-field label {
  font-weight: 500;
  display: flex;
  gap: 8px;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
}

.checkbox-field.is-invalid {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #e7a3a3;
  border-radius: 10px;
  background: #fff2f2;
}

.checkbox-field.is-invalid .error {
  font-weight: 600;
  color: #9f1e1e;
}

.privacy-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(249, 251, 253, 0.9);
}

.footer-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-mark {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.88;
}

.status-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.status-popup.is-hidden {
  display: none;
}

.status-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 36, 0.46);
}

.status-popup__dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 14vh auto 0;
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid #c7d5e5;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(12, 26, 45, 0.34);
}

.status-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.status-popup__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.status-popup__icon {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.status-popup__icon svg {
  width: 20px;
  height: 20px;
}

.status-popup__icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-popup__text {
  margin: 0 0 14px;
}

.status-popup__btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
}

.status-popup__btn:hover,
.status-popup__btn:focus-visible {
  background: var(--accent-hover);
}

.status-popup__actions {
  display: flex;
  justify-content: center;
}

.status-popup.is-success .status-popup__dialog {
  border-color: #badfc7;
}

.status-popup.is-success .status-popup__icon {
  display: flex;
  color: #1f7a3a;
  background: #eaf9ef;
  border: 1px solid #bfe7cb;
}

.status-popup.is-error .status-popup__dialog {
  border-color: #e8c3c3;
}

.status-popup.is-error .status-popup__icon {
  display: flex;
  color: #b42323;
  background: #ffeaea;
  border: 1px solid #efc2c2;
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 34px 0;
  }

  .hero {
    padding-top: 76px;
    overflow: visible;
  }

  .hero-layout {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-media {
    position: static;
    order: -1;
    width: 100%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-media img {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .grid-2x2,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 18px;
  }

  .card-title .icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .card-title .icon svg {
    width: 32px;
    height: 32px;
  }

  .copy-email-btn {
    margin-left: 0;
    margin-top: 8px;
    display: inline-block;
  }
}
