/* ==========================================================================
   ПАЛИТРА И ТОКЕНЫ
   Чтобы подогнать под точный бренд-цвет Revelan — поменяй одну переменную --accent.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --ink: #18212f;
  --ink-soft: #586170;
  --accent: #1f6fb2; /* основной акцент (синий Drupal-семейства) */
  --accent-dark: #175a91;
  --accent-tint: #e8f1f9;
  --dark: #141b26; /* тёмная CTA-секция и футер */
  --border: #e3e8ef;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(20, 27, 38, .07);
  --maxw: 1380px; /* как на /ru/webshop */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

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

img {
  max-width: 100%;
  /*display:block;*/
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

/* Контейнер темы больше не режет фон секций — как на webshop */
#main-wrapper > .container {
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.page-title-wrap.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px)
}

section {
  padding: 64px 0
}

.soft {
  background: var(--bg-soft)
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 .4em
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: -.02em
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.01em
}

h3 {
  font-size: 1.12rem
}

p {
  margin: 0 0 1em
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .6em;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 60ch
}

.center {
  text-align: center
}

.center .lead {
  margin-left: auto;
  margin-right: auto
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus,
button.btn.btn-primary:hover,
button.btn.btn-primary:focus {
  background: var(--accent-dark);
  background-color: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
  text-decoration: none;
}

.btn-ghost,
a.btn.btn-ghost {
  background: transparent;
  background-color: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus,
a.btn.btn-ghost:hover,
a.btn.btn-ghost:focus {
  background: var(--accent-tint);
  background-color: var(--accent-tint);
  border: 1.5px solid var(--accent-dark);
  color: var(--accent-dark);
  text-decoration: none;
}

.btn-light,
a.btn.btn-light {
  background: #fff;
  background-color: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-light:hover,
.btn-light:focus,
a.btn.btn-light:hover,
a.btn.btn-light:focus {
  background: #f0f0f0;
  background-color: #f0f0f0;
  color: var(--ink);
  border-color: #f0f0f0;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important
  }
}

/* ---------- Хедер ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink)
}

.brand span {
  color: var(--accent)
}

.site-head .btn {
  padding: 9px 18px
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px
}

.hero .lead {
  margin-top: .2em
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 14px
}

.trust-line {
  font-size: .92rem;
  color: var(--ink-soft)
}

.trust-line strong {
  color: var(--ink)
}

/* ---------- Сетки карточек ---------- */
.grid {
  display: grid;
  gap: 18px
}

.grid-3 {
  grid-template-columns:repeat(3, 1fr)
}

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

@media (max-width: 820px) {
  .grid-3, .grid-2 {
    grid-template-columns:1fr
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.soft .card {
  background: #fff
}

.card .ico {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: inline-block
}

.card h3 {
  margin-bottom: .35em
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .96rem
}

.card .num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Дисквалификатор ---------- */
.notfor {
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 26px;
}

.notfor p {
  margin: 0;
  color: var(--ink)
}

/* ---------- Кейсы ---------- */
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}

.case h3 {
  margin-bottom: .3em
}

.case p {
  color: var(--ink-soft);
  font-size: .96rem;
  margin: 0
}

/* ---------- Почему я ---------- */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px
}

.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.why-list li:last-child {
  border-bottom: none;
  padding-bottom: 0
}

.why-list .k {
  font-weight: 600;
  color: var(--ink)
}

/* ---------- Форматы оплаты ---------- */
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.plan h3 {
  margin-bottom: .4em
}

.plan p {
  color: var(--ink-soft);
  font-size: .96rem;
  flex: 1
}

.plan .btn {
  margin-top: 16px;
  text-align: center
}

/* ---------- Шаги ---------- */
.steps {
  counter-reset: none;
  display: grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.step {
  grid-column: auto;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  width: 100%;
  max-width: none;
  position: relative;
}

.step::before {
  content: none;
  display: none;
  counter-increment: none;
}

.step .n {
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 44px;
}

.step h3 {
  margin-bottom: .25em
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .96rem
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns:1fr
  }
}

/* ---------- FAQ (аккордеон) ---------- */
.faq {
  max-width: none;
  width: 100%;
  margin: 0
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

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

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform .2s ease;
  flex: 0 0 auto;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–"
}

.faq .answer {
  padding: 10px 20px 20px;
  color: var(--ink-soft)
}

.faq .answer p {
  margin: 0
}

/* ---------- Тёмный CTA на всю ширину ---------- */
.cta-dark {
  background: var(--dark);
  color: #fff;
  text-align: center;
  width: 100%
}

.cta-dark h2 {
  color: #fff
}

.cta-dark .lead {
  color: #c4ccd6;
  margin: 0 auto 24px
}

.cta-dark .contacts {
  margin-top: 22px;
  font-size: .95rem;
  color: #aab4c0
}

.cta-dark .contacts a {
  color: #fff
}

.cta-dark .contacts a:hover {
  color: #fff;
  text-decoration: underline
}

/* ---------- Футер ---------- */
.site-foot {
  background: var(--dark);
  color: #aab4c0;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  width: 100%
}

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .9rem
}

.site-foot strong {
  color: #fff;
  display: block;
  margin-bottom: 6px
}

.site-foot a {
  color: #c4ccd6
}

/* ==========================================================================
   МОДАЛЬНЫЙ ПОПАП — контактная форма
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 27, 38, .55);
}

.modal[aria-hidden="false"] {
  display: flex
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  padding: 30px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.modal-box h3 {
  font-size: 1.4rem;
  margin-bottom: .3em
}

.modal-box .sub {
  color: var(--ink-soft);
  font-size: .96rem;
  margin-bottom: 18px
}

/* Hide the invite copy once the thank-you confirmation replaces the form. */
.modal-box:has(.webform-confirmation) .sub {
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-box .webform-submission-form .form-item {
  margin-bottom: 14px;
}

.modal-box .webform-submission-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}

.modal-box .webform-submission-form input[type="text"],
.modal-box .webform-submission-form input[type="url"],
.modal-box .webform-submission-form input[type="email"],
.modal-box .webform-submission-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: #fff !important;
}

.modal-box .webform-submission-form input:focus,
.modal-box .webform-submission-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-box .webform-submission-form textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-box .webform-button--submit,
.modal-box input.form-submit {
  display: inline-block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.modal-box .webform-button--submit:hover,
.modal-box .webform-button--submit:focus,
.modal-box input.form-submit:hover,
.modal-box input.form-submit:focus {
  background: var(--accent-dark);
  background-color: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.modal-box .webform-confirmation {
  text-align: center;
  padding: 12px 0 4px;
}

.modal-box .webform-confirmation__message p {
  color: var(--ink-soft);
}

.field {
  margin-bottom: 14px
}

.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 5px
}

.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink);
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent)
}

.field textarea {
  resize: vertical;
  min-height: 80px
}

.modal .btn {
  width: 100%;
  text-align: center
}

.hp {
  position: absolute;
  left: -9999px
}

/* honeypot */
.form-ok {
  display: none;
  text-align: center;
  padding: 20px 0
}

.form-ok .big {
  font-size: 2.2rem
}

/* фокус для доступности */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.site-foot {
  display: none;
}
.cta-dark {
  margin-bottom: -36px;
}
