:root {
  --primary: #0A4C78;
  --secondary: #1E293B;
  --accent: #00B4D8;
  --accent-dark: #0096C7;
  --bg-soft: #F1F5F9;
  --blue-soft: #E8F3FA;
  --text: #4B5F78;
  --border: #E2E8F0;
  --error: #B42318;
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, .08);
}

.contact-page * {
  box-sizing: border-box;
}

.contact-page {
  color: var(--secondary);
  background: #fff;
}

.contact-page .container {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
}

.contact-page .section {
  padding: 92px 0;
}

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

.contact-page .eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-page .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, .15);
}

.contact-page h1,
.contact-page h2,
.contact-page h3 {
  font-family: Manrope, Inter, Arial, sans-serif;
  color: var(--secondary);
}

.contact-page h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.contact-page h2 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.contact-page h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.contact-page p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 82px;
  background: linear-gradient(135deg, rgba(241,245,249,.78) 0%, rgba(255,255,255,.95) 48%, rgba(232,243,250,.82) 100%);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,76,120,.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10,76,120,.028) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.contact-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 64px;
  align-items: center;
}

.contact-hero p {
  max-width: 760px;
  font-size: 18px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contact-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.contact-page .btn:hover {
  transform: translateY(-2px);
}

.contact-page .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 180, 216, .24);
}

.contact-page .btn-secondary {
  color: var(--primary);
  background: #fff;
  border-color: rgba(11, 79, 120, .18);
}

.contact-hero-card,
.calendar-card,
.form-card,
.channel-card {
  background: #fff;
  border: 1px solid rgba(10, 76, 120, .12);
  box-shadow: var(--shadow-soft);
}

.contact-hero-card {
  padding: 32px;
  border-radius: 22px;
}

.contact-hero-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.contact-hero-card span {
  display: block;
  color: var(--text);
  font-weight: 750;
  line-height: 1.55;
}

.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.calendar-card {
  overflow: hidden;
  min-height: 720px;
  padding: 10px;
  border-radius: 22px;
}

.cal-inline {
  width: 100%;
  min-height: 700px;
}

.calendar-card iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(520px, 1fr);
  gap: 58px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 104px;
}

.form-card {
  padding: 34px;
  border-radius: 22px;
}

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

.field,
.consent-field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.consent-field label {
  color: var(--secondary);
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 79, 120, .16);
  border-radius: 10px;
  background: #fff;
  color: var(--secondary);
  font: inherit;
  line-height: 1.45;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, .12);
}

.field .is-invalid,
.consent-field input.is-invalid {
  border-color: var(--error);
}

.field-error {
  min-height: 18px;
  color: var(--error);
  font-size: 13px;
  font-weight: 800;
}

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

.consent-field {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  margin-top: 22px;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-field a,
.form-status a {
  color: var(--primary);
  font-weight: 900;
}

.form-status {
  min-height: 22px;
  margin: 14px 0;
  color: var(--error);
  font-weight: 850;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .72;
}

.form-success {
  padding: 28px;
  border-radius: 18px;
  background: var(--blue-soft);
}

.form-success p {
  margin-bottom: 20px;
}

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

.channel-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 24px;
  border-radius: 18px;
  text-decoration: none;
}

.channel-card strong {
  color: var(--primary);
  font-size: 18px;
}

.channel-card span {
  color: var(--text);
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.service-note {
  margin-top: 28px;
  font-weight: 800;
}

.contact-final {
  background:
    radial-gradient(circle at 82% 16%, rgba(0, 180, 216, .22), transparent 30%),
    linear-gradient(135deg, #061C2E 0%, #0A3656 100%);
}

.contact-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-final h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
}

@media (max-width: 1100px) {
  .contact-hero-grid,
  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }

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

@media (max-width: 720px) {
  .contact-page .container {
    width: min(calc(100% - 32px), 1280px);
  }

  .contact-page .section {
    padding: 64px 0;
  }

  .contact-hero {
    padding: 46px 0 58px;
  }

  .contact-page h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .contact-page h2 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .contact-actions,
  .contact-page .btn,
  .contact-final-inner {
    width: 100%;
  }

  .form-card {
    padding: 24px 18px;
  }

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

  .calendar-card {
    min-height: 700px;
    padding: 0;
  }

  .contact-final-inner {
    display: grid;
  }
}
