/* hepatolog.az - visual refresh layer.
   Sits on top of style.css: colour accents, depth and motion only.
   Layout, type scale and structure are untouched - remove this one file
   and the site is back to the original design. */

:root {
  --wine:        #7b1e31;
  --wine-deep:   #771c2e;
  --red:         #ca2e31;
  --coral:       #fc7575;
  --coral-soft:  rgba(252, 117, 117, 0.16);
  --surface:     #f2f7fa;
  --ink-soft:    rgba(22, 47, 98, 0.10);
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base polish ---------- */

/* every img now carries width/height for CLS; this keeps them fluid.
   Components that need a fixed box override it in their own stylesheet. */
img {
  max-width: 100%;
  height: auto;
}

html { scroll-behavior: smooth; }

::selection { background: var(--wine); color: #fff; }

a, button, .theme_btn, .features_item, .testimonial_item,
.latest_news .item, .scroll-top, .play_btn {
  transition: all 0.3s var(--ease);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- section headings: small accent rule ---------- */

.services_section .service_title .services_content h1,
.testimonial_section .testimonial_heading h2,
.about_section .about_content h1 {
  position: relative;
  padding-bottom: 16px;
}

.services_section .service_title .services_content h1::after,
.testimonial_section .testimonial_heading h2::after,
.about_section .about_content h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--wine) 100%);
}

/* ---------- top bar ---------- */

.top_header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top_header .top_header_content .content li a i {
  color: var(--coral);
}

.top_header .top_header_content .social_icon li a {
  opacity: 0.85;
}

.top_header .top_header_content .social_icon li a:hover {
  opacity: 1;
  color: var(--coral);
  transform: translateY(-2px);
}

/* ---------- main navigation ---------- */

.main_header .navbar-nav > li > a:not(.theme_btn) {
  position: relative;
}

.main_header .navbar-nav > li > a:not(.theme_btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main_header .navbar-nav > li > a:not(.theme_btn):hover::after {
  transform: scaleX(1);
}

.main_header ul li .dropdown-menu {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(22, 47, 98, 0.35);
  overflow: hidden;
}

.main_header ul li .dropdown-menu li a:hover {
  background: var(--surface);
  color: var(--wine);
  padding-left: 26px;
}

/* ---------- buttons ---------- */

.theme_btn {
  box-shadow: 0 10px 24px -12px rgba(119, 28, 46, 0.75);
}

.theme_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(119, 28, 46, 0.6);
}

/* ---------- hepatitis cards ---------- */

.features_section .features_item {
  border: 1px solid var(--ink-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px -4px rgba(22, 47, 98, 0.08);
}

.features_section .features_item .icon {
  transition: transform 0.35s var(--ease);
}

.features_section .features_item:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 22px 38px -20px rgba(119, 28, 46, 0.45);
}

.features_section .features_item:hover .icon {
  transform: translateY(-3px) scale(1.04);
}

.features_section .features_item a:hover {
  color: var(--coral);
}

/* ---------- elastometry block ---------- */

.about_section .expert_doctor li {
  transition: transform 0.25s var(--ease);
}

.about_section .expert_doctor li:hover {
  transform: translateX(3px);
}

.about_section .expert_doctor .icon.one {
  box-shadow: 0 0 0 4px rgba(38, 173, 142, 0.12);
}

/* ---------- doctor / contact tiles ---------- */

.technology_section .contact .media i {
  transition: transform 0.3s var(--ease);
}

.technology_section .contact .media:hover i {
  transform: translateY(-3px);
}

/* ---------- news cards ---------- */

.latest-news_section .latest_news .item {
  border-radius: 16px;
  box-shadow: 0 4px 18px -12px rgba(22, 47, 98, 0.35);
}

.latest-news_section .latest_news .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -22px rgba(22, 47, 98, 0.45);
}

.latest-news_section .latest_news .item:hover .images img {
  transform: scale(1.06);
}

.latest-news_section .latest_news .item .content .heading:hover {
  color: var(--coral);
}

.latest-news_section .latest_news .item .content .link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.latest-news_section .latest_news .item .content .link i {
  transition: transform 0.3s var(--ease);
}

.latest-news_section .latest_news .item .content .link:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.latest-news_section .latest_news .item .content .link:hover i {
  transform: translateX(4px);
}

/* ---------- carousel arrows ---------- */

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
  transition: all 0.3s var(--ease);
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(119, 28, 46, 0.7);
}

/* ---------- testimonials ---------- */

.testimonial_section .testimonial_item {
  border-left: 3px solid var(--coral);
  border-radius: 14px;
}

.testimonial_section .testimonial_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px -22px rgba(22, 47, 98, 0.4);
}

.testimonial_section .testimonial_item .media img {
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.testimonial_section .testimonial_item .media .media-body i {
  opacity: 0.45;
}

/* ---------- footer ---------- */

.footer_section {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--coral) 0%, var(--red) 50%, var(--wine) 100%) 1;
}

.footer_section .about_us ul li a,
.footer_section .contact_info ul li a {
  transition: all 0.3s var(--ease);
}

.footer_section .about_us ul li a:hover,
.footer_section .contact_info ul li a:hover {
  color: var(--coral);
}

.footer_section .about_us ul li a:hover {
  transform: translateY(-2px);
}

/* ---------- back to top ---------- */

.scroll-top:hover {
  background: var(--coral);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -14px rgba(119, 28, 46, 0.8);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }

  /* WOW.js держит блок в visibility:hidden, пока его не прокрутят в вид.
     Тому, кто просил убрать анимации, показываем содержимое сразу:
     иначе при отключённом движении блок может остаться невидимым. */
  .wow { visibility: visible !important; animation-name: none !important; }
}

/* ---------- second pass ---------- */

/* a touch more air under the accent rule */
.services_section .service_title .services_content h1,
.testimonial_section .testimonial_heading h2,
.about_section .about_content h1 {
  padding-bottom: 22px;
}

/* light sections get a soft vertical wash instead of a flat fill */
.about_section,
.latest-news_section {
  background-image: linear-gradient(180deg, #f7fbfd 0%, var(--surface) 100%);
}

/* footer: accent the heading rules and tint the icons like the top bar */
.footer_section .about_us h2:after,
.footer_section .contact_info h2:after {
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--coral) 0%, rgba(252, 117, 117, 0.25) 100%);
}

.footer_section .contact_info ul li i {
  color: var(--coral);
}

.footer_section .about_us ul li a {
  border-radius: 50%;
}

.footer_section .about_us ul li a:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* video play buttons */
.play_btn:hover {
  transform: scale(1.06);
}

/* doctor block: divider gets a hint of colour */
.technology_section .contact {
  position: relative;
}

/* article body images sit better with a soft frame */
.services_details_section img.fr-dib,
.services_details_section img.fr-dii {
  border-radius: 10px;
  box-shadow: 0 10px 30px -18px rgba(22, 47, 98, 0.55);
}

/* ---------- hero ---------- */

.banner_section .banner_content h1 {
  position: relative;
  padding-top: 20px;
}

.banner_section .banner_content h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral) 0%, rgba(252, 117, 117, 0.2) 100%);
}

.banner_section .banner_content p {
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- article sidebar ---------- */

.services_details_section .category h2:before {
  width: 56px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--wine) 100%);
}

.services_details_section .widget {
  border-radius: 14px;
}

.services_details_section .category .media {
  transition: transform 0.25s var(--ease);
}

.services_details_section .category .media:hover {
  transform: translateX(3px);
}

/* ============ inner pages ============ */

/* ---------- page banner ---------- */

/* Page banner without a photo: the whole background is CSS, nothing is loaded.
   Deep wine base, two soft coral glows and a faint diagonal weave for texture. */

.pages_banner {
  /* плашка была во весь экран — для служебного заголовка это много */
  padding: 62px 0 58px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(252, 117, 117, 0.30) 0%, rgba(252, 117, 117, 0) 55%),
    radial-gradient(90% 120% at 6% 100%, rgba(22, 47, 98, 0.55) 0%, rgba(22, 47, 98, 0) 60%),
    linear-gradient(105deg, #6b1729 0%, var(--wine) 45%, #8d2740 100%);
}

.pages_banner:before {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 26px),
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(255, 255, 255, 0) 1px 34px);
}

/* soft light spilling from the top right corner */
.pages_banner:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  right: -8%;
  width: 46%;
  padding-bottom: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0) 68%);
}

.pages_banner .pages_banner_content h1,
.pages_banner .pages_banner_content h2 {
  position: relative;
  padding-top: 18px;
  padding-bottom: 6px;
  font-size: 38px;
  line-height: 1.2;
}

.pages_banner .pages_banner_content h1::before,
.pages_banner .pages_banner_content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral) 0%, rgba(252, 117, 117, 0.2) 100%);
}

/* the breadcrumb link was falling back to the default browser blue */
.speedbar1 a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s var(--ease);
}

.speedbar1 a:hover {
  color: var(--coral);
}

/* ---------- listing pagination ---------- */

.navigation {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.navigation .pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navigation .pages a,
.navigation .pages span,
.navigation .page_prev,
.navigation .page_next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.navigation .pages a {
  color: var(--wine);
  background: #fff;
  border: 1px solid var(--ink-soft);
}

.navigation .pages a:hover {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -12px rgba(252, 117, 117, 0.9);
}

.navigation .pages span {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--wine-deep) 100%);
  box-shadow: 0 12px 22px -14px rgba(119, 28, 46, 0.9);
}

/* the prev/next arrows referenced an SVG sprite the page never shipped */
/* the wrapper holds both arrows; unwrap it so they can flank the numbers */
.navigation .page_next-prev {
  display: contents;
}

.navigation .page_prev { order: -1; }
.navigation .page_next { order: 1; }

/* стрелку рисует ::before — иконку из разметки прячем, иначе их две */
.navigation .page_prev svg,
.navigation .page_next svg,
.navigation .page_prev i,
.navigation .page_next i {
  display: none;
}

.navigation .page_prev,
.navigation .page_next {
  background: #fff;
  border: 1px solid var(--ink-soft);
  color: var(--wine);
}

.navigation .page_prev::before,
.navigation .page_next::before {
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
}

.navigation .page_prev::before { content: "\f060"; }
.navigation .page_next::before { content: "\f061"; }

.navigation .page_prev a,
.navigation .page_next a,
.navigation .page_prev > span,
.navigation .page_next > span {
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.navigation .page_prev,
.navigation .page_next {
  position: relative;
}

.navigation .page_prev:hover,
.navigation .page_next:hover {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
  transform: translateY(-2px);
}

/* без ссылки внутри — идти некуда, гасим стрелку */
.navigation .page_prev:has(> span),
.navigation .page_next:has(> span) {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- contact page ---------- */

.contact_us_page .items {
  border: 1px solid var(--ink-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px -4px rgba(22, 47, 98, 0.08);
  transition: all 0.3s var(--ease);
}

.contact_us_page .items:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 22px 38px -20px rgba(119, 28, 46, 0.45);
}

.contact_us_page .items .icon {
  transition: transform 0.35s var(--ease);
}

.contact_us_page .items:hover .icon {
  transform: translateY(-3px) scale(1.04);
}

.contact_us_page .items .content a:hover {
  color: var(--coral);
}

.map_area {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--coral) 0%, var(--red) 50%, var(--wine) 100%) 1;
}

.map_area iframe {
  display: block;
}

/* ---------- about page ---------- */

.about_section_pages_three h3 {
  position: relative;
  padding-left: 18px;
  margin-top: 34px;
  margin-bottom: 14px;
}

.about_section_pages_three h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--coral) 0%, var(--wine) 100%);
}

.about_section_pages_three .about_images img {
  border-radius: 16px;
  box-shadow: 0 26px 50px -28px rgba(22, 47, 98, 0.6);
}

/* ---------- 404 ---------- */

.error_block {
  text-align: center;
  padding: 40px 20px 20px;
}

.error_block .error_code {
  display: block;
  font-size: 110px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--red) 0%, var(--wine-deep) 60%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error_block h3 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 600;
  color: var(--wine);
}

.error_block p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 30px;
}

.error_block .theme_btn {
  margin: 30px auto 0;
}

/* ---------- lightbox (magnific-popup) ---------- */
/* the theme asked for mainClass "mfp-fade" but never defined it */

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mfp-fade.mfp-bg.mfp-ready { opacity: 0.9; }
.mfp-fade.mfp-bg.mfp-removing { opacity: 0; }

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: scale(0.97);
  transition: all 0.3s var(--ease);
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: scale(1);
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: scale(0.97);
}

.mfp-bg { background: #14181f; }

.mfp-img { border-radius: 10px; }

.mfp-title {
  padding-top: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.mfp-counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.mfp-arrow:hover { opacity: 1; }

/* ---------- language switcher ---------- */

.top_header .lang_switch ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 18px 0 0;
  padding: 0;
  list-style: none;
}

.top_header .lang_switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.3s var(--ease);
}

.top_header .lang_switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.top_header .lang_switch a.is_active {
  color: #fff;
  background: var(--coral);
}

@media (max-width: 767px) {
  .top_header .lang_switch ul { margin-right: 10px; }
  .top_header .lang_switch a { min-width: 28px; padding: 3px 6px; font-size: 12px; }
}

/* ---------- language switcher (header) ---------- */

.hep_lang {
  position: relative;
  margin-left: auto;
  margin-right: 18px;
}

.hep_lang_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.hep_lang_btn:hover,
.hep_lang.show .hep_lang_btn {
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: 0 10px 20px -14px rgba(119, 28, 46, 0.8);
}

.hep_lang_btn .fa-angle-down {
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}

.hep_lang.show .hep_lang_btn .fa-angle-down {
  transform: rotate(180deg);
}

.hep_lang_flag {
  font-size: 16px;
  line-height: 1;
}

.hep_lang_menu.dropdown-menu {
  right: 0;
  left: auto;
  min-width: 190px;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 44px -20px rgba(22, 47, 98, 0.45);
}

.hep_lang_option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--wine);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.hep_lang_option .fa-check {
  margin-left: auto;
  font-size: 12px;
  color: var(--coral);
}

.hep_lang_option:hover {
  background: var(--surface);
  color: var(--wine);
  padding-left: 16px;
}

.hep_lang_option.is_active {
  background: var(--coral-soft);
  font-weight: 600;
}

@media (max-width: 991px) {
  .hep_lang { margin-right: 14px; }
  .hep_lang_btn { padding: 7px 12px; font-size: 13px; }
}

/* on desktop the switcher belongs at the end of the navbar, after the CTA;
   on mobile it stays next to the burger, where the DOM already puts it */
@media (min-width: 992px) {
  .main_header .navbar .navbar-brand { order: 1; }
  .main_header .navbar .navbar-collapse { order: 2; }
  .main_header .navbar .hep_lang { order: 3; margin-left: 20px; margin-right: 0; }
}

/* the switcher takes room in the navbar; keep the menu on one line */
@media (min-width: 992px) {
  .main_header .navbar-nav > li > a { white-space: nowrap; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .main_header .navbar-nav > li > a:not(.theme_btn) { padding: 0 12px; }
  .main_header ul li .theme_btn { width: 150px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .main_header .navbar-nav > li > a:not(.theme_btn) { padding: 0 8px; font-size: 14px; }
  .main_header ul li .theme_btn { width: 120px; font-size: 14px; }
  .main_header .navbar .hep_lang { margin-left: 12px; }
  .hep_lang_btn { padding: 7px 10px; font-size: 13px; }
}

/* the logo is 251px wide; on narrow screens the switcher shrinks to flag + caret
   so the brand, switcher and burger stay on one row.

   Переносы у .navbar трогать нельзя: в Bootstrap 4 у .navbar-collapse
   flex-basis:100%, и раскрытое меню встаёт на свою строку под шапкой именно
   переносом. Сам Bootstrap ставит nowrap только от 992px и вместе с
   flex-basis:auto. Здесь nowrap загонял открытое меню в один ряд с логотипом,
   звонком, переключателем и гамбургером — оно раскрывалось, но сплющивалось
   в полоску без вёрстки. Верхняя строка держится не запретом переноса,
   а тем, что логотип ужимается (правила ниже). */
@media (max-width: 991px) {
  .main_header .navbar { flex-wrap: wrap; }
  .main_header .navbar > .navbar-collapse { flex-basis: 100%; width: 100%; }
  .main_header .navbar-brand { flex: 0 1 auto; min-width: 0; }
  .main_header .navbar-brand img { max-width: 100%; height: auto; }
}

@media (max-width: 575px) {
  .hep_lang_btn { gap: 6px; padding: 7px 9px; }
  .hep_lang_btn .hep_lang_code { display: none; }
  .main_header .navbar-brand img { width: 190px; }
}

/* menu labels are stored in natural case in the admin; the caps are presentation */
.main_header .navbar-nav > li > a {
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .pages_banner {
    padding: 42px 0 38px;
  }

  .pages_banner .pages_banner_content h1,
  .pages_banner .pages_banner_content h2 {
    font-size: 27px;
    padding-top: 15px;
  }
}

/* ---------- theme button: ширина по тексту ---------- */
/* в теме .theme_btn был жёстко 180px, и длинная подпись («Записаться на приём»)
   ломалась на две строки — кнопка становилась вдвое выше */

.theme_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
  max-width: 100%;
  padding: 0 28px;
  line-height: 58px;
  white-space: nowrap;
}

.main_header ul li .theme_btn {
  width: auto;
  min-width: 150px;
  padding: 0 26px;
  line-height: 58px;
}

@media (max-width: 480px) {
  .theme_btn {
    min-width: 0;
    padding: 0 22px;
    font-size: 15px;
  }
}

/* ---------- звонок в шапке на мобильном ---------- */
/* на десктопе телефон и так виден в верхней полосе, кнопка нужна только там,
   где меню сворачивается в гамбургер */

.hep_call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--wine-deep) 100%);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 20px -12px rgba(119, 28, 46, 0.9);
}

.hep_call:hover,
.hep_call:focus { color: #fff; transform: translateY(-2px); }

@media (max-width: 991px) {
  .hep_call { display: inline-flex; }
}

/* пальцу нужно не меньше 44px: переключатель языка и гамбургер были мельче */
@media (max-width: 991px) {
  .main_header .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hep_lang_btn {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ---------- вступление на главной ---------- */

.hm_intro { padding-top: 56px; padding-bottom: 0; }

.hm_intro_box {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 34px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--ink-soft);
  text-align: center;
}

.hm_intro_box h2 {
  margin-bottom: 12px;
  font-size: 26px;
  color: var(--wine);
}

.hm_intro_box p {
  margin: 0;
  color: #4a5568;
  font-size: 17px;
  line-height: 30px;
}

@media (max-width: 767px) {
  .hm_intro { padding-top: 40px; }
  .hm_intro_box { padding: 24px 20px; }
  .hm_intro_box h2 { font-size: 21px; }
  .hm_intro_box p { font-size: 16px; line-height: 28px; }
}

/* ---------- служебные ссылки в подвале ---------- */
/* добавлялись как обычный <p> и наследовали стиль абзаца «о сайте» —
   выглядели куском текста, а не ссылками */

.footer_section .about_us .footer_legal {
  margin-top: 14px;
  margin-bottom: 26px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.55);
}

.footer_section .about_us .footer_legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  transition: all 0.3s var(--ease);
}

.footer_section .about_us .footer_legal a:hover {
  color: #fff;
  border-bottom-color: var(--coral);
}


/* ---------- горизонтальный оверфлоу ---------- */
/* карусель на главной давала 5px переполнения на узких экранах.
   clip, а не hidden: не создаёт лишний контейнер прокрутки */

html,
body {
  overflow-x: clip;
}

/* ---------- герой: фоновая картинка только на десктопе ---------- */
/* head1.webp весит 59 КБ и была LCP-элементом страницы. На телефоне она всё
   равно обрезается до неузнаваемости, поэтому там фон рисуем средствами CSS —
   в той же гамме, что и .pages_banner, — и картинку не скачиваем вообще.
   Картинка объявлена внутри min-width: браузер на узком экране её не запросит. */
.banner_section {
  /* position + z-index обязательны: без них ::before с inset:0 привяжется
     не к секции, а к ближайшему позиционированному предку. Тот же приём,
     что у .pages_banner — отрицательный z-index кладёт штриховку поверх
     фона секции, но под её содержимое */
  position: relative;
  z-index: 1;
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(252, 117, 117, 0.30) 0%, rgba(252, 117, 117, 0) 55%),
    radial-gradient(90% 120% at 6% 100%, rgba(22, 47, 98, 0.55) 0%, rgba(22, 47, 98, 0) 60%),
    linear-gradient(105deg, #6b1729 0%, var(--wine) 45%, #8d2740 100%);
}

/* лёгкая штриховка поверх градиента — тот же приём, что у служебных шапок,
   чтобы плашка не читалась плоской заливкой */
.banner_section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 26px),
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(255, 255, 255, 0) 1px 34px);
}

@media (min-width: 768px) {
  /* десктоп — ровно как было: только картинка, без наложений */
  .banner_section {
    background: url(../images/head1.webp) center / cover no-repeat;
  }

  .banner_section::before { content: none; }
}
