/* ==========================================================================
   Certalis
   ========================================================================== */

:root {
  --color-bg: #f4f1ea;
  --color-white: #ffffff;
  --color-mint: #f1f7f8;
  --color-brand-deep: #0e3a46;
  --color-brand: #14586a;
  --color-accent: #1f9d6b;
  --color-accent-dark: #178256;
  --color-ink: #14212b;
  --color-muted: #586770;
  --color-line: #e4dfd3;
  --color-line-cool: #dce3e2;
  --color-table-head: #e3edee;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 14px 34px -22px rgb(14 58 70 / 0.3);
  --transition: 0.2s ease;
}

/* Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-brand-deep);
  color: var(--color-white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Layout
   ========================================================================== */

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

.section {
  padding-block: clamp(54px, 7vw, 84px);
}

.section--mint {
  background: var(--color-mint);
}

.section--white {
  background: var(--color-white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head__title {
  color: var(--color-brand-deep);
  font-size: clamp(2rem, 4vw, 2.9rem);
}

/* Зелёная черта под заголовком секции */
.section-head__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--color-accent);
}

.section-head__intro {
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.section-note {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  text-align: center;
}

.section-cta {
  margin-top: 24px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Плашка-предупреждение между секциями */
.notice {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin: 20px auto 32px;
  padding: 18px 22px;
  border: 1px solid #c8d4d0;
  border-radius: var(--radius);
  background: #f1f5f3;
  color: #253e35;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1.05em 1.8em;
  border: 0;
  border-radius: 5px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition);
}

.btn:hover {
  background: var(--color-accent-dark);
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition);
}

.link:hover {
  color: var(--color-accent-dark);
}

.link svg {
  width: 15px;
  height: 15px;
}

.link--light:hover {
  color: var(--color-white);
}

/* Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-line);
  background: rgb(244 241 234 / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.header__logo img {
  width: auto;
  height: 37px;
}

.header__toggle {
  position: relative;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--color-line);
  border-radius: 6px;
  background: none;
}

.header__toggle span,
.header__toggle span::before,
.header__toggle span::after {
  position: absolute;
  left: 11px;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform var(--transition), background-color var(--transition);
}

.header__toggle span {
  top: 20px;
}

.header__toggle span::before,
.header__toggle span::after {
  content: "";
  left: 0;
}

.header__toggle span::before {
  top: -7px;
}

.header__toggle span::after {
  top: 7px;
}

.header__toggle[aria-expanded="true"] span {
  background: transparent;
}

.header__toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  display: none;
  padding: 0.5rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}

.nav.is-open {
  display: block;
}

.nav__link {
  display: block;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--color-line);
  font-weight: 500;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-brand);
}

@media (min-width: 1000px) {
  .header__toggle {
    display: none;
  }

  .nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: none;
  }

  .nav__list {
    display: flex;
    gap: clamp(1.25rem, 2.5vw, 2.125rem);
  }

  .nav__link {
    padding: 0;
    border: 0;
    font-size: 1rem;
  }
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  padding-block: 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* Светлая вуаль, чтобы текст читался поверх фото */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(244 241 234 / 0.95), rgb(244 241 234 / 0.84) 52%, rgb(244 241 234 / 0.66));
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  margin-bottom: 16px;
  color: var(--color-brand-deep);
  font-size: clamp(2.125rem, 3.65vw, 3.5rem);
}

.hero__lead {
  max-width: 54ch;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 22px;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__points svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--color-accent);
}

@media (min-width: 900px) {
  .hero__bg {
    left: auto;
    width: 70%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0, #000 32%);
  }

  .hero::after {
    content: none;
  }

  .hero__content {
    text-shadow: 1px 1px 3px rgb(255 255 255 / 0.5);
  }
}

/* CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  border-block: 1px solid var(--color-line-cool);
  background-color: var(--color-white);
  background-image:
    linear-gradient(135deg, rgb(20 88 106 / 0.04) 25%, transparent 0),
    linear-gradient(225deg, rgb(20 88 106 / 0.04) 25%, transparent 0),
    linear-gradient(315deg, rgb(20 88 106 / 0.04) 25%, transparent 0),
    linear-gradient(45deg, rgb(20 88 106 / 0.04) 25%, transparent 0);
  background-position: -24px 0, -24px 0, 0 0, 0 0;
  background-size: 48px 48px;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-block: 34px 40px;
  text-align: center;
}

.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta-band__title {
  color: var(--color-brand-deep);
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
}

.cta-band__lead {
  max-width: 50ch;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 1rem;
}

.cta-band__note {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.photo {
  position: relative;
  width: min(236px, 62vw);
  aspect-ratio: 1;
}

.photo__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.photo__img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 40px -20px rgb(14 58 70 / 0.45);
}

@media (min-width: 900px) {
  .cta-band__inner {
    flex-direction: row;
    justify-content: space-between;
    padding-block: 26px;
    text-align: left;
  }

  .cta-band__content {
    align-items: flex-start;
    max-width: 60%;
  }

  .photo {
    width: 320px;
    margin-block: -46px;
  }
}

/* Services
   ========================================================================== */

.services__grid {
  display: grid;
  gap: 36px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service__img {
  width: 120px;
  margin-bottom: 10px;
}

.service__title {
  margin-bottom: 8px;
  color: var(--color-brand-deep);
  font-size: 1.15rem;
}

.service__text {
  max-width: 34ch;
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 1rem;
}

@media (min-width: 820px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  /* Шеврон-разделитель между услугами */
  .service:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    right: -14px;
    width: 11px;
    height: 11px;
    border-top: 2px solid var(--color-line-cool);
    border-right: 2px solid var(--color-line-cool);
    transform: rotate(45deg);
  }
}

/* Compare cards
   ========================================================================== */

.compare {
  background-image: url("../images/vs-bg.svg"), url("../images/vs-bg.svg");
  background-position: left -34px top, right -34px top;
  background-repeat: no-repeat;
  background-size: 300px 100%;
}

.compare__grid {
  display: grid;
  gap: 22px;
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 20px;
  border: 1px solid #e7e2d6;
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 30px 60px -34px rgb(14 58 70 / 0.4);
}

.compare-card--accent {
  border-color: #cfe0e1;
  background: #e7f1f2;
}

.compare-card__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 0.45em 0.8em;
  border-radius: 20px;
  background: var(--color-accent);
  box-shadow: 0 6px 14px -6px rgb(31 157 107 / 0.7);
  color: var(--color-white);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-card__title {
  margin-bottom: 28px;
  color: var(--color-brand-deep);
  font-size: 1.65rem;
  text-align: center;
}

.compare-card__list {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.compare-card__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f3f5f5);
  box-shadow: 0 5px 12px -6px rgb(14 58 70 / 0.16), inset 0 1px 0 rgb(255 255 255 / 0.9);
  font-size: 1.1rem;
  line-height: 1.4;
}

.compare-card__list svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: #9aa6a6;
}

.compare-card--accent .compare-card__list svg {
  color: var(--color-accent);
}

.compare-card__badge {
  width: 106px;
  margin: auto auto 0;
}

@media (min-width: 860px) {
  .compare__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 34px;
  }

  .compare-card {
    padding: 46px 42px 50px;
  }

  .compare-card--accent {
    z-index: 1;
    margin-block: -26px;
    box-shadow: 0 44px 84px -34px rgb(14 58 70 / 0.5);
  }
}

@media (min-width: 1040px) {
  .compare {
    background-position: left calc(50% - 620px) top, right calc(50% - 620px) top;
  }
}

/* Fraud types
   ========================================================================== */

.fraud__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 26px;
  border-radius: 14px;
  object-fit: cover;
}

.fraud__title {
  max-width: 24ch;
  margin-bottom: 18px;
  color: var(--color-brand-deep);
  font-size: clamp(1.7rem, 3vw, 2.75rem);
}

.fraud__lead {
  max-width: 82ch;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.fraud__list {
  display: grid;
  gap: 48px;
}

.fraud-type__head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.fraud-type__head img {
  width: 60px;
  flex: none;
}

.fraud-type__title {
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 600;
}

.fraud-type__text {
  max-width: 92ch;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 1rem;
}

/* Таблица: на мобильных — карточка с подписями из data-label */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table thead {
  display: none;
}

.info-table tr {
  display: grid;
  border: 1px solid var(--color-line-cool);
}

.info-table td {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: center;
  column-gap: 13px;
  min-height: 58px;
  padding-right: 14px;
  border-top: 1px solid var(--color-line-cool);
  background: var(--color-white);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.info-table td:first-child {
  border-top: 0;
}

.info-table td::before {
  content: attr(data-label);
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 12px 13px;
  background: var(--color-table-head);
  color: var(--color-brand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .info-table thead {
    display: table-header-group;
  }

  .info-table tr {
    display: table-row;
  }

  .info-table th,
  .info-table td {
    display: table-cell;
    min-height: 0;
    padding: 13px 16px;
    border: 1px solid var(--color-line-cool);
    text-align: left;
    vertical-align: top;
  }

  .info-table th {
    background: var(--color-table-head);
    color: var(--color-brand);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .info-table td::before {
    content: none;
  }
}

@media (min-width: 820px) {
  .fraud__media img {
    aspect-ratio: 21 / 6;
    margin-bottom: 36px;
    border-radius: 18px;
  }

  .fraud-type__head img {
    width: 70px;
  }
}

/* Steps
   ========================================================================== */

.steps__grid {
  display: grid;
  gap: 22px;
}

.step {
  position: relative;
  padding: 42px 22px 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
  text-align: center;
}

/* Зелёный флажок с номером шага */
.step__num {
  position: absolute;
  top: 40px;
  left: -12px;
  width: 62px;
  height: 76px;
  padding: 24px 0 0 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 76'%3E%3Cpath fill='%23178256' d='M0 8v62l53-31Z'/%3E%3Cpath fill='%231f9d6b' d='M0 0v62l53-31Z'/%3E%3C/svg%3E") no-repeat 0 0 / 62px 76px;
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  filter: drop-shadow(0 4px 4px rgb(14 58 70 / 0.22));
}

.step__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.step__title {
  margin-bottom: 10px;
  color: var(--color-brand-deep);
  font-size: 1.24rem;
}

.step__text {
  color: var(--color-muted);
  font-size: 1rem;
}

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

@media (min-width: 1000px) {
  .steps__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* FAQ
   ========================================================================== */

.faq__list {
  display: grid;
  gap: 14px;
  max-width: 940px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 8px 20px -14px rgb(14 58 70 / 0.18);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  color: var(--color-brand-deep);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

/* Иконка «?» слева */
.faq__item summary::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: rgb(20 88 106 / 0.1);
  color: var(--color-brand);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Шеврон справа */
.faq__item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  margin: 0 6px 0 auto;
  border-top: 2px solid var(--color-brand);
  border-right: 2px solid var(--color-brand);
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.faq__item[open] summary::after {
  transform: rotate(135deg);
}

.faq__item p {
  padding: 0 22px 22px;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 620px) {
  .faq__item p {
    padding-left: 80px;
  }
}

/* Contact form
   ========================================================================== */

.contact {
  position: relative;
  padding-block: clamp(56px, 8vw, 90px);
  overflow: hidden;
  background: linear-gradient(158deg, var(--color-brand-deep) 0, var(--color-brand) 100%);
  color: var(--color-white);
  isolation: isolate;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  mix-blend-mode: luminosity;
}

.contact__head {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.contact__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 0.42em 0.95em;
  border-radius: 20px;
  background: rgb(31 157 107 / 0.2);
  color: #86e3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact__title {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.contact__lead {
  color: rgb(255 255 255 / 0.85);
  font-size: 1.05rem;
}

.form {
  display: grid;
  gap: 16px 24px;
  max-width: 760px;
  margin-inline: auto;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form__label {
  color: rgb(255 255 255 / 0.82);
  font-size: 0.86rem;
  font-weight: 500;
}

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

.form__opt {
  color: rgb(255 255 255 / 0.55);
  font-weight: 400;
}

.form__control {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 5px;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgb(14 33 43 / 0.14);
  color: var(--color-ink);
  font-size: 1rem;
}

.form__control::placeholder {
  color: #8a97a0;
}

.form__control:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form__control--select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314586a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
}

textarea.form__control {
  min-height: 118px;
  line-height: 1.5;
  resize: vertical;
}

/* Телефон (intl-tel-input из form_assets) */
.form .iti {
  display: block;
  width: 100%;
  --iti-border-color: var(--color-line-cool);
  --iti-dialcode-color: var(--color-ink);
}

.form .iti__selected-dial-code {
  color: var(--color-ink);
  font-weight: 600;
}

/* Состояния валидации (form_assets/js/form.js) */
.form .form__control.error {
  outline: 2px solid #ff7a7a !important;
  outline-offset: 1px;
}

.form .form__control.correct {
  outline: 2px solid #7dc9a6 !important;
  outline-offset: 1px;
}

.form .validation-error {
  margin-top: 6px;
  color: #ffd2d2;
  font-size: 0.82rem;
}

.form .btn.mc--loading {
  min-width: 220px;
  min-height: 52px;
}

.form .btn.mc--loading::before {
  border-color: rgb(255 255 255 / 0.35);
  border-top-color: var(--color-white);
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 4px;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.form__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--color-accent);
}

.form__check a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.form__min {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.88rem;
}

.form__min svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.form__scope {
  color: rgb(255 255 255 / 0.58);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .form {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }

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

  .form__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Terms overview
   ========================================================================== */

.terms-overview__grid {
  display: grid;
  gap: 18px;
}

.term {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e3edf0;
  border-left: 6px solid #cfe0e6;
  background: var(--color-white);
  box-shadow: 0 12px 32px -22px rgb(14 58 70 / 0.12);
}

.term__icon {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--color-brand);
}

.term__title {
  margin-bottom: 6px;
  color: var(--color-brand-deep);
  font-size: 1.1rem;
}

.term p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .terms-overview__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 26px;
  }
}

/* Page hero (внутренние страницы)
   ========================================================================== */

.page-hero {
  padding-block: clamp(54px, 7vw, 76px) clamp(50px, 6vw, 70px);
  background: linear-gradient(105deg, rgb(14 58 70 / 0.97), rgb(14 58 70 / 0.85) 52%, rgb(20 88 106 / 0.8)), url("../images/certalis-form-bg.avif") center / cover no-repeat;
  color: var(--color-white);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgb(255 255 255 / 0.4);
}

.breadcrumbs a {
  color: rgb(255 255 255 / 0.78);
}

.breadcrumbs a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.breadcrumbs [aria-current] {
  color: #86e3b8;
}

.page-hero__title {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-hero__lead {
  max-width: 62ch;
  color: rgb(255 255 255 / 0.85);
  font-size: 1.1rem;
}

/* Legal pages
   ========================================================================== */

.legal {
  max-width: 820px;
}

.legal__updated {
  margin-bottom: 28px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.legal h2 {
  margin: 36px 0 12px;
  color: var(--color-brand-deep);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem);
}

.legal h3 {
  margin: 22px 0 8px;
  color: var(--color-brand);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal p,
.legal ul,
.legal__table {
  margin-bottom: 14px;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.7;
}

.legal ul {
  display: grid;
  gap: 6px;
  padding-left: 22px;
  list-style: disc;
}

.legal li::marker {
  color: var(--color-accent);
}

.legal a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--color-accent-dark);
}

.legal__table {
  overflow-x: auto;
}

.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: 12px 15px;
  border: 1px solid var(--color-line-cool);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--color-table-head);
  color: var(--color-brand);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Footer
   ========================================================================== */

.footer {
  position: relative;
  margin-top: 60px;
  padding-block: 24px 28px;
  background: var(--color-brand-deep);
  color: #cfdcdf;
  font-size: 0.92rem;
}

/* Волна над футером */
.footer::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V30Q360 2 720 30t720 0v30Z' fill='%230E3A46'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

.footer__grid {
  display: grid;
  gap: 32px 20px;
  grid-template-columns: repeat(2, 1fr);
}

.footer__brand {
  grid-column: 1 / -1;
}

.footer__logo {
  width: auto;
  height: 34px;
  margin-bottom: 14px;
}

.footer__brand p {
  max-width: 34ch;
  color: #9fb4b9;
  font-size: 0.9rem;
}

.footer__title {
  margin-bottom: 12px;
  color: rgb(255 255 255 / 0.55);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 12px;
}

.footer a:not(.link) {
  transition: color var(--transition);
}

.footer a:not(.link):hover {
  color: var(--color-white);
}

.footer__address {
  margin-bottom: 16px;
  color: #9fb4b9;
  line-height: 1.7;
}

.footer__disclaimer {
  margin-top: 32px;
  padding-block: 28px 20px;
  border-top: 1px solid #82968d;
  color: #eef3f0;
}

.footer__disclaimer h2 {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.footer__disclaimer p {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  line-height: 1.75;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: #9fb4b9;
  font-size: 0.82rem;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #cfdcdf;
}

.footer__policies [aria-current="page"] {
  color: var(--color-white);
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.25fr 0.75fr 0.75fr 1fr;
    align-items: start;
    gap: 44px;
  }

  .footer__brand {
    grid-column: auto;
  }
}
