/* Klikcloud — корпоративный стиль (navy / beige) */
:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --beige: #f2ebe2;
  --beige-dark: #e5d9ca;
  --bg: #faf9f7;
  --bg-white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0f172a;
  --accent-hover: #1e293b;
  --link: #1e3a5f;
  --link-hover: #0f172a;
  --header-bg: var(--navy);
  --header-text: #f1f5f9;
  --header-muted: #94a3b8;
  --nav-text: #0f172a;
  --nav-muted: #475569;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --success-text: #166534;
  --max: 68rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Фоны: файлы в html/assets/img/ (пути относительно assets/css/site.css) */
  --photo-hero-home: url("../img/hero-home.png");
  --photo-hero-page: url("../img/hero-page.png");
  --photo-contact-bg: url("../img/contact-bg.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ——— Header: topbar + navbar ——— */
.site-header {
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.site-topbar {
  background: var(--navy);
  color: var(--header-text);
  font-size: 0.8125rem;
}

.site-topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.site-topbar a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-topbar a:hover {
  color: #fff;
  text-decoration: none;
}

.site-topbar__item {
  color: var(--header-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-topbar__portal {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none !important;
}

.site-topbar__portal:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.site-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.site-topbar__portal--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.site-topbar__portal--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Встраивание метрик с server.klikcloud.ru */
.status-embed-wrap {
  margin: 1.5rem auto 2.5rem;
  max-width: var(--max);
  padding: 0 1.25rem;
}

.status-embed {
  display: block;
  width: 100%;
  min-height: 92rem;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--bg);
}

@media (max-width: 40rem) {
  .status-embed {
    min-height: 100rem;
  }
}

.site-navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.site-navbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--nav-text) !important;
  text-decoration: none !important;
}

.site-logo:hover {
  color: var(--navy-mid) !important;
  opacity: 1;
  text-decoration: none !important;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nav-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--nav-text);
  text-decoration: none;
}

.site-nav a.nav-link--active {
  color: var(--nav-text);
  font-weight: 700;
  border-bottom-color: var(--navy);
}

.btn--nav-cta {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn--nav-cta:hover {
  background: var(--navy-mid) !important;
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .btn--nav-cta {
    margin-left: auto;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  min-height: 50vh;
}

main.narrow {
  max-width: 42rem;
}

main.narrow--top {
  max-width: none;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

main.narrow--top > .main-narrow {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

main.narrow--top > .page-hero:first-child {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--muted);
}

.prose li {
  margin: 0.35rem 0;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  color: #f8fafc;
  margin: -2.5rem -1.25rem 2.5rem;
  padding: 3rem 1.25rem 3.25rem;
  min-height: 11rem;
  display: flex;
  align-items: center;
  background-color: var(--navy-mid);
  background-image:
    linear-gradient(105deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 45%, rgba(15, 23, 42, 0.85) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(148, 163, 184, 0.25) 0%, transparent 55%),
    linear-gradient(160deg, rgba(51, 65, 85, 0.5) 0%, rgba(15, 23, 42, 0.65) 100%),
    var(--photo-hero-page);
  background-size: cover;
  background-position: center;
}

@media (min-width: 720px) {
  .page-hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.25rem, calc(50vw - var(--max) / 2));
    padding-right: max(1.25rem, calc(50vw - var(--max) / 2));
  }
}

/* Full-bleed hero inside narrow main (portal, privacy) */
main.narrow > .page-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.25rem, calc(50vw - 21rem));
  padding-right: max(1.25rem, calc(50vw - 21rem));
}

@media (max-width: 719px) {
  main.narrow > .page-hero {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #64748b;
  text-decoration: none;
  pointer-events: none;
}

/* Home hero */
.hero {
  position: relative;
  color: #f8fafc;
  margin: -2.5rem -1.25rem 2.5rem;
  padding: 3.5rem 1.25rem 3.75rem;
  min-height: 16rem;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-image:
    linear-gradient(105deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.88) 100%),
    radial-gradient(ellipse 90% 70% at 75% 35%, rgba(148, 163, 184, 0.22) 0%, transparent 50%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.7) 55%, rgba(23, 37, 84, 0.6) 100%),
    var(--photo-hero-home);
  background-size: cover;
  background-position: center;
}

@media (min-width: 720px) {
  .hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.25rem, calc(50vw - var(--max) / 2));
    padding-right: max(1.25rem, calc(50vw - var(--max) / 2));
  }
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero .lead {
  color: #cbd5e1;
  margin-bottom: 0;
}

.hero__intro {
  margin-bottom: 1.75rem;
  max-width: 44rem;
}

.hero__intro p {
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.hero__intro p:last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--navy);
  color: #fff !important;
}

.btn--primary:hover {
  background: var(--navy-mid);
  color: #fff !important;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.btn--secondary {
  background: var(--bg-white);
  color: var(--navy) !important;
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--beige);
  color: var(--navy) !important;
}

.btn--light {
  background: #fff;
  color: var(--navy) !important;
}

.btn--light:hover {
  background: var(--beige);
}

/* Media + text sections */
.media-section {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}

@media (min-width: 768px) {
  .media-section {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .media-section--reverse .media-section__media {
    order: 2;
  }
}

.media-section__media {
  margin: 0;
}

.media-section__figure {
  margin: 0;
  max-width: min(100%, 28rem);
}

@media (min-width: 768px) {
  .media-section--reverse .media-section__figure {
    margin-left: auto;
  }
}

.media-section__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--beige-dark) 0%, #cbd5e1 45%, var(--beige) 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  pointer-events: none;
}

.media-section__body h2 {
  margin-top: 0;
}

/* Mission / values band */
.section-beige {
  background: var(--beige);
  margin: 2.5rem -1.25rem;
  padding: 2.5rem 1.25rem;
  border-radius: 0;
}

@media (min-width: 720px) {
  .section-beige {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.25rem, calc(50vw - var(--max) / 2));
    padding-right: max(1.25rem, calc(50vw - var(--max) / 2));
  }
}

.section-beige__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.mvv-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .mvv-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.mvv-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.mvv-card h3 {
  margin-top: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.mvv-card p,
.mvv-card ul {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.mvv-card ul {
  padding-left: 1.1rem;
}

.cta-row {
  text-align: center;
  margin: 2.5rem 0 1rem;
}

/* Contact band */
.contact-band {
  margin: 3rem -1.25rem -3.5rem;
  padding: 3rem 1.25rem 3.5rem;
  background: var(--navy);
  color: #e2e8f0;
  position: relative;
  background-image:
    linear-gradient(160deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.95) 100%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(71, 85, 105, 0.35) 0%, transparent 55%),
    var(--photo-contact-bg);
  background-size: cover;
  background-position: center;
}

main.narrow--top .contact-band {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 720px) {
  .contact-band {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: -3.5rem;
    padding-left: max(1.25rem, calc(50vw - var(--max) / 2));
    padding-right: max(1.25rem, calc(50vw - var(--max) / 2));
  }

  main.narrow--top .contact-band {
    margin-left: 0;
    margin-right: 0;
    padding-left: max(1.25rem, calc(50vw - var(--max) / 2));
    padding-right: max(1.25rem, calc(50vw - var(--max) / 2));
  }
}

.contact-band__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .contact-band__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-band__aside h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.contact-band__aside .lead {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.contact-band__email {
  display: block;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  word-break: break-all;
}

.contact-band__email:hover {
  color: #cbd5e1 !important;
  text-decoration: underline !important;
}

.contact-band .form-panel--on-dark {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.contact-band .form-group label {
  color: #cbd5e1;
}

.contact-band .form-group input[type="text"],
.contact-band .form-group input[type="email"],
.contact-band .form-group input[type="tel"],
.contact-band .form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  color: #fff;
  padding-left: 0;
  padding-right: 0;
}

.contact-band .form-group input::placeholder,
.contact-band .form-group textarea::placeholder {
  color: #64748b;
}

.contact-band .form-group input:focus,
.contact-band .form-group textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}

.contact-band .form-group .hint {
  color: #94a3b8;
}

.contact-band .form-group .hint a {
  color: #cbd5e1;
}

.contact-band .btn--light {
  margin-top: 0.5rem;
}

.contact-band .form-panel .form-consent {
  color: #94a3b8;
}

.contact-band .form-panel .form-consent a {
  color: #cbd5e1;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--navy);
}

.card h2,
.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-title {
  margin-bottom: 1.25rem;
}

/* «Почему выбирают нас» — крупные иконки; на десктопе 3+2 по центру */
.trust-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 0;
}

@media (min-width: 560px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2),
  .trust-item:nth-child(3) {
    grid-column: span 2;
  }

  .trust-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .trust-item:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  min-height: 100%;
}

.trust-item__icon {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  aspect-ratio: 1536 / 1024;
  margin: 0 auto 1.15rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 560px) {
  .trust-item__icon {
    width: min(100%, 15rem);
  }
}

@media (min-width: 960px) {
  .trust-item__icon {
    width: min(100%, 14rem);
  }
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin: 0;
  max-width: 18rem;
}

.error-page {
  text-align: center;
  padding: 2rem 0 3rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1;
}

.error-page .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--beige);
  font-weight: 600;
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

.caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Accordion */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  overflow: hidden;
  margin: 1rem 0;
}

.accordion details {
  border-bottom: 1px solid var(--border);
}

.accordion details:last-child {
  border-bottom: none;
}

.accordion summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion .accordion__body {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.accordion .accordion__body p:last-child {
  margin-bottom: 0;
}

/* News list */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.news-list time {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.news-list h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.news-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Forms */
.form-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-group .hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 1rem 0;
  display: none;
}

.alert--show {
  display: block;
}

.alert--error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.alert--success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

#contact-success.alert--show {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  max-width: none;
  margin: 0;
  padding: 2rem 1.25rem 2.25rem;
  background: var(--beige);
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--beige-dark);
}

.site-footer a {
  color: var(--nav-muted);
}

.site-footer a:hover {
  color: var(--navy);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  max-width: 28rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--beige-dark);
  font-size: 0.75rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
}

/* Cookie notice */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 100%;
  background: var(--navy);
  color: #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.2);
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  min-width: min(100%, 16rem);
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #f1f5f9;
}

.cookie-banner__ok {
  flex-shrink: 0;
  padding: 0.45rem 1.1rem;
  font-size: 0.8125rem;
}

.form-consent {
  margin-top: 1rem;
  margin-bottom: 0;
}
