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

   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
*/

/* =========================================================
   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;
  }
}

p {
  font-size: 1.3em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0088dd;
  font-family: 'Philosopher', sans-serif;
  font-style: normal;
}

main h1 {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-weight: bold;
  font-size: 7vw;
}

@media (min-width: 768px) {
  main h1 {
    font-size: 5vw;
  }
}

@media (min-width: 992px) {
  main h1 {
    font-size: 3vw;
  }
}

main h2 {
  font-weight: bold;
  font-size: 2.5rem;
}

.base-block {
  background-color: #ffffff;
  padding: 0 0 3em;
}

.color_light_blue {
  color: #0088dd;
}

.color_dark_blue {
  color: #0055aa;
}

.my_dark_blue {
  background-color: #0055aa;
}

.my_light_blue {
  background-color: #0088dd;
}

.my_light {
  background-color: #ddd;
}

.my_yellow {
  background-color: #ffdd00;
}

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

.navbar {
  font-size: 1.08rem;
  background: linear-gradient(180deg, #1f95e8 0%, #1487dc 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: 6px;
  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: 10px;
  padding: 0.4rem;
  margin-top: 0.45rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.navbar .dropdown-item {
  color: #16324f !important;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
  background: #1487dc !important;
  color: #ffffff !important;
}

/* toggler */
.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 6px 10px;
  border-radius: 6px;
  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: 8px;
  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: #1487dc !important;
  border: 1px solid #d7e8f7 !important;
  border-radius: 8px;
}

.navbar .btn-outline-primary:hover,
.navbar .btn-outline-primary:focus,
.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
  background: #eaf6ff !important;
  color: #0f79c7 !important;
  border-color: #bcdcf5 !important;
}

/* =========================================================
   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: #a0eaff;
  padding: 2em 0;
}

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

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

.categories {
  position: relative;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #0d4f99 0%, #0a4586 100%);
  padding: 3.2rem 0 3.5rem;
  overflow: hidden;
}

.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;
}

.categories h1 {
  position: relative;
  margin-bottom: 1.8rem;
  color: #fff;
  text-align: center;
  font-family: 'Philosopher', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  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: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.categories .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  opacity: 0.45;
  pointer-events: none;
}

.categories .card:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.categories .card a {
  display: block;
  height: 100%;
  color: #fff;
  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: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.categories .card-title {
  margin: 0;
  color: #fff;
  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: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.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: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.35;
}

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

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

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

  .categories h1 {
    margin-bottom: 1.3rem;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .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 {
  background-color: #fff;
  padding: 2em 0 4em;
}

.announcements h1 {
  margin-bottom: 2rem;
  font-weight: 100;
  font-size: 3.5rem;
  font-style: normal;
}

.announcements .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: transparent;
  background-clip: border-box;
  border: 1px solid #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

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

.announcements .card img {
  border-radius: 0.25rem 0.25rem 0 0;
}

.announcements .card:hover .card-body {
  border-radius: 0 0 0.25rem 0.25rem;
  background-color: #0088dd;
}

.announcements .card a:hover .card-title {
  color: #ffffff;
}

.announcements > .container > .row .btn-primary {
  background-color: #1a63a2;
  border-color: #1a63a2;
}

.announcements > .container > .row .btn-primary:hover {
  background-color: #092c74;
  border-color: #092c74;
}

.announcements .card-title {
  margin-bottom: 0.2rem;
  color: #0055aa;
  font-weight: normal;
}

.announcements .card-text {
  color: #000;
  font-size: 1.2rem;
  line-height: 1.3;
}

.announcement {
  background-color: #0088dd;
}

.announcement h1 {
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 100;
  font-size: 3.5rem;
  font-style: normal;
}

.announcement .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  height: 100%;
}

.announcement .card:hover {
  background-color: #ddd;
}

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

.announcement .card img {
  border-radius: 0.25rem 0.25rem 0 0;
}

.announcement .card a:hover .card-title {
  color: #ffffff;
}

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

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

.announcement .btn-primary {
  background-color: #0055aa;
  border-color: #0055aa;
}

.announcement .btn-primary:hover {
  background-color: #0088dd;
  border-color: #0088dd;
}

.announcement .card-title {
  margin-bottom: 0.2rem;
  color: #0055aa;
  font-weight: normal;
}

.announcement .card-text {
  color: #000;
  font-size: 1.2rem;
  line-height: 1.3;
}

#announcements {
  background-color: #ffffff;
}

#announcements > .container {
  padding: 4rem 0;
}

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

#announcements > .container > .row > .col .btn-primary {
  background-color: #177794;
  border-color: #177794;
}

#announcements > .container > .row > .col .btn-primary:hover {
  background-color: #f6967d;
  border-color: #f6967d;
}

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

table {
  border: 1px solid red;
  border-bottom: 3px solid #d6f5ff;
}

table thead {
  background-color: #05a;
  color: white;
}

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

table tr:nth-of-type(even) {
  background-color: #f5f5f5;
}

table th,
table td {
  padding: 0.5rem 0.2rem !important;
  text-align: center;
  vertical-align: middle;
}

table th a,
table td a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none;
  color: #212529;
}

table th a:hover,
table td a:hover {
  color: #fff;
}

table th:hover,
table td:hover {
  background-color: darkorange;
}

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: #c9f;
}

table tr:hover {
  background-color: #0055aa;
  color: #ffffff;
}

table tr:hover a {
  color: #fff;
}

table tr:hover a:hover {
  background-color: darkorange;
}

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

main > .container .row > .col > .product_photos > .first_photo {
  background-color: #fff;
  padding: 1rem;
  margin: 0.6rem 0 1rem 0;
  border: #bbb 1px solid;
  border-radius: 5px;
}

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: #bbb 1px solid;
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: #ffffff;
}

.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 {
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  background: #fff;
  margin-bottom: 2rem;
}

.nav-border .nav-tabs {
  background-color: #dee2e6;
}

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

.nav-tabs .nav-item.show .nav-link:hover,
.nav-tabs .nav-link:hover {
  background-color: #f6967d;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #495057;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

/* =========================================================
   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: #1487dc;
  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: #0f5fb8;
}

.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: 4px;
  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: #534947;
  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 {
  width: 228px;
  background-color: #fff;
  position: absolute;
  top: 4.7rem;
  right: 0.4vw;
  padding: 0;
  border: 1px solid #bbb;
  z-index: 40;
}

.ad a {
  text-decoration: none;
  background-color: #f6f;
  color: #534947;
  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: #f4f3ef;
}

.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: #0088dd;
  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, 100, 200, 0.5);
}

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

.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: #0088dd;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.carousel-item.banner > .carousel-caption.banner_text {
  width: 70vw;
  bottom: auto;
  background-color: rgba(0, 100, 200, 0.5);
  border: #ffdd00 5px dotted;
}

.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, #0a1630 0%, #081224 100%);
  border-bottom: 1px solid #0f5fb8;
}

.personal h1 {
  margin-bottom: 1.7rem;
  text-align: center;
  color: #2f82d6;
  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: 22px;
  border: 1px solid rgba(95, 170, 240, 0.18);
  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(8, 33, 92, 0.96) 0%, rgba(7, 25, 73, 0.98) 100%);
}

.personal .darkblue-block {
  background: linear-gradient(180deg, rgba(13, 16, 73, 0.96) 0%, rgba(7, 7, 46, 0.98) 100%);
}

.personal .blue-block:hover,
.personal .darkblue-block:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 170, 240, 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: #39a0ff;
  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(75, 155, 235, 0.32);
  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: #78bcff;
}

.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: #1694ff;
}

.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 {
  background-color: #0088dd;
  color: #ffffff;
}

.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: #efefef;
  overflow-x: hidden;
}

.home-page .home-hero,
.home-page .home-section {
  padding: 18px 0;
}

.home-page .home-hero {
  padding-top: 22px;
  padding-bottom: 22px;
}

.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: #2f82d6;
  font-family: 'Philosopher', sans-serif;
  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: #111;
  font-size: 1.03rem;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}

.home-subtext {
  margin-top: 10px;
  color: #5f6b7a;
  max-width: 520px;
}

.home-page .home-image,
.home-page .home-product-image {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.home-page .home-image-round-desktop {
  border-radius: 18px;
}

.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: #2d64a8;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  line-height: 1.2;
  font-size: 0.96rem;
}

.home-page .home-section-blue {
  background: #0055aa;
}

.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: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, #1f9af0, #2fc7ff);
  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: #f5f9fc;
  border: 1px solid #dbe5ec;
  border-radius: 22px;
  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: #fff;
  border: 1px solid #dde3e8;
  border-radius: 18px;
  padding: 18px;
  min-height: 136px;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.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: #2f82d6;
}

.home-page .home-mini-card-link p {
  color: #111;
}

.home-page .home-mini-card-link::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #2f82d6;
  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: #fff;
  border: 1px solid #dde3e8;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.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: #fff;
  color: #3c6899 !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: #2f82d6 !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: #efefef !important;
}

/* buttons */
.home-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62em 1em;
  border-radius: 10px;
  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, #2493df, #37b0f1);
  box-shadow: 0 6px 14px rgba(36, 147, 223, 0.18);
}

.home-page .btn-primary:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #1f88d3, #2fa6e8);
  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: #4f7fa9;
  background: #f7fbfe;
  box-shadow: none;
}

.home-page .btn-outline-primary:hover {
  border-color: #afd3ee;
  color: #3f6d97;
  background: #eff7fc;
  box-shadow: none;
  text-decoration: none;
}

.home-page .btn-soft-cta {
  border: 1px solid #d8e9f7;
  color: #4c7aa3;
  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: 10px;
  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: 18px 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-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: 20px;
    padding-bottom: 20px;
  }

 .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;
  }
}

/* =========================================================
   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: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.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 {
  padding-top: 56px;
  padding-bottom: 56px;
}

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

.home-section-analysis .home-mini-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 22px;
  background: #f7fafc;
  border: 1px solid #d9e4ec;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.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 {
  padding-top: 56px;
  padding-bottom: 56px;
}

.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: 22px;
  background: #f7fafc;
  border: 1px solid #d9e4ec;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.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 {
  padding-top: 56px;
  padding-bottom: 56px;
}

.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 {
  padding-top: 56px;
  padding-bottom: 56px;
}

.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: 991.98px) {
  .home-section-analysis,
  .home-section-articles,
  .home-section-about,
  .home-section-news {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

@media (max-width: 767.98px) {
  .home-section-analysis,
  .home-section-articles,
  .home-section-about,
  .home-section-news {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .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;
  }
}

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

@media (max-width: 991.98px) {
  .home-section-analysis,
  .home-section-articles,
  .home-section-about,
  .home-section-news {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .home-section-analysis .home-image,
  .home-section-articles .home-image,
  .home-section-about .home-image,
  .home-section-news .home-image {
    max-width: 320px;
  }
}

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

@media (max-width: 767.98px) {
  .home-section-analysis,
  .home-section-articles,
  .home-section-about,
  .home-section-news {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .home-section-analysis .home-image,
  .home-section-articles .home-image,
  .home-section-about .home-image,
  .home-section-news .home-image {
    max-width: 100%;
    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 {
    width: 100%;
  }
}

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

@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
   ========================================================= */

/* одинаковый ритм секций */
.home-page .home-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

/* 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: #2f82d6;
  font-family: 'Philosopher', sans-serif;
  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;
}

/* mobile polish */
@media (max-width: 767.98px) {
  .home-page .home-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .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, #0055aa, #0088dd);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  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: 'Philosopher', sans-serif;
  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: 10px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

#pwa-install-btn {
  border: none;
  color: #0055aa;
  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%;
  }
}

