/* ================================
   CLEAN CORPORATE (MED/SERVICE)
   Patch for user.css (append last)
   Fonts: Manrope + Inter
================================ */

/* Лучше поместить это в начало user.css */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');
*/
:root{
  /* Brand */
  --brand: #6d1024;        /* бордо (основной) */
  --brand-600: #5b0d1e;
  --brand-050: #fbf5f7;

  --accent2: #1f3a5f;      /* сине-серый (вторичный) */
  --accent2-050: #f1f5fb;

  /* Neutrals */
  --black: #0b1220;
  --simple-text: #1f2937;
  --grey-text: #334155;
  --light-text: #64748b;
  --grey-icon: #94a3b8;

  --line: #e6eaf2;
  --grey-bg: #f6f8fc;
  --white: #ffffff;

  /* Replace old theme vars */
  --red: var(--brand);
  --blue: var(--accent2);
  --blue-hover: #163255;

  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --second-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base typography & rhythm */
html { scroll-behavior: smooth; }
body{
  font-family: var(--font-family);
  color: var(--simple-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p{
  font-size: 16px;
  line-height: 1.65;
  color: var(--simple-text);
}

div h2{
  font-family: var(--second-family);
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--black);
}

a{
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent2) 30%, transparent);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Header: make it calmer + emphasize phone */
.header__block-1{
  background: linear-gradient(90deg, var(--accent2), color-mix(in srgb, var(--accent2) 78%, #000 22%));
}

.header__block-2{
  background: var(--white);
}

.logo > div > span:nth-child(1){
  font-family: var(--second-family);
  letter-spacing: -0.02em;
}

/* Contacts as primary UX (call + request) */
ul.contacts{
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

ul.contacts li span{
  color: var(--light-text);
  font-size: 12px;
  line-height: 1.2;
}

ul.contacts li a{
  font-family: var(--second-family);
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* First phone = "CTA pill" (without changing HTML) */
ul.contacts li:first-child a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  color: var(--brand);
}

ul.contacts li:first-child a:hover{
  background: color-mix(in srgb, var(--brand) 14%, var(--white));
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}

/* Second phone calmer */
ul.contacts li:nth-child(2) a{
  font-weight: 650;
  color: var(--simple-text);
  opacity: .9;
}

/* Search input: cleaner */
.header__search > input{
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--grey-bg);
  transition: border-color .2s ease, background .2s ease;
}
.header__search > input:focus{
  border-color: color-mix(in srgb, var(--accent2) 35%, var(--line));
  background: var(--white);
}

/* Menu: clean corporate */
.header__block-3{
  border-top: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.header__nav{
  font-family: var(--second-family);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header__nav > li > a{
  padding: 14px 0;
  color: var(--black);
  transition: color .2s ease, opacity .2s ease;
}

.header__nav > li:hover > a{
  color: var(--brand);
}

/* current item underline (works if Joomla adds aria-current="page") */
.header__nav > li > a[aria-current="page"]{
  color: var(--brand);
  position: relative;
}
.header__nav > li > a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand) 70%, var(--accent2) 30%);
}

/* Dropdown: smaller padding, softer look */
.header__nav > li > ul{
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 18px;
  gap: 6px;
  transform: translateX(-18px);
}

.header__nav > li > ul a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--simple-text);
  transition: background .15s ease, color .15s ease;
}

.header__nav > li > ul a:hover{
  background: color-mix(in srgb, var(--accent2) 8%, var(--white));
  color: var(--accent2);
}

/* Buttons: unify (your .btn class exists) */
.btn,
button{
  border-radius: 14px;
}

.btn{
  font-family: var(--second-family);
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease, border-color .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

/* Services cards: less “table”, more “calm tiles” */
.services__list > li > a{
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .2s ease;
}

.services__list > li > a:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--accent2) 20%, var(--line));
}

/* FAQ: keep premium but more readable */
.faq{
  background: #121826;
}
.faq *{
  letter-spacing: -0.01em;
}
.faq__item{
  border-color: color-mix(in srgb, var(--white) 12%, transparent);
}

/* Mobile: phone is priority */
@media (max-width: 600px){
  ul.contacts{
    border-left: 0;
    padding-left: 0;
  }
  ul.contacts li:first-child a{
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
}

/* =========================
   PATCH #2: Phones + polish
   Paste at the VERY end
========================= */

/* 1) Phones: both prominent, first is primary */
ul.contacts{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

ul.contacts li{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

ul.contacts li span{
  font-size: 12px;
  color: var(--light-text);
  letter-spacing: 0.01em;
}

/* common phone style */
ul.contacts li a{
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* primary phone pill (Russia) */
ul.contacts li:first-child a{
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* secondary phone pill (Moscow) — noticeable but calmer */
ul.contacts li:nth-child(2) a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent2) 6%, var(--white));
  border: 1px solid color-mix(in srgb, var(--accent2) 20%, var(--line));
  color: var(--accent2);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

ul.contacts li:nth-child(2) a:hover{
  background: color-mix(in srgb, var(--accent2) 9%, var(--white));
  border-color: color-mix(in srgb, var(--accent2) 28%, var(--line));
}

/* 2) Header spacing polish */
.header__block-2{
  border-bottom: 1px solid var(--line);
}

.header__block-2 > div{
  padding-top: 10px;
  padding-bottom: 10px;
}

/* search aligns nicer with phones */
.header__search > input{
  height: 48px;
  font-size: 15px;
}
.header__search > i{
  opacity: .65;
}

/* 3) Menu: more premium line + calmer hover */
.header__nav > li > a{
  font-size: 16px;
  padding: 16px 0;
}

.header__nav > li > a[aria-current="page"]::after{
  height: 2px;
  bottom: -3px;
  opacity: .9;
}

/* dropdown slightly tighter */
.header__nav > li > ul{
  padding: 14px;
  border-radius: 14px;
}

/* 4) Hero button "Оставить заявку": premium, not bulky */
.intro a.btn,
.intro .btn{
  border-radius: 16px;
  font-size: 16px;
  padding: 16px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, #000 8%), var(--brand-600));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, #000 65%);
  box-shadow: 0 18px 45px rgba(109, 16, 36, 0.22);
}

.intro a.btn:hover,
.intro .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(109, 16, 36, 0.28);
}

/* 5) Mobile: phone first, full width */
@media (max-width: 600px){
  ul.contacts{
    gap: 10px;
  }
  ul.contacts li{
    min-width: 0;
    width: 100%;
  }
  ul.contacts li:first-child a,
  ul.contacts li:nth-child(2) a{
    width: 100%;
  }
  ul.contacts li a{
    font-size: 18px;
  }
}

/* =========================
   PATCH #3: Search align + Mega menu compact
   Paste at the VERY end
========================= */

/* --- SEARCH ALIGN FIX --- */
.header__search{
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;            /* единая высота */
  min-height: 48px;
}

.header__search > input{
  height: 48px;
  line-height: 48px;       /* чтобы текст по центру */
  padding: 0 56px 0 18px;  /* справа место под иконку */
  border-radius: 16px;
}

.header__search > i{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .65;
}

/* если вдруг иконка - это не <i>, а svg/span внутри */
.header__search svg,
.header__search span[class*="icon"]{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* --- TOP NAV HEIGHT / RHYTHM --- */
.header__block-3 .pr-nav__inner{
  padding-top: 6px;
  padding-bottom: 6px;
}

.header__nav{
  gap: 28px; /* чуть компактнее */
}

.header__nav > li > a{
  padding: 12px 0;     /* было жирнее — делаем спокойней */
  font-size: 16px;
}

/* --- MEGA MENU COMPACT & CLEAN --- */
.header__nav > li{
  position: relative;
}

/* сам выпадающий блок */
.header__nav > li > ul.mod-menu__sub{
  margin-top: 10px;
  padding: 14px 16px;          /* компактнее */
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
  min-width: 860px;            /* чтобы колонки не ломались */
  max-width: min(1100px, calc(100vw - 48px));
  overflow: hidden;
}

/* сетка внутри (у вас там 4 колонки по виду) */
.header__nav > li > ul.mod-menu__sub{
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  column-gap: 18px;
  row-gap: 6px;
  align-content: start;
}

/* элементы списка */
.header__nav > li > ul.mod-menu__sub > li{
  margin: 0;
  padding: 0;
}

/* ссылки внутри */
.header__nav > li > ul.mod-menu__sub a{
  display: block;
  padding: 9px 10px;        /* меньше отступы */
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--simple-text);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}

/* hover аккуратно */
.header__nav > li > ul.mod-menu__sub a:hover{
  background: color-mix(in srgb, var(--accent2) 7%, var(--white));
  color: var(--accent2);
  transform: translateY(-1px);
}

/* более “важные” пункты можно выделить без разметки:
   если есть длинные пункты — делаем им переносы мягче */
.header__nav > li > ul.mod-menu__sub a{
  white-space: normal;
}

/* --- Responsive for mega menu --- */
@media (max-width: 1100px){
  .header__nav > li > ul.mod-menu__sub{
    min-width: 0;
    width: calc(100vw - 32px);
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px){
  .header__nav > li > ul.mod-menu__sub{
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .header__nav > li > ul.mod-menu__sub a{
    padding: 10px 10px;
    font-size: 15px;
  }
}

.header__nav > li > ul.mod-menu__sub{
  left: 0;
  right: auto;
}

/* =========================
   Header "Official clinic" info card
========================= */

.header__service{
  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 56px;
  padding: 10px 14px;

  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--accent2) 4%, #ffffff));
  border: 1px solid var(--line);
  border-radius: 16px;

  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.header__service-icon{
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;

  color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 8%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent2) 18%, var(--line));
}

.header__service-text{
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
}

.header__service-title{
  grid-column: 1 / 2;
  font-family: var(--second-family);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  font-size: 15.5px;
  line-height: 1.2;
}

.header__service-subtitle{
  grid-column: 1 / 2;
  color: var(--light-text);
  font-size: 13.5px;
  line-height: 1.2;
}

.header__service-badge{
  grid-column: 2 / 3;
  grid-row: 1 / 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 12px;
  border-radius: 999px;

  font-family: var(--second-family);
  font-weight: 750;
  letter-spacing: -0.01em;

  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}

/* адаптив: на узких экранах плашка становится компактнее */
@media (max-width: 900px){
  .header__service{
    padding: 10px 12px;
  }
  .header__service-title{ font-size: 15px; }
  .header__service-subtitle{ font-size: 13px; }
}

@media (max-width: 600px){
  .header__service{
    width: 100%;
    border-radius: 14px;
    gap: 12px;
  }
  .header__service-icon{
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .header__service-text{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .header__service-badge{
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    justify-self: start;
    padding: 7px 11px;
  }
}


.header__search { display:none !important; }



/* =========================
   Swap: service card first, phones right
   (flex order)
========================= */

.header__block-2 > .container{
  display: flex;
  align-items: center;
  gap: 18px;
}

/* логотип слева */
.header__block-2 .logo{ order: 1; }

/* плашка "служба" — сразу после лого */
.header__block-2 .header__service{ order: 2; flex: 1 1 520px; }

/* телефоны — правее */
.header__block-2 ul.contacts{ order: 3; flex: 0 0 auto; margin-left: auto; }

/* если вдруг в шапке есть ещё блоки — поиск/прочее */
.header__block-2 .header__search{ order: 4; }

.header__service{
  max-width: 640px;
}

ul.contacts{ gap: 10px; }
ul.contacts li{ min-width: 200px; }

@media (max-width: 768px){
  .header__block-2 > .container{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  ul.contacts{ order: 1; width: 100%; }
  .header__service{ order: 2; width: 100%; }
  .logo{ order: 3; }
}


/* =========================
   PATCH #4: header service card — "ideal" + mobile fix
   Paste at the VERY end
========================= */

/* Desktop: make the card calmer/compact */
.header__service{
  min-height: 52px;          /* было высоковато */
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 720px;          /* чтобы не разъезжалось */
}

.header__service-text{
  row-gap: 1px;
}

.header__service-title{
  font-size: 15px;
}

.header__service-subtitle{
  font-size: 13.2px;
}

/* Badge: slightly smaller + more "medical" */
.header__service-badge{
  padding: 7px 11px;
  font-size: 13.5px;
  border-radius: 999px;
}

/* Icon: slightly smaller */
.header__service-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

/* Ensure it never stretches vertically inside flex/grid parents */
.header__service,
.header__service *{
  align-self: center;
}

.header__service{
  height: auto !important;
  max-height: none !important;
}

/* --------------------------------
   MOBILE: stop huge empty block
--------------------------------- */
@media (max-width: 768px){

  /* The header container must NOT stretch children */
  .header__block-2 > .container{
    align-items: flex-start !important;
  }

  /* Service card becomes compact row/stack */
  .header__service{
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    padding: 12px 12px;
    border-radius: 14px;

    /* crucial: prevent growth */
    flex: 0 0 auto !important;
    align-self: stretch !important;
  }

  .header__service-text{
    grid-template-columns: 1fr;                 /* stack */
    grid-template-rows: auto auto auto;
    row-gap: 4px;
    column-gap: 0;
    align-items: start;
  }

  .header__service-title{
    font-size: 15px;
    line-height: 1.15;
  }

  .header__service-subtitle{
    font-size: 13px;
    line-height: 1.25;
  }

  .header__service-badge{
    justify-self: start;
    width: fit-content;
    padding: 7px 11px;
    font-size: 13.5px;
  }
}

/* Extra hard fix if some global rule sets min-height for blocks */
.header__service{ min-height: 0; }


/* If mobile search icon/button remains */
.header__search,
.header__search *{
  display: none !important;
}


/* =========================
   Mobile: hide header search icon/button (loupe)
========================= */
@media (max-width: 768px){

  /* если это кнопка/ссылка с aria-label */
  header a[aria-label*="поиск" i],
  header a[aria-label*="search" i],
  header button[aria-label*="поиск" i],
  header button[aria-label*="search" i],
  header a[title*="поиск" i],
  header button[title*="поиск" i]{
    display: none !important;
  }

  /* частые классы/иконки */
  header .icon-search,
  header .fa-search,
  header .fas.fa-search,
  header .bi-search,
  header [class*="search" i],
  header [class*="finder" i]{
    display: none !important;
  }

  /* если иконка в svg */
  header svg[aria-label*="search" i],
  header svg[title*="search" i]{
    display: none !important;
  }
}

/* =========================
   Second trust badge рядом с "Круглосуточно"
   Текст можно менять в content
========================= */

.header__service-badge{
  display: inline-flex;
  gap: 10px;
}

/* второй бейдж */
.header__service-badge::after{
  content: "Официальная служба"; /* ← можно поменять */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 11px;
  border-radius: 999px;

  font-family: var(--second-family);
  font-weight: 750;
  letter-spacing: -0.01em;

  color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 7%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent2) 22%, var(--line));
}

@media (max-width: 600px){
  .header__service-badge{
    flex-wrap: wrap;
    row-gap: 8px;
  }
}


/* Hide mobile search icon button */
@media (max-width: 768px){
  header button.icon-34{
    display: none !important;
  }
}



/* =========================
   blackbtn: версия в стиле клиники (не черная)
========================= */

.blackbtn{
  appearance: none;
  border: 0;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 18px;
  min-width: 150px;

  border-radius: 14px;
  font-family: var(--second-family);
  font-weight: 750;
  letter-spacing: -0.01em;
  font-size: 14.5px;

  color: #fff;
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 76%, #000 24%));
  border: 1px solid color-mix(in srgb, var(--accent2) 35%, #000 65%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);

  transition: transform .12s ease, box-shadow .15s ease, filter .2s ease;
}

.blackbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  filter: brightness(1.03);
}

.blackbtn:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.blackbtn:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent2) 35%, transparent);
  outline-offset: 2px;
  border-radius: 16px;
}


/* =========================
   Intro slider products: align price + button perfectly
   (only for .intro__slider-wrapper)
========================= */

/* карточка товара — делаем нормальную вертикальную структуру */
.intro__slider-wrapper .swiper-slide.product{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* заголовок пусть занимает место, а низ всегда прижат */
.intro__slider-wrapper .swiper-slide.product h3{
  margin-bottom: 14px;
}

/* блок "цена + кнопка" — всегда внизу и ровной сеткой */
.intro__slider-wrapper .swiper-slide.product > div{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

/* цена — спокойная, читаемая */
.intro__slider-wrapper .swiper-slide.product > div > span{
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--black);
  white-space: nowrap;
}

/* кнопка: одинаковая высота/ширина, стиль "клиника" */
.intro__slider-wrapper .swiper-slide.product .blackbtn{
  appearance: none;
  border: 0;
  cursor: pointer;

  height: 44px;
  min-width: 170px;
  padding: 0 18px;

  border-radius: 16px;

  font-family: var(--second-family);
  font-weight: 750;
  font-size: 14.5px;
  letter-spacing: -0.01em;

  color: #fff;
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 76%, #000 24%));
  border: 1px solid color-mix(in srgb, var(--accent2) 35%, #000 65%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);

  transition: transform .12s ease, box-shadow .15s ease, filter .2s ease;
}

.intro__slider-wrapper .swiper-slide.product .blackbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.20);
  filter: brightness(1.03);
}

.intro__slider-wrapper .swiper-slide.product .blackbtn:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.intro__slider-wrapper .swiper-slide.product .blackbtn:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent2) 35%, transparent);
  outline-offset: 2px;
}

/* Мобилка: чтобы не ломалось — кнопка уходит вниз, цена остаётся слева */
@media (max-width: 520px){
  .intro__slider-wrapper .swiper-slide.product > div{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .intro__slider-wrapper .swiper-slide.product > div > span{
    width: 100%;
  }
  .intro__slider-wrapper .swiper-slide.product .blackbtn{
    width: 100%;
    min-width: 0;
  }
}


/* =========================
   Price tabs: button "Подробней" as premium clinic CTA
========================= */

.price__tab-item{
  border-radius: 18px;
  overflow: hidden;
}

/* нижняя часть карточки — чуть аккуратнее по отступам */
.price__tab-item > div:last-child{
  padding: 18px 22px 22px;
}

/* кнопка-ссылка */
.price__tab-item a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  min-width: 170px;
  padding: 0 18px;

  border-radius: 16px;

  font-family: var(--second-family);
  font-weight: 750;
  font-size: 14.5px;
  letter-spacing: -0.01em;

  color: #fff;
  text-decoration: none;

  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 76%, #000 24%));
  border: 1px solid color-mix(in srgb, var(--accent2) 35%, #000 65%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);

  transition: transform .12s ease, box-shadow .15s ease, filter .2s ease;
}

/* hover */
.price__tab-item a:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  filter: brightness(1.03);
}

/* active */
.price__tab-item a:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

/* focus */
.price__tab-item a:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent2) 35%, transparent);
  outline-offset: 2px;
}

/* если в карточке вместо ссылки просто текст "Звоните" — сделаем как бейдж */
.price__tab-item span + b,
.price__tab-item span + strong{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--second-family);
  font-weight: 750;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
}

/* мобилка: кнопка на всю ширину */
@media (max-width: 600px){
  .price__tab-item a{
    width: 100%;
    min-width: 0;
  }
}


/* =========================
   Price tabs: force button style + arrow
========================= */

/* Делаем кнопки в блоке price именно "как клиника" (перебиваем старые правила) */
.price__tab-item a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;

  height: 44px !important;
  min-width: 170px !important;
  padding: 0 18px !important;

  border-radius: 16px !important;

  font-family: var(--second-family) !important;
  font-weight: 750 !important;
  font-size: 14.5px !important;
  letter-spacing: -0.01em !important;

  color: #fff !important;
  text-decoration: none !important;

  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 76%, #000 24%)) !important;
  border: 1px solid color-mix(in srgb, var(--accent2) 35%, #000 65%) !important;

  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
  transition: transform .12s ease, box-shadow .15s ease, filter .2s ease;
}

/* стрелка */
.price__tab-item a::after{
  content: "→";
  font-size: 16px;
  line-height: 1;
  opacity: .95;
  transform: translateX(0);
  transition: transform .12s ease, opacity .12s ease;
}

/* hover */
.price__tab-item a:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18) !important;
  filter: brightness(1.03);
}
.price__tab-item a:hover::after{
  transform: translateX(2px);
}

/* focus */
.price__tab-item a:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent2) 35%, transparent);
  outline-offset: 2px;
}

/* Мобилка */
@media (max-width: 600px){
  .price__tab-item a{
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* =========================
   Price tabs: small spacing between cards
========================= */

/* если родитель flex */
.price__tabs,
.price__tabs-wrapper{
  gap: 16px;
}

/* универсальный вариант — отступ справа */
.price__tab-item{
  margin-right: 16px;
}

/* чтобы последний не имел лишнего отступа */
.price__tab-item:last-child{
  margin-right: 0;
}

/* если карточки в grid — лучше так */
.price__tabs{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}


/* =========================
   News grid: premium clean cards (no HTML changes)
========================= */

.news__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1100px){
  .news__grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 640px){
  .news__grid{ grid-template-columns: 1fr; }
}

/* card */
.news-item{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform .12s ease, box-shadow .15s ease, border-color .2s ease;
}

.news-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
  border-color: color-mix(in srgb, var(--accent2) 18%, var(--line));
}

/* clickable overlay link */
.news-item > a{
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
}

/* image */
.news-item > img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: var(--grey-bg);
}

@media (max-width: 640px){
  .news-item > img{ height: 210px; }
}

/* content wrapper (your inner div after img) */
.news-item > div{
  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 18px 18px 16px;
  min-height: 0;
}

/* title */
.news-item h3{
  font-family: var(--second-family);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);

  font-size: 18px;
  line-height: 1.25;
  margin: 0;

  /* 2 lines clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* text preview */
.news-item p{
  margin: 0;
  color: var(--grey-text);
  font-size: 15px;
  line-height: 1.6;

  /* 4 lines clamp */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* footer row: date + arrow */
.news-item__data{
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  color: var(--light-text);
  font-size: 13px;
}

.news-item__data .text{
  color: var(--light-text);
  font-size: 13px;
}

/* icon-32 -> make it look like a neat arrow button */
.news-item__data .icon-32{
  width: 36px;
  height: 36px;
  border-radius: 999px;

  background: color-mix(in srgb, var(--accent2) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent2) 18%, var(--line));
  display: grid;
  place-items: center;

  transition: transform .12s ease, background .15s ease, border-color .2s ease;
}

/* add arrow via pseudo-element (works even if icon font is weird) */
.news-item__data .icon-32::before{
  content: "→";
  font-size: 16px;
  line-height: 1;
  color: var(--accent2);
}

.news-item:hover .news-item__data .icon-32{
  transform: translateX(2px);
  background: color-mix(in srgb, var(--accent2) 10%, #fff);
  border-color: color-mix(in srgb, var(--accent2) 26%, var(--line));
}

/* accessibility: focus on the whole card link */
.news-item > a:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent2) 35%, transparent);
  outline-offset: 3px;
  border-radius: 18px;
}


/* =========================
   Help block – Variant B (actions + badges)
========================= */

.form__block{
  padding: 56px 0;
}

.form__block > div{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

/* LEFT */
.help__content .title{
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 3vw, 46px);
  margin-bottom: 14px;
}

.help__content p{
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-text);
  margin-bottom: 22px;
}

/* RIGHT */
.help__actions{
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent2) 4%, #fff));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Buttons */
.help__btn{
  height: 52px;
  border-radius: 18px;
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .15s ease;
}

/* Primary (бордовый CTA) */
.help__btn--primary{
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  box-shadow: 0 18px 42px rgba(109,16,36,0.25);
}
.help__btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(109,16,36,0.35);
}

/* Secondary (сине-серый) */
.help__btn--secondary{
  color: #fff;
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 75%, #000 25%));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}
.help__btn--secondary:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.25);
}

/* Trust badges */
.trust-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.trust-badge{
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  background: color-mix(in srgb, var(--accent2) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent2) 18%, var(--line));
  color: var(--accent2);
}

.trust-badge--accent{
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  color: var(--brand);
}

/* Mobile */
@media (max-width: 900px){
  .form__block > div{
    grid-template-columns: 1fr;
  }
}


/* =========================
   Help block – polish to "ideal"
========================= */

/* 1) Container: чтобы контент не казался потерянным на широкой подложке */
.form .container{
  max-width: 1220px; /* если у тебя уже есть max-width — оставь, но этот перебьёт */
}

/* 2) Layout: правую колонку делаем шире, чтобы кнопки не ломались */
.form__block > div{
  grid-template-columns: 1.15fr 0.85fr !important; /* было слишком узко справа */
  gap: 32px !important;
  align-items: start !important;
}

/* 3) Визуальный акцент секции (как в клинике): тонкая полоса слева */
.form__block{
  position: relative;
}
.form__block::before{
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 35%, var(--accent2)));
  opacity: .9;
}

/* 4) Правый блок: фикс ширины и “дороже” */
.help__actions{
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  border-radius: 22px;
}

/* 5) Кнопки: одна строка, нормальные отступы */
.help__btn{
  height: 54px;
  padding: 0 18px;
  font-size: 15.5px;
  white-space: nowrap;        /* не переносить */
  text-align: center;
}

/* если текст всё равно не помещается — сделаем вторую кнопку чуть меньше */
.help__btn--secondary{
  font-size: 15px;
}

/* 6) Бейджи: компактнее и аккуратнее */
.trust-badge{
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

/* 7) Телефоны: чтобы читались и не прятались под рейтингом */
.form__contacts a{
  font-size: 22px;
}

/* 8) Mobile: на мобиле кнопки на всю ширину и без полосы */
@media (max-width: 900px){
  .form__block::before{ display:none; }
  .help__actions{
    max-width: 100%;
    margin-left: 0;
  }
  .help__btn{
    width: 100%;
  }
  .help__btn{ white-space: normal; } /* на мобиле можно перенос */
}


/* =========================
   Help block: FIX alignment (no "crooked")
========================= */

/* 1) Убираем/исправляем левую бордовую полосу, чтобы не наезжала */
.form__block::before{
  left: -12px;            /* выносим за пределы контента */
  top: 18px;
  bottom: 18px;
  width: 3px;
  opacity: .7;
}

/* 2) Даём безопасный внутренний отступ слева */
.form__block{
  padding-left: 14px;
}

/* 3) Сетка секции — строгая и ровная */
.form__block > div{
  display: grid !important;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 420px) !important;
  gap: 36px !important;
  align-items: start !important;
}

/* 4) Правый блок не “плавает” — фиксируем */
.help__actions{
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

/* 5) Телефоны: делаем аккуратной сеткой (подпись сверху, номер снизу) */
.form__contacts{
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
  padding-top: 10px;
}

.form__contacts > div{
  display: grid !important;
  gap: 6px;
}

.form__contacts span{
  font-size: 12.5px;
  color: var(--light-text);
}

.form__contacts a{
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 24px;
  line-height: 1.05;
  color: var(--black);
  white-space: nowrap; /* чтобы номер не ломался */
  text-decoration: none;
}

/* 6) Левый текст — чуть уже, чтобы выглядел собранно */
.help__content{
  max-width: 640px;
}

/* 7) Мобилка: всё в колонку, телефоны в 1 колонку */
@media (max-width: 980px){
  .form__block{
    padding-left: 0;
  }
  .form__block::before{
    display: none;
  }
  .form__block > div{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .help__actions{
    max-width: 100%;
    margin-left: 0;
  }
  .form__contacts{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form__contacts a{
    font-size: 22px;
    white-space: normal;
  }
}



/* --- Consultation module: make it a strong CTA card --- */
.com-content-article.item-page .consultation{
  margin-top: 6px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent2) 18%, var(--line));
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent2) 5%, #fff));
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.com-content-article.item-page .consultation ul{
  margin: 0 0 12px;
  padding-left: 18px;
}

.com-content-article.item-page .consultation p.text{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--grey-text);
}

.com-content-article.item-page .consultation .btn{
  width: 100%;
  height: 52px;
  border-radius: 18px;
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.01em;
}

/* make phone btn primary */
.com-content-article.item-page .consultation a.btn{
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, #000 65%);
  box-shadow: 0 18px 42px rgba(109,16,36,0.22);
}

/* secondary button */
.com-content-article.item-page .consultation button.btn{
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 75%, #000 25%));
  border: 1px solid color-mix(in srgb, var(--accent2) 35%, #000 65%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

@media (max-width: 900px){
  .com-content-article.item-page .consultation{
    grid-template-columns: 1fr;
  }
}


/* =========================
   CTA (consultation): ровный телефон и одинаковые кнопки
========================= */

.consultation > div:last-child{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

/* общая геометрия кнопок */
.consultation .btn{
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;

  line-height: 1;          /* центрирование по вертикали */
  white-space: nowrap;     /* НЕ переносить */
  text-align: center;
}

/* телефонная кнопка: крупно, но без переноса */
.consultation a.btn{
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 26px;
}

/* у тебя внутри <font color="white"> — убираем влияние */
.consultation a.btn font{
  color: inherit !important;
}

/* кнопка "Оставить заявку" чуть меньше, чтобы не выглядела громоздко */
.consultation button.btn{
  font-family: var(--second-family);
  font-weight: 850;
  font-size: 18px;
}

/* мобильная: в столбик */
@media (max-width: 900px){
  .consultation > div:last-child{
    grid-template-columns: 1fr;
  }
  .consultation a.btn{
    font-size: 22px;
    white-space: normal;
  }
}

.consultation a.btn{ min-width: 320px; }

/* =========================
   CONTACTS FIX PACK
   paste at the VERY END of user.css
========================= */

/* 0) kill horizontal scroll globally (safe) */
html, body{
  overflow-x: hidden;
}

/* 1) Long strings (requisites, accounts, etc.) must wrap */
.com-content-article.item-page,
.com-content-article.item-page *{
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* 4) CTA consultation: force readable text on colored buttons */
.consultation a.btn,
.consultation button.btn{
  color: #fff !important;
}

.consultation a.btn{
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1 !important;
  white-space: nowrap;
}

.consultation a.btn font{
  color: inherit !important; /* neutralize <font> */
}

/* if phone looks too dark due to filters/overlays */
.consultation a.btn{
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

/* 5) Safety: avoid any fixed widths causing overflow */
.com-content-article.item-page iframe{
  max-width: 100%;
}


/* -------- CTA module styling (consultation) -------- */
.com-content-article.item-page .consultation{
  padding: 22px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent2) 18%, var(--line));
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent2) 5%, #fff));
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

/* buttons area */
.com-content-article.item-page .consultation > div:last-child{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* unify buttons */
.com-content-article.item-page .consultation .btn{
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;

  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #fff !important;
}

/* primary phone btn */
.com-content-article.item-page .consultation a.btn{
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  box-shadow: 0 18px 42px rgba(109,16,36,0.22);
  font-size: 24px;
}
.com-content-article.item-page .consultation a.btn font{
  color: inherit !important; /* neutralize <font> */
}

/* secondary */
.com-content-article.item-page .consultation button.btn{
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 75%, #000 25%));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  font-size: 18px;
}

/* Mobile */
@media (max-width: 900px){
  .com-content-article.item-page .consultation{
    grid-template-columns: 1fr;
  }
  .com-content-article.item-page .consultation > div:last-child{
    grid-template-columns: 1fr;
  }
  .com-content-article.item-page .consultation a.btn{
    font-size: 22px;
    white-space: normal;
  }
}

/* Safety: no horizontal scroll from long content */
.com-content-article.item-page .com-content-article__body{
  overflow-x: clip;
}

/* =========================
   Contacts page – clean (NO cards, NO borders, NO breaks)
========================= */

/* контейнер статьи */
.com-content-article.item-page .com-content-article__body{
  max-width: 980px;
  display: grid;
  gap: 22px;
}

/* заголовок секции: p.text с <b> */
.com-content-article.item-page .com-content-article__body > p.text{
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--grey-text);
}

/* жирный заголовок */
.com-content-article.item-page .com-content-article__body > p.text > b{
  display: inline-block;
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--black);
  margin-right: 8px;
}

/* контент после заголовка (ul / p) */
.com-content-article.item-page .com-content-article__body > p.text + ul.text.list-dots,
.com-content-article.item-page .com-content-article__body > p.text + p.text{
  margin: 0;
  padding: 14px 0 0;
  color: var(--grey-text);
  line-height: 1.75;
  overflow-wrap: anywhere; /* реквизиты/счета без горизонтального скролла */
  word-break: break-word;
}

/* списки — аккуратные */
.com-content-article.item-page .com-content-article__body ul.text.list-dots{
  list-style: none;
  display: grid;
  gap: 12px;
}

/* маркеры в стиле сайта (бордо-точка) */
.com-content-article.item-page .com-content-article__body ul.text.list-dots li{
  position: relative;
  padding-left: 18px;
}
.com-content-article.item-page .com-content-article__body ul.text.list-dots li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 75%, var(--accent2) 25%);
}

/* ссылки – спокойные */
.com-content-article.item-page .com-content-article__body a{
  color: var(--accent2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.com-content-article.item-page .com-content-article__body a:hover{
  color: var(--brand);
}

/* телефоны – главный акцент */
.com-content-article.item-page .com-content-article__body a[href^="tel:"]{
  font-family: var(--second-family);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--black);
  text-decoration: none;
}
.com-content-article.item-page .com-content-article__body a[href^="tel:"]:hover{
  color: var(--brand);
  text-decoration: underline;
}

/* email – чуть “сервиснее” */
.com-content-article.item-page .com-content-article__body a[href^="mailto:"]{
  font-family: var(--second-family);
  font-weight: 800;
  color: var(--black);
  text-decoration: none;
}
.com-content-article.item-page .com-content-article__body a[href^="mailto:"]:hover{
  color: var(--brand);
  text-decoration: underline;
}

/* карта – просто красиво, без “рамочной” карточки */
.com-content-article.item-page .com-content-article__body iframe{
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

/* CTA consultation – аккуратно, без огромной рамки */
.com-content-article.item-page .consultation{
  margin-top: 10px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.com-content-article.item-page .consultation ul{
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--grey-text);
}

.com-content-article.item-page .consultation p.text{
  margin: 0;
  color: var(--grey-text);
}

/* кнопки */
.com-content-article.item-page .consultation > div:last-child{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.com-content-article.item-page .consultation .btn{
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;

  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #fff !important;
  border: 0;
}

/* телефон */
.com-content-article.item-page .consultation a.btn{
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  box-shadow: 0 18px 42px rgba(109,16,36,0.18);
  font-size: 22px;
}
.com-content-article.item-page .consultation a.btn font{
  color: inherit !important;
}

/* заявка */
.com-content-article.item-page .consultation button.btn{
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 75%, #000 25%));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  font-size: 18px;
}

@media (max-width: 900px){
  .com-content-article.item-page .com-content-article__body{
    gap: 18px;
  }
  .com-content-article.item-page .consultation{
    grid-template-columns: 1fr;
  }
  .com-content-article.item-page .consultation > div:last-child{
    grid-template-columns: 1fr;
  }
  .com-content-article.item-page .consultation a.btn{
    white-space: normal;
    font-size: 20px;
  }
}

/* safety: no horizontal scroll from long accounts */
.com-content-article.item-page{
  overflow-x: clip;
}

/* =========================
   CTA (consultation) – fixed layout + better typography
========================= */

.com-content-article.item-page .consultation{
  /* reset possible old styles */
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(15,23,42,.10) !important;

  padding: 26px !important;
  margin-top: 18px !important;

  display: grid !important;
  grid-template-columns: 1.25fr 0.75fr !important;
  gap: 22px !important;
  align-items: center !important;

  overflow: hidden;
}

/* left text column */
.com-content-article.item-page .consultation > div:first-child{
  min-width: 0;
}

/* make the list neat */
.com-content-article.item-page .consultation > div:first-child ul{
  margin: 0 0 14px !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid;
  gap: 10px;
}

.com-content-article.item-page .consultation > div:first-child ul li{
  position: relative;
  padding-left: 22px;
  color: var(--black);
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.35;
  font-size: 18px;
}

.com-content-article.item-page .consultation > div:first-child ul li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 70%, var(--accent2) 30%);
}

/* supporting text */
.com-content-article.item-page .consultation > div:first-child p.text{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;              /* убираем “левую линию/рамку”, если была */
  background: transparent !important;
  color: var(--grey-text);
  font-size: 16px;
  line-height: 1.7;
  max-width: 54ch;
}

/* right buttons column */
.com-content-article.item-page .consultation > div:last-child{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  align-items: center !important;
  justify-content: end !important;
}

/* unified buttons */
.com-content-article.item-page .consultation .btn{
  height: 60px !important;
  border-radius: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;

  font-family: var(--second-family);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1 !important;
  white-space: nowrap !important;

  border: 0 !important;
  color: #fff !important;
}

/* phone button */
.com-content-article.item-page .consultation a.btn{
  background: linear-gradient(180deg, var(--brand), var(--brand-600)) !important;
  box-shadow: 0 18px 42px rgba(109,16,36,.18) !important;
  font-size: 24px !important;
}

/* neutralize <font> */
.com-content-article.item-page .consultation a.btn font{
  color: inherit !important;
}

/* request button */
.com-content-article.item-page .consultation button.btn{
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 75%, #000 25%)) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.16) !important;
  font-size: 18px !important;
}

/* hover */
.com-content-article.item-page .consultation .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(15,23,42,.18) !important;
}

/* responsive */
@media (max-width: 980px){
  .com-content-article.item-page .consultation{
    grid-template-columns: 1fr !important;
  }
  .com-content-article.item-page .consultation > div:last-child{
    grid-template-columns: 1fr !important;
  }
  .com-content-article.item-page .consultation a.btn{
    font-size: 22px !important;
    white-space: normal !important;
  }
}


/* =========================
   JoomShopping category list – fix layout (grid cards)
   Target: .label_products.jshop.jshop_list_product
========================= */

.label_products.jshop.jshop_list_product{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch;
}

/* tablet */
@media (max-width: 1100px){
  .label_products.jshop.jshop_list_product{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* mobile */
@media (max-width: 680px){
  .label_products.jshop.jshop_list_product{
    grid-template-columns: 1fr !important;
  }
}

/* card */
.label_products.jshop.jshop_list_product .block_item{
  margin: 0 !important;
  width: auto !important;
  float: none !important;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15,23,42,.08);

  padding: 16px;
  display: grid;
  grid-template-rows: auto auto auto auto; /* img, name, price, btn */
  gap: 12px;
}

/* image block */
.label_products.jshop.jshop_list_product .block_item .image,
.label_products.jshop.jshop_list_product .block_item .image_block{
  margin: 0 !important;
  padding: 0 !important;
}

.label_products.jshop.jshop_list_product .block_item .jshop_img{
  width: 100%;
  height: 190px;              /* ровные карточки */
  object-fit: contain;
  display: block;
  border-radius: 16px;
  background: #fff;
}

/* name */
.label_products.jshop.jshop_list_product .block_item .name{
  margin: 0 !important;
  padding: 0 !important;
}

.label_products.jshop.jshop_list_product .block_item .name a{
  font-family: var(--second-family);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.label_products.jshop.jshop_list_product .block_item .name a:hover{
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* price */
.label_products.jshop.jshop_list_product .block_item .jshop_price{
  margin: 0 !important;
  padding: 0 !important;
}
.label_products.jshop.jshop_list_product .block_item .jshop_price span{
  font-family: var(--second-family);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* button */
.label_products.jshop.jshop_list_product .block_item .buttons{
  margin-top: 2px;
}

.label_products.jshop.jshop_list_product .block_item .button_detail{
  width: 100%;
  height: 48px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: var(--second-family);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;

  border: 1px solid color-mix(in srgb, var(--accent2) 18%, var(--line));
  background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 75%, #000 25%));
  color: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.14);
}

.label_products.jshop.jshop_list_product .block_item .button_detail:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
}

/* safety: prevent weird inherited styles */
.label_products.jshop.jshop_list_product *{
  box-sizing: border-box;
}





/* =========================
   Price tabs (Похороны / Кремация) — compact
   paste at VERY END of user.css
========================= */

.price__tabs{
  list-style: none;
  padding: 0;
  margin: 0;

  display: inline-flex !important;      /* чтобы не тянулось на всю ширину */
  align-items: center;
  gap: 14px;

  width: fit-content;                   /* ключ: ширина по контенту */
  max-width: 100%;
}

.price__tabs > li{
  cursor: pointer;
  user-select: none;

  flex: 0 0 auto !important;            /* не растягивать */
  width: auto !important;               /* на всякий случай */
  min-width: 220px;                     /* чтобы выглядело солидно */
  padding: 16px 28px;

  border-radius: 999px;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);

  font-family: var(--second-family);
  font-weight: 850;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;

  transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.price__tabs > li:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.price__tabs > li.active{
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}

/* если где-то глобально li делали flex:1 */
.price__tabs > li,
.price__tabs > li.active{
  flex-grow: 0 !important;
}

/* Mobile: красиво в колонку */
@media (max-width: 720px){
  .price__tabs{
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }
  .price__tabs > li{
    width: 100% !important;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
}



/* =========================
   Help block alignment
========================= */

.form__block > div{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* слева шире, справа карточка */
  gap: 40px;
  align-items: center;                 /* ВАЖНО: вертикальное выравнивание */
}

/* LEFT */
.help__content .title{
  margin: 0 0 14px;
}

.help__content p{
  margin: 0 0 26px;
  max-width: 58ch;
}

/* телефоны в одну линию по baseline */
.form__contacts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 44px;
  align-items: start;
}

.form__contacts span{
  display: block;
  margin-bottom: 8px;
  opacity: .75;
}

.form__contacts a{
  display: inline-block;
  font-weight: 850;
  font-size: 30px;     /* крупно как на макете */
  line-height: 1.05;
  text-decoration: none;
}

/* RIGHT - карточка */
.help__actions{
  justify-self: end;                 /* прижать вправо */
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(17, 32, 63, .10);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  display: grid;
  gap: 16px;
}

.help__btn{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.trust-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 8px;
}

/* MOBILE */
@media (max-width: 980px){
  .form__block > div{
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .help__actions{
    justify-self: stretch;
    width: 100%;
  }

  .form__contacts{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form__contacts a{
    font-size: 26px;
  }
}







/* =========================
   Services links grid (cards)
========================= */

.links > div > ul{
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px 26px;
}

/* Текущая разметка: <a class="links__link"><li>...</li></a> */
.links__link{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 26px 64px 26px 28px;
  min-height: 82px;

  border-radius: 18px;
  text-decoration: none;

  background: rgba(248, 250, 252, .75);
  border: 1px solid rgba(17, 32, 63, .08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

/* убираем стандартные стили li внутри */
.links__link > li{
  list-style: none;
  margin: 0;
  padding: 0;

  font-family: var(--second-family);
  font-weight: 750;
  font-size: 22px;
  line-height: 1.2;
  color: #0f2347;
}

/* стрелка справа (делаем её сами, чтобы было одинаково везде) */
.links__link::after{
  content: "→";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  opacity: .55;
  transition: transform .12s ease, opacity .12s ease;
}

/* hover */
.links__link:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.86);
  border-color: rgba(17, 32, 63, .14);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}
.links__link:hover::after{
  opacity: .9;
  transform: translateY(-50%) translateX(2px);
}

/* focus для доступности */
.links__link:focus-visible{
  outline: 3px solid rgba(30, 64, 175, .25);
  outline-offset: 2px;
}

/* если icon-12 навешивает странные псевдо-иконки — гасим, чтобы не ломало карточку */
.links__link.icon-12::before{
  display: none !important;
}

/* текст ниже — отступы */
.links .text{
  margin-top: 26px;
  max-width: 75ch;
  opacity: .9;
}

/* адаптив */
@media (max-width: 980px){
  .links > div > ul{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .links__link{
    padding: 20px 56px 20px 20px;
    min-height: 72px;
  }
  .links__link > li{
    font-size: 18px;
  }
}


/* =========================
   Services links — softer typography
========================= */

.links__link{
  min-height: 70px;
  padding: 20px 56px 20px 22px;
}

.links__link > li,
.links__link{
  font-family: var(--second-family);
  font-weight: 550;          /* было 750 — делаем аккуратно */
  font-size: 18px;           /* было 22 */
  line-height: 1.35;
  letter-spacing: 0.2px;
  color: #1f2f4a;
}

/* стрелка спокойнее */
.links__link::after{
  font-size: 20px;
  opacity: .4;
}

.links__link:hover{
  transform: translateY(-1px);  /* меньше “всплытия” */
}

/* ещё мягче на мобиле */
@media (max-width: 980px){
  .links__link > li,
  .links__link{
    font-size: 16px;
  }
}


/* =========================
   Float image with text wrap
========================= */

figure.pull-left{
  float: left;
  margin: 0 32px 18px 0;  /* отступ справа и снизу */
  max-width: 260px;
}

figure.pull-left img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

figure.pull-left figcaption{
  margin-top: 8px;
  font-size: 14px;
  opacity: .7;
  text-align: center;
}

/* чтобы родитель не схлопывался */
.content:after,
.article:after,
.item-page:after{
  content: "";
  display: block;
  clear: both;
}

/* на мобиле убираем обтекание */
@media (max-width: 768px){
  figure.pull-left{
    float: none;
    margin: 0 0 18px 0;
  }
}


.parent-block{
  display: block !important;
}


/* =========================
   Article image: text wraps on the right
========================= */

/* float-картинка */
.com-content-article__body figure.pull-left{
  float: left !important;
  width: 320px;                 /* можешь 280-360 подобрать */
  max-width: 42%;
  margin: 6px 32px 18px 0;
}

.com-content-article__body figure.pull-left img{
  display: block;
  width: 100% !important;
  height: auto;
  border-radius: 12px;
}

.com-content-article__body figure.pull-left figcaption{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.3;
  opacity: .65;
  text-align: center;
}

/* чтобы текст красиво обтекал */
.com-content-article__body p{
  overflow: visible;
}

/* ВАЖНО: все "крупные" блоки после вступления — начинать ниже картинки */
.com-content-article__body .consultation,
.com-content-article__body h2,
.com-content-article__body h3,
.com-content-article__body .price,
.com-content-article__body .moduletable{
  clear: both;
}

/* мобильная версия: без обтекания */
@media (max-width: 820px){
  .com-content-article__body figure.pull-left{
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
  }
}

/* =========================
   FORCE text wrap around figure in Joomla article
   paste at the VERY END
========================= */

/* 1) выключаем flex/grid, иначе float не работает */
.com-content-article__body{
  display: block !important;
}

/* иногда flex стоит на внутреннем контейнере */
.com-content-article__body > *{
  min-width: 0;
}

/* 2) фигура должна реально "плавать" */
.com-content-article__body > figure.pull-left{
  float: left !important;
  display: block !important;
  width: 320px !important;
  max-width: 40% !important;
  margin: 6px 28px 16px 0 !important;
  clear: none !important;
}

/* 3) картинка */
.com-content-article__body > figure.pull-left img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

/* 4) ВАЖНО: абзацы не должны "очищать" float */
.com-content-article__body > p{
  clear: none !important;
}

/* 5) крупные секции пусть начинаются ниже (чтобы не было каши) */
.com-content-article__body .consultation,
.com-content-article__body .price,
.com-content-article__body h2,
.com-content-article__body h3{
  clear: both !important;
}

/* mobile */
@media (max-width: 820px){
  .com-content-article__body > figure.pull-left{
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px 0 !important;
  }
}






/* =========================
   Article spacing (Joomla com-content)
   restore paddings/margins only in article body
========================= */

.com-content-article__body{
  line-height: 1.6;
}

/* интервалы между блоками */
.com-content-article__body > p,
.com-content-article__body > ul,
.com-content-article__body > ol,
.com-content-article__body > figure,
.com-content-article__body > div,
.com-content-article__body > iframe{
  margin-top: 0;
  margin-bottom: 18px;
}

/* заголовки */
.com-content-article__body h2,
.com-content-article__body h3{
  margin: 28px 0 14px;
}

/* списки: возвращаем внутренний отступ и аккуратные маркеры */
.com-content-article__body ul,
.com-content-article__body ol{
  padding-left: 22px;
  margin: 10px 0 18px;
}

.com-content-article__body ul li,
.com-content-article__body ol li{
  margin: 10px 0;
}

/* если твой класс list-dots убивал маркеры/отступы */
.com-content-article__body .list-dots{
  padding-left: 22px !important;
}

/* ссылки в статье */
.com-content-article__body a{
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* блок карты */
.com-content-article__body iframe{
  border-radius: 16px;
  overflow: hidden;
}

/* убираем случайные обнуления у .text именно в статье */
.com-content-article__body .text{
  margin: 0 0 18px !important;
}
