:root {
  --base: #f6f8fa;
  --shelf: #ffffff;
  --tone: #16202b;
  --subtle: #4e5b69;
  --brand: #1d4f91;
  --pop: #bf830a;
  --go: #1d4f91;
  --on-brand: #f6f8fa;
  --font-head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --face-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --scale-h1: clamp(33.2px, 1.006vw + 29.43px, 41.5px);
  --scale-h2: clamp(26.6px, 0.800vw + 23.60px, 33.2px);
  --scale-h3: clamp(21.3px, 0.642vw + 18.89px, 26.6px);
  --scale-h4: clamp(19px, 0.279vw + 17.95px, 21.3px);
  --radius: 8px;
  --bs-body-bg: var(--base);
  --bs-body-bg-rgb: 246, 248, 250;
  --bs-body-color: var(--tone);
  --bs-body-color-rgb: 22, 32, 43;
  --bs-body-font-family: var(--face-text);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-emphasis-color: var(--tone);
  --bs-emphasis-color-rgb: 22, 32, 43;
  --bs-heading-color: inherit;
  --bs-secondary-color: var(--subtle);
  --bs-secondary-rgb: 78, 91, 105;
  --bs-tertiary-color: var(--subtle);
  --bs-secondary-bg: var(--shelf);
  --bs-secondary-bg-rgb: 255, 255, 255;
  --bs-tertiary-bg: var(--shelf);
  --bs-tertiary-bg-rgb: 255, 255, 255;
  --bs-primary: var(--brand);
  --bs-primary-rgb: 29, 79, 145;
  --bs-link-color: var(--go);
  --bs-link-color-rgb: 29, 79, 145;
  --bs-link-hover-color: var(--tone);
  --bs-link-hover-color-rgb: 22, 32, 43;
  --bs-light-rgb: 255, 255, 255;
  --bs-dark-rgb: 22, 32, 43;
  --bs-border-color: color-mix(in srgb, var(--tone) 16%, var(--base));
  --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(--brand) 40%, transparent);
}

html {
  color-scheme: light;
}

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

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

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

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

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

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

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

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

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

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

/* Панели и поля внутри заливки 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: 22, 32, 43;
  --bs-emphasis-color-rgb: 22, 32, 43;
  --bs-secondary-color: var(--subtle);
  --bs-secondary-rgb: 78, 91, 105;
  --bs-link-color: var(--go);
  --bs-link-color-rgb: 29, 79, 145;
  --bs-link-hover-color: var(--tone);
  --bs-link-hover-color-rgb: 22, 32, 43;
}

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

.site-header {
  background-color: var(--base);
  border-bottom: 2px solid var(--pop);
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tone);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: 0;
  padding: 0;
}
.site-header .navbar-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-header .navbar-brand:hover,
.site-header .navbar-brand:focus {
  color: var(--tone);
}
.site-header .navbar-toggler {
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--brand);
}
.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--pop);
  outline: none;
}
.site-header .navbar-toggler-icon {
  background-image: none;
  width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header .navbar-toggler-icon::before {
  content: "\F479";
  font-family: "bootstrap-icons";
  font-size: 1.4rem;
  color: var(--brand);
  line-height: 1;
}
.site-header .nav-link {
  color: var(--tone);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease;
}
.site-header .nav-link:hover {
  background-color: var(--shelf);
  color: var(--brand);
}
.site-header .nav-link:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 2px;
}
.site-header .navbar-brand:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 3px;
  border-radius: var(--radius);
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--shelf);
  }
}
@media (max-width: 400px) {
  .site-header .navbar-brand {
    font-size: 1.05rem;
    gap: 8px;
  }
  .site-header .navbar-brand img {
    width: 36px;
    height: 36px;
  }
}

#portfolio-body { background: var(--base); color: var(--tone); padding: 52px 0; }
#portfolio-body .pf-head { max-width: 760px; margin-bottom: 28px; }
#portfolio-body .pf-head h1 { font-family: var(--font-head); font-size: var(--scale-h1); color: var(--tone); margin-bottom: 12px; }
#portfolio-body .pf-note { font-family: var(--face-text); color: var(--subtle); margin: 0; }
#portfolio-body .pf-card { background: var(--shelf); border: 1px solid var(--shelf); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
#portfolio-body .pf-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
#portfolio-body .pf-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1 1 auto; align-items: flex-start; }
#portfolio-body .pf-badge { display: inline-block; background: var(--base); color: var(--subtle); border: 1px solid var(--subtle); border-radius: var(--radius); font-family: var(--face-text); font-size: 15px; padding: 2px 10px; margin-bottom: 10px; }
#portfolio-body .pf-body h2 { font-family: var(--font-head); font-size: var(--scale-h4); color: var(--tone); margin-bottom: 8px; }
#portfolio-body .pf-body p { font-family: var(--face-text); color: var(--tone); margin-bottom: 14px; }
#portfolio-body .pf-body .btn { margin-top: auto; }
#portfolio-body .modal-content { background: var(--base); color: var(--tone); border-radius: var(--radius); }
#portfolio-body .modal-title { font-family: var(--font-head); color: var(--tone); }
#portfolio-body .modal-body p, #portfolio-body .modal-body li { font-family: var(--face-text); color: var(--tone); }
#portfolio-body .modal-body img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
#portfolio-body .pf-faq { margin-top: 52px; max-width: 820px; }
#portfolio-body .pf-faq h2 { font-family: var(--font-head); font-size: var(--scale-h2); color: var(--tone); margin-bottom: 18px; }
#portfolio-body .accordion-item { background: var(--shelf); border-color: var(--shelf); color: var(--tone); }
#portfolio-body .accordion-button { background: var(--shelf); color: var(--tone); font-family: var(--font-head); box-shadow: none; }
#portfolio-body .accordion-button:not(.collapsed) { background: var(--shelf); color: var(--tone); }
#portfolio-body .accordion-button:focus-visible, #portfolio-body .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
#portfolio-body .accordion-body { font-family: var(--face-text); color: var(--tone); background: var(--shelf); }
#portfolio-body .pf-cta { margin-top: 52px; background: var(--shelf); border-left: 4px solid var(--pop); border-radius: var(--radius); padding: 24px; max-width: 820px; }
#portfolio-body .pf-cta h2 { font-family: var(--font-head); font-size: var(--scale-h3); color: var(--tone); margin-bottom: 8px; }
#portfolio-body .pf-cta p { font-family: var(--face-text); color: var(--tone); margin-bottom: 16px; }

.site-footer {
  background: var(--shelf);
  color: var(--tone);
  padding: 48px 0 24px;
  font-family: var(--face-text);
}
.site-footer h3,
.site-footer h4 {
  font-family: var(--font-head);
  color: var(--tone);
}
.site-footer .footer-brand {
  font-family: var(--font-head);
  font-size: var(--scale-h3);
  color: var(--tone);
  margin-bottom: 12px;
}
.site-footer .footer-lead {
  color: var(--subtle);
  max-width: 62ch;
  margin-bottom: 0;
}
.site-footer .footer-title {
  font-size: var(--scale-h4);
  margin-bottom: 12px;
}
.site-footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-list li {
  margin-bottom: 8px;
}
.site-footer a {
  color: var(--go);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: var(--tone);
}
.site-footer a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--pop);
  margin-top: 32px;
  padding-top: 20px;
  color: var(--subtle);
  font-size: 17px;
}
.cookie-bar {
  position: relative;
  background: var(--base);
  color: var(--tone);
  border-top: 3px solid var(--pop);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
  padding: 16px 0;
  font-family: var(--face-text);
  max-height: 60vh;
  overflow-y: auto;
}
.cookie-bar .cookie-title {
  font-family: var(--font-head);
  font-size: var(--scale-h4);
  color: var(--tone);
  margin-bottom: 6px;
}
.cookie-bar p {
  color: var(--subtle);
  margin-bottom: 8px;
}
.cookie-bar ul {
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--tone);
}
.cookie-bar ul li {
  margin-bottom: 4px;
}
.cookie-bar .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-bar .cookie-actions .btn {
  flex: 1 1 140px;
  max-width: 220px;
  border-radius: var(--radius);
}
.cookie-bar a {
  color: var(--go);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-bar a:focus-visible,
.cookie-bar .btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

#contact-content {
  background: var(--base);
  color: var(--tone);
  padding: 52px 0;
  font-family: var(--face-text);
}
#contact-content h1,
#contact-content h2,
#contact-content h3 {
  font-family: var(--font-head);
  color: var(--tone);
}
#contact-content h1 {
  font-size: var(--scale-h1);
  margin-bottom: 16px;
}
#contact-content h2 {
  font-size: var(--scale-h2);
  margin-bottom: 12px;
}
#contact-content h3 {
  font-size: var(--scale-h3);
  margin-bottom: 8px;
}
#contact-content .contact-lead {
  max-width: 68ch;
  color: var(--subtle);
  margin-bottom: 36px;
}
#contact-content .contact-panel {
  background: var(--shelf);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
#contact-content .contact-panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tone);
}
#contact-content .contact-panel .form-control {
  background: var(--base);
  color: var(--tone);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 10px 12px;
}
#contact-content .contact-panel .form-control::placeholder {
  color: var(--subtle);
  opacity: 1;
}
#contact-content .contact-panel .form-control:focus {
  border-color: var(--brand);
  outline: 3px solid var(--brand);
  outline-offset: 1px;
  box-shadow: none;
}
#contact-content .contact-panel textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
#contact-content .contact-submit {
  border-radius: var(--radius);
  padding: 10px 24px;
}
#contact-content .contact-submit:focus-visible,
#contact-content .contact-cta .btn:focus-visible,
#contact-content a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
#contact-content .contact-aside {
  background: var(--shelf);
  border-left: 4px solid var(--pop);
  border-radius: var(--radius);
  padding: 24px 24px 24px 22px;
  height: 100%;
}
#contact-content .contact-aside p {
  margin-bottom: 14px;
}
#contact-content .contact-aside a {
  color: var(--go);
  word-break: break-word;
}
#contact-content .contact-steps {
  padding-left: 20px;
  margin: 0;
}
#contact-content .contact-steps li {
  margin-bottom: 10px;
  color: var(--tone);
}
#contact-content .contact-hint {
  color: var(--subtle);
  margin-bottom: 0;
}
#contact-content .contact-cta {
  margin-top: 40px;
  background: var(--shelf);
  border-radius: var(--radius);
  padding: 24px 28px;
}
#contact-content .contact-cta p {
  margin-bottom: 14px;
  max-width: 62ch;
}
@media (max-width: 575.98px) {
  #contact-content {
    padding: 40px 0;
  }
  #contact-content .contact-panel,
  #contact-content .contact-aside,
  #contact-content .contact-cta {
    padding: 20px;
  }
}

.thanks-section {
  background-color: var(--base);
  color: var(--tone);
  font-family: var(--face-text);
  padding: 4rem 0;
}
.thanks-section h1 {
  font-family: var(--font-head);
  font-size: var(--scale-h1);
  color: var(--tone);
  margin-bottom: 1rem;
}
.thanks-panel {
  background-color: var(--shelf);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 640px;
}
.thanks-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.thanks-icon svg {
  width: 36px;
  height: 36px;
}
.thanks-section p {
  color: var(--subtle);
  max-width: 60ch;
}
.thanks-section .lead-line {
  color: var(--tone);
}
@media (max-width: 575.98px) {
  .thanks-section {
    padding: 2.5rem 0;
  }
  .thanks-panel {
    padding: 2rem 1.25rem;
  }
}

.hero-ledger {
  background: var(--base);
  color: var(--tone);
  padding: 48px 0 56px;
  font-family: var(--face-text);
}
.hero-ledger .ledger-strip {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 0 0 0;
  margin-bottom: 32px;
}
.hero-ledger .ledger-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50%;
  height: 2px;
  background: var(--pop);
  border-radius: 2px;
  z-index: 2;
}
.hero-ledger .ledger-col {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
}
.hero-ledger .ledger-col span {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
}
.hero-ledger .bar-in {
  bottom: 50%;
  background: var(--brand);
  border-radius: 4px 4px 0 0;
}
.hero-ledger .bar-out {
  top: 50%;
  background: var(--subtle);
  border-radius: 0 0 4px 4px;
  opacity: .75;
}
.hero-ledger .ledger-col:nth-child(1) .bar-in { height: 18%; }
.hero-ledger .ledger-col:nth-child(1) .bar-out { height: 10%; }
.hero-ledger .ledger-col:nth-child(2) .bar-in { height: 26%; }
.hero-ledger .ledger-col:nth-child(2) .bar-out { height: 22%; }
.hero-ledger .ledger-col:nth-child(3) .bar-in { height: 34%; }
.hero-ledger .ledger-col:nth-child(3) .bar-out { height: 14%; }
.hero-ledger .ledger-col:nth-child(4) .bar-in { height: 22%; }
.hero-ledger .ledger-col:nth-child(4) .bar-out { height: 30%; }
.hero-ledger .ledger-col:nth-child(5) .bar-in { height: 40%; }
.hero-ledger .ledger-col:nth-child(5) .bar-out { height: 18%; }
.hero-ledger .ledger-col:nth-child(6) .bar-in { height: 30%; }
.hero-ledger .ledger-col:nth-child(6) .bar-out { height: 36%; }
.hero-ledger .ledger-col:nth-child(7) .bar-in { height: 44%; }
.hero-ledger .ledger-col:nth-child(7) .bar-out { height: 16%; }
.hero-ledger .ledger-col:nth-child(8) .bar-in { height: 36%; }
.hero-ledger .ledger-col:nth-child(8) .bar-out { height: 26%; }
.hero-ledger .ledger-col:nth-child(9) .bar-in { height: 48%; }
.hero-ledger .ledger-col:nth-child(9) .bar-out { height: 20%; }
.hero-ledger .ledger-col:nth-child(10) .bar-in { height: 38%; }
.hero-ledger .ledger-col:nth-child(10) .bar-out { height: 34%; }
.hero-ledger .ledger-col:nth-child(11) .bar-in { height: 50%; }
.hero-ledger .ledger-col:nth-child(11) .bar-out { height: 18%; }
.hero-ledger .ledger-col:nth-child(12) .bar-in { height: 46%; }
.hero-ledger .ledger-col:nth-child(12) .bar-out { height: 24%; }
.hero-ledger h1 {
  font-family: var(--font-head);
  font-size: var(--scale-h1);
  color: var(--tone);
  margin: 0 0 16px;
  line-height: 1.15;
}
.hero-ledger h2 {
  font-family: var(--font-head);
  font-size: var(--scale-h3);
  color: var(--tone);
  margin: 0 0 12px;
  line-height: 1.3;
}
.hero-ledger .hero-lead {
  color: var(--subtle);
  max-width: 62ch;
  margin: 0 0 24px;
}
.hero-ledger .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--on-brand);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.hero-ledger .hero-btn:hover {
  background: var(--base);
  color: var(--brand);
}
.hero-ledger .hero-btn:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 3px;
}
.hero-ledger .hero-img {
  display: block;
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 575.98px) {
  .hero-ledger { padding: 32px 0 48px; }
  .hero-ledger .ledger-strip { height: 90px; gap: 4px; margin-bottom: 24px; }
}

#our-services{background:var(--base);color:var(--tone);padding:52px 0}
#our-services .svc-head{max-width:720px;margin-bottom:32px}
#our-services .svc-head h2{font-family:var(--font-head);font-size:var(--scale-h2);color:var(--tone);margin-bottom:12px}
#our-services .svc-head p{font-family:var(--face-text);color:var(--subtle);margin:0}
#our-services .svc-card{height:100%;background:var(--shelf);border:1px solid var(--subtle);border-top:3px solid var(--brand);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
#our-services .svc-card:hover{transform:translateY(-4px);border-color:var(--brand);box-shadow:0 10px 24px rgba(0,0,0,.12)}
#our-services .svc-icon{width:48px;height:48px;border-radius:var(--radius);background:var(--brand);color:var(--on-brand);display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin-bottom:16px;flex-shrink:0}
#our-services .svc-card h3{font-family:var(--font-head);font-size:var(--scale-h4);color:var(--tone);margin-bottom:10px}
#our-services .svc-card p{font-family:var(--face-text);color:var(--tone);margin:0 0 18px;flex-grow:1}
#our-services .svc-card a{font-family:var(--face-text);color:var(--go);font-weight:600;text-decoration:underline;text-underline-offset:3px}
#our-services .svc-card a:hover{text-decoration-thickness:2px}
#our-services .svc-card a:focus-visible{outline:3px solid var(--brand);outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:reduce){#our-services .svc-card{transition:none}#our-services .svc-card:hover{transform:none}}

#gallery{background:var(--shelf);padding:52px 0;color:var(--tone)}
#gallery .gallery-head{max-width:720px;margin-bottom:28px}
#gallery .gallery-head h2{font-family:var(--font-head);font-size:var(--scale-h2);color:var(--tone);margin-bottom:10px}
#gallery .gallery-head p{font-family:var(--face-text);color:var(--subtle);margin:0}
#gallery .g-card{height:100%;background:var(--base);border:1px solid var(--subtle);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
#gallery .g-media{position:relative;border-bottom:3px solid var(--pop)}
#gallery .g-media img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
#gallery .g-body{padding:18px 18px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
#gallery .g-badge{align-self:flex-start;background:var(--brand);color:var(--on-brand);font-family:var(--face-text);font-size:14px;line-height:1.2;padding:5px 10px;border-radius:var(--radius)}
#gallery .g-body h3{font-family:var(--font-head);font-size:var(--scale-h4);color:var(--tone);margin:0}
#gallery .g-body p{font-family:var(--face-text);color:var(--subtle);margin:0}

#assurance {
  background: var(--shelf);
  padding: 48px 0;
}
#assurance .assurance-title {
  color: var(--tone);
  font-family: var(--font-head);
  font-size: var(--scale-h2);
  margin-bottom: 8px;
}
#assurance .assurance-lead {
  color: var(--subtle);
  max-width: 68ch;
  margin-bottom: 28px;
}
#assurance .assurance-card {
  background: var(--base);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 20px 18px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
#assurance .assurance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
#assurance .assurance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
#assurance .assurance-card h3 {
  color: var(--tone);
  font-family: var(--font-head);
  font-size: var(--scale-h4);
  margin-bottom: 8px;
}
#assurance .assurance-card p {
  color: var(--tone);
  font-family: var(--face-text);
  margin-bottom: 0;
}
#assurance .assurance-link {
  color: var(--go);
}

#mailing {
  background-color: var(--shelf);
  padding: 52px 0;
  color: var(--tone);
}
#mailing .mailing-wrap {
  border-left: 4px solid var(--pop);
  padding-left: 24px;
}
#mailing h2 {
  font-family: var(--font-head);
  font-size: var(--scale-h2);
  color: var(--tone);
  margin-bottom: 12px;
}
#mailing .mailing-text {
  font-family: var(--face-text);
  color: var(--subtle);
  max-width: 62ch;
  margin-bottom: 0;
}
#mailing .mailing-form {
  background-color: var(--base);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 24px;
}
#mailing .mailing-form label {
  font-family: var(--face-text);
  color: var(--tone);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
#mailing .mailing-form .form-control {
  font-family: var(--face-text);
  color: var(--tone);
  background-color: var(--base);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 10px 14px;
}
#mailing .mailing-form .form-control::placeholder {
  color: var(--subtle);
  opacity: 1;
}
#mailing .mailing-form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
#mailing .mailing-form .btn {
  font-family: var(--font-head);
  background-color: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 600;
  transition: opacity .2s ease;
}
#mailing .mailing-form .btn:hover {
  opacity: .88;
  color: var(--on-brand);
}
#mailing .mailing-form .btn:focus-visible {
  outline: 2px solid var(--tone);
  outline-offset: 3px;
}
#mailing .mailing-note {
  font-family: var(--face-text);
  color: var(--subtle);
  font-size: 17px;
  margin: 12px 0 0;
}
@media (max-width: 575.98px) {
  #mailing { padding: 44px 0; }
  #mailing .mailing-wrap { padding-left: 16px; }
  #mailing .mailing-form { padding: 18px; }
  #mailing .mailing-form .btn { width: 100%; }
}

#help{background:var(--shelf);padding:56px 0;}
#help .faq-head{max-width:720px;margin-bottom:28px;}
#help .faq-head h2{font-family:var(--font-head);font-size:var(--scale-h2);color:var(--tone);margin-bottom:12px;}
#help .faq-head p{color:var(--subtle);margin:0;}
#help .accordion{--bs-accordion-bg:var(--base);--bs-accordion-border-color:var(--pop);--bs-accordion-border-radius:var(--radius);--bs-accordion-inner-border-radius:var(--radius);--bs-accordion-btn-color:var(--tone);--bs-accordion-btn-bg:var(--base);--bs-accordion-active-color:var(--tone);--bs-accordion-active-bg:var(--base);--bs-accordion-color:var(--tone);}
#help .accordion-item{background:var(--base);color:var(--tone);margin-bottom:10px;border:1px solid var(--pop);border-radius:var(--radius);overflow:hidden;}
#help .accordion-button{font-family:var(--font-head);font-size:var(--scale-h4);font-weight:600;color:var(--tone);background:var(--base);padding:16px 20px;box-shadow:none;}
#help .accordion-button:not(.collapsed){color:var(--tone);background:var(--base);box-shadow:none;}
#help .accordion-button:focus{box-shadow:0 0 0 3px var(--brand);}
#help .accordion-body{font-family:var(--face-text);color:var(--tone);background:var(--base);padding:4px 20px 20px;max-width:75ch;}
#help .accordion-body p{margin:0 0 10px;}
#help .accordion-body p:last-child{margin-bottom:0;}
#help .faq-cta{margin-top:28px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;}
#help .faq-cta p{margin:0;color:var(--subtle);max-width:60ch;}

#get-in-touch {
  background: var(--shelf);
  color: var(--tone);
  padding: 52px 0;
}
#get-in-touch h2 {
  font-family: var(--font-head);
  font-size: var(--scale-h2);
  color: var(--tone);
  margin-bottom: 14px;
}
#get-in-touch h3 {
  font-family: var(--font-head);
  font-size: var(--scale-h4);
  color: var(--tone);
  margin-bottom: 10px;
}
#get-in-touch p,
#get-in-touch li,
#get-in-touch label {
  font-family: var(--face-text);
  color: var(--tone);
}
#get-in-touch .gt-lead {
  color: var(--subtle);
  max-width: 62ch;
  margin-bottom: 28px;
}
#get-in-touch .gt-panel {
  background: var(--base);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
#get-in-touch .gt-panel-side {
  border-left: 4px solid var(--pop);
}
#get-in-touch .form-label {
  font-weight: 600;
  color: var(--tone);
  margin-bottom: 6px;
}
#get-in-touch .form-control {
  background: var(--base);
  color: var(--tone);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--face-text);
  font-size: 1rem;
}
#get-in-touch .form-control::placeholder {
  color: var(--subtle);
  opacity: 1;
}
#get-in-touch .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
#get-in-touch textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
#get-in-touch .gt-submit {
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 11px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  transition: opacity .2s ease;
}
#get-in-touch .gt-submit:hover {
  opacity: .88;
  color: var(--on-brand);
}
#get-in-touch .gt-submit:focus-visible {
  outline: 3px solid var(--tone);
  outline-offset: 2px;
}
#get-in-touch .gt-mail {
  color: var(--go);
  font-weight: 600;
  word-break: break-all;
}
#get-in-touch .gt-mail:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
#get-in-touch .gt-list {
  padding-left: 20px;
  margin-bottom: 0;
}
#get-in-touch .gt-list li {
  margin-bottom: 8px;
}
#get-in-touch .gt-note {
  color: var(--subtle);
  font-size: 1rem;
  margin: 14px 0 0;
}
@media (max-width: 575.98px) {
  #get-in-touch {
    padding: 40px 0;
  }
  #get-in-touch .gt-panel {
    padding: 20px;
  }
}

#legal-notice {
  background: var(--shelf);
  color: var(--tone);
  padding: 52px 0;
}
#legal-notice .legal-panel {
  background: var(--base);
  border: 1px solid var(--subtle);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px 24px;
}
#legal-notice .legal-icon {
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
}
#legal-notice h2 {
  font-family: var(--font-head);
  font-size: var(--scale-h2);
  color: var(--tone);
  margin: 0;
}
#legal-notice p {
  font-family: var(--face-text);
  color: var(--tone);
  max-width: 72ch;
  margin: 0 0 14px;
}
#legal-notice p:last-child {
  margin-bottom: 0;
}
#legal-notice .legal-note {
  color: var(--subtle);
}
@media (max-width: 575.98px) {
  #legal-notice { padding: 40px 0; }
  #legal-notice .legal-panel { padding: 22px 16px; }
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  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 enter-45 {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}

.opening-99 > * {
  animation: enter-45 720ms 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;
  }
}
