/* ---------- 1. Токены ---------- */
:root {
  --gold: #c7a66b;
  --gold-dark: #ae8b4d;
  --ink: #1e1e1e;
  --graphite: #474747;
  --muted: #8e8e8e;
  --line: #e6e6e6;
  --paper: #f6f6f6;
  --night: #1a1a1a;

  --shadow-card: 0 24px 60px -28px rgb(0 0 0 / 0.22);
  --shadow-float: 0 30px 60px -22px rgb(0 0 0 / 0.38);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
  --gutter: 20px;
  --header-h: 64px;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 72px; } }

/* ---------- 2. Базовые стили ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--graphite);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; user-select: none; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, address { margin: 0; font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
label { cursor: pointer; }
svg { fill: none; }

::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Визуально скрытые (но доступные) элементы — радио/чекбоксы состояний */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }


.center { display: flex; justify-content: center; margin-top: 40px; }

section[id], footer[id] { scroll-margin-top: var(--header-h); }

.ic { width: 16px; height: 16px; flex: none; }

/* ---------- 3. Кнопки и чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 32px; padding: 0 16px; font-size: 10px; }
.btn-lg { height: 48px; padding: 0 32px; font-size: 12px; }
.btn-block { width: 100%; }

.btn-gold { 
  padding: 25px 35px;
    height: 52px;
  margin: 0 auto;
    color: #000!important;
    font-family: 'Cormorant';
    font-weight: 500;
    font-size: 16px;
    line-height: 42px;
    text-transform: uppercase;
    background: #C7B087;
    max-width: 270px;
    border-radius: 35px; }
.btn-gold:hover { background: var(--gold-dark); box-shadow: 0 12px 24px -12px rgb(174 139 77 / 0.8); }

.btn-outline { border-color: rgb(30 30 30 / 0.35); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-outline-white { border-color: rgb(255 255 255 / 0.8); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ink); }

.chip {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 16px;
  border: 1px solid var(--gold); border-radius: 999px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.chip:hover { background: var(--gold); color: #fff; box-shadow: 0 8px 18px -10px rgb(174 139 77 / 0.9); }


.about { position: relative; overflow: clip; padding: 64px 0 96px; }
.about-grid { display: grid; gap: 56px; }
.about-copy { position: relative; }
.about-ghost {
  position: absolute; top: -36px; left: 180px;
  font: 400 96px/1 var(--font-display); color: #efefef;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.about-copy > .sec-title, .about-sub, .about-body { position: relative; }
.about-sub {
  margin-top: 28px; max-width: 540px;
  font: 400 15px/1.45 var(--font-display);
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink);
}
.about-body { margin-top: 36px; display: grid; grid-template-columns: 112px 1fr; gap: 24px; }
.about-portrait { overflow: hidden; }
.about-portrait img { /*aspect-ratio: 3 / 4; object-fit: cover; */ width: 100%; height: 410px; object-position: top; transition: transform 1.2s var(--ease); }

.about-text { font-size: 12px; line-height: 1.8; }
.about-text p + p { margin-top: 16px; }
.about-text .btn { margin-top: 28px; }

.about-photos { position: relative; margin-left: 40px; }
.about-main { overflow: hidden; }
.about-main img { aspect-ratio: 4 / 5; width: 100%; object-fit: contain; transition: transform 1.4s var(--ease); }
.about-main:hover img { transform: scale(1.03); }
.about-desk {
  position: absolute; bottom: -50px; left: -40px;
  width: 52%; max-width: 280px; aspect-ratio: 4 / 3; object-fit: cover;
  
}
.about-desk:hover { transform: translateY(-4px); }

@media (min-width: 640px) {
  .about-ghost { left: 240px; font-size: 120px; }
  .about-sub { font-size: 17px; }
  .about-body { grid-template-columns: 176px 1fr; gap: 36px; }
  .about-text { font-size: 12.5px; }
  .about-photos { margin-left: 80px; }
  .about-desk { left: -80px; }
}
@media (min-width: 1024px) {
  .about { padding: 96px 0 128px; }
  .about-grid { grid-template-columns: repeat(12, 1fr); gap: 48px; }
  .about-copy { grid-column: span 7; }
  .about-ghost { top: -56px; left: 300px; font-size: 150px; }
  .about-photos { grid-column: span 5; margin: -32px 0 0 24px; }
  .about-desk { left: -215px;
    bottom: 32px;
        width: 70%;
        height: 130px; }
}

/* ---------- 8. Услуги — аккордеон на radio-инпутах ---------- */
.services-showcase { padding: 0 0 80px; }

.svc-showcase {
  display: grid;
  /*grid-template-columns: minmax(0, 1fr) 600px;*/
  grid-template-columns: minmax(0, 910px) 1fr;
  gap: 6px;
  margin-top: 40px;
  min-height: 600px;
}

/* Левая панель */
.svc-panel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(45.44% 45.44% at 42.18% 40.69%, rgba(255, 255, 255, 0.88) 0%, rgba(220, 225, 230, 0.442841) 48.86%, rgba(185, 195, 205, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
  color: #000;
}

.svc-portrait {
  position: absolute;
  inset: 0;
}

.svc-portrait.rino{
  background: #b3b2b0;
}

.svc-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 20%;
  /*transition: opacity .55s ease, transform 1.2s var(--ease, ease);*/
}

.svc-portrait.rino img{
  object-position: -93% 20%;
}

.svc-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 75%);*/
  pointer-events: none;
}

.svc-copy {
  position: relative;
  z-index: 2;
  width: min(380px, 60%);
  padding: 0 0 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
}

.svc-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
}

.svc-title {
  font-family: 'Cormorant';
font-weight: 500;
font-size: 36px;
line-height: 56px;
letter-spacing: 0%;
text-transform: uppercase;
color: #000;
}

.svc-rule {
  width: 160px;
  height: 5px;
  margin: 24px 0;
  background: #C7B087;
  transform-origin: left center;
}

.svc-text {
  font-family: Gilroy;
font-weight: 400;
font-style: Regular;
font-size: 16px;
leading-trim: NONE;
line-height: 23px;
letter-spacing: 0%;
color: #000;
}

.svc-copy .btn-sm{
  margin-top: 50px;
  font-family: 'Cormorant';
font-weight: 500;
font-size: 16px;
line-height: 42px;
letter-spacing: 0%;
text-transform: uppercase;
background: #C7B087;
border: 1px solid #C7B087;
color: #000;
height: 52px;
width: 185px;
}

/* Анимация смены контента */
.fade-swap { animation: svcSwap .55s cubic-bezier(.22,.61,.36,1) both; }
@keyframes svcSwap {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.rule-animate { animation: svcRule .8s cubic-bezier(.22,.61,.36,1) both; }
@keyframes svcRule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Правые плашки */
.svc-plates {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-plate {
  flex: 1 1 0;
  min-height: 112px;
  border: 0;
  cursor: pointer;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, #C0CAD3 0%, #E1E5E9 100%);
  color: #000;
  position: relative;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), filter .45s ease;
}

.svc-plate:hover {
  transform: translateX(-10px);
  filter: brightness(1.06);
}

.svc-plate:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.svc-plate .name {
  font-family: 'Cormorant';
font-weight: 500;
font-size: 36px;
line-height: 56px;
letter-spacing: 0%;
text-transform: uppercase;
color: #000;
  text-align: left;
}

.svc-plate .dash {
  flex: 0 0 auto;
  width: 50px;
  height: 5px;
  background: #C7B087;
  transition: width .45s cubic-bezier(.22,.61,.36,1);
}


/* Мобильная версия */
@media (max-width: 1023.98px) {
  .svc-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .svc-panel { min-height: 520px; }

  .svc-copy {
    width: 100%;
    min-height: 520px;
    padding: 28px 20px 32px;
  }

  .svc-portrait img { object-position: center; }

  .svc-plates { margin-top: 6px; }

  .svc-plate {
    min-height: 72px;
    padding: 0 20px;
  }

  .svc-plate:hover { transform: translateX(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-swap,
  .rule-animate { animation-duration: .15s !important; }
  .svc-plate,
  .svc-portrait img,
  .svc-plate .dash { transition-duration: .15s !important; }
}

/* ---------- 9. Карусели (scroll-snap, стрелки — через script.js) ---------- */
.carousel { --gap: 20px; --per: 1; position: relative; padding: 0 44px; }
.track {
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > * {
  flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
  scroll-snap-align: start;
}
.car-btn {
  display: none;
  position: absolute; top: 50%; z-index: 2;
  width: 25px; height: 40px; 
  align-items: center; justify-content: center;
  transform: translateY(-50%);
}
.js .car-btn { display: inline-flex; }
.car-btn.prev { left: 0; background: url(/wp-content/themes/CosmeticThemeOld/assets/img/arr_l.svg) no-repeat; }
.car-btn.next { right: 0; background: url(/wp-content/themes/CosmeticThemeOld/assets/img/arr_r.svg) no-repeat;}
.car-btn:hover { transform: translateY(-50%) scale(1.05); }
.car-btn svg { width: 20px; height: 20px; display:none; }
@media (min-width: 640px) { .carousel { padding: 0 56px; } }

/* ---------- 10. Фото до и после ---------- */
.ba { padding-bottom: 80px; }
.ba-wrap { position: relative; }
.ba-tabs {
  display: flex; gap: 10px;
  margin: 60px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none;
}
.ba-tabs::-webkit-scrollbar { display: none; }
.ba-tabs .chip { flex: none; height: 52px; color: #000; border: 1px solid #C7B087; background:#fff; font-family: 'Cormorant';
    font-weight: 500;
    font-size: 16px;
    line-height: 42px;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 25px 35px;}
.ba-tabs .chip:hover { background: #C7B087; color: #000; box-shadow: none; }
#ba-1:checked ~ .ba-tabs [for="ba-1"],
#ba-2:checked ~ .ba-tabs [for="ba-2"],
#ba-3:checked ~ .ba-tabs [for="ba-3"],
#ba-4:checked ~ .ba-tabs [for="ba-4"],
#ba-5:checked ~ .ba-tabs [for="ba-5"],
#ba-6:checked ~ .ba-tabs [for="ba-6"] {
  background: #C7B087; border: 1px solid #C7B087; color: #000;
  font-family: 'Cormorant';
font-weight: 500;
font-size: 16px;
line-height: 42px;
letter-spacing: 0;
text-transform: uppercase;
padding: 25px 35px;
}
#ba-1:focus-visible ~ .ba-tabs [for="ba-1"],
#ba-2:focus-visible ~ .ba-tabs [for="ba-2"],
#ba-3:focus-visible ~ .ba-tabs [for="ba-3"],
#ba-4:focus-visible ~ .ba-tabs [for="ba-4"],
#ba-5:focus-visible ~ .ba-tabs [for="ba-5"],
#ba-6:focus-visible ~ .ba-tabs [for="ba-6"] { outline: 2px solid var(--gold); outline-offset: 3px; }

.ba-panels { margin-top: 60px; }
.ba-panel { display: none; animation: fade 0.5s ease-out; }
#ba-1:checked ~ .ba-panels > :nth-child(1),
#ba-2:checked ~ .ba-panels > :nth-child(2),
#ba-3:checked ~ .ba-panels > :nth-child(3),
#ba-4:checked ~ .ba-panels > :nth-child(4),
#ba-5:checked ~ .ba-panels > :nth-child(5),
#ba-6:checked ~ .ba-panels > :nth-child(6) { display: block; }

.ba-pair { position: relative; display: grid; grid-template-columns: 1fr; }
.ba-shot { position: relative; overflow: hidden; height:330px; }
.ba-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ba-pair:hover img { transform: scale(1.04); }
.ba-tag {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgb(0 0 0 / 0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
}
.ba-mark {
  position: absolute; right: 12px; bottom: 8px;
  font: italic 400 12px/1 var(--font-display); color: rgb(255 255 255 / 0.8);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.4); pointer-events: none;
}

@media (min-width: 768px) { .ba-carousel { --per: 2; } }
@media (min-width: 1024px) {
  .ba { padding-bottom: 112px; }
  .ba-tabs { margin: 60px 0 0; padding: 0; flex-wrap: wrap; }
  .ba-tabs .chip { min-width: 150px; justify-content: center; }
}

/* ---------- 11. Специалисты ---------- */
.spec { padding-bottom: 80px; }
.spec-intro { margin-top: 60px; 
 }
 .spec-intro p{
  font-family: 'Gilroy';
font-weight: 400;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
color: #000;
 }
.spec-wrap { position: relative; margin-top: 60px; }
.spec-card { display: grid; grid-template-columns: 1fr; }

.doc-list {
  display: flex; gap: 4px; padding: 12px;
  overflow-x: auto; scrollbar-width: none;
      background: #F8F8F8;
    border: 1px solid #DFDFDF;
    padding: 40px;
}
.doc-list::-webkit-scrollbar { display: none; }
.doc-tab {
  display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 12px;
  width: 150px; padding: 12px; border-radius: 2px; border-left: 2px solid transparent;
  text-align: left; 
}
.doc-tab:hover { background: rgb(255 255 255 / 0.7); }
.doc-tab img { width: 148px; height: 180px; object-fit: cover; object-position: top; }
.doc-tab:hover img { filter: none; }
.doc-tab b { display: block; color:#000; font-family: 'Cormorant';
font-weight: 700;
font-size: 20px;
line-height: 30px;
letter-spacing: 0%
text-transform: uppercase;
 }
.doc-tab small { display: block; margin-top: 4px; color:#797979;font-family: 'Cormorant';
font-weight: 500;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
 }

#doc-1:checked ~ .spec-card [for="doc-1"],
#doc-2:checked ~ .spec-card [for="doc-2"],
#doc-3:checked ~ .spec-card [for="doc-3"],
#doc-4:checked ~ .spec-card [for="doc-4"],
#doc-5:checked ~ .spec-card [for="doc-5"],
#doc-6:checked ~ .spec-card [for="doc-6"],
#doc-7:checked ~ .spec-card [for="doc-7"] { box-shadow: none; }
#doc-1:checked ~ .spec-card [for="doc-1"] img,
#doc-2:checked ~ .spec-card [for="doc-2"] img,
#doc-3:checked ~ .spec-card [for="doc-3"] img,
#doc-4:checked ~ .spec-card [for="doc-4"] img,
#doc-5:checked ~ .spec-card [for="doc-5"] img,
#doc-6:checked ~ .spec-card [for="doc-6"] img,
#doc-7:checked ~ .spec-card [for="doc-7"] img { filter: none; }
#doc-1:focus-visible ~ .spec-card [for="doc-1"],
#doc-2:focus-visible ~ .spec-card [for="doc-2"],
#doc-3:focus-visible ~ .spec-card [for="doc-3"],
#doc-4:focus-visible ~ .spec-card [for="doc-4"],
#doc-5:focus-visible ~ .spec-card [for="doc-5"],
#doc-6:focus-visible ~ .spec-card [for="doc-6"],
#doc-7:focus-visible ~ .spec-card [for="doc-7"] { outline: 2px solid var(--gold); outline-offset: -2px; }

.doc-detail { display: none; grid-template-columns: 1fr; gap: 32px; padding: 24px; background: #F8F8F8; border: 1px solid #DFDFDF; }
#doc-1:checked ~ .spec-card .doc-details > :nth-child(1),
#doc-2:checked ~ .spec-card .doc-details > :nth-child(2),
#doc-3:checked ~ .spec-card .doc-details > :nth-child(3),
#doc-4:checked ~ .spec-card .doc-details > :nth-child(4),
#doc-5:checked ~ .spec-card .doc-details > :nth-child(5),
#doc-6:checked ~ .spec-card .doc-details > :nth-child(6),
#doc-7:checked ~ .spec-card .doc-details > :nth-child(7) { display: grid; }

.doc-photo { order: -1; overflow: hidden; background: var(--paper); }
.doc-photo img { width: 100%; height: 585px; object-fit: cover; object-position: top; animation: zoom 0.55s var(--ease) both; }
.doc-info h3 { font-family: 'Cormorant';
font-weight: 700;
font-size: 36px;
line-height: 36px;
letter-spacing: 0;
text-transform: uppercase;
color: #000000;
 }
.doc-role { margin-top: 5px; font-family: 'Cormorant';
font-weight: 500;
font-size: 20px;
line-height: 36px;
letter-spacing: 0;
color: #797979;
 }
.doc-bio { margin-top: 20px; }
 .doc-bio p{
font-family: 'Gilroy';
font-weight: 400;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
color: #000;
 }
.doc-bio p + p { margin-top: 10px; }
.doc-stats { margin-top: 30px; display: flex; gap: 48px; }
.doc-stats span { display: block; font-family: 'Gilroy';
font-weight: 400;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
color: #C7B087;
 }
.doc-stats strong { display: block; margin-top: 15px; font-family: 'Gilroy';
font-weight: 300;
font-size: 32px;
line-height: 23px;
letter-spacing: 0;
color: #797979;
 }
.doc-actions { margin-top: 33px; display: flex; flex-wrap: wrap; gap: 12px; }
.doc-actions .btn { margin: 0;
    width: fit-content;
    text-transform: uppercase;
    padding: 5px 30px !important;
    height: 52px;
    font-family: 'Cormorant';
    font-weight: 500;
    font-size: 16px;
    line-height: 42px;
    letter-spacing: 0%;
    color: #000;
    background: #fff;
    border: 1px solid #C7B087;
    border-radius: 35px; }

.doc-actions .send-btn{
  background: #C7B087;
    border-radius: 35px;
    color: #000;
    font-family: 'Cormorant';
    font-weight: 500;
    font-size: 16px;
    line-height: 42px;
    text-transform: uppercase;
    padding: 5px 30px;
}

.doc-actions .send-btn:hover{
  cursor: pointer;
}

@media (min-width: 640px) {
  .doc-detail { padding: 36px; }
  .doc-info h3 { font-size: 25px; }
}
@media (min-width: 1024px) {
  .spec { padding-bottom: 112px; }
  .spec-card { grid-template-columns: 400px 1fr;
        gap: 20px; }
  .doc-list {
        flex-direction: column;
        gap: 28px;
        padding: 30px;
        overflow-y: auto;
        overflow-x: hidden;
        border-bottom: 0;
        border-right: 1px solid var(--line);
        max-height: calc(217px * 3);
        scrollbar-width: thin;
        scrollbar-color: #797979;
  }

  .doc-list::-webkit-scrollbar {
    width: 6px;
  }

  .doc-list::-webkit-scrollbar-thumb {
    background: #797979;
    border-radius: 999px;
  }

  .doc-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .doc-tab { flex-direction: row; align-items: center; gap: 16px; width: 100%; padding: 0; border-radius: 0; }
  .doc-tab img { width: 148px; height: 180px; }
  #doc-1:checked ~ .spec-card [for="doc-1"],
  #doc-2:checked ~ .spec-card [for="doc-2"],
  #doc-3:checked ~ .spec-card [for="doc-3"],
  #doc-4:checked ~ .spec-card [for="doc-4"],
  #doc-5:checked ~ .spec-card [for="doc-5"],
  #doc-6:checked ~ .spec-card [for="doc-6"],
  #doc-7:checked ~ .spec-card [for="doc-7"] { box-shadow: none; }
  .doc-detail { grid-template-columns: 1fr 280px; gap: 40px; padding: 30px; max-height: calc(217px * 3); min-height: calc(217px * 3);}
  .doc-photo { order: 0; }

}
@media (min-width: 1280px) { .doc-detail { grid-template-columns: 1fr 400px; } }

/* ---------- 12. Отзывы ---------- */
.reviews { padding-bottom: 80px; }
.platforms {
  display: flex; gap: 10px;
  margin: 60px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none;
}
.platforms::-webkit-scrollbar { display: none; }
.platform {
  display: inline-flex; flex: none; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px;
  border: 1px solid #C7B087; border-radius: 100px; background: #fff;
  white-space: nowrap;
  
}

/* Мини-логотипы площадок */
.pl-sq { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 5px; background: var(--bg); font-size: 10px; font-weight: 700; line-height: 1; color: #fff; }
.pl-round { border-radius: 50%; font-size: 8px; }
.pl-docdoc { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; color: #2d7ff9; }
.pl-zoon { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: #1b3b8b; }
.pl-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4b4b; }
.pl-sber { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 200deg, #21a038, #f2d53c, #1c7ee0, #21a038); }
.pl-sber-txt { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #21a038; }
.pl-maps { font-size: 12px; font-weight: 600; color: var(--ink); }
.pl-2gis { font-size: 12px; font-weight: 700; color: #19aa1e; }
.pl-red { color: #e31e24; }
.pl-prodoc { font-size: 11px; font-weight: 600; color: #e31e24; }
.pl-google { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.pl-google > * { font-style: normal; text-decoration: none; }
.pl-google b { font-weight: 600; color: #4285f4; }
.pl-google i { color: #ea4335; }
.pl-google u { color: #fbbc05; }
.pl-google s { color: #34a853; }

.reviews-grid { margin-top: 32px; display: grid; }
.review {
  display: flex; flex-direction: column; height: 100%;
  padding: 35px; background: #F8F8F8; border: 1px solid #DFDFDF;
  margin-top: 0;
}
.review:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-card); }
.review header { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.review h3 { color:#000;font-family: 'Cormorant';
font-weight: 700;
font-size: 20px;
line-height: 36px;
letter-spacing: 0;
text-transform: uppercase;
 }
.stars { margin-top: 5px; display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; background:url(/wp-content/themes/CosmeticThemeOld/image/star_act.svg) no-repeat;background-size: contain; }
.review p { margin-top: 20px; flex: 1; font-family: 'Gilroy';
font-weight: 400;
font-size: 16px;
line-height: 23px;
letter-spacing: 0%;
color: #000;
 }
.review footer {
  
  display: flex; align-items: center; justify-content: end;
  font-size: 9.5px; color: var(--muted);
}
.ymaps { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--ink); }
.ymaps .ic { width: 14px; height: 14px; }

@media (min-width: 640px) { .review { padding: 28px; } }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .reviews { padding-bottom: 112px; }
  .platforms { margin: 60px 0 0; padding: 0; flex-wrap: wrap; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 13. Клиника изнутри ---------- */

.gallery { padding-bottom: 80px; }
.gallery-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gallery-grid li { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-grid .g1 { grid-column: span 2; aspect-ratio: auto; }
.gal-item { position: relative; display: block; height: 100%; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.45), transparent 50%);
  opacity: 0; transition: opacity 0.5s;
}
.gal-item:hover::after { opacity: 1; }
.gal-cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s;
}
.gal-item:hover .gal-cap { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .gallery { padding-bottom: 112px; }
  .gallery-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: 220px 220px; gap: 20px; }
  .gallery-grid li { aspect-ratio: auto; }
  .gallery-grid .g1 { grid-column: span 6; grid-row: span 2; }
  .gallery-grid .g2, .gallery-grid .g3 { grid-column: span 3; }
  .gallery-grid .g4 { grid-column: span 3; }
  .gallery-grid .g5 { grid-column: span 3; }
}
@media (min-width: 1280px) { .gallery-grid { grid-template-rows: 240px 240px; } }

/* ---------- 14. Видеоотзывы ---------- */
.videos { padding-bottom: 0px; }
.videos-carousel { margin-top: 40px; }
.video a { display: block; }
.video-thumb, .media-thumb { position: relative; overflow: hidden; background: var(--paper); }
.video-thumb { aspect-ratio: 5 / 4; }
.video-thumb img, .media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video:hover img, .media-card:hover img { transform: scale(1.05); }
.video-thumb::after, .media-thumb::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.1); transition: background 0.5s; }
.video:hover .video-thumb::after, .media-card:hover .media-thumb::after { background: rgb(0 0 0 / 0.2); }

.play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.8); background: rgb(255 255 255 / 0.1); color: #fff;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  transform: translate(-50%, -50%);
  transition: transform 0.5s, background 0.5s, border-color 0.5s;
}
.play svg { width: 40%; height: 40%; margin-left: 2px; }
.play-lg { width: 56px; height: 56px; }
.video:hover .play, .media-card:hover .play { transform: translate(-50%, -50%) scale(1.1); background: var(--gold); border-color: var(--gold); }

.video h3 {
  margin-top: 30px; font-family: 'Cormorant';
font-weight: 700;
font-size: 18px;
line-height: 28px;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
color: #000;
padding-left: 0;
    margin-bottom: 0;
}
.video:hover h3 { color: var(--gold); }


@media (min-width: 640px) { .videos-carousel { --per: 2; } }
@media (min-width: 1024px) { .videos { padding-bottom: 0px; } .videos-carousel { --per: 4; } }

@media (max-width: 640px) {
  /* Скрываем кнопку «Назад» по умолчанию */
.car-btn.prev {
  opacity: 0;
  pointer-events: none; /* нельзя кликнуть, пока скрыта */
  transition: opacity 0.3s ease;
}

/* Класс, который будем добавлять через JS, чтобы показать кнопку */
.car-btn.prev.visible {
  opacity: 1;
  pointer-events: auto;
}

.car-btn2.prev {
  opacity: 0;
  pointer-events: none; 
  transition: opacity 0.3s ease;
}


.car-btn2.prev.visible {
  opacity: 1;
  pointer-events: auto;
}
}

/* ---------- 15. Преимущества ---------- */


/* ---------- 16. Лицензия ---------- */
.license { padding-bottom: 80px; }
.license-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.doc { display: block; }
.doc-frame {
  position: relative; display: block; padding: 8px; background: #fff;
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.05);
  transition: transform 0.5s, box-shadow 0.5s;
}
.doc:hover .doc-frame { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgb(0 0 0 / 0.4), 0 0 0 1px rgb(0 0 0 / 0.05); }
.doc-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.doc-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center);
  transform: scale(var(--scale, 1)); transition: transform 1.2s var(--ease);
}
.doc:hover .doc-img img { transform: scale(calc(var(--scale, 1) * 1.06)); }
.doc-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(30 30 30 / 0); transition: background 0.5s; }
.doc-zoom span {
  padding: 8px 16px; border-radius: 999px; background: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s;
}
.doc:hover .doc-zoom { background: rgb(30 30 30 / 0.25); }
.doc:hover .doc-zoom span { opacity: 1; transform: none; }
.doc-cap { display: block; margin-top: 16px; padding: 0 4px; text-align: center; font-size: 10px; line-height: 1.4; color: var(--muted); }

@media (min-width: 640px) { .license-grid { gap: 28px; } .doc-frame { padding: 12px; } }
@media (min-width: 1024px) { .license { padding-bottom: 112px; } .license-grid { grid-template-columns: repeat(4, 1fr); gap: 36px; } }

/* ---------- 17. Конгрессы ---------- */
.congress-slider {
  position: relative;
}

.congress-swiper {
  overflow: hidden;
  padding: 10px 0 20px;
}

.congress-grid {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.congress-grid .swiper-slide {
  height: auto;
  display: flex;
}

.congress-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #F8F8F8;
  padding: 30px;
  border: 1px solid #DFDFDF;
}

.congress-year {
  font-family: 'Cormorant';
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
  letter-spacing: 0;
  font-variant-numeric-figure: lining-nums;
  font-variant-numeric-spacing: proportional-nums;
  color: #C7B087;
  margin-bottom: 20px;
}

.congress-card h3 {
  font-family: 'Cormorant';
  font-weight: 700;
  font-size: 17px;
  line-height: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 10px;
}

.congress-card p {
  font-family: 'Gilroy';
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0;
  color: #000;
}

.congress-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.congress-btn {
  display: inline-flex;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 25px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.congress-btn.congress-prev {
    left: 0px;
    background: url(/wp-content/themes/CosmeticThemeOld/assets/img/arr_l.svg) no-repeat;
}

.congress-btn.congress-next {
    right: 0px;
    background: url(/wp-content/themes/CosmeticThemeOld/assets/img/arr_r.svg) no-repeat;
}

.reviews-slider {
  position: relative;
}

.reviews-swiper {
  overflow: hidden;
  padding: 10px 0 20px;
}

.reviews-grid {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reviews-grid .swiper-slide {
  height: auto;
  display: flex;
  /*margin-right: 0!important;*/
}

.reviews-btn {
  display: inline-flex;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 25px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.reviews-btn.reviews-prev {
    left: 0px;
    background: url(/wp-content/themes/CosmeticThemeOld/assets/img/arr_l.svg) no-repeat;
}

.reviews-btn.reviews-next {
    right: 0px;
    background: url(/wp-content/themes/CosmeticThemeOld/assets/img/arr_r.svg) no-repeat;
}



.congress-btn.swiper-button-disabled {
  opacity: .35;
  pointer-events: none;
}

.congress-btn svg, .reviews-btn svg, .gallery-btn svg{
  display: none;
}

.congress-pagination {
  display: flex;
  gap: 8px;
}

.congress-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfcfcf;
  opacity: 1;
  transition: .25s;
}

.congress-pagination .swiper-pagination-bullet-active {
  background: #b98a5a;
  width: 24px;
  border-radius: 6px;
}

/* ---------- 18. О нас в СМИ ---------- */
.media { padding-bottom: 80px; }
.media-card{
  background: #F8F8F8;
  border: 1px solid #DFDFDF;
  padding: 30px;
}
.media-grid { margin-top: 40px; display: grid; gap: 28px; }
.media-card a { display: block; }
.media-thumb { aspect-ratio: 16 / 9; }
.yt {
  display: inline-flex; align-items: center; gap: 4px;
  height: 18px; margin-top: 20px; padding: 0; 
}
.media-card h3 {
  margin-top: 25px;
  font-family: 'Cormorant';
font-weight: 700;
font-size: 20px;
line-height: 30px;
letter-spacing: 0;
text-transform: uppercase;
color: #000;
}
.media-card:hover h3 { color: var(--gold); }


@media (min-width: 768px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .media { padding-bottom: 112px; } .media-grid { gap: 32px; } }



/* ---------- 20. Модальные окна и лайтбокс (:target) ---------- */
.modal, .lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgb(26 26 26 / 0.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal { align-items: flex-end; }
.lightbox { padding: 16px; background: rgb(26 26 26 / 0.9); }
.modal:target, .lightbox:target { display: flex; animation: fade 0.3s ease-out; }
body:has(.modal:target, .lightbox:target) { overflow: hidden; }
.overlay-bg { position: absolute; inset: 0; }

.modal-box {
  position: relative; width: 100%; max-width: 520px;
  padding: 40px 24px 32px; background: #fff; box-shadow: var(--shadow-float);
  animation: rise 0.7s var(--ease);
}
.modal-close, .lb-close {
  position: absolute; right: 16px; top: 16px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: rgb(30 30 30 / 0.6);
  transition: background 0.3s, color 0.3s;
}
.modal-close:hover { background: var(--paper); color: var(--ink); }
.modal-close svg, .lb-close svg { width: 20px; height: 20px; }
.rule { display: block; width: 36px; height: 1px; margin-bottom: 20px; background: var(--gold); }
.modal-box h3 { font: 400 26px/1.2 var(--font-display); text-transform: uppercase; color: var(--ink); }
.modal-lead { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }

.form { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.field { position: relative; }
.field input {
  width: 100%; height: 48px; padding: 0; border: 0; border-radius: 0;
  border-bottom: 1px solid rgb(30 30 30 / 0.2); background: none;
  font: 400 14px var(--font-sans); color: var(--ink); outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--gold); }
.field label {
  position: absolute; left: 0; top: 12px;
  font-size: 13px; color: var(--muted); pointer-events: none;
  transition: top 0.2s, font-size 0.2s, color 0.2s, letter-spacing 0.2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { top: -10px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.field input:focus + label { color: var(--gold); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--gold); }
.consent a { text-decoration: underline; text-decoration-color: rgb(199 166 107 / 0.6); text-underline-offset: 2px; }
.consent a:hover { color: var(--gold); }
.form-error { display: none; margin-top: -8px; font-size: 12px; color: #c62828; }
.form.invalid .form-error { display: block; }

.modal-box--center { text-align: center; padding-top: 56px; }
.check-badge {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--gold); color: #fff;
  animation: zoom 0.55s var(--ease);
}
.check-badge svg { width: 28px; height: 28px; }
.modal-box--center p { margin: 16px auto 0; max-width: 320px; font-size: 13px; line-height: 1.6; }
.modal-box--center .btn { margin-top: 32px; }

.lb-close { color: #fff; border: 1px solid rgb(255 255 255 / 0.3); width: 44px; height: 44px; }
.lb-close:hover { background: #fff; color: var(--ink); }
.lightbox img { position: relative; max-width: 100%; max-height: 88vh; width: auto; height: auto; object-fit: contain; box-shadow: var(--shadow-float); animation: zoom 0.55s var(--ease); }

@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal-box { padding: 56px 48px 48px; }
  .modal-box h3 { font-size: 30px; }
}

/* ---------- 21. Анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Появление блоков при прокрутке — scroll-driven animations (чистый CSS).
   Для браузеров без поддержки script.js подключает IntersectionObserver (.js-reveal). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .stagger > :nth-child(2) { animation-range: entry 12% entry 62%; }
    .stagger > :nth-child(3) { animation-range: entry 24% entry 74%; }
    .stagger > :nth-child(4) { animation-range: entry 36% entry 86%; }
  }
}
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .stagger > :nth-child(2) { transition-delay: 0.09s; }
.js-reveal .stagger > :nth-child(3) { transition-delay: 0.18s; }
.js-reveal .stagger > :nth-child(4) { transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

.rutube-video {
  position: relative;
    width: 280px;
    height: 200px;
    max-width: 100%;
    margin: 0px auto;
    background: #000;
    overflow: hidden;
}

.rutube-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
 .about { position: relative; overflow: clip; padding: 64px 0 96px; }
.about-grid { display: grid; gap: 56px; }
.about-copy { position: relative; }
.about-ghost {
  position: absolute; top: -36px; left: 180px;  
  white-space: nowrap; pointer-events: none; user-select: none;
  font-family: 'Gilroy';
font-weight: 700;
font-size: 270px;
line-height: 42px;
color: #E9E9E9;
}
.about .container{
    width: 1450px!important;
}
.about-copy > .sec-title, .about-sub, .about-body { position: relative; }
.sec-title{
    color: #000;
    font-family: 'Cormorant';
font-weight: 500;
font-size: 56px;
line-height: 36px;
letter-spacing: 0;
text-transform: uppercase;
}
.about-block{
padding: 0;
width: 1450px!important;
}
.about-sub {
  margin-top: 20px;
    max-width: 840px;
    text-transform: uppercase;
    color: #000;
    font-family: 'Cormorant';
    font-weight: 500;
    font-size: 36px;
    line-height: 56px;
    letter-spacing: 0%;
}
.about-body { margin-top: 0px; display: grid; grid-template-columns: 112px 1fr; gap: 24px; }
.about-portrait { overflow: hidden; }
.about-portrait img { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: contain; object-position: top; transition: transform 1.2s var(--ease); }
.about-portrait:hover img { transform: scale(1.04); }
.about-text p{ font-family: 'Gilroy';
font-weight: 400;
font-style: Regular;
font-size: 16px;
line-height: 23px;
letter-spacing: 0%;
margin-bottom: 16px;
color: #000;
 }
.about-text p + p { margin-top: 16px; }
.about-text .btn { margin-top: 0px; background: #C7B087; padding: 20px 35px; border-radius: 35px; color: #000; font-family: 'Cormorant';
font-weight: 500;
font-size: 16px;
line-height: 42px;
text-transform: uppercase;
border: 0;
}

.about-photos { position: relative; margin-left: 40px; }
.about-main { overflow: hidden;height:690px }
.about-main img { width: 100%; object-fit: cover; height: 690px; transition: transform 1.4s var(--ease); }


@media (min-width: 640px) {
  .about-ghost { font-family: 'Gilroy';
    font-weight: 700;
    font-size: 185px;
    line-height: 42px;
    letter-spacing: 0%;
    left: 45%;
    top: 40px;
    color: #E9E9E9; }
  .about-body { grid-template-columns: 400px 1fr; gap: 10px; }
  .about-text { font-size: 12.5px; }
  .about-photos { margin-left: 80px; }
  
}
@media (min-width: 1024px) {
  .about { padding: 120px 0 120px; }
  .about-grid { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .about-copy { grid-column: span 8; }
  .about-ghost { font-family: 'Gilroy';
    font-weight: 700;
    font-size: 185px;
    line-height: 42px;
    letter-spacing: 0%;
    left: 45%;
    top: 25px;
    color: #E9E9E9; }
  .about-photos { grid-column: span 4; margin: 0px; margin-top: -25px; }
  
}
.services { padding: 16px 0 80px; }
.acc-wrap { position: relative; margin-top: 40px; }
.acc { display: flex; flex-direction: column; gap: 6px; }

.svc {
  --on: 0;              /* 1 — активная панель (выставляется селекторами ниже) */
  --vis: hidden;
  --rows: 0fr;
  position: relative; overflow: hidden;
  background: var(--c); color: #fff;
}
/* Активная панель: N-й radio включён → N-я панель */
#svc-1:checked ~ .acc > :nth-child(1),
#svc-2:checked ~ .acc > :nth-child(2),
#svc-3:checked ~ .acc > :nth-child(3),
#svc-4:checked ~ .acc > :nth-child(4),
#svc-5:checked ~ .acc > :nth-child(5) { --on: 1; --vis: visible; --rows: 1fr; }
/* Фокус с клавиатуры */
#svc-1:focus-visible ~ .acc > :nth-child(1) .svc-label,
#svc-2:focus-visible ~ .acc > :nth-child(2) .svc-label,
#svc-3:focus-visible ~ .acc > :nth-child(3) .svc-label,
#svc-4:focus-visible ~ .acc > :nth-child(4) .svc-label,
#svc-5:focus-visible ~ .acc > :nth-child(5) .svc-label { outline: 2px solid #fff; outline-offset: -4px; }

.svc-label { font-family: var(--font-display); text-transform: uppercase; color: #000; }
.svc-card { color: #fff; }
.svc-card h3 { font-family: 'Cormorant';
font-weight: 500;
font-size: 36px;
line-height: 56px;
text-transform: uppercase;
color: #000;
 }
 .svc-card h3:after{
content: '';
display: block;
height: 5px;
background: #C7B087;
width: 158px;
 }
.svc-card p { margin-top: 16px; font-family: Gilroy;
font-weight: 400;
font-style: Regular;
font-size: 16px;
line-height: 23px;
color: #000;
 }
.svc-card .btn { margin-top: 50px;background: #C7B087;
    padding: 10px 35px;
    height: 52px;
    border: 0;
    border-radius: 35px;
    color: #000;
    font-family: 'Cormorant';
    font-weight: 500;
    font-size: 16px;
    line-height: 42px;
    text-transform: uppercase; }

/* Мобильная/планшетная версия — вертикальный аккордеон */
@media (max-width: 1023.98px) {
  .svc-label {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: 18px 20px; font-size: 14px; letter-spacing: 0.1em;
  }
  .svc-label .ic { transition: transform 0.4s; transform: rotate(calc(180deg * var(--on))); }
  .svc-body {
    display: grid; grid-template-rows: var(--rows);
    visibility: var(--vis);
    transition: grid-template-rows 0.55s var(--ease);
  }
  .svc-inner { min-height: 0; overflow: hidden; }
  .svc-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .svc-card { padding: 24px 20px 28px; }
}

/* Десктоп — горизонтальный аккордеон */
@media (min-width: 1024px) {
  .services { padding-bottom: 0px; }
  .acc-wrap { margin-top: 48px; }
  .acc { flex-direction: row; gap: 0; height: 800px; }
  .svc {
    flex: var(--on) 0 calc(72px * (1 - var(--on)));
    margin-left: 6px;
    transition: flex-basis 0.75s var(--ease), flex-grow 0.75s var(--ease), filter 0.3s;
  }
  .svc:first-child { margin-left: 0; }
  .svc:hover { filter: brightness(calc(1 + 0.08 * (1 - var(--on)))); }

  .svc-label { position: absolute; inset: 0; z-index: 2; width: 72px; opacity: calc(1 - var(--on)); transition: opacity 0.3s; }
  .svc-label span {
    position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
    writing-mode: vertical-rl; white-space: nowrap;
  }
  .svc-label .ic { display: none; }

  .svc-body {
    position: absolute; inset: 0; z-index: calc(3 * var(--on));
    opacity: var(--on); visibility: var(--vis);
    transition: opacity 0.55s ease 0.18s;
  }
  .svc-inner { position: absolute; inset: 0; }
  .svc-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 70% 20%;
    transform: scale(calc(1 + 0.04 * (1 - var(--on))));
    transition: transform 1.4s var(--ease);
  }
  .svc-card {
    position: absolute; left: 0; bottom: 0;
    width: min(410px, 60%); padding: 38px 34px 40px; padding-right: 0;
    transform: translateY(calc(16px * (1 - var(--on))));
    transition: transform 0.7s var(--ease) 0.3s, opacity 0.6s ease 0.3s;
  }
  .svc-card h3 { font-size: 26px; }
}
.acc-wrap input[type="radio"]{
    display: none;
}
    #services .container{
        width: 1450px;
    }
    .svc-label:after{
      content: '';
      width: 5px;
      height: 50px;
      background: url(/wp-content/themes/CosmeticThemeOld/image/svc.svg) no-repeat;
      position: absolute;
      bottom: 50px;
      left: 45%;
    }
    #before-after .container{
        width: 1450px;
    }

    #specialists .container{
        width: 1450px;
    }
    .specialist{
      margin-top: 0;
      padding-left: 0;
    }
.top_info_bar ul .dropdown:after {
    bottom: auto;
    top: 10px;
}

#reviews .container{
        width: 1450px;
    }

    #gallery{
      background: #F8F8F8;
      padding: 120px 0;
    }

    #gallery .container{
        width: 1450px;
    }

    .video-embed {
  position: relative;
  width: 250px;
  height: 250px;
  max-width: 100%;
  margin: 0px auto;
  background: #000;
  overflow: hidden;
}

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

#video-reviews{
  margin-top: 120px;
  margin-bottom: 120px;
}

#video-reviews .container{
        width: 1450px;
    }

    .videos-carousel .video{
      background: #F8F8F8;
    border: 1px solid #DFDFDF;
    padding: 20px;
    }

    #advantages .container{
        width: 1450px;
    }

    #license .container{
        width: 1450px;
    }

    .advantages .uppercase{
      font-family: 'Cormorant';
font-weight: 700;
font-size: 20px;
line-height: 30px;
letter-spacing: 0;
text-transform: uppercase;
color: #fff;
    }

    .advantages p{
      font-family: 'Gilroy';
font-weight: 400;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
margin-top: 10px;
margin-bottom: 0;
    }

.advantages {
  margin: 0 auto;
  min-height: auto;
  margin-top: 60px;
  margin-bottom: 120px;
  overflow: inherit;
  color: #fff;
  position: relative;
  background: url("../img/template/adv.jpg") no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  overflow: hidden;
}

.advantages:after {
  display: block;
  content: "";
  background: #C7B087;
  width: 107%;
  height: 5px;
  margin-left: -11%;
}

.advantages .back-text {
  position: absolute;
  z-index: 1;
  top: -155px;
  right: 60px;
  color: #e9e9e9;
  font-size: 108px;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}



.advantages .adventage_list {
  position: relative;
}

.advantages .adventage_list img {
  display: block;
}

.advantages .adventage_list:first-child {
  z-index: 1;
  position: relative;
  margin-top: 0px;
}

.advantages .adventage_list:first-child .text {
  margin-top: 25px;
  padding-left: 283px;
}

.advantages .adventage_list:nth-of-type(2){
  margin-top: 0px;
}

.advantages .adventage_list img.img-1 {
  width: 53%;
  float: left;
  padding-right: 15px;
}

.advantages .adventage_list:nth-of-type(2) .text {
  margin-top: 25px;
  padding-left: 330px;
}

.advantages .adventage_list:nth-of-type(3) {
  position: absolute;
  bottom: 0;
  left: 30%;
}

.advantages .adventage_list img.img-2 {
  width: 43%;
  float: left;
  padding-right: 15px;
  padding-bottom: 15px;
}

.advantages .adventage_list:nth-of-type(3) .text {
  padding-left: 15%;
  margin-top: 0;
  margin-bottom: 15px;
}

.advantages .adventage_list:nth-of-type(4) {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-left: 36%;
}

.advantages .adventage_list img.img-3 {
  width: 90%;
  padding-right: 0;
  padding-bottom: 0;
}

.advantages .adventage_list:nth-of-type(4) .text {
  padding: 0 29% 15px 0px;
}

.advantages .adventage_list:nth-of-type(5) {
  position: absolute;
  right: -130px;
  bottom: -19%;
}

.advantages .adventage_list img.img-4 {
  width: 80%;
}

.advantages .adventage_list:nth-of-type(5) .text {
  padding: 0 29% 0 40px;
}

.sert-item{
  background: #F8F8F8;
  border: 1px solid #DFDFDF;
  padding: 40px;
}

#congres .container{
        width: 1450px;
    }

#congres{
  margin-bottom: 120px;
}

.congress-slider{
  margin-top: 60px;
  padding: 0px 56px;
}

#media .container{
        width: 1450px;
    }

    .certificates_list{
      margin-top: 60px;
    }

    .reviews-slider{
      margin-top: 60px;
      padding: 0 50px;
      box-sizing: border-box;
    }
    header .left-header{
            padding-right: 0;
            margin-bottom: 50px;
        }
        .phone_info_top {
            right: 50px;
        }
        .doctor-left #content-tabs > div {
            padding: 0px;
        }
        .doctor-left #content-tabs h1{
            color: #000;
            font-family: 'Cormorant';
            font-weight: 500;
            font-style: Medium;
            font-size: 46px;
            leading-trim: NONE;
            line-height: 60px;
            letter-spacing: 0%;
            text-transform: uppercase;
            margin-bottom: 16px;
        }
        .doctor-left #content-tabs .small-text{
            font-family: 'Gilroy';
            font-weight: 500;
            font-size: 20px;
            line-height: 42px;
            color: #000;
            padding-bottom: 0;
        }
        .doctor-left #content-tabs .send-btn-all_ceny{
            justify-content: start;
            gap: 25px;
        }
        header:not(.main-page) .row {
            min-height: 700px;            
        }
        .center-header{
            display: flex;
            width: 100%;
            padding: 0 0 0 45px;
            align-items: center;
            margin-top: 50px;
            gap: 10px;
            position: relative;
            z-index: 9999;
        }
        .tabs-home{
            display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; max-width: 550px;
        }
        .tabs-home li{
            padding: 5px 20px;
    background: #C7B087;
    border-radius: 35px;
        }
        .tabs-home li a{
            color: #000;
            font-family: 'Cormorant';
            font-weight: 500;
            font-size: 15px;
            line-height: 42px;
            text-transform: uppercase;
        }
        .hero-features-wrap { position: relative;max-width: 900px; }

.hero-features-wrap::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: 100%;
  left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
  background: #F4F4F48F;
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
}
.advans-header { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 24px; padding: 24px 0; }
.advans-header-item { padding: 0 16px; }
.advans-header-item span.text{
    color: #000;
    font-family: 'Gilroy';
font-weight: 500;
font-size: 14px;
line-height: 20px;
display: block;
max-width: 175px;
}
.advans-header-item span.title-adv{
    color: #000;
    font-family: 'Gilroy';
font-weight: 500;
font-size: 17px;
line-height: 42px;
display: block;
}
@media (min-width: 640px) {
  .advans-header { grid-template-columns: repeat(4, 1fr); }
  .advans-header-item { padding: 0; padding-left: 25px;}
  .advans-header-item + .advans-header-item { border-left: 1px solid #fff; }
  .advans-header-item:first-child { padding-left: 15px; }
}
@media (min-width: 1024px) {
  .hero-features-wrap { grid-column: span 7; }
  .hero-features-wrap::before { left: -5px;}
  .advans-header { padding: 28px 0; grid-template-columns: 210px 210px 210px 270px; }
  .advans-header-item:last-child span.text{max-width: 220px;}
}
@-moz-document url-prefix()
{
    @media (min-width: 1024px) {
      .tabs-home{
      gap: 8px; max-width: 535px;
      }
  .about-photos {
    grid-column: span 4;
    margin: 0px;    
  }
  .about-desk {
    left: -220px;
    width: 100%;
    height: 195px;
    bottom: -30px;
  }
  .about-main { overflow: hidden;height:690px }
.about-main img { width: 100%; object-fit: cover; height: 690px; transition: transform 1.4s var(--ease); }
}
}

@media (max-width: 1400px) {
  .tabs-home{
    max-width: 410px;
  }
  .phone_info_top {
    right: 130px;
  }
  #services .container{
    width: 100%;
}
.about-block {
  width: 100%!important;
}
#before-after .container{
    width: 100%;
}
#specialists .container{
    width: 100%;
}
#reviews .container{
    width: 100%;
}
#gallery .container{
    width: 100%;
}
#video-reviews .container{
    width: 100%;
}
#advantages .container{
    width: 100%;
}
#license .container{
    width: 100%;
}
#congres .container{
    width: 100%;
}
#media .container{
    width: 100%;
}

.about .container {
  width: 100%!important;
}

.about-ghost{
  font-size: 160px;
}



.doc-detail {
    grid-template-columns: 1fr 350px;
  }

  .doc-bio {
  margin-top: 15px;
}

.doc-stats{
  margin-top: 15px;
}

.doc-stats strong{
  margin-top: 10px;
  font-size: 30px;
}

.doc-actions{
  margin-top: 15px;
}

.sec-title{
  font-size: 54px;
}

.media-card h3{
  margin-top: 20px;
  font-size: 18px;
}

.doc-actions .send-btn{
  padding: 4px 30px;
}

.doc-actions .btn{
  height: 50px;
}

.carousel {
    padding: 0 45px;
  }

  .advantages .adventage_list:first-child .text{
    padding-left: 260px;
  }

  .advantages .uppercase{
    font-size: 17px;
  }
.about-desk{
  bottom: -85px;
}
}

@media (max-width: 1300px) {
  .advans-header-item{
    padding-left: 15px;
  }
  .advans-header-item:first-child {
    padding-left: 10px;
  }
  .hero-features-wrap{
    max-width: 870px;
  }
  .advans-header {
    padding: 25px 0;
    grid-template-columns: 200px 200px 200px 270px;
  }
  .tabs-home li a{
    font-size: 14px;
  line-height: 40px;
  }
  .doctor-left #content-tabs .small-text{
    font-size: 17px;
  }
  .about-sub{
  font-size: 34px;
  line-height: 46px;
}

.about-text p{
  font-size: 14px;
  line-height: 20px;
}

.about {
    padding: 90px 0 90px;
  }
  .sec-title {
    font-size: 50px;
  }
  .svc-plate .name{
    font-size: 34px;
    line-height: 50px;
  }
  .svc-plate{
    padding: 0 25px;
    min-height: 100px;
  }
  .ba-tabs{
    gap: 8px;
  }
  #ba-1:checked ~ .ba-tabs [for="ba-1"], #ba-2:checked ~ .ba-tabs [for="ba-2"], #ba-3:checked ~ .ba-tabs [for="ba-3"], #ba-4:checked ~ .ba-tabs [for="ba-4"], #ba-5:checked ~ .ba-tabs [for="ba-5"], #ba-6:checked ~ .ba-tabs [for="ba-6"]{
    font-size: 15px;
    line-height: 40px;
    padding: 20px 15px;
  }
  .spec-card {
    grid-template-columns: 350px 1fr;
    gap: 20px;
  }
  .doc-detail {
    grid-template-columns: 1fr 300px;
  }
  .carousel {
    padding: 0 20px;
    --gap: 8px;
  }
   .advantages .adventage_list:first-child .text {
    padding-left: 240px;
  }
}

@media (min-width: 1000px) and (max-width: 1100px) {
  .doctor-left #content-tabs h1{
    font-size: 34px;
  }
  .doctor-left #content-tabs .small-text {
    font-size: 15px;
  }
  .hero-features-wrap {
    max-width: 630px;
  }
  .advans-header{
    padding: 15px 0;
    grid-template-columns: 220px 270px;
    grid-template-rows: auto auto;
    gap: 20px;
  }
  .advans-header-item:nth-of-type(3){
    border-left: 0;
  }
  header .row{
    background-position: 400px 60px, center, center!important;
  }
  .about-sub{
    font-size: 28px;
  }
  .about-ghost {
    font-size: 128px;
  }

  .about-body {
    grid-template-columns: 250px 1fr;
  }

  .svc-copy{
    padding: 0 0 40px 25px;
  }

   .doc-info h3 {
    font-size: 22px;
  }

  .doc-role{
    font-size: 18px;
  line-height: 24px;
  }

  .doc-bio p{
    font-size: 14px;
  line-height: 20px;
  }

  .doc-detail {
    grid-template-columns: 1fr 220px;
  }

  .doc-photo{
    background: none;
  }

  .doc-photo img{
    object-fit: contain;
  }

    .spec-card {
    grid-template-columns: 315px 1fr;
    gap: 10px;
  }

  .doc-list{
    padding: 20px;
  }

  .doc-detail{
    padding: 20px;
  }

  .doc-stats span{
    font-size: 13px;
  }

  .doc-stats strong {
    margin-top: 5px;
    font-size: 22px;
  }
  .doc-actions .btn{
    padding: 5px 15px !important;
    font-size: 14px;
  }
  .doc-actions .send-btn {
    padding: 4px 15px;
    font-size: 14px;
  }

  .advantages{
    padding-left: 4%;
  }

 .advantages .adventage_list:first-child .text {
    padding-left: 200px;
  }

  .advantages .uppercase {
    font-size: 14px;
  }
  .advantages p{
    font-size: 14px;
  line-height: 20px;
  }

  .advantages .adventage_list:nth-of-type(2) .text {
  margin-top: 25px;
  padding-left: 240px;
}

.advantages .adventage_list:nth-of-type(3){
  left: 23%;
}

.advantages .adventage_list:nth-of-type(4){
  margin-left: 30%;
}
.sec-title{
  font-size: 40px;
}

.media-card h3 {
    margin-top: 16px;
    font-size: 17px;
  }
}

@media (min-width: 1900px) {
 #services .container{
    width: 100%;
}
.about-block {
  width: 100%!important;
}
#before-after .container{
    width: 100%;
}
#specialists .container{
    width: 100%;
}
#reviews .container{
    width: 100%;
}
#gallery .container{
    width: 100%;
}
#video-reviews .container{
    width: 100%;
}
#advantages .container{
    width: 100%;
}
#license .container{
    width: 100%;
}
#congres .container{
    width: 100%;
}
#media .container{
    width: 100%;
}

.about .container {
  width: 100%!important;
} 
.center-header{
  gap: 50px;
}
}



@media (max-width: 992px) {
  .logo_footer img{
    margin: 0 auto;
  }
  .wrapper {
        margin-bottom: 0px;
        min-height: 100%;
        max-height: max-content;
    }
  
  header .left-header.doctor-left #content-tabs > div {
        padding: 27px 0px 0px 0 !important;
    }
  .doctor-left #content-tabs h1{
    color: #000!important;
    font-family: 'Cormorant';
    font-weight: 500!important;
    font-size: 24px!important;
    line-height: 34px!important;
    letter-spacing: 0!important;
    text-align: center!important;
    text-transform: uppercase!important;
    margin-bottom: 15px!important;
  }
  .doctor-left #content-tabs .small-text{
    font-family: 'Gilroy';
font-weight: 500!important;
font-size: 16px!important;
line-height: 20px!important;
letter-spacing: 0!important;
text-align: center!important;
margin-bottom: 0px!important;
  }
  .doctor-left #content-tabs h1 br{
    display: none;
  }
  .doctor-left #content-tabs .send-btn-all_ceny {
    justify-content: center!important;
    gap: 10px!important;
    margin-top: 30px!important;
}
    header .left-header {
        padding-left: 15px!important;
        padding-right: 15px!important;
        margin-bottom: 0!important;
    }
    .send-btn-all_ceny .btn.dark{
      width: 185px!important;
    }
    .send-btn-all_ceny .send-btn{
      width: 280px!important;
    }
    .center-header{
      flex-direction: column;
      padding: 0 15px!important;
      gap: 60px;
      margin-top: 47px;
      z-index: 101;
    }
    header:not(.main-page) .row:after{
      display: none;
    }
    .tabs-home {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center!important;
    gap: 8px!important;
    max-width: 100%;
}
.tabs-home li a {
    color: #000;
    font-family: 'Cormorant';
    font-weight: 500;
    font-size: 14px!important;
    line-height: 20px!important;
    text-transform: uppercase;
}
.tabs-home li {
    padding: 5px 20px;
    background: #C7B087;
    border-radius: 35px;
    height: 30px!important;
}
.hero-features-wrap::before{
  display: none;
}
.hero-features-wrap {
    position: relative;
    max-width: 100%;
    background: #F4F4F48F;
    backdrop-filter: blur(40px);
    border: 1px solid #FFFFFF;
    padding: 20px;
}
.advans-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr!important;
    row-gap: 15px!important;
    padding: 0!important;
}
.advans-header-item span.title-adv{
  font-family: Gilroy;
font-weight: 500;
font-size: 20px!important;
line-height: 42px!important;
letter-spacing: 0;
text-align: center!important;
}
.advans-header-item span.text{
  font-family: Gilroy;
font-weight: 500;
font-size: 16px!important;
line-height: 20px!important;
letter-spacing: 0;
text-align: center!important;
max-width: 289px!important;
}
header:not(.main-page), header:not(.main-page) .row{
  margin-bottom: 0!important;
}
header:not(.main-page) .row{
  background-position: right top !important;
  background-size: contain !important;
}
.advans-header-item {
  padding: 0;
}
.svc-panel::after{
  background: url(/wp-content/themes/CosmeticThemeOld/image/mask.png);
  background-size: cover;
}
.about-ghost{
  display: none;
}
.services-showcase {
  padding: 0 0 65px;
}
.swiper-button-disabled {
  display: none;
}
.wrapper::after {
    height: 65px;
  }
.sec-title{
  font-family: Cormorant;
font-weight: 500!important;
font-size: 19px!important;
line-height: 36px!important;
letter-spacing: 0;
text-transform: uppercase;
    padding-top: 10px!important;
    padding-bottom: 0!important;
}
.sec-title:before{
  left: 2px;
  top: 8px;
}
.about{
  padding: 65px 0;
}
.about-sub{
  font-family: Cormorant;
font-weight: 500;
font-size: 14px!important;
line-height: 22px!important;
letter-spacing: 0;
margin-top: 30px!important;
    max-width: 100%!important;
}
.about .container{
    width: 100%!important;
}
.services .container{
        width: 100%;
    }
    #before-after .container{
        width: 100%;
    }

    #specialists .container{
        width: 100%;
    }
    #reviews .container{
        width: 100%;
    }
    #gallery .container{
        width: 100%;
    }
    #video-reviews .container{
        width: 100%;
    }
    #advantages .container{
        width: 100%;
    }

    #license .container{
        width: 100%;
    }
    #congres .container{
        width: 100%;
    }
    #media .container{
        width: 100%;
    }
    .about-block {
    padding: 0;
    width: 100% !important;
}
.about-body {
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
}
.about-portrait img{
      aspect-ratio: auto;
}
.about-text .btn{
  margin-top: 4px;
  height: 52px;
}
.about-photos{
  margin-left: 0;
}
.about-main img {
    width: 100%;
    object-fit: contain;
    height: 460px;
    aspect-ratio: auto;
}
.about-main{
  height: 460px;
}
.about-desk{
  position: relative;
    bottom: -20px;
    left: 0;
    width: 100%;
    max-width: 330px;
    aspect-ratio: auto;
    object-fit: contain;
}
.rutube-video{
  width: 330px;
  height: 310px;
}
.services {
    padding: 20px 0 65px;
}
.svc-label:after {
    content: '';
    width: 50px;
    height: 5px;
    background: url(/wp-content/themes/CosmeticThemeOld/assets/img/svc_m.svg) no-repeat;
    position: absolute;
    bottom: 29px;
    left: 75%;
}
.svc{
  background: linear-gradient(90deg, #C0CAD3 0%, #E1E5E9 100%);
}
.ba-tabs{
  gap: 8px;
  margin: 30px calc(var(--gutter) * -1) 0;
  flex-wrap: wrap;
}
#ba-1:checked ~ .ba-tabs [for="ba-1"], #ba-2:checked ~ .ba-tabs [for="ba-2"], #ba-3:checked ~ .ba-tabs [for="ba-3"], #ba-4:checked ~ .ba-tabs [for="ba-4"], #ba-5:checked ~ .ba-tabs [for="ba-5"], #ba-6:checked ~ .ba-tabs [for="ba-6"] {
    background: #C7B087;
    border: 1px solid #C7B087;
    color: #000;
    font-family: 'Cormorant';
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 5px 15px;
}
.ba-tabs .chip{
  height: 30px;
  padding: 5px 15px;
  font-family: 'Cormorant';
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
}
.carousel{
  padding: 0;
}
.ba-shot{
  height: 130px;
}
.center{
  margin-top: 20px;
}
.ba-panels {
    margin-top: 20px;
}
.ba {
    padding-bottom: 65px;
}
.spec-intro{
  margin-top: 30px;
}
.doc-list{
  padding: 20px;
}
.spec-card{
  gap: 20px;
}
.doc-tab{
  flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 0;
}
.doc-tab b{
  font-family: 'Cormorant';
font-weight: 700;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
text-transform: uppercase;
}
.doc-tab small{
  font-family: 'Cormorant';
font-weight: 500;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
}
.doc-detail{
  padding: 20px;
  gap: 20px;
  grid-template-columns: 1fr;
}
.doc-info h3{
  font-family: 'Cormorant';
font-weight: 700;
font-size: 19px;
line-height: 23px;
letter-spacing: 0;
text-transform: uppercase;
}
.doc-role{
  font-family: 'Cormorant';
font-weight: 500;
font-size: 16px;
line-height: 23px;
letter-spacing: 0;
}
.doc-bio p + p {
    margin-top: 16px;
}
.doc-stats{
  margin-top: 20px;
  flex-direction: column;
  gap: 20px;
}
.doc-stats strong{
  margin-top: 10px;
}
.doc-actions{
      margin-top: 30px;
      gap: 25px;
}
.doc-photo img{
  height: 394px;
    object-fit: contain;
}
    .specialist {
        padding-bottom: 0;
        padding-right: 0;
    }
    .platforms{
        flex-wrap: wrap;
    margin: 30px calc(var(--gutter) * -1) 0;
    }
    .platform{
      padding: 5px 25px;
    }
    .reviews-slider {
    margin-top: 20px;
    padding: 0;
}
.review header{
  min-height: auto;
}
.review{
  padding: 20px;
}
.gallery-grid{
      margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.gallery-grid .g1 {
    grid-column: auto;
    aspect-ratio: auto;
}
#gallery{
  padding: 30px 0;
}
.gallery-nav{
  display: none;
}
#video-reviews {
    margin-top: 65px;
    margin-bottom: 65px;
}
.videos-carousel {
    margin-top: 0;
}
.video h3{
  font-family: 'Cormorant';
font-weight: 700;
font-size: 19px;
line-height: 30px;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
margin-top: 20px;
}
.sert-item{
  padding: 20px;
}
.certificates_list {
    margin-top: 30px;
}
.license {
    padding-bottom: 65px;
}
.congress-slider {
    margin-top: 30px;
    padding: 0;
}
.congress-card{
  padding: 20px;
}
.congress-year{
  font-size: 16px;
}
.congress-card h3{
  font-size: 16px;
  line-height: 23px;
}
#congres {
    margin-bottom: 65px;
}
.media-grid{
      margin-top: 30px;
}
.media {
    padding-bottom: 0;
}
.media-card{
  padding: 20px;
}
.media-card h3{
  margin-top: 20px;
  font-size: 19px;
}
.reviews-grid .swiper-slide{
  /*margin-right: 0 !important;*/
}
header .left-header {
    margin-top: 30px !important;
}
.phone_info_top{
  top: 0px !important;
  right: 70px;
}
.no-mobil{
  display: none;
}
.advantages .adventage_list img.img-1, .advantages .adventage_list img.img-2, .advantages .adventage_list img.img-3,.advantages .adventage_list img.img-4{
  display: none!important;
}
.advantages{
  padding: 30px 15px;
  margin-bottom: 65px;
  margin-top: 30px;
}
.advantages .adventage_list:first-child .text{
  margin-top: 0;
}
.advantages .adventage_list:nth-of-type(3) .text{
  margin-bottom: 0;
}
.advantages .adventage_list:nth-of-type(2) .text{
  margin-top: 0;
}
.advantages .adventage_list:nth-of-type(4){
  margin-left: 0;
  margin-bottom: 0;
}
.advantages:after{
  display: none;
}
.advantages .adventage_list:nth-of-type(4) .text{
  padding: 0;
}
.advantages .adventage_list{
  padding: 0;
}
.advantages .uppercase{
  margin-bottom: 0;
}
.congress-nav{
  margin-top: 0;
}
#services .container {
    width: 100%;
}
.svc-title{
  font-family: 'Cormorant';
font-weight: 500;
font-size: 19px;
line-height: 56px;
letter-spacing: 0%;
vertical-align: middle;
text-transform: uppercase;

}
.svc-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    45.44% 45.44% at 42.18% 40.69%,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(220, 225, 230, 0.442841) 48.86%,
    rgba(185, 195, 205, 0) 100%
  );
}
.svc-panel{
  background: radial-gradient(45.44% 45.44% at 42.18% 40.69%, rgba(255, 255, 255, 0.88) 0%, rgba(220, 225, 230, 0.442841) 48.86%, rgba(185, 195, 205, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;

}
.svc-plate .name{
  font-size: 19px;
}
      .svc-plate {
        min-height: 56px;
        padding: 0px 20px;
    }
    .spec-card {
    grid-template-columns: 1fr; 
  }

  .doc-list {
    display: flex;
    flex-wrap: nowrap;          
    overflow-x: auto;          
    scrollbar-width: thin;      
    padding: 20px;           
    gap: 20px;                  
  }

  .doc-actions .send-btn{
    padding: 5px 40px;
  }

  .spec {
  padding-bottom: 65px;
}

.reviews {
  padding-bottom: 65px;
}

.gallery-slider{
  margin-top: 30px;
}

.doc-actions .btn{
  padding: 5px 40px !important;
}

.about-grid{
  gap: 30px;
}

.svc-showcase{
  margin-top: 30px;
}

.svc-rule{
  width: 140px;
  margin: 5px 0 30px 0;
}

.svc-copy .btn-sm{
  margin-top: 35px;
}

.spec-wrap{
  margin-top: 20px;
}

/* Убираем скрытие скроллбара на мобильных */
.doc-list::-webkit-scrollbar {
  height: 6px;
}
.svc-portrait.rino img {
    object-position: 48%;
}
}

.tizers.mobil-new{
  display: none;
}

@media (min-width: 600px) and (max-width: 865px) {
  .top_info_bar{
    background: initial;
  }
  .toggler + ul{
    background: #212121;
  }
  .center-header{
    gap: 30px;
  }
  .center-header .hero-features-wrap{
    display: none;
  }
  
  header:not(.main-page) .row {
  min-height: 540px;
}
.about-desk{
  left: 29%;
}
.videos-carousel {
    margin-top: 30px;
  }
   
  .media-card h3 {
    margin-top: 20px;
    font-size: 17px;
  }

  .wrapper::after {
    height: 380px;
  }

  .advantages{
    min-height: auto;
  }


  .advantages .adventage_list:nth-of-type(2) .text{
    padding-left: 0;
  }

  .phone_info_top {
    right: 150px;
    top: 25px!important;
  }
  .doctor-left #content-tabs .send-btn-all_ceny{
    flex-direction: column;
  }

  .tizers.mobil-new{
  display: block;
  margin-top: 30px;
  }

  .tabs-home{
    gap: 15px !important;
  }
  .tabs-home li{
    padding: 5px 35px;
  }
  .advans-header-item span.text{
    max-width: 305px !important;
    margin: 0 auto;
    padding: 0;
  }
  .advans-header-item + .advans-header-item {
    border-left: 0;
  }

  .advantages .adventage_list:first-child .text {
    padding-left: 0;
  }

  .advantages .adventage_list{
    width: 100% !important;
  }

  .advantages .adventage_list:nth-of-type(3) .text{
    padding-left: 0;
  }
  .advantages .adventage_list:nth-of-type(3) {
    position: initial;
  }

  .advantages .adventage_list:nth-of-type(4){
    position: initial;
  }


}

@media (min-width: 375px) and (max-width: 400px) {
  .center-header{
    gap: 100px;
    margin-top: 65px;
  }
  .doctor-left #content-tabs .send-btn-all_ceny {
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 40px !important;
  }
  .doctor-left #content-tabs h1{
    margin-bottom: 25px !important;
  }
  .about-desk{
    max-width: 360px;
  }

}

@media (min-width: 401px) and (max-width: 768px) {
  header:not(.main-page) .row{
    background-size: contain !important;
    background-position: 0 -105px !important;
  }
  .hero-features-wrap{
    padding: 20px 40px;
  }
  .about-main img{
    height: 530px;
  }
  .rutube-video{
    width: 380px;
    height: 350px;
  }
  .about-desk{
    max-width: 390px;
  }
  header .left-header.doctor-left #content-tabs > div{
    padding: 20px 0px 0px 0 !important;
  }
  .doctor-left #content-tabs h1{
    line-height: 32px !important;
    margin-bottom: 10px !important;
  }
  .doctor-left #content-tabs .send-btn-all_ceny{
    margin-top: 25px !important;
  }
  .center-header{
    gap: 70px;
    margin-top: 50px;
  }


}