:root {
  --paper: #ffffff;
  --shelf: #f8f6fa;
  --fg: #1f1924;
  --subtle: #61576b;
  --key: #70449c;
  --pop: #66a22a;
  --ref: #70449c;
  --on-key: #ffffff;
  --face-head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --ts-h1: clamp(31.3px, 0.945vw + 27.75px, 39.1px);
  --ts-h2: clamp(25px, 0.764vw + 22.14px, 31.3px);
  --ts-h3: clamp(20px, 0.606vw + 17.73px, 25px);
  --ts-h4: clamp(17.9px, 0.255vw + 16.95px, 20px);
  --radius: 18px;
  --bs-body-bg: var(--paper);
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-body-color: var(--fg);
  --bs-body-color-rgb: 31, 25, 36;
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;
  --bs-emphasis-color: var(--fg);
  --bs-emphasis-color-rgb: 31, 25, 36;
  --bs-heading-color: inherit;
  --bs-secondary-color: var(--subtle);
  --bs-secondary-rgb: 97, 87, 107;
  --bs-tertiary-color: var(--subtle);
  --bs-secondary-bg: var(--shelf);
  --bs-secondary-bg-rgb: 248, 246, 250;
  --bs-tertiary-bg: var(--shelf);
  --bs-tertiary-bg-rgb: 248, 246, 250;
  --bs-primary: var(--key);
  --bs-primary-rgb: 112, 68, 156;
  --bs-link-color: var(--ref);
  --bs-link-color-rgb: 112, 68, 156;
  --bs-link-hover-color: var(--fg);
  --bs-link-hover-color-rgb: 31, 25, 36;
  --bs-light-rgb: 248, 246, 250;
  --bs-dark-rgb: 31, 25, 36;
  --bs-border-color: color-mix(in srgb, var(--fg) 16%, var(--paper));
  --bs-border-radius: var(--radius);
  --bs-border-radius-sm: calc(var(--radius) * .6);
  --bs-border-radius-lg: calc(var(--radius) * 1.4);
  --bs-border-radius-xl: calc(var(--radius) * 1.8);
  --bs-focus-ring-color: color-mix(in srgb, var(--key) 40%, transparent);
}

html {
  color-scheme: light;
}

body {
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--face-head);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
}

h1, .h1 { font-size: var(--ts-h1); }
h2, .h2 { font-size: var(--ts-h2); }
h3, .h3 { font-size: var(--ts-h3); }
h4, .h4 { font-size: var(--ts-h4); }

.btn-primary {
  --bs-btn-color: var(--on-key);
  --bs-btn-bg: var(--key);
  --bs-btn-border-color: var(--key);
  --bs-btn-hover-color: var(--on-key);
  --bs-btn-hover-bg: color-mix(in srgb, var(--key) 88%, #000000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--key) 88%, #000000);
  --bs-btn-active-color: var(--on-key);
  --bs-btn-active-bg: color-mix(in srgb, var(--key) 80%, #000000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--key) 80%, #000000);
  --bs-btn-disabled-color: var(--on-key);
  --bs-btn-disabled-bg: var(--key);
  --bs-btn-disabled-border-color: var(--key);
}

.btn-outline-primary {
  --bs-btn-color: var(--ref);
  --bs-btn-border-color: var(--key);
  --bs-btn-hover-color: var(--on-key);
  --bs-btn-hover-bg: var(--key);
  --bs-btn-hover-border-color: var(--key);
  --bs-btn-active-color: var(--on-key);
  --bs-btn-active-bg: var(--key);
  --bs-btn-active-border-color: var(--key);
}

/* Bootstrap красит .bg-* только фоном, а текст наследуется: на .bg-primary
   выходил основной текст (до 1.2:1), на тёмной основе .bg-light — светлый
   текст на светлом (1:1). Здесь у каждой заливки своя пара из гарантированных,
   и ссылки со вторичным текстом внутри .bg-primary тоже берут onPrimary */
.bg-primary {
  color: var(--on-key);
  --bs-body-color-rgb: 255, 255, 255;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-secondary-color: var(--on-key);
  --bs-secondary-rgb: 255, 255, 255;
  --bs-link-color: var(--on-key);
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-hover-color: var(--on-key);
  --bs-link-hover-color-rgb: 255, 255, 255;
}

.bg-primary .btn-outline-primary {
  --bs-btn-color: var(--on-key);
  --bs-btn-border-color: var(--on-key);
  --bs-btn-hover-color: var(--key);
  --bs-btn-hover-bg: var(--on-key);
  --bs-btn-hover-border-color: var(--on-key);
  --bs-btn-active-color: var(--key);
  --bs-btn-active-bg: var(--on-key);
  --bs-btn-active-border-color: var(--on-key);
}

/* «Светлая» заливка — панель на обеих основах: на тёмной --bs-light-rgb
   равен цвету текста (он нужен .text-light), и фон совпадал бы с текстом */
.bg-light {
  background-color: var(--shelf) !important;
  color: var(--fg);
}

.bg-body {
  color: var(--fg);
}

.bg-dark {
  color: var(--paper);
}

/* Панели и поля внутри заливки primary возвращают переменные корня: иначе
   ссылки и подсказки полей на белой карточке вышли бы цветом onPrimary */
.bg-primary :where(.bg-body, .bg-light, .card, .form-control, .form-select, .dropdown-menu, .list-group-item, .accordion-item) {
  --bs-body-color-rgb: 31, 25, 36;
  --bs-emphasis-color-rgb: 31, 25, 36;
  --bs-secondary-color: var(--subtle);
  --bs-secondary-rgb: 97, 87, 107;
  --bs-link-color: var(--ref);
  --bs-link-color-rgb: 112, 68, 156;
  --bs-link-hover-color: var(--fg);
  --bs-link-hover-color-rgb: 31, 25, 36;
}

:where(img[height][width]) { height: auto; }

.site-header{background:var(--paper);border-bottom:2px solid var(--pop);}
.site-header .navbar{padding-top:.75rem;padding-bottom:.75rem;}
.site-header .navbar-brand{display:flex;align-items:center;gap:.6rem;color:var(--fg);font-family:var(--face-head);font-weight:700;font-size:1.0625rem;line-height:1.2;margin-right:0;}
.site-header .navbar-brand img{width:47px;height:47px;flex:0 0 auto;display:block;}
.site-header .navbar-brand span{display:block;}
.site-header .navbar-toggler{border:1px solid var(--fg);border-radius:var(--radius);padding:.4rem .6rem;color:var(--fg);}
.site-header .navbar-toggler:focus{box-shadow:none;outline:3px solid var(--key);outline-offset:2px;}
.site-header .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");}
.site-header .nav-link{color:var(--fg);font-family:var(--face-head);font-weight:600;padding:.6rem .9rem;border-radius:var(--radius);transition:background-color .15s ease,color .15s ease;}
.site-header .nav-link:hover{background:var(--shelf);color:var(--fg);}
.site-header .nav-link:focus-visible{outline:3px solid var(--key);outline-offset:2px;color:var(--fg);}
.site-header .navbar-brand:focus-visible{outline:3px solid var(--key);outline-offset:3px;border-radius:var(--radius);}
@media (max-width:991.98px){
.site-header .navbar-collapse{margin-top:.75rem;padding:.5rem;background:var(--shelf);border-radius:var(--radius);}
.site-header .nav-link{padding:.75rem 1rem;}
}
@media (max-width:400px){
.site-header .navbar-brand{font-size:1rem;gap:.5rem;}
.site-header .navbar-brand img{width:40px;height:40px;}
}

#services-page{background:var(--paper);color:var(--fg);padding:48px 0;font-family:var(--font-body)}
#services-page h1,#services-page h2,#services-page h3,#services-page h4{font-family:var(--face-head);color:var(--fg)}
#services-page .sp-intro{max-width:720px;margin-bottom:40px}
#services-page .sp-intro h1{font-size:var(--ts-h1);margin-bottom:16px}
#services-page .sp-intro p{color:var(--subtle);line-height:1.7;margin:0}
#services-page .sp-group{margin-bottom:48px}
#services-page .sp-group h2{font-size:var(--ts-h2);margin-bottom:12px}
#services-page .sp-group-lead{color:var(--subtle);max-width:720px;line-height:1.7;margin-bottom:24px}
#services-page .sp-card{display:flex;align-items:flex-start;gap:20px;height:100%;background:var(--shelf);border:1px solid var(--pop);border-radius:var(--radius);padding:24px;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}
#services-page .sp-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.12)}
#services-page .sp-icon{flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:var(--key);color:var(--on-key);display:flex;align-items:center;justify-content:center;font-size:1.5rem}
#services-page .sp-body{min-width:0}
#services-page .sp-body h3{font-size:var(--ts-h4);margin-bottom:8px}
#services-page .sp-body p{margin:0;line-height:1.7;color:var(--fg)}
#services-page .sp-cta{background:var(--shelf);border:1px solid var(--pop);border-radius:var(--radius);padding:32px 24px;text-align:center}
#services-page .sp-cta h2{font-size:var(--ts-h3);margin-bottom:12px}
#services-page .sp-cta p{max-width:620px;margin:0 auto 20px;line-height:1.7;color:var(--subtle)}
#services-page .sp-cta .btn{background:var(--key);color:var(--on-key);border:0;border-radius:var(--radius);padding:12px 28px;font-family:var(--face-head)}
#services-page .sp-cta .btn:hover{background:var(--key);color:var(--on-key);opacity:.9}
#services-page .sp-cta .btn:focus-visible,#services-page a:focus-visible{outline:3px solid var(--fg);outline-offset:3px}
#services-page .sp-link{color:var(--ref)}
@media (max-width:575.98px){
#services-page{padding:40px 0}
#services-page .sp-card{padding:20px;gap:16px}
#services-page .sp-icon{flex-basis:48px;width:48px;height:48px;font-size:1.25rem}
}

.site-footer {
  background-color: var(--shelf);
  color: var(--fg);
  font-family: var(--font-body);
  padding: 48px 0 24px;
  border-top: 2px solid var(--pop);
}
.site-footer h3,
.site-footer h4 {
  font-family: var(--face-head);
  color: var(--fg);
}
.site-footer .footer-brand {
  font-size: var(--ts-h3);
  margin-bottom: 12px;
}
.site-footer .footer-title {
  font-size: var(--ts-h4);
  margin-bottom: 12px;
}
.site-footer p {
  color: var(--subtle);
  margin-bottom: 0;
  max-width: 62ch;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin-bottom: 8px;
}
.site-footer a {
  color: var(--ref);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: var(--fg);
}
.site-footer a:focus-visible {
  outline: 3px solid var(--key);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-footer .footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--subtle);
  color: var(--subtle);
  font-size: 16px;
  padding-bottom: 48px;
}
#privacyNotice {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1080;
  max-height: 60vh;
  overflow-y: auto;
  background-color: var(--paper);
  color: var(--fg);
  border: 2px solid var(--key);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  font-family: var(--font-body);
}
#privacyNotice .notice-title {
  font-family: var(--face-head);
  font-size: var(--ts-h4);
  color: var(--fg);
  margin-bottom: 6px;
}
#privacyNotice p {
  color: var(--subtle);
  margin-bottom: 8px;
}
#privacyNotice ul {
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--fg);
}
#privacyNotice a {
  color: var(--ref);
  text-decoration: underline;
}
#privacyNotice .notice-actions .btn {
  width: 100%;
}
@media (min-width: 768px) {
  #privacyNotice {
    left: 50%;
    right: auto;
    width: 640px;
    transform: translateX(-50%);
  }
}

.hero-fin {
  background: var(--paper);
  color: var(--fg);
  padding: 48px 0 56px;
}
.hero-fin h1 {
  font-family: var(--face-head);
  font-size: var(--ts-h1);
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-fin .hero-sub {
  font-family: var(--face-head);
  font-size: var(--ts-h3);
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.3;
}
.hero-fin .hero-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--subtle);
  max-width: 62ch;
  margin-bottom: 24px;
}
.hero-fin .hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}
.hero-fin .strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--shelf);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
}
.hero-fin .strip-item i {
  color: var(--key);
  font-size: 1.15rem;
}
.hero-fin .btn-hero-main {
  background: var(--key);
  color: var(--on-key);
  border: 2px solid var(--key);
  border-radius: var(--radius);
  font-family: var(--face-head);
  font-weight: 600;
  padding: 12px 26px;
  transition: opacity .2s ease, transform .2s ease;
}
.hero-fin .btn-hero-main:hover {
  background: var(--key);
  color: var(--on-key);
  opacity: .88;
  transform: translateY(-1px);
}
.hero-fin .btn-hero-alt {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--key);
  border-radius: var(--radius);
  font-family: var(--face-head);
  font-weight: 600;
  padding: 12px 26px;
  transition: background .2s ease, color .2s ease;
}
.hero-fin .btn-hero-alt:hover {
  background: var(--key);
  color: var(--on-key);
}
.hero-fin .btn-hero-main:focus-visible,
.hero-fin .btn-hero-alt:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}
.hero-fin .hero-img {
  display: block;
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border-bottom: 6px solid var(--pop);
}
@media (max-width: 575.98px) {
  .hero-fin { padding: 36px 0 44px; }
  .hero-fin .btn-hero-main,
  .hero-fin .btn-hero-alt { width: 100%; text-align: center; }
}

#company {
  background: var(--shelf);
  padding: 52px 0;
}
#company .about-title {
  font-family: var(--face-head);
  font-size: var(--ts-h2);
  color: var(--fg);
  margin-bottom: 16px;
}
#company .about-text p {
  font-family: var(--font-body);
  color: var(--fg);
  line-height: 1.7;
  max-width: 68ch;
  margin-bottom: 14px;
}
#company .about-link {
  display: inline-block;
  color: var(--ref);
  font-family: var(--face-head);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
}
#company .about-link:hover {
  color: var(--fg);
}
#company .about-link:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 3px;
  border-radius: 4px;
}
#company .about-pics {
  position: relative;
  padding-bottom: 28px;
}
#company .about-pic {
  display: block;
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}
#company .about-pic-main {
  border-left: 6px solid var(--pop);
}
#company .about-pic-second {
  width: 62%;
  margin: -34px 0 0 auto;
  position: relative;
  border: 4px solid var(--shelf);
}
@media (max-width: 575.98px) {
  #company {
    padding: 44px 0;
  }
  #company .about-pic-second {
    width: 74%;
    margin-top: -24px;
  }
}

#services{background:var(--paper);color:var(--fg);padding:52px 0}
#services .svc-head{max-width:680px;margin-bottom:32px}
#services .svc-head h2{font-family:var(--face-head);font-size:var(--ts-h2);color:var(--fg);margin-bottom:12px}
#services .svc-head p{font-family:var(--font-body);color:var(--subtle);margin:0;line-height:1.65}
#services .svc-list{list-style:none;margin:0;padding:0;background:var(--shelf);border-radius:var(--radius);padding:8px 24px}
#services .svc-item{display:flex;gap:16px;align-items:flex-start;padding:22px 0;border-bottom:1px solid var(--pop);transition:transform .2s ease}
#services .svc-item:hover{transform:translateX(4px)}
#services .svc-ico{flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:var(--key);color:var(--on-key);display:flex;align-items:center;justify-content:center;font-size:1.25rem}
#services .svc-body h3{font-family:var(--face-head);font-size:var(--ts-h4);color:var(--fg);margin:0 0 6px;line-height:1.3}
#services .svc-body p{font-family:var(--font-body);color:var(--fg);margin:0;line-height:1.65;font-size:1rem}
#services .svc-col .svc-item:last-child{border-bottom:0}
@media (min-width:768px){
#services .svc-cols{display:grid;grid-template-columns:1fr 1fr;column-gap:0}
#services .svc-col{padding:0 24px}
#services .svc-col:first-child{border-right:1px solid var(--pop);padding-left:0}
#services .svc-col:last-child{padding-right:0}
#services .svc-list{padding:8px 24px}
}
@media (max-width:767.98px){
#services{padding:44px 0}
#services .svc-col:first-child .svc-item:last-child{border-bottom:1px solid var(--pop)}
}
#services .svc-cta{margin-top:28px}
#services .svc-cta .btn{border-radius:var(--radius)}
#services .svc-cta .btn:focus-visible{outline:3px solid var(--pop);outline-offset:3px}

#benefits {
  background: var(--shelf);
  color: var(--fg);
  padding: 56px 0;
}
#benefits .benefits-intro {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}
#benefits .benefits-intro h2 {
  font-family: var(--face-head);
  font-size: var(--ts-h2);
  color: var(--fg);
  margin-bottom: 12px;
}
#benefits .benefits-intro p {
  font-family: var(--font-body);
  color: var(--subtle);
  margin: 0;
  line-height: 1.65;
}
#benefits .benefit-card {
  background: var(--paper);
  color: var(--fg);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 24px 22px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
#benefits .benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
#benefits .benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--key);
  color: var(--on-key);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  border-bottom: 3px solid var(--pop);
}
#benefits .benefit-card h3 {
  font-family: var(--face-head);
  font-size: var(--ts-h4);
  color: var(--fg);
  margin-bottom: 8px;
}
#benefits .benefit-card p {
  font-family: var(--font-body);
  color: var(--subtle);
  margin: 0;
  line-height: 1.65;
}
@media (max-width: 575.98px) {
  #benefits { padding: 48px 0; }
  #benefits .benefit-card { padding: 20px 18px; }
}

#common-questions.faq-block {
  background: var(--paper);
  color: var(--fg);
  padding: 52px 0;
}
#common-questions .faq-intro {
  max-width: 680px;
  margin-bottom: 28px;
}
#common-questions .faq-intro h2 {
  font-family: var(--face-head);
  font-size: var(--ts-h2);
  color: var(--fg);
  margin-bottom: 12px;
}
#common-questions .faq-intro p {
  font-family: var(--font-body);
  color: var(--subtle);
  line-height: 1.7;
  margin-bottom: 0;
}
#common-questions .accordion {
  --bs-accordion-bg: var(--shelf);
  --bs-accordion-color: var(--fg);
  --bs-accordion-border-color: var(--pop);
  --bs-accordion-border-radius: var(--radius);
  --bs-accordion-inner-border-radius: var(--radius);
  --bs-accordion-btn-bg: var(--shelf);
  --bs-accordion-btn-color: var(--fg);
  --bs-accordion-active-bg: var(--shelf);
  --bs-accordion-active-color: var(--fg);
  --bs-accordion-btn-focus-box-shadow: none;
}
#common-questions .accordion-item {
  background: var(--shelf);
  border: 1px solid var(--pop);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
#common-questions .accordion-item:last-child {
  margin-bottom: 0;
}
#common-questions .accordion-button {
  font-family: var(--face-head);
  font-size: var(--ts-h4);
  font-weight: 600;
  color: var(--fg);
  background: var(--shelf);
  padding: 18px 22px;
  line-height: 1.4;
  border-radius: var(--radius);
}
#common-questions .accordion-button:not(.collapsed) {
  color: var(--fg);
  background: var(--shelf);
  box-shadow: none;
}
#common-questions .accordion-button:focus-visible {
  outline: 3px solid var(--key);
  outline-offset: -3px;
}
#common-questions .accordion-body {
  font-family: var(--font-body);
  color: var(--fg);
  line-height: 1.75;
  padding: 4px 22px 22px;
  max-width: 75ch;
}
#common-questions .accordion-body p {
  margin-bottom: 0;
}
#common-questions .faq-more {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--shelf);
  border-radius: var(--radius);
  border-left: 4px solid var(--pop);
}
#common-questions .faq-more p {
  font-family: var(--font-body);
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.7;
}
#common-questions .faq-more .btn {
  font-family: var(--face-head);
  border-radius: var(--radius);
}
@media (max-width: 575.98px) {
  #common-questions.faq-block { padding: 40px 0; }
  #common-questions .accordion-button { padding: 16px 16px; }
  #common-questions .accordion-body { padding: 4px 16px 18px; }
}

#assurance {
  background: var(--shelf);
  color: var(--fg);
  padding: 48px 0;
  font-family: var(--font-body);
}
#assurance .assurance-title {
  font-family: var(--face-head);
  color: var(--fg);
  margin-bottom: 12px;
}
#assurance .assurance-lead {
  color: var(--subtle);
  max-width: 68ch;
  margin-bottom: 28px;
}
#assurance .assurance-card {
  background: var(--paper);
  color: var(--fg);
  border: 1px solid var(--pop);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
#assurance .assurance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}
#assurance .assurance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pop);
  border-radius: 12px;
  color: var(--fg);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
#assurance .assurance-card h3 {
  font-family: var(--face-head);
  font-size: var(--ts-h4);
  color: var(--fg);
  margin-bottom: 8px;
}
#assurance .assurance-card p {
  color: var(--subtle);
  margin: 0;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  #assurance .assurance-card { transition: none; }
  #assurance .assurance-card:hover { transform: none; }
}

#contact.contact-section {
  background: var(--paper);
  color: var(--fg);
  padding: 48px 0 56px;
  font-family: var(--font-body);
}
#contact .contact-section__title {
  font-family: var(--face-head);
  font-size: var(--ts-h2);
  color: var(--fg);
  margin-bottom: 12px;
}
#contact .contact-section__lead {
  color: var(--subtle);
  max-width: 62ch;
  margin-bottom: 0;
}
#contact .contact-form-card {
  background: var(--shelf);
  border: 1px solid var(--pop);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
#contact .contact-form-card .form-label {
  font-family: var(--face-head);
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 6px;
}
#contact .contact-form-card .form-control {
  background: var(--paper);
  color: var(--fg);
  border: 1px solid var(--subtle);
  border-radius: calc(var(--radius) / 2);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
}
#contact .contact-form-card .form-control::placeholder {
  color: var(--subtle);
  opacity: 1;
}
#contact .contact-form-card .form-control:focus {
  border-color: var(--key);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .18);
  outline: 2px solid var(--key);
  outline-offset: 1px;
}
#contact .contact-form-card textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
#contact .contact-submit {
  background: var(--key);
  color: var(--on-key);
  border: 1px solid var(--key);
  border-radius: calc(var(--radius) / 2);
  font-family: var(--face-head);
  font-weight: 600;
  padding: 12px 28px;
  transition: opacity .2s ease;
}
#contact .contact-submit:hover {
  background: var(--key);
  color: var(--on-key);
  opacity: .88;
}
#contact .contact-submit:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 2px;
}
#contact .contact-note {
  color: var(--subtle);
  font-size: 16px;
  margin: 14px 0 0;
}
#contact .contact-aside {
  background: var(--paper);
  border: 1px solid var(--pop);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
#contact .contact-aside h3 {
  font-family: var(--face-head);
  font-size: var(--ts-h3);
  color: var(--fg);
  margin-bottom: 12px;
}
#contact .contact-aside p {
  color: var(--fg);
}
#contact .contact-aside .contact-aside__mail {
  font-family: var(--face-head);
  font-weight: 600;
  word-break: break-word;
}
#contact .contact-aside a {
  color: var(--ref);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#contact .contact-aside a:focus-visible {
  outline: 2px solid var(--key);
  outline-offset: 2px;
}
#contact .contact-prep {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
#contact .contact-prep li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--fg);
}
#contact .contact-prep li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pop);
}
#contact .contact-after {
  border-top: 1px solid var(--pop);
  padding-top: 16px;
  margin-top: 4px;
}
#contact .contact-after p {
  color: var(--subtle);
  margin-bottom: 0;
}
@media (max-width: 575.98px) {
  #contact .contact-form-card,
  #contact .contact-aside {
    padding: 20px;
  }
}

#legal-notice.disclaimer-block {
  background: var(--shelf);
  color: var(--fg);
  padding: 48px 0;
}
#legal-notice .disclaimer-card {
  background: var(--paper);
  color: var(--fg);
  border: 1px solid var(--pop);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 820px;
  margin: 0 auto;
}
#legal-notice .disclaimer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
#legal-notice .disclaimer-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--shelf);
  border: 2px solid var(--pop);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--key);
  font-size: 1.5rem;
}
#legal-notice h2 {
  font-family: var(--face-head);
  font-size: var(--ts-h2);
  color: var(--fg);
  margin: 0;
}
#legal-notice p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 14px;
  max-width: 75ch;
}
#legal-notice p:last-child {
  margin-bottom: 0;
}
#legal-notice a {
  color: var(--ref);
}
@media (max-width: 575.98px) {
  #legal-notice.disclaimer-block { padding: 40px 0; }
  #legal-notice .disclaimer-card { padding: 22px 16px; }
}

#faq-content { background: var(--paper); color: var(--fg); padding: 48px 0 56px; font-family: var(--font-body); }
#faq-content h1, #faq-content h2, #faq-content h3, #faq-content .accordion-button { font-family: var(--face-head); }
#faq-content .faq-intro { max-width: 720px; margin-bottom: 40px; }
#faq-content .faq-intro h1 { font-size: var(--ts-h1); color: var(--fg); margin-bottom: 16px; }
#faq-content .faq-intro p { color: var(--subtle); line-height: 1.7; margin-bottom: 0; }
#faq-content .faq-group { margin-bottom: 48px; }
#faq-content .faq-group h2 { font-size: var(--ts-h2); color: var(--fg); margin-bottom: 8px; }
#faq-content .faq-group > p { color: var(--subtle); max-width: 720px; line-height: 1.7; margin-bottom: 20px; }
#faq-content .accordion { --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius); }
#faq-content .accordion-item { background: var(--shelf); border: 1px solid var(--pop); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
#faq-content .accordion-item:not(:first-of-type) { border-top: 1px solid var(--pop); }
#faq-content .accordion-button { background: var(--shelf); color: var(--fg); font-size: var(--ts-h4); font-weight: 600; line-height: 1.4; padding: 18px 20px; box-shadow: none; border-radius: var(--radius); }
#faq-content .accordion-button:not(.collapsed) { background: var(--shelf); color: var(--fg); box-shadow: none; }
#faq-content .accordion-button:focus-visible { outline: 3px solid var(--key); outline-offset: -3px; box-shadow: none; }
#faq-content .accordion-button::after { flex-shrink: 0; }
#faq-content .accordion-body { background: var(--shelf); color: var(--fg); line-height: 1.75; padding: 4px 20px 20px; max-width: 75ch; }
#faq-content .accordion-body p { margin-bottom: 12px; }
#faq-content .accordion-body p:last-child { margin-bottom: 0; }
#faq-content .accordion-body a { color: var(--ref); }
#faq-content .faq-cta { background: var(--key); color: var(--on-key); border-radius: var(--radius); padding: 32px 28px; }
#faq-content .faq-cta h2 { color: var(--on-key); font-size: var(--ts-h3); margin-bottom: 12px; }
#faq-content .faq-cta p { color: var(--on-key); line-height: 1.7; max-width: 640px; margin-bottom: 20px; }
#faq-content .faq-cta .btn { background: var(--paper); color: var(--fg); border: 2px solid var(--paper); border-radius: var(--radius); font-family: var(--face-head); font-weight: 600; padding: 10px 24px; }
#faq-content .faq-cta .btn:hover, #faq-content .faq-cta .btn:focus-visible { background: var(--shelf); color: var(--fg); border-color: var(--shelf); }
#faq-content .faq-cta .btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
@media (max-width: 575.98px) {
  #faq-content { padding: 40px 0 48px; }
  #faq-content .accordion-button { padding: 16px; }
  #faq-content .accordion-body { padding: 4px 16px 16px; }
  #faq-content .faq-cta { padding: 24px 18px; }
}

#contact-section { background: var(--paper); color: var(--fg); padding: 48px 0; font-family: var(--font-body); }
#contact-section h1, #contact-section h2, #contact-section h3 { font-family: var(--face-head); color: var(--fg); }
#contact-section .cs-lead { color: var(--subtle); max-width: 68ch; }
#contact-section .cs-form-wrap { background: var(--shelf); border-radius: var(--radius); padding: 28px; border: 1px solid var(--pop); }
#contact-section .form-label { font-family: var(--face-head); color: var(--fg); font-weight: 500; }
#contact-section .form-control { border-radius: 12px; background: var(--paper); color: var(--fg); border: 1px solid var(--subtle); padding: 12px 14px; }
#contact-section .form-control::placeholder { color: var(--subtle); }
#contact-section .form-control:focus { border-color: var(--key); box-shadow: 0 0 0 .2rem var(--shelf), 0 0 0 .3rem var(--key); outline: none; }
#contact-section .cs-btn { background: var(--key); color: var(--on-key); border: 0; border-radius: 12px; padding: 12px 28px; font-family: var(--face-head); font-weight: 500; }
#contact-section .cs-btn:hover { background: var(--key); color: var(--on-key); opacity: .9; }
#contact-section .cs-btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
#contact-section .cs-side { background: var(--shelf); border-radius: var(--radius); padding: 24px; height: 100%; }
#contact-section .cs-side p, #contact-section .cs-side li { color: var(--fg); }
#contact-section .cs-side a { color: var(--ref); }
#contact-section .cs-side a:focus-visible { outline: 3px solid var(--key); outline-offset: 2px; }
#contact-section .cs-list { padding-left: 1.1rem; margin: 0; }
#contact-section .cs-list li { margin-bottom: .5rem; }
#contact-section .cs-steps { margin-top: 48px; }
#contact-section .cs-step { background: var(--shelf); border-radius: var(--radius); padding: 22px; height: 100%; }
#contact-section .cs-step h3 { font-size: var(--ts-h4); margin-bottom: .5rem; }
#contact-section .cs-step p { color: var(--subtle); margin: 0; }
#contact-section .cs-cta { margin-top: 48px; background: var(--key); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
#contact-section .cs-cta h2 { color: var(--on-key); font-size: var(--ts-h3); }
#contact-section .cs-cta p { color: var(--on-key); }
#contact-section .cs-cta a.cs-cta-btn { display: inline-block; background: var(--paper); color: var(--fg); border-radius: 12px; padding: 12px 28px; font-family: var(--face-head); font-weight: 500; text-decoration: none; }
#contact-section .cs-cta a.cs-cta-btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
@media (max-width: 575px) { #contact-section .cs-form-wrap { padding: 20px; } }

#about-section {
  background: var(--paper);
  color: var(--fg);
  padding: 48px 0 56px;
  font-family: var(--font-body);
}
#about-section h1,
#about-section h2,
#about-section h3 {
  font-family: var(--face-head);
  color: var(--fg);
}
#about-section .about-lead {
  color: var(--subtle);
  max-width: 70ch;
}
#about-section p {
  max-width: 72ch;
  line-height: 1.7;
}
#about-section .about-block {
  margin-top: 48px;
}
#about-section .about-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
#about-section .about-figure {
  margin: 0;
}
#about-section .about-figure figcaption {
  color: var(--subtle);
  font-size: 1rem;
  margin-top: 10px;
  line-height: 1.5;
}
#about-section .about-panel {
  background: var(--shelf);
  border-radius: var(--radius);
  padding: 28px;
}
#about-section .about-panel h3 {
  margin-bottom: 12px;
}
#about-section .about-panel p:last-child,
#about-section .about-panel ul:last-child {
  margin-bottom: 0;
}
#about-section .about-list {
  padding-left: 1.2rem;
  margin: 0;
}
#about-section .about-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}
#about-section .about-table-wrap {
  background: var(--shelf);
  border-radius: var(--radius);
  padding: 8px 20px;
}
#about-section .about-table {
  width: 100%;
  margin: 0;
  color: var(--fg);
  --bs-table-bg: transparent;
  --bs-table-color: var(--fg);
}
#about-section .about-table th,
#about-section .about-table td {
  padding: 14px 12px;
  vertical-align: top;
  color: var(--fg);
  background: transparent;
  border-color: var(--subtle);
  line-height: 1.55;
}
#about-section .about-table th {
  font-family: var(--face-head);
  font-weight: 600;
  width: 34%;
}
#about-section .about-note {
  border-left: 4px solid var(--pop);
  padding-left: 16px;
  color: var(--fg);
}
#about-section .about-cta {
  background: var(--shelf);
  border-radius: var(--radius);
  padding: 32px 28px;
}
#about-section .about-cta p {
  color: var(--fg);
}
#about-section .about-link {
  color: var(--ref);
}
#about-section .btn:focus-visible,
#about-section a:focus-visible {
  outline: 3px solid var(--key);
  outline-offset: 3px;
}
@media (max-width: 575.98px) {
  #about-section { padding: 36px 0 48px; }
  #about-section .about-panel,
  #about-section .about-cta { padding: 22px 18px; }
  #about-section .about-table th { width: 40%; }
}

.thanks-section {
  background-color: var(--paper);
  color: var(--fg);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.thanks-panel {
  background-color: var(--shelf);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.thanks-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  display: block;
}
.thanks-icon circle {
  fill: none;
  stroke: var(--pop);
  stroke-width: 3;
}
.thanks-icon path {
  fill: none;
  stroke: var(--key);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thanks-title {
  font-family: var(--face-head);
  font-size: var(--ts-h1);
  color: var(--fg);
  margin-bottom: 1rem;
}
.thanks-text {
  font-family: var(--font-body);
  color: var(--subtle);
  line-height: 1.7;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.thanks-text strong {
  color: var(--fg);
}
@media (min-width: 768px) {
  .thanks-panel {
    padding: 4rem 3rem;
  }
}

/* Цвет текста кнопок закреплён: правило блока вида «#about a { color: … }»
   по специфичности перебивало .btn-primary, и кнопка выходила светлым
   текстом на светлой заливке */
a.btn-primary, .btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  color: var(--on-key) !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--key);
  outline-offset: 2px;
}

footer a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Название в шапке набрано заголовочным шрифтом; крупное, оно выталкивает
   кнопку меню на вторую строку телефона */
@media (max-width: 575.98px) {
  .navbar-brand, .navbar-brand * {
    font-size: 1.25rem !important;
    line-height: 1.2;
  }
  .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 64px);
    white-space: normal;
  }
}

footer small, footer .small {
  font-size: max(.875rem, 14px);
}

@keyframes arrive-56 {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}

.lead-in-16 > * {
  animation: arrive-56 560ms cubic-bezier(.2, .7, .2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
