/* ==========================================================================
   LogiPay v2 — корпоративная версия
   Принципы: один шрифт, две ширины, хайрлайн-границы вместо теней,
   бирюзовый только на интерактивных элементах.
   ========================================================================== */

:root {
  /* Прежняя палитра сайта — css/variables.css */
  --navy:        #122b4b;
  --navy-deep:   #0d2039;  /* затемнение navy для подвала */
  --navy-700:    #1a3a63;
  --teal:        #2d8791;
  --teal-dark:   #226a72;  /* тот же тон, затемнён до контраста 4.5:1 на белом */
  --teal-300:    #8ed0d5;
  --ink:         #0d1f33;
  --muted:       #4a6580;
  --line:        #d6e4ef;
  --line-soft:   #e8f0f6;
  --paper:       #ffffff;
  --paper-alt:   #f4f7fa;

  --radius:      4px;
  --font-head:   'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font:        'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter:      32px;
  --maxw:        1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------- Типографика секций ---------- */

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section--alt { background: var(--paper-alt); }

.section__head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.section__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.section__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  align-self: end;
}

/* ---------- Шапка ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.masthead__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  padding-left: 32px;
  margin-left: 32px;
  border-left: 1px solid var(--line);
  transition: color 0.15s;
}

.masthead__phone:hover { color: var(--teal-dark); }

.mainnav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.mainnav a:hover,
.mainnav a.is-active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
}

/* ---------- Первый экран ---------- */

.lede {
  padding: 72px 0 0;
}

.lede__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: start;
}

.lede__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 20px;
}

.lede__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 18ch;
}

.lede__text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 32px;
}

.lede__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--navy-700); border-color: var(--navy-700); }

.btn:focus-visible,
.textlink:focus-visible,
.mainnav a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.textlink {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal-dark);
  border-bottom: 1px solid rgba(45, 135, 145, 0.45);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.textlink:hover { border-bottom-color: var(--teal); }

/* Панель фактов вместо анимированной карточки */

.factsheet {
  border: 1px solid var(--line);
  border-top: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.factsheet__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.factsheet__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.factsheet__row:last-child { border-bottom: none; }

.factsheet__label {
  font-size: 14px;
  color: var(--muted);
}

.factsheet__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

/* ---------- Полоса показателей ---------- */

.metrics {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  padding: 40px 40px 44px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
  border-left: none;
}

.metric:last-child { padding-right: 0; }

.metric__value {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
}

.metric__label {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 26ch;
}

/* ---------- Направления деятельности ---------- */

.practice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.practice__item {
  padding: 34px 32px 34px 0;
  border-right: 1px solid var(--line);
}

.practice__item:last-child { border-right: none; padding-right: 0; }
.practice__item:not(:first-child) { padding-left: 32px; }

.practice__index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.practice__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 12px;
}

.practice__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Принципы работы ---------- */

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

.principle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.principle__num {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.principle__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

.principle__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Кейсы ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 26px 30px;
}

.case__sector {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.case__block { margin-bottom: 18px; }
.case__block:last-child { margin-bottom: 0; }

.case__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.case__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.case__outcomes { display: grid; gap: 8px; }

.case__outcome {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

.case__outcome::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 9px;
  background: var(--teal);
  border-radius: 50%;
}

/* ---------- О компании ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: start;
}

.about__body p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
}

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

.about__body .about__mission {
  font-weight: 600;
  color: var(--navy);
}

.geo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 30px;
  background: var(--paper);
}

.geo__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.geo__group { margin-bottom: 20px; }
.geo__group:last-child { margin-bottom: 0; }

.geo__region {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.geo__list {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; }

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--teal-dark); }

.faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--teal-dark);
}

.faq__item[open] .faq__q::after { content: "\2212"; }

.faq__a {
  padding: 0 48px 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.faq__a p { margin-bottom: 12px; }
.faq__a p:last-child { margin-bottom: 0; }

.faq__a ul {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.faq__a li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
}

.faq__a li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 10px;
  background: var(--line);
  border: 1px solid var(--muted);
  border-radius: 50%;
}

/* ---------- Контакты ---------- */

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

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s;
}

.field input::placeholder,
.field textarea::placeholder { color: #9AA8B4; }

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

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

.form__note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.form__note a { color: var(--teal-dark); border-bottom: 1px solid rgba(45, 135, 145, 0.45); }

.form__success {
  font-size: 15px;
  color: var(--teal-dark);
  font-weight: 500;
  padding: 16px 18px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(45, 135, 145, 0.06);
}

.form__success:focus { outline: none; }

/* Ошибка отдельного поля */

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #c53030;
}

.field__error {
  font-size: 13px;
  line-height: 1.45;
  color: #c53030;
}

/* Общая ошибка отправки */

.form__alert {
  font-size: 14px;
  line-height: 1.5;
  color: #9b2c2c;
  padding: 12px 14px;
  border: 1px solid #f2c6c6;
  border-radius: var(--radius);
  background: #fdf3f3;
}

.form[aria-busy="true"] { opacity: 0.7; }

.btn[disabled] {
  cursor: default;
  opacity: 0.65;
}

.coordinates { border-top: 1px solid var(--line); }

.coordinates__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.coordinates__label {
  font-size: 13px;
  color: var(--muted);
}

.coordinates__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.coordinates__value a:hover { color: var(--teal-dark); }

/* ---------- Подвал ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__colhead {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.footer__list { display: grid; gap: 9px; line-height: 1.55; }

.footer__list a { color: #FFFFFF; transition: color 0.15s; }
.footer__list a:hover { color: var(--teal-300); }

.footer__blurb {
  margin-top: 18px;
  line-height: 1.6;
  max-width: 34ch;
}

.footer__list--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: #FFFFFF; }

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .mainnav { gap: 22px; }
  .mainnav a { font-size: 14px; }
  .masthead__phone { padding-left: 22px; margin-left: 22px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .lede__grid { grid-template-columns: 1fr; gap: 48px; }
  .lede__title { max-width: 22ch; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .section__head { grid-template-columns: 1fr; gap: 20px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric {
    padding: 32px 32px 36px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .metric:nth-child(2n+1) { padding-left: 0; border-left: none; }
  .metric:nth-child(2n) { padding-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .cases { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 1fr; }
  .practice__item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }
  .practice__item:not(:first-child) { padding-left: 0; }
  .practice__item:last-child { border-bottom: none; }
  .principles { grid-template-columns: 1fr; column-gap: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .section { padding: 56px 0; }
  .lede { padding-top: 44px; }
  .metrics { margin-top: 48px; }

  .burger { display: inline-flex; }

  .brand__img { height: 34px; }

  .masthead__inner { gap: 16px; min-height: 66px; }

  .masthead__phone {
    padding-left: 0;
    margin-left: auto;
    border-left: none;
    font-size: 14px;
  }

  .mainnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }

  .mainnav.is-open { display: flex; }

  .mainnav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    margin-left: 0;
  }

  .masthead__inner { position: relative; }

  .section__title { font-size: 25px; }
  .lede__text { font-size: 16.5px; }
  .metric__value { font-size: 30px; margin-bottom: 12px; }
  .metric { padding: 26px 20px 30px; }
  .metric__label { max-width: none; }
  .faq__a { padding-right: 0; }
  .coordinates__row { grid-template-columns: 1fr; gap: 4px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .about__body p { font-size: 16px; }
}
