:root {
  --bg: #0d0e10;
  --surface: #17191c;
  --body-text: #eceae6;
  --faint: #9a9da3;
  --key: #d6d3cc;
  --accent: #b8b2a4;
  --hyper: #d6d3cc;
  --on-key: #0d0e10;
  --ff-title: "Newsreader", Georgia, "Times New Roman", serif;
  --face-text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ts-h1: clamp(35.2px, 1.055vw + 31.25px, 43.9px);
  --ts-h2: clamp(28.1px, 0.861vw + 24.87px, 35.2px);
  --ts-h3: clamp(22.5px, 0.679vw + 19.95px, 28.1px);
  --ts-h4: clamp(20.1px, 0.291vw + 19.01px, 22.5px);
  --round: 18px;
  --bs-body-bg: var(--bg);
  --bs-body-bg-rgb: 13, 14, 16;
  --bs-body-color: var(--body-text);
  --bs-body-color-rgb: 236, 234, 230;
  --bs-body-font-family: var(--face-text);
  --bs-body-font-size: 1.125rem;
  --bs-body-line-height: 1.6;
  --bs-emphasis-color: var(--body-text);
  --bs-emphasis-color-rgb: 236, 234, 230;
  --bs-heading-color: inherit;
  --bs-secondary-color: var(--faint);
  --bs-secondary-rgb: 154, 157, 163;
  --bs-tertiary-color: var(--faint);
  --bs-secondary-bg: var(--surface);
  --bs-secondary-bg-rgb: 23, 25, 28;
  --bs-tertiary-bg: var(--surface);
  --bs-tertiary-bg-rgb: 23, 25, 28;
  --bs-primary: var(--key);
  --bs-primary-rgb: 214, 211, 204;
  --bs-link-color: var(--hyper);
  --bs-link-color-rgb: 214, 211, 204;
  --bs-link-hover-color: var(--body-text);
  --bs-link-hover-color-rgb: 236, 234, 230;
  --bs-light-rgb: 236, 234, 230;
  --bs-dark-rgb: 23, 25, 28;
  --bs-border-color: color-mix(in srgb, var(--body-text) 16%, var(--bg));
  --bs-border-radius: var(--round);
  --bs-border-radius-sm: calc(var(--round) * .6);
  --bs-border-radius-lg: calc(var(--round) * 1.4);
  --bs-border-radius-xl: calc(var(--round) * 1.8);
  --bs-focus-ring-color: color-mix(in srgb, var(--key) 40%, transparent);
}

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--face-text);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ff-title);
  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%, #ffffff);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--key) 88%, #ffffff);
  --bs-btn-active-color: var(--on-key);
  --bs-btn-active-bg: color-mix(in srgb, var(--key) 80%, #ffffff);
  --bs-btn-active-border-color: color-mix(in srgb, var(--key) 80%, #ffffff);
  --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(--hyper);
  --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: 13, 14, 16;
  --bs-emphasis-color-rgb: 13, 14, 16;
  --bs-secondary-color: var(--on-key);
  --bs-secondary-rgb: 13, 14, 16;
  --bs-link-color: var(--on-key);
  --bs-link-color-rgb: 13, 14, 16;
  --bs-link-hover-color: var(--on-key);
  --bs-link-hover-color-rgb: 13, 14, 16;
}

.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(--surface) !important;
  color: var(--body-text);
}

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

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

/* Панели и поля внутри заливки 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: 236, 234, 230;
  --bs-emphasis-color-rgb: 236, 234, 230;
  --bs-secondary-color: var(--faint);
  --bs-secondary-rgb: 154, 157, 163;
  --bs-link-color: var(--hyper);
  --bs-link-color-rgb: 214, 211, 204;
  --bs-link-hover-color: var(--body-text);
  --bs-link-hover-color-rgb: 236, 234, 230;
}

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

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--faint);
  padding: 14px 0;
}
.site-header .navbar {
  padding: 0;
}
.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--body-text);
  font-family: var(--ff-title);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
}
.site-header .navbar-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}
.site-header .navbar-brand:hover,
.site-header .navbar-brand:focus {
  color: var(--body-text);
}
.site-header .navbar-toggler {
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 8px 12px;
  color: var(--body-text);
  background: transparent;
}
.site-header .navbar-toggler:focus-visible,
.site-header .nav-link:focus-visible,
.site-header .navbar-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.site-header .navbar-toggler-icon {
  background-image: none;
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.site-header .navbar-toggler-icon::before,
.site-header .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--body-text);
}
.site-header .navbar-toggler-icon::before {
  top: 6px;
  box-shadow: 0 5px 0 var(--body-text);
}
.site-header .navbar-toggler-icon::after {
  top: 16px;
}
.site-header .nav-link {
  color: var(--body-text);
  font-family: var(--face-text);
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: var(--round);
  transition: color .2s ease, background-color .2s ease;
}
.site-header .nav-link:hover {
  color: var(--body-text);
  background: var(--surface);
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 14px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: var(--round);
  }
}
@media (max-width: 400px) {
  .site-header .navbar-brand {
    font-size: 1.15rem;
    gap: 9px;
  }
  .site-header .navbar-brand img {
    width: 38px;
    height: 38px;
  }
}

.site-footer {
  background: var(--surface);
  color: var(--body-text);
  padding: 96px 0 56px;
  border-top: 1px solid var(--accent);
  font-family: var(--face-text);
}
.site-footer .footer-brand {
  font-family: var(--ff-title);
  font-size: var(--ts-h3);
  color: var(--body-text);
  margin: 0 0 16px;
}
.site-footer .footer-lead {
  color: var(--faint);
  max-width: 60ch;
  margin: 0;
}
.site-footer .footer-heading {
  font-family: var(--ff-title);
  font-size: var(--ts-h4);
  color: var(--body-text);
  margin: 0 0 16px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer a {
  color: var(--hyper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--body-text);
}
.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer .footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--accent);
  color: var(--faint);
  font-size: 1rem;
}
.site-footer .footer-bottom p {
  margin: 0 0 8px;
}
#cookieStrip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  padding: 12px;
  font-family: var(--face-text);
}
#cookieStrip .cookie-panel {
  background: var(--surface);
  color: var(--body-text);
  border: 1px solid var(--accent);
  border-radius: var(--round);
  padding: 20px 22px;
  max-width: 920px;
  margin: 0 auto;
  max-height: 58vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .45);
}
#cookieStrip .cookie-title {
  font-family: var(--ff-title);
  font-size: var(--ts-h4);
  color: var(--body-text);
  margin: 0 0 8px;
}
#cookieStrip p {
  color: var(--faint);
  font-size: 1rem;
  margin: 0 0 10px;
}
#cookieStrip ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--faint);
}
#cookieStrip li {
  margin-bottom: 6px;
}
#cookieStrip li strong {
  color: var(--body-text);
  font-weight: 600;
}
#cookieStrip a {
  color: var(--hyper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#cookieStrip a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
#cookieStrip .cookie-actions .btn {
  width: 100%;
  border-radius: var(--round);
  font-size: 1rem;
  padding: 10px 14px;
}
#cookieStrip .cookie-actions .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 575.98px) {
  #cookieStrip { padding: 8px; }
  #cookieStrip .cookie-panel { padding: 14px 16px; }
  #cookieStrip p, #cookieStrip ul { font-size: 0.9375rem; }
}

.hero-siczika {
  background: var(--bg);
  color: var(--body-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.hero-siczika .hero-title {
  font-family: var(--ff-title);
  font-size: var(--ts-h1);
  color: var(--body-text);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-siczika .hero-sub {
  font-family: var(--ff-title);
  font-size: var(--ts-h3);
  color: var(--faint);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.hero-siczika .hero-text {
  font-family: var(--face-text);
  color: var(--body-text);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}
.hero-siczika .hero-btn {
  background: var(--key);
  color: var(--on-key);
  border: 1px solid var(--key);
  border-radius: var(--round);
  padding: 0.9rem 1.75rem;
  font-family: var(--face-text);
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hero-siczika .hero-btn:hover {
  background: var(--key);
  color: var(--on-key);
  opacity: 0.88;
  transform: translateY(-2px);
}
.hero-siczika .hero-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.hero-siczika .hero-btn i {
  margin-right: 0.5rem;
}
.hero-siczika .hero-visual {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}
.hero-siczika .hero-img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--round);
  border: 1px solid var(--faint);
  display: block;
}
.hero-siczika .hero-img-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.hero-siczika .book-stack {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.hero-siczika .book-stack span {
  display: block;
  height: 18px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--faint);
}
.hero-siczika .book-stack .b1 { width: 38%; }
.hero-siczika .book-stack .b2 { width: 62%; }
.hero-siczika .book-stack .b3 { width: 84%; }
.hero-siczika .book-stack .b4 { width: 100%; }
.hero-siczika .book-stack .b5 { width: 72%; background: var(--accent); border-color: var(--accent); }
.hero-siczika .book-stack .b6 { width: 90%; }
.hero-siczika .book-stack .b7 { width: 56%; }
.hero-siczika .book-stack .b8 { width: 78%; }
.hero-siczika .book-stack .b9 { width: 44%; }
.hero-siczika .book-stack .b10 { width: 66%; }
@media (max-width: 991.98px) {
  .hero-siczika { padding: 64px 0; }
  .hero-siczika .hero-visual { margin-top: 2.5rem; }
}
@media (max-width: 575.98px) {
  .hero-siczika .hero-visual { flex-direction: column; }
  .hero-siczika .book-stack { flex: 0 0 auto; width: 100%; }
}

#story {
  background: var(--bg);
  color: var(--body-text);
  padding: 96px 0;
}
#story .story-title {
  font-family: var(--ff-title);
  font-size: var(--ts-h2);
  color: var(--body-text);
  margin-bottom: 1.5rem;
}
#story p {
  font-family: var(--face-text);
  color: var(--body-text);
  max-width: 62ch;
  line-height: 1.7;
}
#story .story-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--hyper);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}
#story .story-more:hover,
#story .story-more:focus-visible {
  color: var(--body-text);
}
#story .story-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
#story .story-frame {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 10px;
  margin: 0;
}
#story .story-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--round) - 8px);
}
#story .story-frame-offset {
  margin-top: 0;
}
@media (min-width: 992px) {
  #story .story-frame-offset {
    margin-top: 72px;
  }
}

#scenarios {
  background: var(--bg);
  color: var(--body-text);
  padding: 96px 0;
}
#scenarios .sc-head {
  max-width: 720px;
  margin-bottom: 56px;
}
#scenarios .sc-title {
  font-family: var(--ff-title);
  font-size: var(--ts-h2);
  color: var(--body-text);
  margin: 0 0 16px;
}
#scenarios .sc-lead {
  font-family: var(--face-text);
  color: var(--faint);
  margin: 0;
}
#scenarios .sc-item {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#scenarios .sc-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
#scenarios .sc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
#scenarios .sc-badge {
  align-self: flex-start;
  font-family: var(--face-text);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--body-text);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
}
#scenarios .sc-name {
  font-family: var(--ff-title);
  font-size: var(--ts-h4);
  color: var(--body-text);
  margin: 0;
}
#scenarios .sc-text {
  font-family: var(--face-text);
  color: var(--faint);
  margin: 0;
}
@media (max-width: 575.98px) {
  #scenarios { padding: 64px 0; }
  #scenarios .sc-head { margin-bottom: 40px; }
  #scenarios .sc-body { padding: 20px; }
}

#what-to-expect {
  background: var(--bg);
  color: var(--body-text);
  padding: 72px 0;
}
#what-to-expect .wte-title {
  font-family: var(--ff-title);
  font-size: var(--ts-h2);
  color: var(--body-text);
  margin-bottom: 12px;
}
#what-to-expect .wte-lead {
  font-family: var(--face-text);
  color: var(--faint);
  max-width: 62ch;
  margin-bottom: 40px;
}
#what-to-expect .wte-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 22px 22px 24px;
  transition: transform .2s ease, border-color .2s ease;
}
#what-to-expect .wte-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
#what-to-expect .wte-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 16px;
}
#what-to-expect .wte-card h3 {
  font-family: var(--ff-title);
  font-size: var(--ts-h4);
  color: var(--body-text);
  margin-bottom: 8px;
}
#what-to-expect .wte-card p {
  font-family: var(--face-text);
  color: var(--faint);
  margin: 0;
}
@media (max-width: 575.98px) {
  #what-to-expect { padding: 56px 0; }
}

#questions .faq-sec {background:var(--bg);color:var(--body-text);padding:96px 0;font-family:var(--face-text)}
#questions .faq-sec .faq-head {max-width:720px;margin-bottom:48px}
#questions .faq-sec .faq-head h2 {font-family:var(--ff-title);font-size:var(--ts-h2);color:var(--body-text);margin-bottom:16px}
#questions .faq-sec .faq-head p {color:var(--faint);margin:0}
#questions .faq-sec .accordion {--bs-accordion-bg:var(--surface);--bs-accordion-color:var(--body-text);--bs-accordion-border-color:var(--faint);--bs-accordion-btn-color:var(--body-text);--bs-accordion-btn-bg:var(--surface);--bs-accordion-active-color:var(--body-text);--bs-accordion-active-bg:var(--surface);--bs-accordion-btn-focus-box-shadow:none}
#questions .faq-sec .accordion-item {background:var(--surface);color:var(--body-text);border:1px solid var(--faint);border-radius:var(--round);margin-bottom:16px;overflow:hidden}
#questions .faq-sec .accordion-item:last-child {margin-bottom:0}
#questions .faq-sec .accordion-button {background:var(--surface);color:var(--body-text);font-family:var(--ff-title);font-size:var(--ts-h4);padding:24px;line-height:1.35;box-shadow:none;border-radius:0}
#questions .faq-sec .accordion-button:not(.collapsed) {background:var(--surface);color:var(--body-text);box-shadow:none}
#questions .faq-sec .accordion-button::after {filter:invert(1) brightness(1.6)}
#questions .faq-sec .accordion-button:focus-visible {outline:2px solid var(--accent);outline-offset:-4px}
#questions .faq-sec .accordion-body {background:var(--surface);color:var(--body-text);padding:0 24px 24px;line-height:1.7}
#questions .faq-sec .accordion-body p {margin:0 0 12px}
#questions .faq-sec .accordion-body p:last-child {margin-bottom:0}
#questions .faq-sec .accordion-body a {color:var(--hyper)}
#questions .faq-sec .faq-cta {margin-top:48px}
@media(max-width:575.98px){
#questions .faq-sec {padding:72px 0}
#questions .faq-sec .accordion-button {padding:20px}
#questions .faq-sec .accordion-body {padding:0 20px 20px}
}

#service-list {
  background: var(--bg);
  color: var(--body-text);
  padding: 96px 0 112px;
}
#service-list .sl-head {
  max-width: 720px;
  margin-bottom: 56px;
}
#service-list .sl-head h2 {
  font-family: var(--ff-title);
  font-size: var(--ts-h2);
  color: var(--body-text);
  margin-bottom: 20px;
}
#service-list .sl-head p {
  font-family: var(--face-text);
  color: var(--faint);
  margin: 0;
}
#service-list .sl-card {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .25s ease, border-color .25s ease;
}
#service-list .sl-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
#service-list .sl-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
#service-list .sl-icon i {
  font-size: 1.5rem;
  color: var(--body-text);
  line-height: 1;
}
#service-list .sl-card h3 {
  font-family: var(--ff-title);
  font-size: var(--ts-h4);
  color: var(--body-text);
  margin-bottom: 14px;
}
#service-list .sl-card p {
  font-family: var(--face-text);
  color: var(--faint);
  margin: 0;
}
#service-list .sl-more {
  margin-top: 56px;
}
#service-list .sl-more a.btn {
  border-radius: var(--round);
  padding: 14px 32px;
}
#service-list .sl-more a.btn:focus-visible,
#service-list .sl-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 575.98px) {
  #service-list { padding: 72px 0 80px; }
  #service-list .sl-head { margin-bottom: 40px; }
  #service-list .sl-card { padding: 28px 22px; }
}

#contact.contact-sec{background:var(--bg);color:var(--body-text);padding:96px 0;font-family:var(--face-text)}
#contact .contact-title{font-family:var(--ff-title);font-size:var(--ts-h2);color:var(--body-text);margin-bottom:20px}
#contact .contact-lead{color:var(--faint);max-width:60ch;margin-bottom:40px}
#contact .contact-side{background:var(--surface);border:1px solid var(--faint);border-radius:var(--round);padding:32px;height:100%}
#contact .contact-side h3{font-family:var(--ff-title);font-size:var(--ts-h4);color:var(--body-text);margin-bottom:16px}
#contact .contact-side p{color:var(--faint);margin-bottom:20px}
#contact .contact-side a.mail{color:var(--hyper);word-break:break-all}
#contact .contact-side a.mail:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#contact .contact-bar{width:48px;height:3px;background:var(--accent);border-radius:3px;margin-bottom:20px}
#contact .contact-form-wrap{background:var(--surface);border:1px solid var(--faint);border-radius:var(--round);padding:32px}
#contact .form-label{color:var(--body-text);font-size:18px;margin-bottom:8px}
#contact .form-control{background:var(--bg);color:var(--body-text);border:1px solid var(--faint);border-radius:calc(var(--round) / 2);padding:14px 16px;font-size:18px}
#contact .form-control::placeholder{color:var(--faint);opacity:1}
#contact .form-control:focus{background:var(--bg);color:var(--body-text);border-color:var(--accent);box-shadow:0 0 0 3px rgba(255,255,255,.18)}
#contact textarea.form-control{min-height:160px;resize:vertical}
#contact .btn-send{background:var(--key);color:var(--on-key);border:1px solid var(--key);border-radius:calc(var(--round) / 2);padding:14px 32px;font-size:18px;transition:opacity .2s ease}
#contact .btn-send:hover{opacity:.88;color:var(--on-key)}
#contact .btn-send:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#contact .after-send{color:var(--faint);margin-top:20px;margin-bottom:0}
@media(max-width:575px){
#contact.contact-sec{padding:64px 0}
#contact .contact-side,#contact .contact-form-wrap{padding:24px}
}

#legal.disclaimer-section {
  background: var(--bg);
  color: var(--body-text);
  padding: 96px 0;
}
#legal .disclaimer-panel {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 40px 32px;
}
#legal .disclaimer-icon {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent);
  display: inline-block;
}
#legal .disclaimer-title {
  font-family: var(--ff-title);
  font-size: var(--ts-h2);
  color: var(--body-text);
  margin: 0;
}
#legal .disclaimer-text {
  font-family: var(--face-text);
  font-size: 18px;
  line-height: 1.7;
  color: var(--body-text);
  max-width: 70ch;
  margin: 0;
}
#legal .disclaimer-link {
  color: var(--hyper);
  text-decoration: underline;
}
#legal .disclaimer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (min-width: 768px) {
  #legal .disclaimer-panel {
    padding: 56px 56px;
  }
}

.thanks-section {
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--face-text);
  padding: 5rem 0;
}
.thanks-section .thanks-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--body-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.thanks-section .thanks-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}
.thanks-section h1 {
  font-family: var(--ff-title);
  font-size: var(--ts-h1);
  color: var(--body-text);
  margin-bottom: 1.25rem;
}
.thanks-section .thanks-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--body-text);
  max-width: 38rem;
}
.thanks-section .thanks-note {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--faint);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}
.thanks-section .btn {
  border-radius: var(--round);
  padding: 0.75rem 1.75rem;
  transition: opacity 0.2s ease;
}
.thanks-section .btn:hover {
  opacity: 0.88;
}
@media (max-width: 575.98px) {
  .thanks-section {
    padding: 3.5rem 0;
  }
}

#portfolio-content { background: var(--bg); color: var(--body-text); padding: 96px 0; font-family: var(--face-text); }
#portfolio-content h1, #portfolio-content h2, #portfolio-content h3, #portfolio-content h4 { font-family: var(--ff-title); color: var(--body-text); }
#portfolio-content .pf-head { margin-bottom: 64px; max-width: 760px; }
#portfolio-content .pf-lead { color: var(--faint); font-size: 18px; margin-top: 20px; }
#portfolio-content .pf-card { background: var(--surface); border: 1px solid var(--faint); border-radius: var(--round); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
#portfolio-content .pf-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
#portfolio-content .pf-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
#portfolio-content .pf-badge { align-self: flex-start; border: 1px solid var(--accent); color: var(--body-text); border-radius: 999px; padding: 4px 14px; font-size: 16px; margin-bottom: 16px; }
#portfolio-content .pf-card h3 { font-size: var(--ts-h4); margin-bottom: 12px; }
#portfolio-content .pf-card p { color: var(--faint); margin-bottom: 20px; }
#portfolio-content .pf-more { margin-top: auto; align-self: flex-start; }
#portfolio-content .btn { border-radius: var(--round); }
#portfolio-content .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#portfolio-content .pf-steps { margin-top: 112px; }
#portfolio-content .pf-steps h2 { font-size: var(--ts-h2); margin-bottom: 40px; }
#portfolio-content .pf-step { background: var(--surface); border: 1px solid var(--faint); border-radius: var(--round); padding: 28px; height: 100%; }
#portfolio-content .pf-step h3 { font-size: var(--ts-h4); margin-bottom: 12px; }
#portfolio-content .pf-step p { color: var(--faint); margin: 0; }
#portfolio-content .pf-step .pf-num { display: block; width: 40px; height: 4px; background: var(--accent); margin-bottom: 20px; border-radius: 4px; }
#portfolio-content .pf-cta { margin-top: 112px; background: var(--surface); border: 1px solid var(--faint); border-radius: var(--round); padding: 56px 40px; }
#portfolio-content .pf-cta h2 { font-size: var(--ts-h2); margin-bottom: 16px; }
#portfolio-content .pf-cta p { color: var(--faint); max-width: 640px; margin-bottom: 28px; }
#portfolio-content .modal-content { background: var(--surface); color: var(--body-text); border: 1px solid var(--faint); border-radius: var(--round); }
#portfolio-content .modal-header, #portfolio-content .modal-footer { border-color: var(--faint); }
#portfolio-content .modal-body p { color: var(--body-text); }
#portfolio-content .modal-body .pf-modal-note { color: var(--faint); }
#portfolio-content .btn-close { filter: invert(1) grayscale(1); }
@media (max-width: 575px) {
  #portfolio-content { padding: 64px 0; }
  #portfolio-content .pf-cta { padding: 36px 22px; }
  #portfolio-content .pf-steps, #portfolio-content .pf-cta { margin-top: 80px; }
}

#contact-section {
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--face-text);
  padding: 96px 0;
}
#contact-section h1,
#contact-section h2,
#contact-section h3 {
  font-family: var(--ff-title);
  color: var(--body-text);
}
#contact-section .cs-lead {
  color: var(--faint);
  max-width: 62ch;
  margin-top: 24px;
}
#contact-section .cs-wrap {
  margin-top: 64px;
}
#contact-section .cs-panel {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 40px;
  height: 100%;
}
#contact-section .cs-panel h2 {
  font-size: var(--ts-h3);
  margin-bottom: 20px;
}
#contact-section .cs-panel p {
  color: var(--body-text);
}
#contact-section .cs-muted {
  color: var(--faint);
}
#contact-section .cs-mail {
  display: inline-block;
  margin: 8px 0 28px;
  color: var(--hyper);
  font-size: var(--ts-h4);
  font-family: var(--ff-title);
  word-break: break-word;
}
#contact-section .cs-mail:hover {
  color: var(--body-text);
}
#contact-section .cs-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--faint);
}
#contact-section .cs-steps li {
  padding: 16px 0;
  border-bottom: 1px solid var(--faint);
  color: var(--body-text);
}
#contact-section .cs-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--body-text);
}
#contact-section .cs-form .form-control {
  background: var(--bg);
  color: var(--body-text);
  border: 1px solid var(--faint);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--face-text);
  font-size: 18px;
}
#contact-section .cs-form .form-control::placeholder {
  color: var(--faint);
  opacity: 1;
}
#contact-section .cs-form .form-control:focus {
  background: var(--bg);
  color: var(--body-text);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
  outline: none;
}
#contact-section .cs-form textarea.form-control {
  min-height: 170px;
  resize: vertical;
}
#contact-section .cs-submit {
  background: var(--key);
  color: var(--on-key);
  border: 1px solid var(--key);
  border-radius: var(--round);
  padding: 14px 32px;
  font-size: 18px;
  font-family: var(--face-text);
  transition: opacity .2s ease;
}
#contact-section .cs-submit:hover {
  opacity: .88;
}
#contact-section .cs-submit:focus-visible,
#contact-section .cs-mail:focus-visible,
#contact-section .cs-cta a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
#contact-section .cs-note {
  color: var(--faint);
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 0;
}
#contact-section .cs-cta {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--faint);
}
#contact-section .cs-cta h2 {
  font-size: var(--ts-h2);
  max-width: 24ch;
}
#contact-section .cs-cta p {
  color: var(--faint);
  max-width: 60ch;
  margin: 20px 0 28px;
}
#contact-section .cs-cta .btn {
  background: var(--key);
  color: var(--on-key);
  border: 1px solid var(--key);
  border-radius: var(--round);
  padding: 14px 32px;
  font-size: 18px;
}
#contact-section .cs-cta .btn:hover {
  opacity: .88;
  color: var(--on-key);
}
@media (max-width: 767.98px) {
  #contact-section { padding: 64px 0; }
  #contact-section .cs-panel { padding: 28px 22px; }
  #contact-section .cs-wrap { margin-top: 40px; }
  #contact-section .cs-cta { margin-top: 64px; padding-top: 40px; }
}

#about-main {
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--face-text);
  padding: 96px 0 112px;
}
#about-main h1,
#about-main h2,
#about-main h3,
#about-main h4 {
  font-family: var(--ff-title);
  color: var(--body-text);
  line-height: 1.2;
}
#about-main h1 {
  font-size: var(--ts-h1);
  margin: 0 0 32px;
  max-width: 18ch;
}
#about-main h2 {
  font-size: var(--ts-h2);
  margin: 0 0 24px;
}
#about-main h3 {
  font-size: var(--ts-h3);
  margin: 0 0 12px;
}
#about-main p {
  line-height: 1.7;
  max-width: 68ch;
  margin: 0 0 20px;
}
#about-main .about-lead {
  color: var(--faint);
  font-size: 1.15rem;
  max-width: 62ch;
}
#about-main .about-block {
  margin-top: 96px;
}
#about-main .about-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--round);
  border: 1px solid var(--faint);
}
#about-main .about-caption {
  color: var(--faint);
  font-size: 1rem;
  margin: 12px 0 0;
}
#about-main .about-panel {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 32px;
  height: 100%;
}
#about-main .about-panel p {
  margin-bottom: 0;
  color: var(--body-text);
}
#about-main .about-faq {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--round);
  padding: 28px 32px;
  margin-bottom: 16px;
}
#about-main .about-faq h3 {
  font-size: var(--ts-h4);
  margin-bottom: 10px;
}
#about-main .about-faq p {
  margin-bottom: 0;
  color: var(--faint);
}
#about-main .about-cta {
  margin-top: 96px;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-left: 4px solid var(--accent);
  border-radius: var(--round);
  padding: 40px 32px;
}
#about-main .about-cta p {
  color: var(--body-text);
}
#about-main .about-cta .btn {
  border-radius: var(--round);
  padding: 12px 28px;
}
#about-main .about-cta .btn:focus-visible {
  outline: 3px solid var(--hyper);
  outline-offset: 3px;
}
#about-main a:not(.btn) {
  color: var(--hyper);
}
@media (max-width: 575.98px) {
  #about-main {
    padding: 64px 0 80px;
  }
  #about-main .about-block,
  #about-main .about-cta {
    margin-top: 64px;
  }
  #about-main .about-panel,
  #about-main .about-faq,
  #about-main .about-cta {
    padding: 24px 20px;
  }
}

/* Цвет текста кнопок закреплён: правило блока вида «#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 appear-75 {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}

.lead-in-10 > * {
  animation: appear-75 650ms 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;
  }
}
