/* === Адаптация под разные экраны (ноутбуки, планшеты, десктоп) === */
html {
  /* Масштабирование базового шрифта: на узких экранах чуть меньше, на широких — стандарт */
  font-size: clamp(14px, 0.9vw + 14px, 16px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background-color: var(--page-bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Ограничение ширины контента на очень больших мониторах (читаемость) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: 1800px;
  }
}

/* Небольшие ноутбуки (1366px и меньше) — компактнее отступы и навбар */
@media (max-width: 1366px) {
  .navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .top-contact-bar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .navbar-nav .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.9375rem;
  }
}

/* Узкие ноутбуки (1280px) — ещё компактнее */
@media (max-width: 1280px) {
  .catalog-megamenu {
    min-width: 520px;
    max-width: 620px;
  }
  .catalog-submenu {
    min-width: 280px;
    max-width: 360px;
  }
}

/* Медиа в контенте не выходят за границы (логотипы в шапке/подвале не трогаем) */
main img,
.container img,
.card img,
.catalog-card img,
video {
  max-width: 100%;
  height: auto;
}

main img,
.card img,
.catalog-card img,
video {
  display: block;
}

iframe, object, embed {
  max-width: 100%;
}

/* Безопасные зоны для устройств с вырезами (notch) */
@supports (padding: env(safe-area-inset-top)) {
  .top-contact-bar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .navbar .container {
    padding-left: calc(var(--bs-gutter-x, 0.75rem) + env(safe-area-inset-left));
    padding-right: calc(var(--bs-gutter-x, 0.75rem) + env(safe-area-inset-right));
  }
  main .container {
    padding-left: calc(var(--bs-gutter-x, 0.75rem) + env(safe-area-inset-left));
    padding-right: calc(var(--bs-gutter-x, 0.75rem) + env(safe-area-inset-right));
  }
  .site-footer .container {
    padding-left: calc(var(--bs-gutter-x, 0.75rem) + env(safe-area-inset-left));
    padding-right: calc(var(--bs-gutter-x, 0.75rem) + env(safe-area-inset-right));
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.theme-switcher__group {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.theme-switcher__btn {
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-weight: 600;
}

.theme-switcher__btn.is-active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.theme-switcher__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .bg-light,
:root[data-theme="dark"] .bg-body,
:root[data-theme="dark"] .bg-body-tertiary,
:root[data-theme="dark"] .bg-body-secondary {
  background-color: #0f1115 !important;
}

.bg-light,
.bg-body,
.bg-body-tertiary,
.bg-body-secondary {
  background-color: var(--page-bg) !important;
}

:root {
  --brand-primary: #00a8d0;
  --brand-accent: #0066ff;
  --brand-dark: #022038;
  --bg-soft: #ffffff;
  --page-bg: #ffffff;
  --surface-bg: #ffffff;
  --theme-accent: #00a8d0;
  --theme-accent-strong: #008bb0;
  --hero-media-aspect: 16 / 9;
  --cta-media-height: 557px;
  --contacts-map-height: 632px;
  --testimonial-min-height: 534px;
  --dbmSliderRunPadding: 40px;
  --dbmSliderRunPaddingMobile: 10px;
  --dbmSliderRunBorderRadiusContainer: 16px;
  --dbmSliderRunBorderRadiusLogo: 16px;
  --dbmSliderRunOverflow: hidden;
  --dbmSliderRunWidthLogo: 378px;
  --dbmSliderRunHeightLogo: 189px;
  --dbmSliderRunAspectRation: 2 / 1;
  --dbmSliderRunGap: 20px;
  --dbmSliderRunGapMobile: 10px;
}

:root[data-theme="dark"] {
  --page-bg: #20272C;
  --surface-bg: #20272C;
  --theme-accent: #0E3747;
  --theme-accent-strong: #0E3747;
}

:root[data-theme="dark"] body {
  color: #ffffff;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] p,
:root[data-theme="dark"] li,
:root[data-theme="dark"] dt,
:root[data-theme="dark"] dd,
:root[data-theme="dark"] label,
:root[data-theme="dark"] small {
  color: #ffffff;
}

:root[data-theme="dark"] .text-dark,
:root[data-theme="dark"] .text-body,
:root[data-theme="dark"] .text-body-secondary,
:root[data-theme="dark"] .text-body-tertiary,
:root[data-theme="dark"] .text-secondary,
:root[data-theme="dark"] .text-black,
:root[data-theme="dark"] .text-black-50 {
  color: #ffffff !important;
}

:root[data-theme="dark"] .table,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .nav-link {
  color: #ffffff;
}

:root[data-theme="dark"] .bg-white {
  background-color: var(--surface-bg) !important;
}

:root[data-theme="dark"] .navbar,
:root[data-theme="dark"] .sticky-top {
  background-color: #20272C !important;
}

:root[data-theme="dark"] .catalog-hero {
  background: #1F7495;
  border-radius: 16px;
  padding: 1rem 1.25rem;
}

:root[data-theme="dark"] .catalog-hero .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

:root[data-theme="dark"] .catalog-hero .form-control,
:root[data-theme="dark"] .catalog-hero .btn,
:root[data-theme="dark"] .catalog-hero .input-group-text,
:root[data-theme="dark"] .catalog-search-form .form-control {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-hero .btn,
:root[data-theme="dark"] .catalog-search-form .btn {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-hero .btn:hover,
:root[data-theme="dark"] .catalog-hero .btn:focus,
:root[data-theme="dark"] .catalog-search-form .btn:hover,
:root[data-theme="dark"] .catalog-search-form .btn:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}
:root[data-theme="dark"] .catalog-hero .form-control::placeholder,
:root[data-theme="dark"] .catalog-search-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .catalog-hero .form-control:focus,
:root[data-theme="dark"] .catalog-search-form .form-control:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-product-card,
:root[data-theme="dark"] .catalog-product-card .card-body {
  background: #1F7495;
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-product-media {
  background-color: #ffffff !important;
}

.catalog-product-media {
  background-color: #ffffff !important;
}

.product-details-card .ratio {
  background-color: #ffffff !important;
}

:root[data-theme="dark"] .catalog-product-card .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

:root[data-theme="dark"] .catalog-product-card .form-control,
:root[data-theme="dark"] .catalog-product-card .form-select {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-product-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .catalog-product-card .form-control:focus,
:root[data-theme="dark"] .catalog-product-card .form-select:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .product-details-card,
:root[data-theme="dark"] .product-details-card .card-body {
  background: #1F7495;
  color: #ffffff;
}

:root[data-theme="dark"] .product-details-card .form-control,
:root[data-theme="dark"] .product-details-card .form-select,
:root[data-theme="dark"] .product-details-card textarea {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .product-details-card .form-control::placeholder,
:root[data-theme="dark"] .product-details-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .product-details-card .form-control:focus,
:root[data-theme="dark"] .product-details-card .form-select:focus,
:root[data-theme="dark"] .product-details-card textarea:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-action-btn {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-action-btn:hover,
:root[data-theme="dark"] .catalog-action-btn:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .dropdown-menu {
  background-color: #20272C;
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .dropdown-item {
  color: #ffffff;
}

:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-item:focus {
  background-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] body.is-auth .btn {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] body.is-auth .btn:hover,
:root[data-theme="dark"] body.is-auth .btn:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] body.is-auth .form-control,
:root[data-theme="dark"] body.is-auth .form-select,
:root[data-theme="dark"] body.is-auth textarea {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] body.is-auth .form-control::placeholder,
:root[data-theme="dark"] body.is-auth textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] body.is-auth .form-control:focus,
:root[data-theme="dark"] body.is-auth .form-select:focus,
:root[data-theme="dark"] body.is-auth textarea:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] body.is-auth form.card,
:root[data-theme="dark"] body.is-auth form.card .card-body {
  background: #1F7495;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .table,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .table-light,
:root[data-theme="dark"] .table-responsive,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .list-group-item,
:root[data-theme="dark"] .nav-pills .nav-link,
:root[data-theme="dark"] .tab-content {
  background: #1F7495;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .nav-pills .nav-link.active {
  background: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .card .form-control,
:root[data-theme="dark"] .card .form-select,
:root[data-theme="dark"] .card textarea {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .card .form-control::placeholder,
:root[data-theme="dark"] .card textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .card .form-control:focus,
:root[data-theme="dark"] .card .form-select:focus,
:root[data-theme="dark"] .card textarea:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] #profileTabsContent .form-control,
:root[data-theme="dark"] #profileTabsContent .form-select,
:root[data-theme="dark"] #profileTabsContent textarea {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] #profileTabsContent .form-control:focus,
:root[data-theme="dark"] #profileTabsContent .form-select:focus,
:root[data-theme="dark"] #profileTabsContent textarea:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .profile-action-btn {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .profile-action-btn:hover,
:root[data-theme="dark"] .profile-action-btn:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .profile-page .card,
:root[data-theme="dark"] .profile-page .card-body,
:root[data-theme="dark"] .profile-page .table,
:root[data-theme="dark"] .profile-page .table th,
:root[data-theme="dark"] .profile-page .table td,
:root[data-theme="dark"] .profile-page .table-responsive {
  border: none;
  box-shadow: none;
}

:root[data-theme="dark"] .profile-page .table > :not(caption) > * > * {
  border-color: transparent;
}

:root[data-theme="dark"] .profile-page .btn {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .profile-page .btn:hover,
:root[data-theme="dark"] .profile-page .btn:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .profile-page .profile-panel,
:root[data-theme="dark"] .profile-page .profile-panel .card-body {
  background: transparent;
}

:root[data-theme="dark"] .orders-page .card,
:root[data-theme="dark"] .orders-page .card-body,
:root[data-theme="dark"] .orders-page .table,
:root[data-theme="dark"] .orders-page .table th,
:root[data-theme="dark"] .orders-page .table td,
:root[data-theme="dark"] .orders-page .table-light,
:root[data-theme="dark"] .orders-page .table-responsive {
  background: #36424A;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .orders-page .accordion-item,
:root[data-theme="dark"] .orders-page .accordion-button,
:root[data-theme="dark"] .orders-page .accordion-body {
  background: #36424A;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .orders-page .accordion-button::after {
  filter: invert(1);
}

:root[data-theme="dark"] .orders-page .table > :not(caption) > * > * {
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .orders-page .orders-filter-card,
:root[data-theme="dark"] .orders-page .orders-filter-card .card-body {
  background: #1F7495;
}

:root[data-theme="dark"] .orders-page .form-control,
:root[data-theme="dark"] .orders-page .form-select,
:root[data-theme="dark"] .orders-page textarea {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .orders-page .form-control::placeholder,
:root[data-theme="dark"] .orders-page textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .orders-page .form-control:focus,
:root[data-theme="dark"] .orders-page .form-select:focus,
:root[data-theme="dark"] .orders-page textarea:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .orders-page .btn {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .orders-page .btn:hover,
:root[data-theme="dark"] .orders-page .btn:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-outline-primary,
:root[data-theme="dark"] .btn-outline-secondary,
:root[data-theme="dark"] .btn-outline-success,
:root[data-theme="dark"] .btn-outline-warning,
:root[data-theme="dark"] .btn-outline-danger {
  background: #36424A;
  border-color: #36424A;
  color: #ffffff;
}

:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn-primary:focus,
:root[data-theme="dark"] .btn-outline-primary:hover,
:root[data-theme="dark"] .btn-outline-primary:focus,
:root[data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"] .btn-outline-secondary:focus,
:root[data-theme="dark"] .btn-outline-success:hover,
:root[data-theme="dark"] .btn-outline-success:focus,
:root[data-theme="dark"] .btn-outline-warning:hover,
:root[data-theme="dark"] .btn-outline-warning:focus,
:root[data-theme="dark"] .btn-outline-danger:hover,
:root[data-theme="dark"] .btn-outline-danger:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}
:root[data-theme="dark"] .btn-outline-secondary {
  color: #ffffff;
  border-color: #0E3747;
}

:root[data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"] .btn-outline-secondary:focus {
  background-color: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .navbar-light .navbar-nav .nav-link,
:root[data-theme="dark"] .navbar-light .navbar-brand,
:root[data-theme="dark"] .navbar-light .navbar-text {
  color: #ffffff;
}

:root[data-theme="dark"] .navbar-light .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

:root[data-theme="dark"] .navbar-light .navbar-toggler-icon {
  filter: invert(1);
}


:root[data-theme="dark"] .top-contact-bar,
:root[data-theme="dark"] .advantages-section .adv-card,
:root[data-theme="dark"] .direction-pill,
:root[data-theme="dark"] .spheres-btn,
:root[data-theme="dark"] .rent-step-number,
:root[data-theme="dark"] .service-step-number {
  background: #1F7495;
}

:root[data-theme="dark"] .hero-cta-bar {
  background: #36424A;
}

:root[data-theme="dark"] .hero-cta-bar:hover {
  background: var(--theme-accent);
}

:root[data-theme="dark"] .btn-primary {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
}

:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn-primary:focus {
  background-color: var(--theme-accent-strong);
  border-color: var(--theme-accent-strong);
}

:root[data-theme="dark"] .btn-outline-primary {
  color: #ffffff;
  border-color: var(--theme-accent);
}

:root[data-theme="dark"] .btn-outline-primary:hover,
:root[data-theme="dark"] .btn-outline-primary:focus {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #ffffff;
}

:root[data-theme="dark"] .site-footer {
  background: #1F7495;
}

:root[data-theme="dark"] .testimonials-section {
  background: #1F7495;
}

:root[data-theme="dark"] .services-trust-section {
  background: #1F7495;
  background-image: none;
}

:root[data-theme="dark"] .about-partners {
  background-color: #1F7495;
}

:root[data-theme="dark"] .spheres-cta-block,
:root[data-theme="dark"] .rent-form-card {
  background: #1F7495;
}

:root[data-theme="dark"] .uc-run-logo .t774__container,
:root[data-theme="dark"] .uc-run-logo .swiper-wrapper {
  background-color: #1F7495;
  color: #ffffff;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .catalog-card,
:root[data-theme="dark"] .products-section .product-card,
:root[data-theme="dark"] .catalog-card__body,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .contacts-map-wrap .contacts-card,
:root[data-theme="dark"] .about-brand-card,
:root[data-theme="dark"] .about-info-card,
:root[data-theme="dark"] .about-mission-card,
:root[data-theme="dark"] .rent-adv-card,
:root[data-theme="dark"] .testimonial-card,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .calendar-sidebar,
:root[data-theme="dark"] .catalog-megamenu,
:root[data-theme="dark"] .catalog-submenu,
:root[data-theme="dark"] .hero-search,
:root[data-theme="dark"] .auth-page,
:root[data-theme="dark"] .auth-side,
:root[data-theme="dark"] .admin-toolbar,
:root[data-theme="dark"] .placeholder-page {
  color: #ffffff;
}

:root[data-theme="dark"] .services-section .service-card,
:root[data-theme="dark"] .services-section .service-card h3,
:root[data-theme="dark"] .services-section .service-card p {
  color: #ffffff;
}

:root[data-theme="dark"] .service-features .service-card p {
  color: #cbd5e1;
}

:root[data-theme="dark"] .services-section .service-card {
  background: #36424A;
  border-color: #36424A;
}

:root[data-theme="dark"] .services-section .service-card:hover {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
}

:root[data-theme="dark"] .sphere-pill {
  background: #0E3747;
  color: #ffffff;
  border-color: #0E3747;
}

:root[data-theme="dark"] .spheres-btn {
  background: #36424A;
  border-color: #36424A;
}

:root[data-theme="dark"] .spheres-btn:hover {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
}

:root[data-theme="dark"] .spheres-cta-submit:hover,
:root[data-theme="dark"] .spheres-cta-submit:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .service-steps::before {
  background: #1F7495;
}

:root[data-theme="dark"] .spheres-cta-form .form-control-sm:focus,
:root[data-theme="dark"] .spheres-cta-form .spheres-cta-textarea:focus {
  background: #0E3747;
  border-color: #0E3747;
  color: #ffffff;
}

:root[data-theme="dark"] .sphere-card-pill,
:root[data-theme="dark"] .sphere-card-pill span {
  color: #ffffff;
}


:root[data-theme="dark"] .catalog-card__media {
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-root-link,
:root[data-theme="dark"] .catalog-subcategory-link,
:root[data-theme="dark"] .catalog-subcategory-child-link,
:root[data-theme="dark"] .catalog-submenu-title {
  color: #ffffff;
}

:root[data-theme="dark"] .catalog-root-link:hover {
  color: #ffffff;
  background-color: var(--theme-accent);
}

:root[data-theme="dark"] .navbar .nav-link:hover,
:root[data-theme="dark"] .navbar .nav-link:focus,
:root[data-theme="dark"] .catalog-nav-toggle:hover,
:root[data-theme="dark"] .catalog-nav-toggle:focus {
  color: #ffffff;
  background-color: var(--theme-accent);
  border-radius: 999px;
}

:root[data-theme="dark"] .contact-pill:hover {
  color: #ffffff;
  border-color: var(--theme-accent);
  background: var(--theme-accent);
}

:root[data-theme="dark"] .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

:root[data-theme="dark"] .contacts-map-wrap .contacts-card {
  background: #0E3747;
}

:root[data-theme="dark"] .contacts-title {
  color: #ffffff;
}

:root[data-theme="dark"] .contacts-text,
:root[data-theme="dark"] .contacts-text a {
  color: #cbd5e1 !important;
}

:root[data-theme="dark"] .text-body {
  color: #ffffff !important;
}


:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .breadcrumb a,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .nav-tabs .nav-link {
  color: #ffffff;
}

:root[data-theme="dark"] a {
  color: #ffffff;
}

:root[data-theme="dark"] a:hover {
  color: rgba(255, 255, 255, 0.85);
}

:root[data-theme="dark"] .nav-tabs .nav-link.active {
  background-color: var(--surface-bg);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .tab-content {
  background-color: var(--surface-bg);
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .input-group-text,
:root[data-theme="dark"] textarea {
  background-color: var(--surface-bg);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .form-control::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.section-pad {
  padding: 4rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-bg);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.uc-run-logo .swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
}

.uc-run-logo .t774__container {
  max-width: calc(100vw - var(--dbmSliderRunPadding) * 2);
  margin: 0 auto;
  border-radius: var(--dbmSliderRunBorderRadiusContainer) !important;
  overflow: var(--dbmSliderRunOverflow) !important;
  background-color: #00a8d0;
  color: #ffffff;
}

.uc-run-logo .swiper-wrapper {
  display: flex !important;
  gap: calc(var(--dbmSliderRunGap) * 4.7);
  background-color: #00a8d0;
  color: #ffffff;
}

.uc-run-logo .t774__content {
  display: none;
}

.uc-run-logo .t774__imgwrapper {
  width: var(--dbmSliderRunWidthLogo);
  height: var(--dbmSliderRunHeightLogo);
  aspect-ratio: var(--dbmSliderRunAspectRation);
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background-color: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.uc-run-logo .t774__wrapper {
  background-color: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.uc-run-logo .t774__col {
  max-width: 420px !important;
  width: var(--dbmSliderRunWidthLogo);
  height: var(--dbmSliderRunHeightLogo);
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.uc-run-logo .t774__bgimg {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 105% auto;
}

@media screen and (max-width: 480px) {
  .uc-run-logo .swiper-wrapper {
    gap: var(--dbmSliderRunGapMobile);
  }

  .uc-run-logo .t774__container {
    max-width: calc(100vw - var(--dbmSliderRunPaddingMobile) * 2);
  }
}

.uc-run-logo-2 .t774__imgwrapper {
  aspect-ratio: 1 / 1;
}

.about-page p {
  color: #4b5563;
}

.about-hero-media {
  position: relative;
  border-radius: 0;
  overflow: visible;
}

.about-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5));
}

.about-hero-overlay h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-hero-overlay p {
  color: #f8fafc;
  max-width: 820px;
  margin: 0;
  font-size: 1.125rem;
}

.about-intro p {
  font-size: 1.125rem;
}

.about-direction-image {
  border-radius: 24px;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.about-direction-list {
  display: grid;
  gap: 14px;
}

.direction-pill {
  background: #00a8d0;
  color: #ffffff;
  padding: 1.1rem 1.4rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0, 168, 208, 0.25);
}

.about-brands h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.about-brands .row {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.about-brand-card {
  background: var(--surface-bg);
  border-radius: 24px;
  padding: 1.5rem;
  height: 100%;
}

.about-brand-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.about-brand-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  justify-items: start;
}

.about-brands .col-lg-4 .about-brand-logos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.brand-logo img {
  max-height: 46px;
  width: auto;
  display: block;
}

.about-info-card {
  background: var(--surface-bg);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-info-card p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #111827;
}

.about-info-card p:last-child {
  margin-bottom: 0;
}

.about-info-watermark {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 140px;
  opacity: 0.15;
}

.about-mission-card {
  background: var(--surface-bg);
  border-radius: 24px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-mission-card p {
  font-size: 1.125rem;
}

.about-mission-text {
  max-width: 600px;
}

.about-mission-media img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.about-partners {
  background-color: #00a8d0;
  border-radius: 0;
  padding: 2.5rem 1.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.about-partners h2 {
  color: #ffffff;
  font-size: 2rem;
}

.top-contact-bar {
  background: linear-gradient(90deg, #00a8d0, #00c6ff);
  font-weight: 600;
}

.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a8d0, #0066ff);
  display: inline-flex;
}

.navbar .nav-link {
  font-weight: 500;
  margin-right: 1rem;
}

.navbar-logo {
  height: 46px;
  width: auto;
  display: block;
}

.navbar-logo--dark {
  display: none;
}

:root[data-theme="dark"] .navbar-logo--light {
  display: none;
}

:root[data-theme="dark"] .navbar-logo--dark {
  display: block;
}

.auth-page {
  padding: 4rem 0;
  background: var(--surface-bg);
}

.auth-card {
  border-radius: 18px;
  border: none;
}

.auth-side {
  background: var(--surface-bg);
  border: none;
  border-radius: 18px;
}

.auth-logo {
  height: 42px;
  width: auto;
}

.auth-page .form-control {
  border-radius: 14px;
}

.auth-page .form-floating > .form-control::placeholder,
.auth-page .form-floating > .form-control-plaintext::placeholder,
.auth-page .form-floating > .form-select::placeholder {
  color: transparent !important;
}

.auth-page .form-floating > label {
  color: #64748b;
}

.auth-page .btn-primary {
  box-shadow: 0 12px 30px rgba(0, 168, 208, 0.25);
}

.btn {
  border-radius: 16px;
}

.btn-primary {
  background-color: #00a8d0;
  border-color: #00a8d0;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #008bb0;
  border-color: #008bb0;
}

.btn-outline-primary {
  color: #00a8d0;
  border-color: #00a8d0;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #00a8d0;
  border-color: #00a8d0;
  color: #ffffff;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 3.25rem;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  color: #0056b3;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.password-toggle-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  display: none;
}

.password-toggle-btn .password-toggle-icon--show,
.password-toggle-btn .password-toggle-icon--hide {
  display: none;
}

.password-toggle-btn[aria-pressed="false"] .password-toggle-icon--show {
  display: block;
}

.password-toggle-btn[aria-pressed="true"] .password-toggle-icon--hide {
  display: block;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid rgba(0, 86, 179, 0.4);
  outline-offset: 2px;
}

/* Catalog megamenu */
.catalog-nav-item {
  position: relative;
}

.catalog-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding-top: 0.5rem;
  min-width: 640px;
  max-width: 760px;
  background: var(--surface-bg);
  border-radius: 18px;
  border: none;
  box-shadow: 0 18px 40px rgba(0, 102, 255, 0.12);
  padding: 0.75rem 0.75rem 0.75rem 0.75rem;
  z-index: 1030;
  display: none;
}

.catalog-megamenu-inner {
  display: flex;
}

.catalog-megamenu-left {
  min-width: 220px;
  border-radius: 14px;
  background: var(--surface-bg);
  padding: 0.25rem 0.25rem;
}

.catalog-megamenu-right {
  flex: 1;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
}

.catalog-megamenu-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.catalog-megamenu .catalog-card {
  border-radius: 18px;
  padding: 0.75rem;
  border: none;
  box-shadow: none;
}

.catalog-megamenu .catalog-card__media {
  height: 110px;
  border-radius: 14px;
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
}

.catalog-root-list {
  margin: 0;
  padding: 0.25rem 0;
}

.catalog-root-item {
  position: relative;
}

.catalog-root-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #1b2748;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.catalog-root-link:hover {
  background-color: var(--surface-bg);
  color: #007ad9;
}

.catalog-submenu {
  position: absolute;
  top: 0;
  left: calc(100% - 2px);
  margin-left: 0;
  min-width: 320px;
  max-width: 420px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--surface-bg);
  border: none;
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.catalog-submenu-header {
  margin-bottom: 0.5rem;
}

.catalog-submenu-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.catalog-subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.catalog-subcategory-link {
  font-size: 0.9rem;
  color: #1b2748;
  text-decoration: none;
}

.catalog-subcategory-link:hover {
  color: #007ad9;
}

.catalog-subcategory-item {
  min-width: 42%;
}

.catalog-subcategory-children {
  margin-top: 0.1rem;
  padding-left: 0.9rem;
  border-left: 1px dashed #e0e7f5;
}

.catalog-subcategory-child-link {
  display: block;
  font-size: 0.82rem;
  color: #6c768f;
  text-decoration: none;
  padding: 0.06rem 0;
}

.catalog-subcategory-child-link:hover {
  color: #007ad9;
}

.catalog-root-item:hover > .catalog-submenu,
.catalog-root-item:focus-within > .catalog-submenu,
.catalog-root-item > .catalog-submenu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.catalog-nav-item:hover > .catalog-megamenu,
.catalog-nav-item:focus-within > .catalog-megamenu {
  display: block;
}

/* «Мост» над зазором между пунктом «Каталог» и панелью — курсор не теряет hover */
.catalog-megamenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

@media (max-width: 991.98px) {
  .catalog-megamenu {
    display: none !important;
  }
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--surface-bg);
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

footer ul li,
footer a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb a {
  text-decoration: none;
}

.thumb {
  background-position: center;
  background-size: cover;
}

/* Hero */
.hero-section {
  padding: 3.5rem 0 3rem;
  background: var(--surface-bg);
}

.hero-section h1 {
  font-size: clamp(2.25rem, 3.2vw, 2.9rem);
  font-weight: 700;
  margin: 0;
}

.hero-label {
  display: none;
}

.hero-search {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 50px;
  background-color: var(--surface-bg);
  max-width: 420px;
}

.hero-search .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
}

.hero-video-wrapper {
  position: relative;
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 102, 255, 0.18);
}

.hero-video-frame--natural {
  aspect-ratio: var(--hero-media-aspect);
}

.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-title-overlay {
  position: absolute;
  inset: auto 0 12%;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
}

.hero-title-overlay h1 {
  max-width: 780px;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.05;
}

.hero-title-overlay--bottom-left {
  inset: auto auto 6% 4%;
  justify-content: flex-start;
  text-align: left;
}

.hero-title-overlay--bottom-left h1 {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-description-bar {
  padding: 2.5rem 0 3.5rem;
  background: var(--surface-bg);
}

.hero-description-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: center;
  justify-content: space-between;
}

.hero-desc-text {
  max-width: 860px;
  color: #000000;
  margin: 0;
  flex: 1 1 620px;
  font-size: 1.32rem;
}

.hero-cta-bar {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-content: space-between;
  width: auto;
  margin-left: 0;
  padding: 1.1rem 4.4rem 1.1rem 22rem;
  border-radius: 16px;
  background: #00a8d0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
}

.hero-cta-bar span:first-child {
  flex: 1 1 auto;
  text-align: left;
  display: block;
  margin-left: -20rem;
}

.hero-cta-bar .hero-cta-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: -2.4rem;
}

.hero-cta-bar:hover {
  color: #ffffff;
  text-decoration: none;
  background: #0090bb;
}

.hero-cta-arrow {
  font-size: 1.8rem;
}

@media (max-width: 767.98px) {
  .hero-description-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Services */
.services-section .service-card {
  border-radius: 24px;
  padding: 1.75rem;
  background: var(--surface-bg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border: none;
  color: #000000;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.services-section .service-card--solid {
  background: var(--surface-bg);
  border-color: transparent;
}

.services-section .section-title {
  font-size: clamp(2.6rem, 3.2vw, 3rem);
}

.services-section .service-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.services-section .service-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  color: #000000;
}

.services-section .service-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
}

.services-section .service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}

.services-section .service-cta__icon {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: #00a8d0;
}

.services-section .service-cta:hover {
  color: inherit;
  text-decoration: none;
}

.services-section .service-card:hover {
  background: var(--theme-accent);
  color: #ffffff;
  border-color: var(--theme-accent);
}

.services-section .service-card:hover h3,
.services-section .service-card:hover p,
.services-section .service-card:hover .service-cta,
.services-section .service-card:hover .service-cta__icon {
  color: #ffffff;
}

.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Catalog */
.catalog-card {
  border-radius: 24px;
  background: var(--surface-bg);
  padding: 1rem;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 153, 214, 0.08);
}

.catalog-card__media {
  height: 200px;
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-position: center center;
  background-repeat: no-repeat;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
  padding: 0 1rem 0.9rem;
}

.catalog-card__body {
  background: var(--surface-bg);
  border-radius: 0 0 20px 20px;
  padding: 0.4rem 0.9rem;
  min-height: 68px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

.catalog-card__body h2,
.catalog-card__body h3,
.catalog-card__body p {
  margin: 0;
}

/* Admin category drag */
.category-node {
  cursor: grab;
}

.category-node.is-dragging {
  opacity: 0.7;
}

.category-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 36px;
  color: #00a8d0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.category-node.is-drop-target {
  position: relative;
}

.category-node.is-drop-target::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: #00a8d0;
  border-radius: 999px;
}

.category-tree,
.category-children {
  position: relative;
}

.category-tree.is-drop-target-end::after,
.category-children.is-drop-target-end::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: #00a8d0;
  border-radius: 999px;
}

.home-drop-indicator {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s ease;
  z-index: 2;
}

.home-drop-indicator::before,
.home-drop-indicator::after {
  content: "";
  position: absolute;
  background: #00a8d0;
}

.home-drop-indicator::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
}

.media-item {
  cursor: grab;
}

.media-item.is-dragging {
  opacity: 0.6;
}

.media-drag-handle {
  cursor: grab;
}

.media-files-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.media-file-thumb {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e3e7ef;
  background: var(--surface-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.media-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-file-thumb.is-dragging {
  opacity: 0.6;
}

.products-section .product-card {
  border-radius: 20px;
  border: none;
  background: var(--surface-bg);
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: 0 18px 45px rgba(0, 153, 214, 0.07);
  display: flex;
  flex-direction: column;
}

/* Advantages */
.advantages-section {
  background: var(--surface-bg);
}

.advantages-section .adv-card {
  background: #00a8d0;
  color: #ffffff;
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  box-shadow: 0 10px 24px rgba(0, 168, 208, 0.15);
}

.advantages-section .adv-card h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.advantages-section .adv-card p {
  margin: 0;
  color: #e9f9ff;
  font-weight: 500;
}

.advantages-section .adv-card__icon {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advantages-section .adv-card__icon img {
  width: auto;
  height: 32px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

.advantages-section .adv-photo {
  width: 100%;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 168, 208, 0.15);
}

.advantages-section .adv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Spheres */
@media (max-width: 991.98px) {
  .spheres-wrap {
    flex-direction: column;
  }

  .spheres-column {
    width: 100%;
  }

  .spheres-media {
    max-width: 100%;
  }
}

/* Testimonials */
.testimonials-section {
  background: linear-gradient(120deg, #0290c7, #00bcd4);
}

.testimonial-card {
  background: transparent;
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 220px;
  max-width: 444px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-doc {
  border: 1px solid #ffffff;
  border-radius: 16px;
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--testimonial-min-height);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.testimonial-doc img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.testimonials-section .section-title {
  margin-bottom: 2rem;
}

/* Contacts */
.map-placeholder {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  border-radius: 20px;
}

.map-placeholder > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.contact-card {
  border: none;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--surface-bg);
}

.contacts-map-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  height: var(--contacts-map-height);
}

.contacts-map-wrap .contacts-card {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacts-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contacts-icon-spacer {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.contacts-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #0b1a2a;
  white-space: nowrap;
}

.contacts-text {
  margin: 0;
  color: #2f3a4a;
  line-height: 1.4;
}

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

.contacts-text a:hover {
  text-decoration: underline;
}

.contacts-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
}

.contacts-icon.location {
  background-image: url("/images/31.svg");
}

.contacts-icon.phone {
  background-image: url("/images/32.svg");
}

.contacts-icon.mail {
  background-image: url("/images/33.svg");
}

.contacts-map {
  width: 100%;
  height: 100%;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

#contacts-map {
  width: 100%;
  height: 100%;
}

@media (max-width: 991.98px) {
  .contacts-map-wrap {
    height: 776px;
    padding: 0;
  }

  .contacts-map-wrap .contacts-card {
    position: static;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    padding: 1rem;
  }
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.services-trust-section {
  background: #00a8d0;
  color: #fff;
}

.services-trust-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
}

.services-trust-grid .services-trust-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

.services-trust-grid .services-trust-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.2rem);
  font-weight: 600;
}

.catalog-section,
.services-section,
.spheres-section,
.contacts-section {
  scroll-margin-top: 80px;
}

.spheres-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.spheres-column {
  display: grid;
  gap: 0.75rem;
  min-width: 360px;
  max-width: 420px;
}

.sphere-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  background: var(--surface-bg);
  border: 1px solid #e3e7ef;
  font-weight: 700;
  color: #0b1a2a;
  min-height: 54px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.spheres-media {
  max-width: 520px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.spheres-media img {
  width: 100%;
  height: auto;
  display: block;
}

.spheres-btn {
  background: #00a8d0;
  color: #ffffff;
  padding: 0.9rem 2.8rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #00a8d0;
}

.spheres-btn:hover {
  color: #ffffff;
  background: #0090bb;
  border-color: #0090bb;
}

.spheres-hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.spheres-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.spheres-hero-overlay {
  position: absolute;
  inset: 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.spheres-hero-overlay h1 {
  font-size: clamp(1.9rem, 2.5vw, 2.4rem);
  font-weight: 700;
  margin: 0;
}

.spheres-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.sphere-card-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--surface-bg);
  border: none;
  font-weight: 700;
  font-size: 20px;
  color: #0b1a2a;
}

.sphere-card-pill img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .spheres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .spheres-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.rent-hero-section {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.rent-adv-card {
  border-radius: 20px;
  background: var(--surface-bg);
  border: none;
  padding: 2.1rem 2.2rem;
  box-shadow: 0 10px 30px rgba(0, 153, 214, 0.05);
}

.rent-adv-card h2,
.rent-adv-card p {
  color: #0b1a2a;
}

.rent-adv-card h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.rent-adv-card p {
  font-size: 16px;
  line-height: 1.6;
}

.rent-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.rent-steps::before {
  content: "";
  position: absolute;
  top: calc(0.5rem + 29.4px - 3px);
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 6px;
  background: #00a8d0;
  z-index: 0;
}

.rent-step {
  text-align: center;
  position: relative;
}

.rent-step-number {
  width: 58.8px;
  height: 58.8px;
  border-radius: 50%;
  background: #00a8d0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.rent-step h3 {
  font-size: 18px;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: #000000;
}

@media (max-width: 991.98px) {
  .rent-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .rent-steps {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
  }
  .rent-steps::before {
    display: none;
  }
  .rent-step {
    text-align: left;
  }
}

.rent-step p {
  font-size: 16px;
  color: #000000;
}

.rent-title {
  font-size: 50px;
  line-height: 1.1;
}

.sphere-cards .sphere-card {
  border-radius: 24px;
  background: var(--surface-bg);
  border: none;
  padding: 1.75rem 1.9rem;
}

.sphere-cards .sphere-card .eyebrow {
  color: #99a6c2;
}

.sphere-cards .sphere-card h2 {
  margin-bottom: 0.75rem;
}

.spheres-cta-section {
  background: var(--surface-bg);
}

.spheres-cta-block {
  background: #00a8d0;
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  min-height: var(--cta-media-height);
  display: flex;
  flex-direction: column;
}

.rent-form-card {
  background: #00a8d0;
}

.spheres-cta-subtitle {
  color: #ffffff;
  font-size: 0.92rem;
  opacity: 0.95;
}

.spheres-cta-form .form-control-sm {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  border-radius: 10px;
  height: 48px;
}

.spheres-cta-form .form-control-sm:focus {
  background: rgba(255,255,255,0.08);
  border-color: #ffffff;
}

.spheres-cta-form .form-control-sm::placeholder {
  color: rgba(255,255,255,0.8);
}

.spheres-cta-submit {
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  min-width: 0;
  background: var(--surface-bg);
  color: #00a8d0;
  border: 1px solid #00a8d0;
}

.spheres-cta-submit:hover {
  background: var(--surface-bg);
  color: #008bb0;
  border-color: #00a8d0;
}

.spheres-cta-consent {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  max-width: 360px;
}

.spheres-cta-image {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.spheres-cta-image img {
  width: 100%;
  height: auto;
  max-height: 470px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.cta-image-square {
  aspect-ratio: 1 / 1;
}

.cta-image-tall img {
  max-height: 523px;
}

.cta-image-628 {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

.cta-image-628 img {
  width: auto;
  height: var(--cta-media-height);
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.cta-image-placeholder {
  width: 100%;
  height: var(--cta-media-height);
  min-height: var(--cta-media-height);
  max-height: var(--cta-media-height);
  border: none;
  border-radius: 16px;
  background: var(--surface-bg);
  color: #00a8d0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.cta-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-compact {
  padding-top: 2rem;
  padding-bottom: 0;
  margin-bottom: 0;
}


.rent-form-card {
  box-shadow: 0 18px 38px rgba(0,0,0,0.15);
}

.rent-form {
  margin-top: 0.5rem;
}

.rent-form-grid {
  display: grid;
  gap: 8px;
}

.rent-form-grid textarea {
  resize: none;
}

.rent-form-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rent-form-actions .btn {
  align-self: stretch;
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  color: #00a8d0;
  background: var(--surface-bg);
  border: 1px solid #00a8d0;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

.rent-form-actions .btn:hover {
  color: #008bb0;
  background: var(--surface-bg);
  border-color: #00a8d0;
}

/* Service page */
.image-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  color: #ffffff;
}

.image-hero__img {
  width: 100%;
  height: auto;
  display: block;
}

.image-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12));
}

.service-hero {
  padding: 0;
}

.service-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  z-index: 1;
}

.service-hero .section-title {
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(2.4rem, 4vw, 3rem);
}

.service-hero .lead {
  max-width: 640px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto;
}

.service-hero-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.service-hero-item {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  color: #ffffff;
}

.service-features .service-card {
  border-radius: 20px;
  border: none;
  background: var(--surface-bg);
  padding: 1.8rem 2rem;
  box-shadow: 0 10px 26px rgba(0, 153, 214, 0.07);
}

.service-features .service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.service-features .service-card p {
  color: #0b1a2a;
  margin: 0;
  font-size: 1rem;
}

.service-process {
  background: var(--surface-bg);
}

.service-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.service-steps::before {
  content: "";
  position: absolute;
  top: calc(0.5rem + 29.4px - 3px);
  left: calc(100% / 10);
  right: calc(100% / 10);
  height: 6px;
  background: #00a8d0;
  z-index: 0;
}

.service-step {
  text-align: center;
  position: relative;
}

.service-step-number {
  width: 58.8px;
  height: 58.8px;
  border-radius: 50%;
  background: #00a8d0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.service-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.service-step p {
  font-size: 16px;
  color: #000;
  margin: 0;
}

.service-title {
  font-size: 50px;
  line-height: 1.1;
}

.services-trust-section {
  background: url('../images/фон 4.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.services-trust-section h2 {
  color: #ffffff;
  max-width: none;
  margin: 0 0 2.2rem 0;
  padding: 0;
  text-align: left;
  line-height: 1.05;
}

.services-trust-section .services-trust-item {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-right: 0.5rem;
  max-width: 340px;
}

.services-trust-section .services-trust-item h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 0.35rem;
}

.services-trust-section .services-trust-item p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  max-width: 340px;
}

.service-form-section {
  background: var(--surface-bg);
}

@media (max-width: 991.98px) {
  .service-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-steps::before {
    left: 14%;
    right: 14%;
  }
}

@media (max-width: 575.98px) {
  .service-steps {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
  }
  .service-steps::before {
    display: none;
  }
  .service-step {
    text-align: left;
  }
}

.rent-form-image img {
  border-radius: 16px;
}

@media (max-width: 991.98px) {
  .spheres-cta-block {
    margin-bottom: 1rem;
  }
  .rent-form-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.site-footer {
  background: linear-gradient(135deg, #00a9d3, #0082c6);
  background-image: url("../images/fold.png"), linear-gradient(135deg, #00a9d3, #0082c6);
  background-size: cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding-top: 48px;
  padding-bottom: 32px;
  margin-bottom: 0;
}

.site-footer .container {
  max-width: 1200px;
}

.footer-logo__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.site-footer h6 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.site-footer .footer-links {
  margin: 0;
  padding: 0;
}

.site-footer .footer-links li,
.site-footer .footer-links a {
  font-size: 16px;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 0;
  margin-top: 32px;
  padding-top: 22px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  gap: 24px;
  row-gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-offer {
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.admin-toolbar {
  background: var(--surface-bg);
  border-bottom: none;
}

.admin-toolbar .btn-nav {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 500;
}

.admin-toolbar .btn-nav.active {
  background: #00a8d0;
  color: #fff;
  border-color: #00a8d0;
}

.placeholder-page {
  min-height: 60vh;
  background: var(--surface-bg);
}

.placeholder-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(13,110,253,0.1);
  color: #0d6efd;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.favorite-toggle {
  border-color: #dfe3e8;
}

.favorite-toggle .favorite-heart {
  color: #6c757d;
  transition: color .2s ease;
}

.favorite-toggle.active .favorite-heart {
  color: #dc3545;
}

.calendar-section { min-height: 320px; }
.calendar-head > div { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .85rem;
}
.calendar-day {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: .75rem;
  min-height: 110px;
  background: var(--surface-bg);
  display: flex;
  flex-direction: column;
}
.calendar-day--muted { background: var(--surface-bg); color: #adb5bd; }
.calendar-day--today {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.2);
}
.calendar-day__date { font-weight: 600; font-size: .95rem; }
.calendar-day__events { margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.calendar-event-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  border-radius: 999px;
  padding: .2rem .7rem;
  text-decoration: none;
  font-weight: 600;
}
.calendar-event-badge--success { background: #d1e7dd; color: #0f5132; }
.calendar-event-badge--pending { background: #fff3cd; color: #664d03; }
.calendar-event-badge--danger { background: #f8d7da; color: #842029; }
.calendar-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  display: inline-block;
}
.calendar-legend {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.calendar-legend--success { background: #d1e7dd; color: #0f5132; }
.calendar-legend--pending { background: #fff3cd; color: #664d03; }
.calendar-legend--danger { background: #f8d7da; color: #842029; }
.calendar-dot--success { background: #198754; }
.calendar-dot--pending { background: #d39e00; }
.calendar-dot--danger { background: #dc3545; }
.calendar-sidebar { background: var(--surface-bg); }
.calendar-legend .calendar-dot { width: .45rem; height: .45rem; }

.unread-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #38bdf8;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .2);
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .calendar-grid { gap: .5rem; }
  .calendar-day { min-height: 90px; padding: .5rem; }
}

/* Aspect-ratio driven tweaks for hero/media blocks */
@media screen and (min-aspect-ratio: 18 / 9) {
  :root {
    --hero-media-aspect: 18 / 9;
    --contacts-map-height: 560px;
    --cta-media-height: 500px;
    --testimonial-min-height: 460px;
  }

  .hero-section {
    padding: 3.1rem 0 2.4rem;
  }

  .hero-title-overlay {
    inset: auto 0 8%;
  }

  .hero-title-overlay h1 {
    font-size: clamp(1.8rem, 2.2vw, 2.35rem);
  }

  .hero-description-bar {
    padding: 2.1rem 0 3rem;
  }

  .hero-cta-bar {
    padding: 1rem 3.2rem 1rem 16rem;
    font-size: 1.2rem;
  }

  .hero-cta-bar span:first-child {
    margin-left: -14rem;
  }

  .hero-cta-bar .hero-cta-arrow {
    margin-right: -1.4rem;
  }

  .contacts-map-wrap {
    height: var(--contacts-map-height);
  }
}

@media screen and (min-aspect-ratio: 19.5 / 9) {
  :root {
    --hero-media-aspect: 19.5 / 9;
    --contacts-map-height: 520px;
    --cta-media-height: 460px;
    --testimonial-min-height: 420px;
  }

  .hero-section {
    padding: 2.8rem 0 2.2rem;
  }

  .hero-title-overlay {
    inset: auto 0 6%;
  }

  .hero-title-overlay h1 {
    font-size: clamp(1.65rem, 2vw, 2.15rem);
  }

  .hero-cta-bar {
    padding: 0.95rem 2.4rem 0.95rem 14rem;
    font-size: 1.15rem;
  }

  .hero-cta-bar span:first-child {
    margin-left: -12rem;
  }

  .hero-cta-bar .hero-cta-arrow {
    margin-right: -1.2rem;
  }

  .contacts-map-wrap {
    height: var(--contacts-map-height);
  }
}

@media screen and (max-aspect-ratio: 16 / 10) {
  :root {
    --hero-media-aspect: 16 / 10;
    --contacts-map-height: 580px;
    --cta-media-height: 500px;
    --testimonial-min-height: 460px;
  }

  .hero-section {
    padding: 2.8rem 0 2.3rem;
  }

  .hero-description-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-desc-text {
    font-size: 1.15rem;
  }

  .hero-cta-bar {
    width: 100%;
    padding: 1rem 1.3rem;
    margin-left: 0;
    font-size: 1.15rem;
    gap: 0.6rem;
    border-radius: 14px;
  }

  .hero-cta-bar span:first-child {
    margin-left: 0;
  }

  .hero-cta-bar .hero-cta-arrow {
    margin-right: 0;
  }

  .spheres-column {
    min-width: 280px;
  }

  .contacts-map-wrap {
    height: var(--contacts-map-height);
  }
}

@media screen and (max-aspect-ratio: 16 / 10) and (max-width: 768px) {
  .hero-title-overlay {
    position: static;
    color: #0b1a2a;
    text-shadow: none;
    margin-top: 0.75rem;
  }

  .hero-title-overlay h1 {
    font-size: clamp(1.55rem, 4vw, 2rem);
  }

  .hero-video-wrapper {
    display: grid;
    gap: 0.75rem;
  }
}