/* =========================================================
   STRUCTURE (НЕ УДАЛЯТЬ) - unified design master final
   =========================================================

   0. DESIGN SYSTEM
   1. OFFSET / BASE
   2. NAVBAR
   3. GLOBAL COMPONENTS
   4. CATEGORIES
   5. ANNOUNCEMENTS
   6. TABLE
   7. PRODUCT
   8. TABS
   9. PHOTO CAROUSEL
   10. FOOTER
   11. UI ELEMENTS
   12. BANNER
   13. HELPERS
   14. PERSONAL AREA
   15. BUTTONS
   16. HOME PAGE
   17. HOME PAGE PATCH — ANALYSIS / ARTICLES / ABOUT / NEWS
   18. PWA INSTALL BANNER
   19. DASHBOARD
   20. HOMEPAGE PROMO CAROUSEL
*/


/* =========================================================
   0. DESIGN SYSTEM
   ========================================================= */

:root {
  --as-primary: #1487dc;
  --as-primary-hover: #0f79c7;
  --as-primary-light: #2f82d6;
  --as-primary-dark: #0055aa;
  --as-primary-deep: #063f73;
  --as-accent: #2fc7ff;

  --as-text: #162033;
  --as-muted: #5f6b7a;
  --as-page: #eef3f7;
  --as-surface: #ffffff;
  --as-surface-soft: #f5f9fc;
  --as-border: #d9e4ec;

  --as-radius-control: 10px;
  --as-radius-card: 18px;
  --as-radius-panel: 22px;
  --as-radius-pill: 999px;

  --as-shadow-sm: 0 6px 18px rgba(22, 32, 51, 0.06);
  --as-shadow-md: 0 10px 26px rgba(22, 32, 51, 0.1);
  --as-shadow-blue: 0 8px 20px rgba(20, 135, 220, 0.2);

  --as-section-space: 42px;
  --as-heading-font: 'Philosopher', sans-serif;
}


/* =========================================================
   1. OFFSET / BASE
   ========================================================= */

.if-fixed-top {
  padding-top: 64px !important;
}

.if-fixed-top-in {
  padding-top: 64px !important;
}

@media screen and (max-width: 992px) {
  .if-fixed-top,
  .if-fixed-top-in {
    padding-top: 57px !important;
  }
}

body {
  color: var(--as-text);
  background: var(--as-page);
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--as-primary-light);
  font-family: var(--as-heading-font);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
}

main h1 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

main h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.base-block {
  background-color: var(--as-surface);
  padding: var(--as-section-space) 0;
}

.color_light_blue {
  color: var(--as-primary-light);
}

.color_dark_blue {
  color: var(--as-primary-dark);
}

.my_dark_blue {
  background-color: var(--as-primary-dark);
}

.my_light_blue {
  background-color: var(--as-primary);
}

.my_light {
  background-color: var(--as-page);
}

.my_yellow {
  background-color: #ffdd00;
}

/* =========================================================
   2. NAVBAR
   ========================================================= */

.navbar {
  font-size: 1.08rem;
  background: linear-gradient(180deg, var(--as-primary-light) 0%, var(--as-primary) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.navbar-brand {
  padding-top: 0;
}

nav.navbar > .container-fluid > a.navbar-brand > img {
  width: 13rem;
}

/* базовые элементы меню */
.navbar .navbar-brand,
.navbar .navbar-brand:visited,
.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link:visited,
.navbar .dropdown-toggle,
.navbar .dropdown-toggle:visited,
.navbar .navbar-nav .show > .nav-link {
  color: #ffffff !important;
}

.navbar .navbar-nav .nav-link {
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  transition: all 0.25s ease-in-out;
}

.navbar li {
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.navbar li:hover {
  background: transparent !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus,
.navbar .nav-item.show > .nav-link,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link[aria-expanded="true"] {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--as-radius-control);
  text-decoration: none !important;
}

.navbar .navbar-nav .nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

/* dropdown */
.navbar .dropdown-menu {
  border: none;
  border-radius: var(--as-radius-control);
  padding: 0.4rem;
  margin-top: 0.45rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.navbar .dropdown-item {
  color: var(--as-text) !important;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
  background: var(--as-primary) !important;
  color: #ffffff !important;
}

/* toggler */
.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 6px 10px;
  border-radius: var(--as-radius-control);
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* search */
.navbar .form-control {
  border-radius: var(--as-radius-control);
  border: 1px solid #d7e8f7 !important;
  box-shadow: none !important;
}

.navbar .form-control::placeholder {
  color: #7aa7c7;
  opacity: 1;
}

.navbar .form-control:focus {
  border-color: #8fd0ff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18) !important;
}

/* search button */
.navbar .btn-outline-primary,
.navbar .btn-outline-light {
  background: #ffffff !important;
  color: var(--as-primary) !important;
  border: 1px solid #d7e8f7 !important;
  border-radius: var(--as-radius-control);
}

.navbar .btn-outline-primary:hover,
.navbar .btn-outline-primary:focus,
.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
  background: #eaf6ff !important;
  color: var(--as-primary-hover) !important;
  border-color: #bcdcf5 !important;
}

/*Coming Soon navigation items */

/* Coming Soon navigation items */

.navbar .navbar-nav .nav-coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.navbar .navbar-nav .nav-coming-soon::after {
  content: "Soon";
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.32rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* =========================================================
   3. GLOBAL COMPONENTS
   ========================================================= */

.thumb-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.thumb-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-width: 0;
  outline-width: 0;
}

.carousel > .carousel-inner > .carousel-item > .carousel-caption img {
  margin-bottom: 0.5rem;
}

.my-indent-top {
  margin-top: 3.9rem;
}

.figure-left {
  margin: 0.6rem 1.5rem 0 0;
}

.figure-right {
  margin: 0.6rem 0 0 1.5rem;
}

figure a {
  text-decoration: none;
}

figure a img {
  display: block;
}

section.block2 {
  background-color: var(--as-surface-soft);
  padding: 2em 0;
}

section.block2 > .container > .row > .col > img {
  width: 100%;
}

/* =========================================================
   4. CATEGORIES
   ========================================================= */

.categories {
  position: relative;
  padding: 1.75rem 0 2.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--as-primary-dark) 0%, var(--as-primary-deep) 100%);
}

.categories::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

/* Убираем глобальный отступ main h1 */
.categories h1 {
  position: relative;
  margin: 0 0 1.35rem;
  color: #ffffff;
  text-align: center;
  font-family: 'Philosopher', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.08;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.categories .row {
  position: relative;
  row-gap: 1.15rem;
  justify-content: center;
}

.categories .card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  background: var(--as-surface);
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  box-shadow: var(--as-shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.categories .card::after {
  content: none;
}

.categories .card:hover {
  transform: translateY(-3px);
  background: var(--as-surface);
  border-color: rgba(20, 135, 220, 0.3);
  box-shadow: 0 14px 30px rgba(22, 32, 51, 0.14);
}

.categories .card a {
  display: block;
  height: 100%;
  color: var(--as-text);
  text-decoration: none;
  text-align: center;
  position: relative;
  z-index: 2;
}

.categories .card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.categories .card:hover img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.02);
}

.categories .card-body {
  padding: 0.8rem 0.95rem 0.9rem;
  background: var(--as-surface);
  text-align: center;
}

.categories .card-title {
  margin: 0;
  color: var(--as-primary-light);
  text-align: center;
  font-family: 'Philosopher', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.12;
  text-shadow: none;
}

.categories .card-title::after,
.categories hr,
.categories .card-body hr {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

.categories .card-text {
  margin-top: 0.45rem;
  color: var(--as-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .categories {
    padding: 1.6rem 0 2rem;
  }

  .categories .card {
    border-radius: 16px;
  }
}

@media (max-width: 767.98px) {
  .categories {
    padding: 1.4rem 0 1.75rem;
  }

  .categories h1 {
    margin: 0 0 1.15rem;
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .categories .row {
    row-gap: 1rem;
  }

  .categories .card {
    border-radius: 14px;
  }

  .categories .card-body {
    padding: 0.75rem 0.85rem 0.85rem;
  }

  .categories .card-title {
    font-size: 1.15rem;
  }
}

/* =========================================================
   5. ANNOUNCEMENTS
   ========================================================= */

.announcements {
  padding: var(--as-section-space) 0;
  background: var(--as-page);
}

.announcements h1,
.announcement h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 700;
  font-style: italic;
}

.announcements .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background-color: var(--as-surface);
  background-clip: border-box;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  box-shadow: var(--as-shadow-sm) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.announcements .card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 135, 220, 0.28);
  box-shadow: var(--as-shadow-md) !important;
}

.announcements .card a {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--as-text);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.announcements .card img {
  display: block;
  width: 100%;
  border-radius: 0;
}

.announcements .card:hover .card-body {
  background-color: var(--as-surface-soft);
}

.announcements .card a:hover .card-title {
  color: var(--as-primary-hover);
}

.announcements > .container > .row .btn-primary {
  background: var(--as-primary);
  border-color: var(--as-primary);
}

.announcements > .container > .row .btn-primary:hover {
  background: var(--as-primary-hover);
  border-color: var(--as-primary-hover);
}

.announcements .card-title {
  margin-bottom: 0.45rem;
  color: var(--as-primary-light);
  font-weight: 700;
}

.announcements .card-text {
  color: var(--as-text);
  font-size: 1rem;
  line-height: 1.55;
}

.announcement {
  padding: var(--as-section-space) 0;
  background: linear-gradient(180deg, var(--as-primary-dark), var(--as-primary-deep));
}

.announcement h1 {
  color: #ffffff;
}

.announcement .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background-color: var(--as-surface);
  background-clip: border-box;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  box-shadow: var(--as-shadow-md) !important;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement .card:hover {
  transform: translateY(-3px);
  background-color: var(--as-surface-soft);
  box-shadow: 0 14px 30px rgba(22, 32, 51, 0.16) !important;
}

.announcement .card a {
  display: block;
  width: 100%;
  color: var(--as-text);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.announcement .card img {
  display: block;
  width: 100%;
  border-radius: 0;
}

.announcement .card a:hover .card-title {
  color: var(--as-primary-hover);
}

.announcement .card-body {
  display: flex;
  flex-direction: column;
}

.announcement .card-body a {
  margin-top: auto;
}

.announcement .btn-primary {
  background: var(--as-primary);
  border-color: var(--as-primary);
}

.announcement .btn-primary:hover {
  background: var(--as-primary-hover);
  border-color: var(--as-primary-hover);
}

.announcement .card-title {
  margin-bottom: 0.45rem;
  color: var(--as-primary-light);
  font-weight: 700;
}

.announcement .card-text {
  color: var(--as-text);
  font-size: 1rem;
  line-height: 1.55;
}

#announcements {
  background-color: var(--as-surface);
}

#announcements > .container {
  padding-top: var(--as-section-space);
  padding-bottom: var(--as-section-space);
}

#announcements > .container > .row > .col {
  min-width: 0;
}

#announcements > .container > .row > .col .btn-primary {
  background: var(--as-primary);
  border-color: var(--as-primary);
}

#announcements > .container > .row > .col .btn-primary:hover {
  background: var(--as-primary-hover);
  border-color: var(--as-primary-hover);
}

/* =========================================================
   6. TABLE
   ========================================================= */

table {
  width: 100%;
  overflow: hidden;
  color: var(--as-text);
  background: var(--as-surface);
  border: 1px solid var(--as-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--as-radius-control);
  box-shadow: var(--as-shadow-sm);
}

table thead {
  color: #ffffff;
  background: var(--as-primary-dark);
}

table thead th,
table thead td {
  font-weight: normal;
  border-right: none;
  border-left: none;
}

table tr:nth-of-type(even) {
  background-color: var(--as-surface-soft);
}

table th,
table td {
  padding: 0.7rem 0.45rem !important;
  text-align: center;
  vertical-align: middle;
  border-color: var(--as-border) !important;
}

table th a,
table td a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none;
  color: var(--as-text);
}

table th a:hover,
table td a:hover {
  color: var(--as-primary-hover);
}

table th:hover,
table td:hover {
  background-color: rgba(20, 135, 220, 0.08);
}

table .light-red {
  background-color: rgba(255, 100, 100, 0.5);
}

table .light-green {
  background-color: rgba(153, 255, 0, 0.5);
}

table .green {
  background-color: rgba(0, 204, 0, 0.5);
}

table .light-blue {
  background-color: rgba(0, 238, 255, 0.5);
}

table .blue {
  background-color: rgba(0, 204, 255, 0.5);
}

table .light-violet {
  background-color: rgba(238, 221, 255, 0.5);
}

table .violet {
  background-color: rgba(168, 118, 255, 0.22);
}

table tr:hover {
  color: var(--as-text);
  background-color: #eaf6ff;
}

table tr:hover a {
  color: var(--as-primary-dark);
}

table tr:hover a:hover {
  color: var(--as-primary-hover);
  background-color: transparent;
}

/* =========================================================
   7. PRODUCT
   ========================================================= */

main > .container .row > .col > .product_photos > .first_photo {
  background-color: var(--as-surface);
  padding: 1rem;
  margin: 0.6rem 0 1rem 0;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  box-shadow: var(--as-shadow-sm);
}

main > .container .row > .col > .product_photos > .first_photo > a > img {
  display: block;
  margin: 0 auto;
}

.additional {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
}

.additional div {
  width: 62px;
  height: 62px;
  float: left;
  margin: 0 10px 10px 0;
  padding: 3px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-control);
  overflow: hidden;
  background-color: var(--as-surface);
}

.additional div > a > img {
  margin: 0 auto;
  display: block;
  height: 100%;
}

.product-brief {
  overflow: hidden;
}

.product-brief p {
  margin-bottom: 0;
}

/* =========================================================
   8. TABS
   ========================================================= */

.nav-border {
  overflow: hidden;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  background: var(--as-surface);
  margin-bottom: 2rem;
  box-shadow: var(--as-shadow-sm);
}

.nav-border .nav-tabs {
  background-color: var(--as-surface-soft);
  border-bottom-color: var(--as-border);
}

.nav-border .tab-content {
  padding: 1rem 1rem;
}

.nav-tabs .nav-item.show .nav-link:hover,
.nav-tabs .nav-link:hover {
  color: var(--as-primary-hover);
  background-color: #eaf6ff;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: var(--as-primary-dark);
  background-color: var(--as-surface);
  border-color: var(--as-border) var(--as-border) var(--as-surface);
}

/* =========================================================
   9. PHOTO CAROUSEL
   ========================================================= */

main.photo {
  padding: 0;
}

main #carouselExampleCaptions p,
main #carouselExampleCaptions h1 {
  color: #999;
  font-size: 1.3rem;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 1rem;
}

main .carousel-caption {
  position: absolute;
  right: 15%;
  bottom: 1.25rem;
  left: 15%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: #fff;
  text-align: center;
}

main .carousel-item {
  background-color: #ffffff;
  width: 100vw;
  height: 100vh;
  display: flex !important;
  justify-content: center !important;
  align-items: center;
}

main .carousel-item img {
  max-width: 1550px;
}

main .carousel-indicators li {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #000000;
  background-clip: padding-box;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

main .carousel-indicators .active {
  opacity: 1;
}

main .carousel-control-prev > .carousel-control-prev-icon,
main .carousel-control-next > .carousel-control-next-icon {
  background-color: #000000;
  opacity: 0.2;
  border-radius: 25%;
}

main .carousel-control-prev:hover > .carousel-control-prev-icon,
main .carousel-control-next:hover > .carousel-control-next-icon {
  background-color: #000000;
  opacity: 0.6;
}

/* =========================================================
   10. FOOTER
   ========================================================= */

footer {
  background: var(--as-primary);
  color: #fff;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: #fff;
}

footer .footer-block {
  padding: 1.6rem 1.4rem;
}

footer h2 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-style: italic;
  font-weight: 700;
}

.copyright {
  background-color: var(--as-primary-dark);
}

.informer {
  margin-left: 0;
  margin-top: 8px;
  border: 1px solid white;
  background-color: #ffffff;
}

footer p {
  font-size: 1rem;
  color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

footer p.text {
  margin-top: 15px;
}

footer ul.social {
  margin-top: 18px;
}

footer ul {
  margin-left: 0;
  padding-left: 0;
  font-size: 1rem;
}

footer ul.social > li,
footer ul > li {
  list-style-type: none;
}

footer ul.social > li {
  display: inline;
  margin-right: 1em;
}

footer ul.social > li > a,
footer ul > li > a {
  text-decoration: none;
  color: #ffffff;
}

footer ul.social > li > a:hover {
  color: #eaf6ff;
}

footer ul > li > a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* quick links */
footer .quick-links {
  margin: 0;
  padding: 0;
}

footer .quick-links li {
  list-style: none;
  border-bottom: 1px dotted white;
  padding: 6px 0;
}

footer .quick-links li:last-child {
  border-bottom: none;
}

footer .quick-links li a,
footer .quick-links li .nav-link {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  text-decoration: none;
  font-size: 1em;
  line-height: 1.35;
}

footer .quick-links li a i {
  display: inline-block;
  width: 18px;
  margin-right: 6px;
  text-align: center;
}

footer .quick-links li a:hover,
footer .quick-links li .nav-link:hover {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* footer articles */
footer .pic {
  width: 88px;
  min-width: 88px;
  height: 50px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: none !important;
  border-radius: var(--as-radius-control);
  margin: 0;
}

footer .block {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: block;
}

footer ul.footer-ad-article {
  margin: 0;
  padding: 0;
}

footer ul.footer-ad-article > li {
  border-bottom: 1px #fff dotted;
  padding: 8px 0;
  overflow: hidden;
}

footer ul.footer-ad-article > li:last-child {
  border-bottom: none;
}

footer ul.footer-ad-article > li > a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

footer ul.footer-ad-article > li > a .block p:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.28;
  max-height: calc(1.28em * 2);
  margin-bottom: 4px;
  font-size: 0.98rem;
}

footer ul.footer-ad-article > li > a .block .date {
  display: block;
  line-height: 1.2;
  margin-top: 2px;
  font-size: 0.9rem;
  opacity: 0.95;
}

.copyright p {
  font-size: 0.96rem;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  footer .footer-block {
    padding: 1.3rem 1rem;
  }
}

@media (max-width: 767.98px) {
  footer .pic {
    width: 82px;
    min-width: 82px;
    height: 46px;
  }
}

/* =========================================================
   11. UI ELEMENTS
   ========================================================= */

.arrow {
  width: 50px;
  color: #fff;
  position: fixed;
  bottom: 55px;
  right: 0;
  padding: 0;
  transition: left 0.5s;
  z-index: 1000;
}

.arrow a {
  display: block;
  text-decoration: none;
  float: left;
  background: #fff;
  color: var(--as-text);
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 30px;
  padding-top: 3px;
  margin-bottom: 10px;
  border-radius: var(--as-radius-control) 0 0 var(--as-radius-control);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ad {
  width: 228px;
  overflow: hidden;
  background-color: var(--as-surface);
  position: absolute;
  top: 4.7rem;
  right: 0.4vw;
  padding: 0;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  box-shadow: var(--as-shadow-md);
  z-index: 40;
}

.ad a {
  text-decoration: none;
  background-color: var(--as-primary);
  color: #ffffff;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 30px;
  padding-top: 3px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ad img {
  width: 100%;
  margin-bottom: 0.3rem;
}

.ad h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.ad p {
  font-size: 0.8rem;
}

.carousel-control-next,
.carousel-control-prev {
  width: 10vw;
}

.carousel-indicators {
  margin-bottom: 1vw;
}

.my_logo:hover {
  background-color: var(--as-surface-soft);
}

.carousel-inner > .carousel-item {
  display: flex;
  justify-content: center;
}

.carousel-inner > .carousel-item > .my_logo {
  max-width: 20%;
  min-width: 20%;
  height: 13vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item .my_logo a img {
  width: 9.4vw;
}

.carousel-item .my_card a img {
  width: 100%;
}

/* =========================================================
   12. BANNER
   ========================================================= */

.banner {
  max-width: 100%;
  overflow: clip;
  position: relative;
  background-color: var(--as-primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner .banner_text p,
.banner .banner_text h2,
.banner .banner_text h3,
.banner .banner_text h4,
.banner .banner_text h5 {
  color: #fff;
  text-align: center;
}

.banner .banner_text h2 {
  margin-top: 0.7vw;
}

.banner > img {
  height: 100%;
  min-height: 662px;
}

.banner .banner_text {
  width: 70vw;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3vw;
  background-color: rgba(0, 85, 170, 0.68);
  border-radius: var(--as-radius-panel);
}

.banner_text img {
  width: 5vw;
  margin-top: 20px;
}

.banner .btn-light {
  color: rgba(0, 100, 200, 1);
  margin-bottom: 20px;
}

@media screen and (min-width: 1600px) {
  .banner > img {
    width: 100%;
    height: auto;
  }
}

.col-md-1 > p:last-child,
.col-md-2 > p:last-child,
.col-md-3 > p:last-child,
.col-md-4 > p:last-child,
.col-md-5 > p:last-child,
.col-md-6 > p:last-child,
.col-md-7 > p:last-child,
.col-md-8 > p:last-child,
.col-md-9 > p:last-child,
.col-md-10 > p:last-child,
.col-md-11 > p:last-child,
.col-md-12 > p:last-child {
  margin-bottom: 0;
}

.carousel-item .carousel-caption p,
.carousel-item .carousel-caption h2,
.carousel-item .carousel-caption h3,
.carousel-item .carousel-caption h4,
.carousel-item .carousel-caption h5 {
  color: #ffffff;
}

.carousel-item.banner {
  max-width: 100%;
  overflow: clip;
  position: relative;
  background-color: var(--as-primary-dark);
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.carousel-item.banner > .carousel-caption.banner_text {
  width: 70vw;
  bottom: auto;
  background-color: rgba(0, 85, 170, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--as-radius-panel);
}

.carousel-item.banner > .carousel-caption.banner_text img {
  width: 15vw;
  border-radius: 50%;
  border: #fff 3px solid;
  margin: 0;
}

.carousel-item.banner > img {
  width: 100%;
  height: 100%;
  min-height: auto;
  max-width: 100%;
}

.carousel-item.banner > .carousel-caption.banner_text > a {
  margin: 0;
  background-color: #f8f9fa;
}

@media screen and (max-width: 560px) {
  .carousel-item.banner > .carousel-caption.banner_text > h2 {
    font-size: 1.2rem;
    line-height: 1;
  }

  .carousel-item.banner > .carousel-caption.banner_text > p {
    font-size: 0.81rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }

  .carousel-item.banner > .carousel-caption.banner_text > a {
    padding: 0 0.5rem;
    margin-bottom: 0;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 400px) {
  .carousel-item.banner > .carousel-caption.banner_text > h2 {
    font-size: 0.9rem;
    line-height: 1;
  }
}

/* =========================================================
   13. HELPERS
   ========================================================= */

.border-white {
  border: #ffffff 5px dotted !important;
}

.border-pink {
  border: #ff7bb4 5px dotted !important;
}

.border-red {
  border: #ff0000 5px dotted !important;
}

.border-green {
  border: #00ff00 5px dotted !important;
}

.border-yellow {
  border: #ffdd00 5px dotted !important;
}

.border-blue {
  border: #2b9dff 5px dotted !important;
}

.border-purple {
  border: purple 5px dotted !important;
}

.tblue {
  background-color: rgba(0, 100, 200, 0.5) !important;
}

.tlblue {
  background-color: rgba(43, 157, 255, 0.5) !important;
}

.tyellow {
  background-color: rgba(255, 220, 0, 0.5) !important;
}

.tpink {
  background-color: rgba(228, 105, 160, 0.5) !important;
}

.tlgreen {
  background-color: rgba(154, 255, 92, 0.5) !important;
}

.tgreen {
  background-color: rgba(0, 255, 0, 0.5) !important;
}

.tred {
  background-color: rgba(255, 0, 0, 0.5) !important;
}

.tpurple {
  background-color: rgba(200, 0, 255, 0.5) !important;
}

/* =========================================================
   14. PERSONAL AREA
   ========================================================= */

.personal {
  padding: 2.4rem 0 2.8rem;
  background: linear-gradient(180deg, var(--as-primary-dark) 0%, var(--as-primary-deep) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.personal h1 {
  margin-bottom: 1.7rem;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-style: italic;
  line-height: 1.05;
  font-family: 'Philosopher', sans-serif;
  overflow-wrap: break-word;
  word-break: normal;
}

/* строка с карточками */
.personal .row.gy-3 {
  row-gap: 1.25rem !important;
  justify-content: center;
}

/* у тебя col-xl-2 и blue-block на одном элементе */
.personal .blue-block,
.personal .darkblue-block {
  padding: 1.2rem 1rem 1rem;
  border-radius: var(--as-radius-panel);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
}

.personal .blue-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.07) 100%);
}

.personal .darkblue-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.055) 100%);
}

.personal .blue-block:hover,
.personal .darkblue-block:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* одинаковая зона заголовка */
.personal .blue-block h2,
.personal .darkblue-block h2 {
  margin-top: 0.15rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.25rem;
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
  font-family: 'Philosopher', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.1vw, 2.15rem);
  line-height: 1.08;
  overflow-wrap: break-word;
  word-break: normal;
}

.personal .blue-block hr,
.personal .darkblue-block hr {
  margin: 0 0 0.8rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.personal .blue-block ul,
.personal .darkblue-block ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.personal .blue-block ul li,
.personal .darkblue-block ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.1rem;
  color: var(--as-accent);
}

.personal .blue-block ul li:last-child,
.personal .darkblue-block ul li:last-child {
  margin-bottom: 0;
}

.personal .blue-block ul li::marker,
.personal .darkblue-block ul li::marker {
  color: var(--as-accent);
}

.personal .blue-block ul li a,
.personal .darkblue-block ul li a {
  color: #ffffff;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.personal .blue-block ul li a:hover,
.personal .darkblue-block ul li a:hover {
  color: #7fd0ff;
  text-decoration: underline;
  text-decoration-color: rgba(127, 208, 255, 0.55);
  text-underline-offset: 3px;
}

.personal .blue-block ul li:empty,
.personal .darkblue-block ul li:empty {
  display: none;
}

/* desktop */
@media (min-width: 1200px) {
  .personal .blue-block,
  .personal .darkblue-block {
    flex: 0 0 auto;
  }

  .personal .blue-block h2,
  .personal .darkblue-block h2 {
    font-size: 1.1rem;
    min-height: 72px;
  }

  .personal .blue-block ul li a,
  .personal .darkblue-block ul li a {
    font-size: 0.98rem;
  }
}

/* tablet */
@media (max-width: 991.98px) {
  .personal {
    padding: 2.2rem 0 2.5rem;
  }

  .personal .blue-block,
  .personal .darkblue-block {
    padding: 1.1rem 0.95rem 0.95rem;
    border-radius: 18px;
  }

  .personal .blue-block h2,
  .personal .darkblue-block h2 {
    min-height: 64px;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
  }
}

/* mobile */
@media (max-width: 767.98px) {
  .personal {
    padding: 2rem 0 2.3rem;
  }

  .personal h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .personal .blue-block,
  .personal .darkblue-block {
    padding: 1rem 0.95rem;
    border-radius: 16px;
    min-height: auto;
  }

  .personal .blue-block h2,
  .personal .darkblue-block h2 {
    min-height: auto;
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .personal .blue-block ul li,
  .personal .darkblue-block ul li {
    margin-bottom: 0.45rem;
  }

  .personal .blue-block ul li a,
  .personal .darkblue-block ul li a {
    font-size: 1rem;
  }
}
/* =========================================================
   15. BUTTONS
   ========================================================= */

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--as-primary), var(--as-primary-light));
  border-color: var(--as-primary);
  box-shadow: var(--as-shadow-blue);
}

.btn {
  border-radius: var(--as-radius-control);
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #ffffff;
  background: linear-gradient(135deg, var(--as-primary-hover), var(--as-primary));
  border-color: var(--as-primary-hover);
  box-shadow: 0 8px 20px rgba(20, 135, 220, 0.26);
}

.btn-outline-primary {
  color: var(--as-primary-dark);
  background: var(--as-surface);
  border-color: rgba(20, 135, 220, 0.38);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #ffffff;
  background: var(--as-primary);
  border-color: var(--as-primary);
}

.home-page .btn,
.home-page .btn-primary,
.home-page .btn-outline-primary {
  transition: all 0.2s ease;
}

/* =========================================================
   16. HOME PAGE
   ========================================================= */

.video-editor-section {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.home-page {
  background: var(--as-page);
  overflow-x: hidden;
}

.home-page .home-hero,
.home-page .home-section {
  padding: var(--as-section-space) 0;
}

.home-page .home-hero {
  padding-top: var(--as-section-space);
  padding-bottom: var(--as-section-space);
}

.home-page .home-hero h1,
.home-page .home-section-title,
.home-page .home-copy h2,
.home-page .home-featured-box h2,
.home-page .home-product-body h5,
.home-page .home-mini-card h5 {
  color: var(--as-primary-light);
  font-family: var(--as-heading-font);
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
}

.home-page .home-hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 14px;
}

.home-page .home-section-title,
.home-page .home-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  margin-bottom: 12px;
}

.home-page .home-lead,
.home-page .home-copy p,
.home-page .home-center-copy,
.home-page .home-featured-box p,
.home-page .home-mini-card p,
.home-page .home-product-body p {
  color: var(--as-text);
  font-size: 1.03rem;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}

.home-subtext {
  margin-top: 10px;
  color: var(--as-muted);
  max-width: 520px;
}

.home-page .home-image,
.home-page .home-product-image {
  width: 100%;
  display: block;
  border-radius: var(--as-radius-card);
}

.home-page .home-image-round-desktop {
  border-radius: var(--as-radius-card);
}

.home-page .home-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.home-page .home-hero-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf2f8;
  color: var(--as-primary-dark);
  border-radius: var(--as-radius-pill);
  padding: 8px 14px;
  font-weight: 600;
  line-height: 1.2;
  font-size: 0.96rem;
}

.home-page .home-section-blue {
  background: var(--as-primary-dark);
}

.home-page .home-section-blue .home-section-title {
  color: #fff;
}

/* services grid */
.home-page .home-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .home-page .home-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  .home-page .home-services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* service cards */
.home-page .home-service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 124px;
  padding: 16px 14px;
  border-radius: var(--as-radius-card);
  text-decoration: none;
  background: linear-gradient(135deg, var(--as-primary-light), var(--as-accent));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .home-service-card strong {
  display: flex;
  align-items: flex-start;
  font-family: 'Philosopher', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.14;
  margin-bottom: 8px;
  min-height: 38px;
}

.home-page .home-service-card span {
  display: flex;
  align-items: flex-start;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.28;
  min-height: 36px;
}

/* featured */
.home-page .home-featured-box {
  background: var(--as-surface-soft);
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-panel);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.home-page .home-featured-tag {
  display: inline-block;
  margin-bottom: 14px;
  background: #ffe000;
  color: #1d4d84;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

/* shared image+text rows */
.home-page .row.align-items-center.g-4 {
  --bs-gutter-y: 1rem;
}

.home-page .home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* mini cards */
.home-page .home-mini-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--as-surface);
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  padding: 18px;
  min-height: 136px;
  height: 100%;
  box-shadow: var(--as-shadow-sm);
}

.home-page .home-mini-card h5 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.12;
}

.home-page .home-mini-card p {
  margin-bottom: 0;
  line-height: 1.45;
}

.home-page .home-mini-card-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-page .home-mini-card-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: #cfdbe5;
  background: #fcfeff;
}

.home-page .home-mini-card-link h5 {
  color: var(--as-primary-light);
}

.home-page .home-mini-card-link p {
  color: var(--as-text);
}

.home-page .home-mini-card-link::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--as-primary-light);
  opacity: 0.75;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.home-page .home-mini-card-link:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* product cards */
.home-page .home-product-card {
  display: flex;
  flex-direction: column;
  background: var(--as-surface);
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-card);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--as-shadow-sm);
}

.home-page .home-product-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.home-page .home-product-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  height: 100%;
}

.home-page .home-product-body h5 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  line-height: 1.08;
}

.home-page .home-product-body p {
  font-size: 0.97rem;
  line-height: 1.42;
  margin-bottom: 0.8rem;
}

.home-page .home-product-body .btn {
  margin-top: auto;
}

/* analysis / article subcards row */
.home-page .home-copy .row.g-3,
.home-page .home-section .row.g-3 {
  --bs-gutter-y: 0.9rem;
}

/* stroke cards */
.home-page .home-stroke-grid {
  margin-top: 2px;
}

.home-page .home-stroke-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  height: 100%;
  background: var(--as-surface);
  color: var(--as-primary-dark) !important;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.home-page .home-stroke-card:hover {
  color: var(--as-primary-light) !important;
  text-decoration: none;
  transform: translateY(-2px);
}

.home-page .home-stroke-card span {
  font-family: 'Philosopher', sans-serif;
  font-style: italic;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.1;
}

.home-page .bg-light {
  background: var(--as-page) !important;
}

/* buttons */
.home-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62em 1em;
  border-radius: var(--as-radius-control);
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-page .btn-primary {
  border: none;
  color: #fff !important;
  background: linear-gradient(135deg, var(--as-primary), var(--as-primary-light));
  box-shadow: 0 6px 14px rgba(36, 147, 223, 0.18);
}

.home-page .btn-primary:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--as-primary-hover), var(--as-primary));
  box-shadow: 0 8px 18px rgba(36, 147, 223, 0.24);
  text-decoration: none;
}

.home-page .btn-outline-primary {
  border: 1.5px solid #bfdcf2;
  color: var(--as-primary-dark);
  background: var(--as-surface-soft);
  box-shadow: none;
}

.home-page .btn-outline-primary:hover {
  border-color: #afd3ee;
  color: var(--as-primary-hover);
  background: #eff7fc;
  box-shadow: none;
  text-decoration: none;
}

.home-page .btn-soft-cta {
  border: 1px solid #d8e9f7;
  color: var(--as-primary-dark);
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  box-shadow: 0 6px 16px rgba(120, 170, 220, 0.12);
}

.home-page .btn-soft-cta:hover {
  border-color: #c7e0f4;
  color: #3e6f9b;
  background: linear-gradient(135deg, #ffffff, #e6f3ff);
  box-shadow: 0 8px 18px rgba(120, 170, 220, 0.16);
}

.home-page a[href="#"].btn-outline-primary:not(.btn-soft-cta) {
  border: 1.5px solid #d7e3ee;
  color: #8aa0b5;
  background: #fafcfe;
  box-shadow: none;
  cursor: default;
}

.home-page a[href="#"].btn-outline-primary:not(.btn-soft-cta):hover {
  border: 1.5px solid #d7e3ee;
  color: #8aa0b5;
  background: #fafcfe;
  box-shadow: none;
}

.home-page .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.home-page .home-actions .btn,
.home-page .home-actions .btn-primary,
.home-page .home-actions .btn-outline-primary,
.home-page .home-actions .btn-soft-cta {
  min-width: 0;
  min-height: 44px;
  padding: 0.68em 1.08em;
  border-radius: var(--as-radius-control);
  font-size: 0.98rem;
  margin: 0 !important;
}

/* especially small Open buttons */
.home-page .home-mini-card .btn,
.home-page .home-product-body .btn {
  min-height: 38px;
  padding: 0.52em 0.9em;
  font-size: 0.92rem;
  border-radius: 9px;
}

/* desktop polish for image/text compositions */
@media (min-width: 768px) {
  .home-page .home-section .col-md-4 > .home-image,
  .home-page .home-section .col-md-4 > .home-image-round-desktop {
    max-width: 360px;
  }

  .home-page .home-section .col-md-4,
  .home-page .home-section .col-lg-5 {
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .home-page .home-product-body h5 {
    font-size: 1.2rem;
  }

  .home-page .home-product-body p {
    font-size: 0.94rem;
  }

  .home-page .home-mini-card h5 {
    font-size: 1.22rem;
  }
}

@media (max-width: 991.98px) {
  .home-page .home-hero,
  .home-page .home-section {
    padding: 36px 0;
  }

  .home-page .home-featured-box,
  .home-page .home-mini-card,
  .home-page .home-product-body {
    padding: 16px;
  }

  .home-page .home-service-card {
    min-height: 118px;
    padding: 14px 12px;
  }

  .home-page .home-service-card strong {
    font-size: 0.98rem;
    margin-bottom: 7px;
    min-height: 36px;
  }

  .home-page .home-service-card span {
    font-size: 0.86rem;
    line-height: 1.26;
    min-height: 34px;
  }
}

@media (max-width: 767.98px) {
  .home-page .home-hero,
  .home-page .home-section {
    padding: 30px 0;
  }

  .home-page .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .home-actions .btn,
  .home-page .home-actions .btn-primary,
  .home-page .home-actions .btn-outline-primary,
  .home-page .home-actions .btn-soft-cta {
    width: 100%;
    min-height: 46px;
    font-size: 0.97rem;
  }

  .home-page .home-hero-points span {
    font-size: 0.92rem;
    padding: 8px 13px;
  }

  .home-page .home-lead,
  .home-page .home-copy p,
  .home-page .home-center-copy,
  .home-page .home-featured-box p,
  .home-page .home-mini-card p,
  .home-page .home-product-body p {
    font-size: 0.97rem;
    line-height: 1.48;
  }

  .home-page .home-mini-card h5,
  .home-page .home-product-body h5 {
    font-size: 1.18rem;
  }

  .home-page .home-stroke-card {
    min-height: 74px;
  }

  .home-page .home-stroke-card span {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .home-page .home-hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .home-page .home-service-card {
    min-height: 108px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .home-page .home-service-card strong {
    font-size: 0.96rem;
    margin-bottom: 6px;
    min-height: 34px;
  }

  .home-page .home-service-card span {
    font-size: 0.82rem;
    line-height: 1.24;
    min-height: 30px;
  }

  .home-page .home-featured-box,
  .home-page .home-mini-card,
  .home-page .home-product-card,
  .home-page .home-image,
  .home-page .home-image-round-desktop {
    border-radius: 16px;
  }

  .home-page .home-mini-card {
    min-height: 150px;
  }

  .home-page .home-stroke-card {
    min-height: 72px;
    border-radius: 14px;
  }
}

/* =========================================================
   17. HOME PAGE PATCH — ANALYSIS / ARTICLES / ABOUT / NEWS
   ========================================================= */

.home-section-analysis .row.align-items-center.g-4,
.home-section-articles .row.align-items-center.g-4,
.home-section-about .row.align-items-center.g-4,
.home-section-news .row.align-items-center.g-4 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 1.2rem;
}

.home-section-analysis .home-image,
.home-section-articles .home-image,
.home-section-about .home-image,
.home-section-news .home-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--as-radius-panel);
  box-shadow: var(--as-shadow-md);
}

.home-section-analysis .home-copy,
.home-section-articles .home-copy,
.home-section-about .home-copy,
.home-section-news .home-copy {
  max-width: 100%;
}

.home-section-analysis .home-copy h2,
.home-section-articles .home-copy h2,
.home-section-about .home-copy h2,
.home-section-news .home-copy h2 {
  margin-bottom: 16px;
}

.home-section-analysis .home-copy p,
.home-section-articles .home-copy p,
.home-section-about .home-copy p,
.home-section-news .home-copy p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

/* 1) SWIM ANALYSIS */
.home-section-analysis {
  background: var(--as-page);
}

.home-section-analysis .row.g-3 {
  margin-top: 12px;
}

.home-section-analysis .home-mini-card {
  min-height: 180px;
  padding: 22px;
  border-radius: var(--as-radius-panel);
  background: var(--as-surface-soft);
  border: 1px solid var(--as-border);
  box-shadow: var(--as-shadow-sm);
}

.home-section-analysis .home-mini-card h5 {
  font-size: 1.26rem;
  margin-bottom: 10px;
}

.home-section-analysis .home-mini-card p {
  font-size: 0.98rem;
  line-height: 1.58;
  margin-bottom: 14px;
}

.home-section-analysis .home-mini-card .btn {
  margin-top: auto;
  min-width: 140px;
}

/* 2) ARTICLES */
.home-section-articles {
  background: var(--as-surface);
}

.home-section-articles .home-copy > .row.g-3.mt-2 {
  margin-top: 12px !important;
}

.home-section-articles .home-mini-card {
  min-height: 180px;
  padding: 22px;
  border-radius: var(--as-radius-panel);
  background: var(--as-surface-soft);
  border: 1px solid var(--as-border);
  box-shadow: var(--as-shadow-sm);
}

.home-section-articles .home-mini-card h5 {
  font-size: 1.26rem;
  margin-bottom: 10px;
}

.home-section-articles .home-mini-card p {
  font-size: 0.98rem;
  line-height: 1.58;
  margin-bottom: 14px;
}

.home-section-articles .home-mini-card .btn {
  margin-top: auto;
  min-width: 120px;
}

/* 3) ABOUT */
.home-section-about {
  background: var(--as-page);
}

.home-section-about .home-copy {
  align-items: flex-start;
}

.home-section-about .home-actions {
  margin-top: 10px;
  margin-bottom: 0;
}

.home-section-about .home-actions .btn {
  min-width: 160px;
}

/* 4) NEWS */
.home-section-news {
  background: var(--as-surface);
}

.home-section-news .home-copy {
  align-items: flex-start;
}

.home-section-news .home-actions {
  margin-top: 10px;
  margin-bottom: 0;
}

.home-section-news .home-actions .btn {
  min-width: 160px;
}

@media (max-width: 767.98px) {
  .home-section-analysis .home-image,
  .home-section-articles .home-image,
  .home-section-about .home-image,
  .home-section-news .home-image {
    border-radius: 20px;
    margin-bottom: 6px;
  }

  .home-section-analysis .home-copy h2,
  .home-section-articles .home-copy h2,
  .home-section-about .home-copy h2,
  .home-section-news .home-copy h2 {
    font-size: clamp(1.9rem, 7vw, 2.35rem);
    margin-bottom: 14px;
  }

  .home-section-analysis .home-copy p,
  .home-section-articles .home-copy p,
  .home-section-about .home-copy p,
  .home-section-news .home-copy p {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .home-section-analysis .home-mini-card,
  .home-section-articles .home-mini-card {
    min-height: auto;
    padding: 18px 18px 20px;
    border-radius: 20px;
  }

  .home-section-analysis .home-mini-card h5,
  .home-section-articles .home-mini-card h5 {
    font-size: 1.18rem;
  }

  .home-section-about .home-actions,
  .home-section-news .home-actions {
    width: 100%;
  }

  .home-section-about .home-actions .btn,
  .home-section-news .home-actions .btn,
  .home-section-articles .home-mini-card .btn,
  .home-section-analysis .home-mini-card .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .home-section-analysis .row.g-3 > [class*="col-"],
  .home-section-articles .row.g-3 > [class*="col-"] {
    width: 100%;
  }

  .home-section-analysis .home-mini-card,
  .home-section-articles .home-mini-card {
    min-height: auto;
  }
}

/* =========================================================
   HOME PAGE FINAL POLISH
   ========================================================= */

/* hover для service cards */
.home-page .home-service-card:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

/* products — единый стиль кнопок и заголовков */
.home-page .home-product-body h5 {
  color: var(--as-primary-light);
  font-family: var(--as-heading-font);
  font-style: italic;
  font-weight: 700;
}

/* about/news делаем визуально мягче */
.home-section-about .home-copy,
.home-section-news .home-copy {
  padding-top: 4px;
}

/* articles cards чуть аккуратнее */
.home-section-articles .home-mini-card {
  justify-content: space-between;
}

/* analysis cards — чтобы текст не прыгал */
.home-section-analysis .home-mini-card,
.home-section-articles .home-mini-card {
  height: 100%;
}

/* стрелка только там, где карточка полностью ссылка */
.home-page .home-mini-card:not(.home-mini-card-link)::after {
  content: none !important;
}

/* кнопки inside cards */
.home-section-articles .home-mini-card .btn,
.home-section-about .home-actions .btn,
.home-section-news .home-actions .btn {
  min-width: 150px;
}

@media (max-width: 767.98px) {
  .home-section-articles .home-mini-card .btn,
  .home-section-about .home-actions .btn,
  .home-section-news .home-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   18. PWA INSTALL BANNER
   ========================================================= */

.pwa-install {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--as-primary-dark), var(--as-primary));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--as-radius-card);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pwa-install.show {
  opacity: 1;
  transform: translateY(0);
}

.pwa-install__content strong {
  display: block;
  font-family: var(--as-heading-font);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.15;
}

.pwa-install__content p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.4;
}

.pwa-install__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pwa-install__actions button {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--as-radius-control);
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

#pwa-install-btn {
  border: none;
  color: var(--as-primary-dark);
  background: #ffffff;
}

#pwa-install-btn:hover {
  background: #eaf6ff;
}

#pwa-install-close {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

#pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

footer .footer-install-btn {
  display: block;
  width: 100%;
  padding: 6px 0;
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  text-align: left;
  font-size: 1em;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: none !important;
}

footer .footer-install-btn:hover {
  color: #fff !important;
  background: transparent !important;
  text-decoration: underline;
  text-decoration-style: dotted;
}

footer .footer-install-btn:focus:not(:focus-visible),
footer .footer-install-btn:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

footer .footer-install-btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .pwa-install {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .pwa-install__actions {
    flex-direction: column;
  }

  .pwa-install__actions button {
    width: 100%;
  }
}


/* =========================================================
   19. DASHBOARD
========================================================= */

.platform-dashboard {
    --dashboard-primary: var(--as-primary);
    --dashboard-primary-dark: var(--as-primary-dark);
    --dashboard-text: var(--as-text);
    --dashboard-muted: var(--as-muted);
    --dashboard-border: rgba(22, 32, 51, 0.11);
    --dashboard-surface: var(--as-surface);
    --dashboard-surface-soft: var(--as-page);

    padding: var(--as-section-space) 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(13, 110, 253, 0.08),
            transparent 34rem
        ),
        var(--dashboard-surface-soft);
}


/* Dashboard heading */

.platform-dashboard__header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.platform-dashboard__eyebrow {
    margin: 0 0 0.45rem;
    color: var(--dashboard-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.platform-dashboard__title {
    margin: 0;
    color: var(--as-primary-light);
    font-family: var(--as-heading-font);
    font-style: italic;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.08;
}

.platform-dashboard__intro {
    max-width: 650px;
    margin: 1rem auto 0;
    color: var(--dashboard-muted);
    font-size: 1rem;
    line-height: 1.7;
}


/* Universal platform card */

.platform-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--dashboard-surface);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--as-radius-card);
    box-shadow:
        0 1px 2px rgba(22, 32, 51, 0.03),
        0 12px 32px rgba(22, 32, 51, 0.06);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 110, 253, 0.22);
    box-shadow:
        0 2px 4px rgba(22, 32, 51, 0.04),
        0 18px 42px rgba(22, 32, 51, 0.1);
}


/* Card heading */

.platform-card__header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.35rem 1.35rem 1.15rem;
    border-bottom: 1px solid var(--dashboard-border);
}

.platform-card__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--dashboard-primary),
            var(--dashboard-primary-dark)
        );
    border-radius: 0.85rem;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
    font-size: 1.15rem;
}

.platform-card__category {
    margin: 0 0 0.12rem;
    color: var(--dashboard-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.platform-card__title {
    margin: 0;
    color: var(--as-primary-light);
    font-family: var(--as-heading-font);
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}


/* Card navigation */

.platform-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.platform-card__list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.platform-card__item + .platform-card__item {
    border-top: 1px solid rgba(22, 32, 51, 0.07);
}

.platform-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 3.25rem;
    padding: 0.8rem 1.35rem;
    color: var(--dashboard-text);
    background: transparent;
    font-size: 0.91rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        padding-left 160ms ease;
}

a.platform-card__link:hover {
    padding-left: 1.55rem;
    color: var(--dashboard-primary);
    background: rgba(13, 110, 253, 0.045);
    text-decoration: none;
}

.platform-card__link > i {
    flex: 0 0 auto;
    color: #97a0af;
    font-size: 0.7rem;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

a.platform-card__link:hover > i {
    color: var(--dashboard-primary);
    transform: translateX(2px);
}


/* Disabled and Soon states */

.platform-card__link.is-disabled {
    color: #8a93a3;
    cursor: default;
    user-select: none;
}

.platform-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 1.25rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.platform-status--soon {
    color: #687386;
    background: #edf0f4;
    border: 1px solid #dfe4ea;
}


/* Keyboard focus */

.platform-card__link:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(13, 110, 253, 0.22);
    outline-offset: -3px;
}


/* Tablet */

@media (max-width: 991.98px) {
    .platform-dashboard {
        padding: 36px 0;
    }
}


/* Mobile */

@media (max-width: 575.98px) {
    .platform-dashboard {
        padding: 30px 0;
    }

    .platform-dashboard__header {
        margin-bottom: 1.75rem;
        text-align: left;
    }

    .platform-dashboard__intro {
        margin-left: 0;
    }

    .platform-card {
        border-radius: 16px;
    }

    .platform-card:hover {
        transform: none;
    }

    .platform-card__header {
        padding: 1.15rem;
    }

    .platform-card__link {
        padding-right: 1.15rem;
        padding-left: 1.15rem;
    }

    a.platform-card__link:hover {
        padding-left: 1.15rem;
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .platform-card,
    .platform-card__link,
    .platform-card__link > i {
        transition: none;
    }
}


/* Dark theme support */

[data-bs-theme="dark"] .platform-dashboard,
body.dark-theme .platform-dashboard {
    --dashboard-text: #eef3fb;
    --dashboard-muted: #9ba7b8;
    --dashboard-border: rgba(255, 255, 255, 0.1);
    --dashboard-surface: #151c27;
    --dashboard-surface-soft: #0e141d;

    background:
        radial-gradient(
            circle at top left,
            rgba(13, 110, 253, 0.12),
            transparent 34rem
        ),
        var(--dashboard-surface-soft);
}

[data-bs-theme="dark"] .platform-card__item +
.platform-card__item,
body.dark-theme .platform-card__item +
.platform-card__item {
    border-top-color: rgba(255, 255, 255, 0.07);
}

[data-bs-theme="dark"] .platform-status--soon,
body.dark-theme .platform-status--soon {
    color: #aeb8c7;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.09);
}

/* =========================================================
   20. HOMEPAGE PROMO CAROUSEL
   ========================================================= */

/*
  Одна структура и один дизайн для всех слайдов:
  Dashboard, Private Coaching, Artistic Swimming, Learn to Swim.
*/


/* =========================================================
   CAROUSEL CONTAINER
   ========================================================= */

#carousel4 {
  position: relative;
  width: 100%;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  background: var(--as-primary-deep);
}

#carousel4 .carousel-inner {
  width: 100%;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  background: var(--as-primary-deep);
}


/*
  Исправляет старые глобальные правила,
  где всем .carousel-item назначен display:flex.
*/

#carousel4 .carousel-inner > .carousel-item {
  display: none !important;
  width: 100%;
  height: 430px;
  min-height: 430px;
}

#carousel4 .carousel-inner > .carousel-item.active,
#carousel4 .carousel-inner > .carousel-item-next,
#carousel4 .carousel-inner > .carousel-item-prev {
  display: block !important;
}


/* =========================================================
   COMMON SLIDE
   ========================================================= */

#carousel4 .promo-slide {
  --promo-overlay-start: rgba(2, 40, 76, 0.96);
  --promo-overlay-middle: rgba(4, 69, 117, 0.82);
  --promo-overlay-end: rgba(6, 67, 108, 0.34);

  position: relative;
  width: 100%;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  background: var(--as-primary-deep);
}


/* Individual slide colours */

#carousel4 .promo-slide--dashboard,
#carousel4 .promo-slide--coach,
#carousel4 .promo-slide--artistic,
#carousel4 .promo-slide--learn {
  --promo-overlay-start: rgba(2, 55, 91, 0.96);
  --promo-overlay-middle: rgba(0, 85, 170, 0.82);
  --promo-overlay-end: rgba(20, 135, 220, 0.3);
}


/* =========================================================
   BACKGROUND IMAGE
   ========================================================= */

#carousel4 .promo-slide__image {
  display: block;
  width: 100%;
  max-width: none;
  height: 430px;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.68) saturate(0.96);
}


/* Dark gradient */

#carousel4 .promo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      var(--promo-overlay-start) 0%,
      var(--promo-overlay-middle) 52%,
      var(--promo-overlay-end) 100%
    );
}


/* =========================================================
   CONTENT
   ========================================================= */

#carousel4 .promo-slide__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(100px, 10vw, 145px);
  right: clamp(80px, 9vw, 130px);
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  width: auto;
  height: 100%;
  margin: 0;
  padding: 26px 0;

  color: #ffffff;
  text-align: left;
}


/* =========================================================
   LABEL
   ========================================================= */

#carousel4 .promo-slide__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 0 0 12px;
  padding: 8px 14px;

  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;

  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

#carousel4 .promo-slide__label i {
  flex: 0 0 auto;
  font-size: 0.78rem;
}


/* =========================================================
   TITLE
   ========================================================= */

#carousel4 .promo-slide__title {
  max-width: 820px;
  margin: 0 0 12px;

  color: #ffffff;
  font-family: var(--as-heading-font);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: left;

  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

#carousel4 .promo-slide__description {
  display: block;
  max-width: 780px;
  margin: 0 0 14px;

  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}


/* =========================================================
   PERSON / PROGRAM INFO
   ========================================================= */

#carousel4 .promo-slide__person {
  display: flex;
  align-items: center;
  gap: 11px;

  max-width: 600px;
  margin: 0 0 14px;
}

#carousel4 .promo-slide__person > img {
  display: block;
  flex: 0 0 auto;

  width: 48px;
  height: 48px;
  max-width: 48px;

  object-fit: cover;
  object-position: center;

  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

#carousel4 .promo-slide__person-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#carousel4 .promo-slide__person-copy strong {
  color: #ffffff;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.2;
}

#carousel4 .promo-slide__person-copy span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.25;
}


/* =========================================================
   FEATURES
   ========================================================= */

#carousel4 .promo-slide__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

#carousel4 .promo-slide__features span {
  display: inline-flex;
  align-items: center;

  min-height: 34px;
  padding: 7px 11px;

  color: #ffffff;
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1.1;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}


/* =========================================================
   ACTIONS
   ========================================================= */

#carousel4 .promo-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

#carousel4 .promo-slide__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 165px;
  min-height: 46px;
  margin: 0;
  padding: 11px 20px;

  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;

  border-radius: var(--as-radius-control);
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

#carousel4 .promo-slide__actions .btn:hover {
  transform: translateY(-1px);
}


/* Primary white button */

#carousel4 .promo-slide__actions .btn-light {
  color: var(--as-primary-dark);
  background: #ffffff;
  border: 1px solid #ffffff;
}

#carousel4 .promo-slide__actions .btn-light:hover,
#carousel4 .promo-slide__actions .btn-light:focus {
  color: var(--as-primary-deep);
  background: #eaf6ff;
  border-color: #eaf6ff;
}


/* Secondary outline button */

#carousel4 .promo-slide__actions .btn-outline-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

#carousel4 .promo-slide__actions .btn-outline-light:hover,
#carousel4 .promo-slide__actions .btn-outline-light:focus {
  color: var(--as-primary-dark);
  background: #ffffff;
  border-color: #ffffff;
}


/* =========================================================
   CONTROLS
   ========================================================= */

#carousel4 .carousel-control-prev,
#carousel4 .carousel-control-next {
  z-index: 4;
  width: 8vw;
  min-width: 56px;
  max-width: 100px;
  opacity: 0.82;
}

#carousel4 .carousel-control-prev:hover,
#carousel4 .carousel-control-next:hover {
  opacity: 1;
}

#carousel4 .carousel-control-prev-icon,
#carousel4 .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-color: transparent;
}


/* =========================================================
   INDICATORS
   ========================================================= */

#carousel4 .carousel-indicators {
  z-index: 4;
  margin-bottom: 12px;
}

#carousel4 .carousel-indicators li {
  box-sizing: content-box;
  width: 28px;
  height: 3px;
  margin-right: 4px;
  margin-left: 4px;

  cursor: pointer;

  background-color: #ffffff;
  background-clip: padding-box;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;

  opacity: 0.42;
  transition: opacity 0.2s ease;
}

#carousel4 .carousel-indicators li.active {
  opacity: 1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

  #carousel4,
  #carousel4 .carousel-inner,
  #carousel4 .carousel-inner > .carousel-item,
  #carousel4 .promo-slide,
  #carousel4 .promo-slide__image {
    height: 450px;
    min-height: 450px;
  }

  #carousel4 .promo-slide__content {
    left: 82px;
    right: 72px;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  #carousel4 .promo-slide__title {
    max-width: 700px;
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  #carousel4 .promo-slide__description {
    max-width: 680px;
    font-size: 0.94rem;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

  #carousel4,
  #carousel4 .carousel-inner,
  #carousel4 .carousel-inner > .carousel-item,
  #carousel4 .promo-slide,
  #carousel4 .promo-slide__image {
    height: 620px;
    min-height: 620px;
  }

  #carousel4 .promo-slide::after {
    background:
      linear-gradient(
        180deg,
        var(--promo-overlay-middle) 0%,
        var(--promo-overlay-start) 100%
      );
  }

  #carousel4 .promo-slide__content {
    left: 46px;
    right: 46px;

    align-items: center;
    justify-content: center;

    padding-top: 30px;
    padding-bottom: 54px;

    text-align: center;
  }

  #carousel4 .promo-slide__label {
    margin-right: auto;
    margin-left: auto;
    font-size: 0.7rem;
  }

  #carousel4 .promo-slide__title {
    max-width: 100%;
    font-size: 2rem;
    line-height: 1.08;
    text-align: center;
  }

  #carousel4 .promo-slide__description {
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
  }

  #carousel4 .promo-slide__person {
    justify-content: center;
    max-width: 100%;
  }

  #carousel4 .promo-slide__person-copy {
    text-align: left;
  }

  #carousel4 .promo-slide__features {
    justify-content: center;
    margin-bottom: 18px;
  }

  #carousel4 .promo-slide__features span {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  #carousel4 .promo-slide__actions {
    width: 100%;
    justify-content: center;
  }

  #carousel4 .promo-slide__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  #carousel4 .carousel-control-prev,
  #carousel4 .carousel-control-next {
    width: 44px;
    min-width: 44px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  #carousel4 .promo-slide__actions .btn,
  #carousel4 .carousel-indicators li {
    transition: none;
  }

}
