/* regcctld.ru — лендинг в стилистике cctld.ru (КЦ доменов .RU/.РФ) */
:root {
  /* палитра с основного сайта КЦ */
  --kc-blue: #005eb8;
  --kc-blue-hover: #004a93;
  --kc-teal: #165f68;
  --kc-text: #212529;
  --kc-text-soft: #3c3c3c;
  --kc-bg: #ffffff;
  --kc-bg-muted: #f6f6f6;
  --kc-border: #e3e8eb;
  --kc-shadow-header: 0 10px 25px rgba(205, 212, 217, 0.35);

  --bg: var(--kc-bg);
  --bg-elevated: #ffffff;
  --surface: var(--kc-bg);
  --border: var(--kc-border);
  --text: var(--kc-text);
  --text-muted: var(--kc-text-soft);
  /* чуть плотнее основного «muted» для длинных абзацев — лучше контраст и читаемость */
  --text-prose: #333333;
  --heading: var(--kc-teal);
  --accent: var(--kc-blue);
  --accent-hover: var(--kc-blue-hover);
  --font-body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Montserrat", "Gotham Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --header-h: 6.75rem;
  --max-w: 68rem;
  --space: clamp(1rem, 4vw, 2rem);
  --scroll-margin-top: calc(var(--header-h) + 1rem);
  --prose-line: 1.65;
  --prose-measure: 65ch;
  --section-pad: clamp(1.35rem, 3.75vw, 2.35rem);
}

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #ffffff;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

#main {
  scroll-margin-top: var(--scroll-margin-top);
}

section[id].section {
  scroll-margin-top: var(--scroll-margin-top);
}

#action-steps {
  scroll-margin-top: var(--scroll-margin-top);
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-heading);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

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

/* Header — как полоса .b-header__content на cctld.ru */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16), 0 6px 18px rgba(0, 50, 100, 0.28);
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

/* Чуть шире поля в шапке — логотип не «впирается» в край визуально */
.site-header .container.header-inner {
  width: min(100% - clamp(1.15rem, 4.5vw, 2.15rem) * 2, var(--max-w));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 5.35rem;
  padding: 0.25rem 0.65rem 0.25rem 0.45rem;
  margin: 0;
  font-weight: 700;
  font-size: clamp(0.92rem, 2.4vw, 1rem);
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.logo:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
}

.logo:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.44);
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.logo-img {
  width: 10.75rem;
  height: 3.95rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: 0;
}

.logo-text {
  white-space: nowrap;
}

.logo-dot {
  color: #b9dcff;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 2.75rem;
  min-height: 2.75rem;
  width: max(2.75rem, 44px);
  height: max(2.75rem, 44px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}


.site-nav {
  padding: 0.42rem 0.8rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.site-nav .nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

 .site-nav a {
  display: inline-block;
  padding: 0.35rem 0.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(0, 94, 184, 0.45);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--kc-shadow-header);
    border-radius: 0;
    padding: 1rem var(--space);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav a {
    color: var(--text-muted);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--accent);
    text-decoration-color: rgba(0, 94, 184, 0.45);
  }
}

/* Hero — светлый блок, заголовки как .b-promo__title */
.hero {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: #fff;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-glow {
  display: none;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: min(60rem, 100%);
  color: var(--heading);
}

.hero-accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: min(60rem, 100%);
  color: var(--text-prose);
  font-size: 1.0625rem;
  line-height: var(--prose-line);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-notice {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 1.35rem 1.35rem 1.35rem 1.15rem;
  max-width: min(60rem, 100%);
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(22, 95, 104, 0.06);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-notice p {
  margin: 0 0 0.9rem;
  max-width: 100%;
  color: var(--text-prose);
  font-size: 1rem;
  line-height: var(--prose-line);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-notice p:last-child {
  margin-bottom: 0;
}

.hero-notice p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(0, 94, 184, 0.4);
  text-decoration-thickness: 1.5px;
}

.hero-notice p a:hover,
.hero-notice p a:focus-visible {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.hero-notice-welcome {
  margin: 0 0 1.15rem;
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hero-notice-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.3;
  color: var(--heading);
}

.hero-notice-list {
  margin: 0 0 0.9rem;
  padding-left: 1.35rem;
  max-width: 100%;
  color: var(--text-prose);
}

.hero-notice-list li {
  margin-bottom: 0.45rem;
  line-height: var(--prose-line);
  padding-left: 0.15rem;
}

.hero-notice-list li:last-child {
  margin-bottom: 0;
}

.hero-notice-highlight-wrap {
  max-width: 100%;
  min-width: 0;
}

.hero-notice-highlight {
  font-weight: 700;
  color: #c62828;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}

.hero-notice-plates {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .hero-notice-plates {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.hero-notice-plate {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(22, 95, 104, 0.07);
}

.hero-notice-plate-intro {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-notice-plate-org-box {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(22, 95, 104, 0.18);
  border-left: 4px solid var(--heading);
  border-radius: calc(var(--radius) - 2px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-notice-plate-org-box:has(.hero-notice-plate-org-link:hover),
.hero-notice-plate-org-box:has(.hero-notice-plate-org-link:focus-visible) {
  border-color: rgba(0, 94, 184, 0.35);
  border-left-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 94, 184, 0.12);
  background: #fff;
}

.hero-notice-plate-org-link {
  display: inline;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--heading);
  text-decoration: none;
}

.hero-notice-plate-org-link:hover,
.hero-notice-plate-org-link:focus-visible {
  color: var(--accent);
}

.hero-notice-plate-org-alias {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-notice-plate-org-alias::before {
  content: "(";
}

.hero-notice-plate-org-alias::after {
  content: ")";
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(0, 94, 184, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent-hover);
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
  background: #fff;
}

.section-alt {
  background: #fff;
}

.section-title {
  margin: 0 0 1.35rem;
  padding-bottom: 0.65rem;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  border-bottom: 2px solid rgba(22, 95, 104, 0.15);
  max-width: min(60rem, 100%);
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 50ch;
  color: var(--text-muted);
  line-height: 1.55;
}

.important-body {
  max-width: min(60rem, 100%);
  color: var(--text-prose);
  font-size: 1rem;
  line-height: var(--prose-line);
}

.important-body p {
  margin: 0 0 1rem;
}

.important-body p:last-child {
  margin-bottom: 0;
}

.important-body strong {
  color: var(--text);
  font-weight: 700;
}

.important-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(0, 94, 184, 0.4);
  text-decoration-thickness: 1.5px;
}

.important-body a:hover,
.important-body a:focus-visible {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.important-list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.important-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.important-list li:last-child {
  margin-bottom: 0;
}

.action-steps {
  margin: 1.25rem 0 1.35rem;
  padding: 1.25rem 1.15rem 1.35rem;
  background: linear-gradient(180deg, #f0f7fc 0%, #fff 100%);
  border: 1px solid rgba(0, 94, 184, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(22, 95, 104, 0.08);
}

.action-steps-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
}

.action-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .action-steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
  }
}

.action-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.action-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.action-step-body {
  min-width: 0;
}

.action-step-lead {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.35;
}

.action-step-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-prose);
  line-height: 1.5;
}

.important-sources {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(22, 95, 104, 0.04);
}

.feature-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--heading);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.services-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-item {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.service-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--heading);
}

.service-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-hint {
  margin: -0.5rem 0 1.25rem;
  max-width: min(60rem, 100%);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(60rem, 100%);
}

.faq-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item[open] {
  box-shadow: 0 2px 10px rgba(22, 95, 104, 0.08);
}

.faq-summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem 1rem 1rem;
  display: block;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::marker {
  content: "";
}

.faq-item .faq-summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  border-radius: 2px;
}

.faq-q {
  margin: 0;
  padding-right: 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--heading);
  max-width: 100%;
}

.faq-q a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(0, 94, 184, 0.45);
}

.faq-q a:hover,
.faq-q a:focus-visible {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.faq-summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.35rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.faq-item[open] > .faq-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}

.faq-a {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.15rem 1.2rem 1rem;
  border-top: 1px solid rgba(22, 95, 104, 0.1);
}

.faq-a p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-prose);
  line-height: var(--prose-line);
  max-width: 100%;
}

.faq-a a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(0, 94, 184, 0.4);
}

.faq-a a:hover,
.faq-a a:focus-visible {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.faq-ol {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 1rem;
  color: var(--text-prose);
  line-height: var(--prose-line);
  max-width: 100%;
}

.faq-ol li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.faq-ol li:last-child {
  margin-bottom: 0;
}

.section-cta {
  padding-block: var(--section-pad);
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
  background: #fff;
}

/* Совпадает с .faq-list / .faq-hint (60rem); заголовок и текст по центру полосы аккордеона */
.contact-block {
  max-width: min(60rem, 100%);
  text-align: center;
}

.contact-block .section-title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
  max-width: none;
}

.contact-text {
  margin: 0 auto 1.25rem;
  max-width: min(var(--prose-measure), 100%);
  color: var(--text-prose);
  line-height: var(--prose-line);
  text-align: center;
}

.contact-alt {
  margin: 1.5rem auto 0;
  padding: 1rem 1.15rem;
  max-width: min(38rem, 100%);
  text-align: left;
  background: var(--kc-bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-alt-title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading);
}

.contact-alt-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-prose);
}

.contact-alt-list li {
  margin-bottom: 0.4rem;
}

.contact-alt-list li:last-child {
  margin-bottom: 0;
}

.contact-alt-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Узкая форма по центру колонки контактов (как у FAQ) */
.contact-form-card {
  margin-top: 0.25rem;
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
  padding: 1.5rem 1.35rem 1.65rem;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(22, 95, 104, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

@media (min-width: 480px) {
  .contact-form-card {
    padding: 1.65rem 1.75rem 1.85rem;
  }
}

.contact-form-heading {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  border-bottom: 1px solid rgba(22, 95, 104, 0.12);
}

.contact-form {
  position: relative;
  margin-top: 0;
  text-align: left;
}

.form-errors-summary {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #f87171;
  border-radius: 6px;
}

.form-field-error {
  display: block;
  margin-top: 0.35rem;
  min-height: 1.25em;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b71c1c;
}

.form-field-error:empty {
  display: none;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: #c62828;
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.25);
}

.form-checkbox[aria-invalid="true"] {
  outline: 2px solid #c62828;
  outline-offset: 2px;
}

.form-success {
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  max-width: min(38rem, 100%);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0d47a1;
  text-align: center;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: var(--radius);
}

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

.smartcaptcha-host {
  min-height: 0;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
}

.form-required {
  color: #c62828;
  font-weight: 700;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(60, 60, 60, 0.55);
}

.form-input:hover,
.form-textarea:hover {
  border-color: rgba(22, 95, 104, 0.35);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.18);
}

.form-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-group-consent {
  margin-bottom: 1rem;
  padding-top: 0.15rem;
}

.form-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-checkbox {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent-label {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-prose);
  cursor: pointer;
}

.form-consent-details {
  margin: 0.65rem 0 0 1.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--kc-bg-muted);
  overflow: hidden;
}

.form-consent-summary {
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.form-consent-summary::-webkit-details-marker {
  display: none;
}

.form-consent-summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.35rem;
  border-left: 5px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.form-consent-details[open] .form-consent-summary::before {
  transform: rotate(90deg);
}

.form-consent-summary:hover,
.form-consent-summary:focus-visible {
  color: var(--accent-hover);
  background: rgba(0, 94, 184, 0.06);
}

.form-consent-body {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-prose);
  border-top: 1px solid var(--border);
}

.form-consent-body p {
  margin: 0.65rem 0 0;
}

.form-consent-body p:first-child {
  margin-top: 0.65rem;
}

.form-consent-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-consent-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-consent-body a:hover,
.form-consent-body a:focus-visible {
  color: var(--accent-hover);
}

.form-note {
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
  padding-top: 0.35rem;
}

.form-submit {
  width: 100%;
  min-height: 2.875rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

@media (min-width: 480px) {
  .form-submit {
    width: auto;
    min-width: 13.5rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
  background: #fff;
}

.footer-inner {
  text-align: center;
}

.footer-copy {
  margin: 0;
  max-width: 100%;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
  overflow-wrap: break-word;
  hyphens: auto;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
