/*
 * Стили шаблона Felix — правьте этот файл.
 * Tailwind (утилиты в HTML: flex, px-4 и т.д.) собирается отдельно в template.css.
 * Этот файл не сжимается и не перезаписывается сборкой.
 */

/* -------------------------------------------------------------------------- */
/* Шрифты                                                                     */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Book.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Цвета и общие токены                                                       */
/* -------------------------------------------------------------------------- */

:root {
  --felix-green: #a0ca77;
  --felix-green-hover: #89aa69;
  --felix-milk: #f3ead7;
  --felix-yellow: #f2d085;
  --felix-brown: #d8b092;
  --felix-peach: #f4d2b9;
  --felix-peach-hover: #e0b08e;
  --felix-rose: #c4a99f;
  --felix-olive: #9eaf79;
  --felix-cream: #f3ebd8;
  --felix-accent: #0b2362;
  --felix-black: #171717;
  --felix-dark: #202454;
  --felix-gray: #e5e5e5;
  --felix-muted: #909090;

  --felix-font: "Montserrat", sans-serif;
  --felix-font-heading: "Bebas Neue", sans-serif;

  --felix-content-width: 1296px;
  --felix-radius-card: 50px;
  --felix-radius-pill: 50px;
  --felix-control-height: 53px;
}

/* -------------------------------------------------------------------------- */
/* База                                                                       */
/* -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--felix-font);
  font-size: 16px;
  color: var(--felix-black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--felix-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------------- */
/* Контейнер                                                                  */
/* -------------------------------------------------------------------------- */

.felix-container {
  width: 100%;
  max-width: var(--felix-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 640px) {
  .felix-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .felix-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* -------------------------------------------------------------------------- */
/* Кнопки                                                                     */
/* -------------------------------------------------------------------------- */

.btn-felix {
  display: inline-flex;
  height: var(--felix-control-height);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--felix-radius-pill);
  background: var(--felix-green);
  font-family: var(--felix-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-felix:hover {
  background: var(--felix-green-hover);
}

/* display: на мобилке — круглая иконка звонка; с sm — кнопка с номером */
.btn-felix-phone {
  display: inline-flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--felix-green);
  font-family: var(--felix-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
  gap: 0;
  padding: 0;
}

.btn-felix-phone__label {
  display: none;
}

.btn-felix-phone:hover {
  background: var(--felix-green-hover);
}

@media (min-width: 640px) {
  .btn-felix-phone {
    height: var(--felix-control-height);
    width: auto;
    border-radius: var(--felix-radius-pill);
    gap: 8px;
    padding: 12px 18px;
  }

  .btn-felix-phone__label {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .btn-felix-phone {
    width: 242px;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
  }
}

.btn-felix-peach {
  display: inline-flex;
  height: var(--felix-control-height);
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: 0;
  border-radius: var(--felix-radius-pill);
  background: var(--felix-peach);
  font-family: var(--felix-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-felix-peach:hover {
  filter: brightness(0.95);
}

.btn-felix-brown {
  display: inline-flex;
  height: var(--felix-control-height);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--felix-radius-pill);
  background: var(--felix-brown);
  font-family: var(--felix-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-felix-brown:hover {
  filter: brightness(0.95);
}

/* -------------------------------------------------------------------------- */
/* Плашки в слайдах (текст всегда чёрный)                                     */
/* -------------------------------------------------------------------------- */

.pill,
.pill-milk,
.pill-peach,
.pill-yellow,
.pill-brown,
.pill-rose,
.pill-white {
  display: inline-flex;
  min-height: var(--felix-control-height);
  height: auto;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--felix-radius-pill);
  font-family: var(--felix-font);
  font-size: 14px;
  line-height: 1.3;
  color: var(--felix-black);
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .pill,
  .pill-milk,
  .pill-peach,
  .pill-yellow,
  .pill-brown,
  .pill-rose,
  .pill-white {
    height: var(--felix-control-height);
    min-height: var(--felix-control-height);
    padding: 16px 32px;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
  }
}

.pill-milk {
  background: var(--felix-milk);
}

.pill-peach {
  background: var(--felix-peach);
}

.pill-yellow {
  background: var(--felix-yellow);
}

.pill-brown {
  background: var(--felix-brown);
}

.pill-rose {
  background: var(--felix-rose);
}

.pill-white {
  background: #fff;
}

/* -------------------------------------------------------------------------- */
/* Подписи секций                                                             */
/* -------------------------------------------------------------------------- */

.section-label,
.about-label,
.reviews-label {
  font-family: var(--felix-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--felix-black);
}

.heading-bebas {
  font-family: var(--felix-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* О нас                                                                      */
/* -------------------------------------------------------------------------- */

.about-layout {
  display: grid;
  align-items: start;
  gap: 24px;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    column-gap: 32px;
    row-gap: 24px;
  }

  .about-label {
    grid-column: 1 / -1;
  }

  .about-media {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 220px minmax(0, 636px) 306px;
    justify-content: space-between;
    column-gap: 24px;
    row-gap: 0;
  }

  .about-label {
    grid-column: auto;
  }

  .about-media {
    grid-row: auto;
    grid-column: auto;
  }
}

.about-label {
  padding-top: 0;
}

@media (min-width: 1024px) {
  .about-label {
    padding-top: 12px;
  }
}

.about-copy {
  display: flex;
  max-width: 636px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.about-copy .about-text {
  font-family: var(--felix-font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--felix-black);
}

@media (min-width: 640px) {
  .about-copy .about-text {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .about-copy .about-text {
    font-size: 42px;
    line-height: 1;
  }
}

.about-copy .about-text > p + p {
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .about-copy .about-text > p + p {
    margin-top: 24px;
  }
}

.about-media {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 32px;
}

@media (min-width: 768px) {
  .about-media {
    max-width: 240px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 40px;
  }
}

@media (min-width: 1024px) {
  .about-media {
    max-width: 306px;
    border-radius: var(--felix-radius-card);
  }
}

.about-media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-media img {
    height: 506px;
    max-height: 506px;
  }
}

/* -------------------------------------------------------------------------- */
/* Меню в шапке                                                               */
/* -------------------------------------------------------------------------- */

/* Не задаём display на .nav-main — иначе перебивает Tailwind hidden/lg:block */
.nav-main ul,
.nav-main .mod-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1280px) {
  .nav-main ul,
  .nav-main .mod-menu {
    gap: 36px;
  }
}

.nav-main a,
.nav-main .mod-menu a {
  font-family: var(--felix-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--felix-black);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-main a:hover,
.nav-main .mod-menu a:hover,
.nav-main .current > a,
.nav-main .mod-menu .current > a {
  font-weight: 600;
  line-height: 1;
  color: var(--felix-green);
}

/* -------------------------------------------------------------------------- */
/* Футер                                                                      */
/* -------------------------------------------------------------------------- */

.nav-footer,
.nav-footer ul,
.nav-footer .mod-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-footer a,
.nav-footer .mod-menu a {
  font-family: var(--felix-font);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.nav-footer a:hover,
.nav-footer .mod-menu a:hover {
  opacity: 0.8;
}

/* В футере не показываем подпункты (услуги и т.п.) */
.nav-footer .mod-menu__sub,
.nav-footer ul ul {
  display: none !important;
}

.footer-copy {
  margin-top: 24px;
  font-family: var(--felix-font);
}

@media (min-width: 768px) {
  .footer-copy {
    margin-top: 40px;
  }
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .header-contacts {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

.felix-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.felix-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.felix-social__link:hover {
  opacity: 0.8;
}

.felix-social__link img {
  display: block;
  width: 24px;
  height: 24px;
}

.felix-social--header {
  gap: 4px;
}

@media (min-width: 1024px) {
  .felix-social--header {
    gap: 12px;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .felix-social--header .felix-social__link {
    width: 24px;
    height: 24px;
  }
}

.felix-social--footer {
  margin: 0;
}

/* Мессенджеры в футере — белые на зелёном фоне */
.felix-social--footer .felix-social__link img {
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .felix-social--footer .felix-social__link {
    width: 44px;
    height: 44px;
  }

  .felix-social--footer .felix-social__link img {
    width: 28px;
    height: 28px;
  }
}

.felix-footer {
  position: relative;
  z-index: 1;
  background-color: var(--felix-green);
  background-image: none;
  color: #fff;
}

/* Десктоп: оригинальный кот, как было */
@media (min-width: 1024px) {
  .felix-footer {
    background-image: url("../images/footer/cat-crop.png");
    background-repeat: no-repeat;
    background-position: center bottom 0;
    background-size: min(520px, 42%) auto;
  }
}

.felix-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  justify-content: space-between;
  gap: 24px 16px;
  padding-top: 24px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .felix-footer-inner {
    gap: 40px 48px;
    padding-top: 32px;
    padding-bottom: 64px;
  }
}

@media (min-width: 1024px) {
  .felix-footer-inner {
    gap: 64px;
    min-height: 509px;
    padding-top: 32px;
    /* запас снизу под кота и cookie-баннер */
    padding-bottom: 120px;
  }
}

/* Когда открыт cookie-баннер — не перекрывать футер */
body:has(.felix-cookie-banner:not([hidden])) .felix-footer-inner {
  padding-bottom: calc(48px + 140px);
}

@media (min-width: 768px) {
  body:has(.felix-cookie-banner:not([hidden])) .felix-footer-inner {
    padding-bottom: calc(64px + 100px);
  }
}

@media (min-width: 1024px) {
  body:has(.felix-cookie-banner:not([hidden])) .felix-footer-inner {
    padding-bottom: calc(120px + 100px);
  }
}

.felix-footer-left {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.felix-footer-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
  justify-self: end;
  text-align: left;
}

@media (min-width: 768px) {
  .felix-footer-right {
    gap: 40px;
  }
}

/* -------------------------------------------------------------------------- */
/* Форма записи                                                               */
/* -------------------------------------------------------------------------- */

.felix-form .control-group {
  width: 100%;
  margin-bottom: 16px;
}

.felix-form .control-label,
.felix-form legend,
.felix-form .form-control-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.felix-form input[type="text"],
.felix-form input[type="email"],
.felix-form input[type="tel"],
.felix-form select,
.felix-form textarea {
  width: 100%;
  height: 52px;
  padding: 10px 30px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  font-family: var(--felix-font);
  font-size: 16px;
  color: var(--felix-black);
  box-shadow: 0 0 5px rgba(238, 234, 255, 0.25);
  outline: none;
}

.felix-form input::placeholder,
.felix-form textarea::placeholder {
  color: rgba(23, 23, 23, 0.5);
}

.felix-form textarea {
  height: 120px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.felix-form .controls {
  width: 100%;
}

.felix-form .btn,
.felix-form button[type="submit"] {
  cursor: pointer;
  border: 0;
}

.felix-form .checkbox,
.felix-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  color: #fff;
}

.felix-form .form-check-input {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Слайдер hero                                                               */
/* -------------------------------------------------------------------------- */

.hero-slider {
  position: relative;
  display: grid;
  overflow: hidden;
}

.hero-slide {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: var(--felix-content-width);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 640px) {
  .hero-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    min-height: 606px;
    display: block;
    padding-left: 32px;
    padding-right: 32px;
  }
}

.hero-media {
  position: relative;
  z-index: 2;
  order: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 8px;
  pointer-events: none;
  overflow: hidden;
}

.hero-media.hero-media-school {
  overflow: visible;
}

@media (min-width: 1024px) {
  .hero-media {
    position: absolute;
    bottom: 0;
    left: 148px;
    display: block;
    order: 1;
    width: 835px;
    max-width: none;
    margin-top: 0;
    overflow: visible;
  }

  /* Чекапы: бульдог левее, над карточкой «14 лет» */
  .hero-media--checkup {
    left: 0;
    margin-left: 50px;
  }
}

.hero-media > img:only-child {
  width: auto;
  max-width: min(100%, 420px);
  max-height: 280px;
  object-fit: contain;
  object-position: bottom;
}

@media (min-width: 640px) {
  .hero-media > img:only-child {
    max-height: 340px;
  }
}

@media (min-width: 1024px) {
  .hero-media > img:only-child {
    height: 557px;
    max-height: 557px;
    max-width: none;
  }
}

.hero-media-school {
  width: 100%;
  max-width: 340px;
  height: 240px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

@media (min-width: 640px) {
  .hero-media-school {
    max-width: 460px;
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .hero-media-school {
    left: 0;
    width: 835px;
    max-width: none;
    height: 557px;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Мобилка: два круга по диагонали с небольшим зазором */
.hero-media-school img:first-child {
  position: absolute;
  bottom: 4%;
  left: 0;
  z-index: 1;
  width: 52%;
  max-width: 175px;
}

.hero-media-school img:last-child {
  position: absolute;
  top: 4%;
  right: 0;
  left: auto;
  z-index: 2;
  width: 40%;
  max-width: 140px;
}

@media (min-width: 640px) {
  .hero-media-school img:first-child {
    left: 2%;
    bottom: 2%;
    width: 50%;
    max-width: 220px;
  }

  .hero-media-school img:last-child {
    right: 2%;
    top: 2%;
    width: 38%;
    max-width: 170px;
  }
}

@media (min-width: 1024px) {
  .hero-media-school img:first-child {
    bottom: 2%;
    left: 6%;
    width: 58%;
    max-width: 340px;
  }

  .hero-media-school img:last-child {
    top: 2%;
    left: 36%;
    right: auto;
    width: 38%;
    max-width: 220px;
  }
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  order: 1;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 16px;
}

@media (min-width: 640px) {
  .hero-copy {
    padding-top: 32px;
    padding-bottom: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    width: 635px;
    margin-left: auto;
    padding-top: 113px;
    /* Место под CTA над нахлёстом #stats, не прижимаем к низу слайда */
    padding-bottom: 120px;
  }
}

.hero-copy .heading-bebas {
  max-width: 100%;
  margin-bottom: 16px;
  font-size: 34px;
}

@media (min-width: 640px) {
  .hero-copy .heading-bebas {
    margin-bottom: 21px;
    font-size: 44px;
  }
}

@media (min-width: 1024px) {
  .hero-copy .heading-bebas {
    font-size: 52px;
  }
}

.hero-pills {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 7px;
  /* Фиксируем 2 строки — управление не прыгает между слайдами */
  min-height: calc(var(--felix-control-height) * 2 + 7px);
}

.hero-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

@media (min-width: 1024px) {
  .hero-pills-row {
    flex-wrap: nowrap;
    gap: 17px;
  }
}

.hero-actions {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .hero-actions {
    gap: 16px;
    margin-top: 36px;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    position: relative;
    z-index: 20;
    margin-top: 45px;
  }
}

.hero-actions .btn-felix {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 15px;
  animation: felix-hero-cta-pulse 2.4s ease-in-out infinite;
}

@media (min-width: 640px) {
  .hero-actions .btn-felix {
    flex: 0 1 auto;
    padding-left: 32px;
    padding-right: 32px;
    font-size: 16px;
  }
}

@keyframes felix-hero-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(160, 202, 119, 0.45);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 10px rgba(160, 202, 119, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-felix {
    animation: none;
  }
}

.hero-actions .slider-nav {
  flex-shrink: 0;
}

.slider-next {
  cursor: pointer;
  border: 0;
  transition: background-color 0.15s ease;
}

.slider-next:hover {
  background: var(--felix-green-hover);
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--felix-yellow);
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.slider-dot:hover {
  opacity: 1;
}

.slider-dot.is-active {
  transform: scale(1.25);
  opacity: 1;
}

.hero-slide[data-nav="light"] .slider-dot {
  background: #fff;
}

[data-slider-nav="reviews"] .slider-dot {
  background: var(--felix-green);
}

/* -------------------------------------------------------------------------- */
/* Отзывы                                                                     */
/* -------------------------------------------------------------------------- */

.reviews-layout {
  display: grid;
  align-items: start;
  gap: 24px;
}

@media (min-width: 1024px) {
  .reviews-layout {
    grid-template-columns: 196px minmax(0, 1100px);
  }
}

.reviews-viewport {
  min-width: 0;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease-out;
}

.review-card {
  display: flex;
  width: min(100%, 340px);
  height: 260px;
  flex-shrink: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--felix-radius-card);
  background: #fff;
}

@media (min-width: 640px) {
  .review-card {
    width: 380px;
    height: 280px;
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  .review-card {
    width: 416px;
    height: 432px;
    padding: 48px;
  }
}

.review-card > p:first-child {
  margin-bottom: 16px;
  font-size: 16px;
}

.review-card img[alt*="зв"],
.review-card img[alt*="star"],
.review-card .review-stars {
  width: 150px;
  height: 26px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.reviews-actions {
  position: relative;
  display: flex;
  min-height: 53px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .reviews-actions {
    flex-direction: row;
  }

  .reviews-actions .slider-nav {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
}

/* -------------------------------------------------------------------------- */
/* Карточки статистики                                                        */
/* -------------------------------------------------------------------------- */

.stat-card {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--felix-radius-card);
}

@media (min-width: 640px) {
  .stat-card {
    height: 360px;
  }
}

@media (min-width: 1024px) {
  .stat-card {
    height: 388px;
    overflow: visible;
  }
}

.stat-card-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--felix-radius-card);
}

.stat-card-body {
  position: relative;
  z-index: 10;
  padding: 28px;
  color: #fff;
}

.stat-card-value {
  margin: 0;
  font-family: var(--felix-font);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .stat-card-body {
    padding: 40px;
  }
}

/* Планшет 3 колонки: компактные плашки, цифры в одну строку */
@media (min-width: 768px) and (max-width: 1023px) {
  .stat-card {
    height: 280px;
  }

  .stat-card-body {
    padding: 16px 16px 12px;
  }

  .stat-card-value {
    font-size: 28px;
  }

  .stat-card-photo {
    bottom: -8px;
    height: 78%;
  }
}

@media (min-width: 1024px) {
  .stat-card-body {
    padding: 48px;
  }

  .stat-card-value {
    font-size: 52px;
  }
}

.stat-card-photo {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  z-index: 1;
  height: 68%;
  overflow: hidden;
  border-radius: var(--felix-radius-card);
}

@media (min-width: 640px) {
  .stat-card-photo {
    bottom: -20px;
    height: 72%;
  }
}

@media (min-width: 1024px) {
  .stat-card-photo {
    bottom: -24px;
    height: 280px;
  }
}

.stat-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* Услуги                                                                     */
/* -------------------------------------------------------------------------- */

.services-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  overflow: visible;
}

@media (min-width: 768px) {
  .services-bento {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 388px 388px 388px;
  }
}

.service-card {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--felix-radius-card);
}

@media (min-width: 768px) {
  .service-card {
    min-height: 300px;
  }
}

@media (min-width: 1024px) {
  .service-card {
    min-height: 0;
    overflow: visible;
    border-radius: 0;
  }
}

/* На мобилке стоматологии нужно больше высоты, чтобы пёс целиком влез */
.service-dentistry {
  min-height: 320px;
}

@media (min-width: 768px) {
  .service-dentistry {
    min-height: 340px;
  }
}

@media (min-width: 1024px) {
  .service-dentistry {
    min-height: 0;
  }
}

.service-card-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--felix-radius-card);
}

.service-card-title {
  position: relative;
  z-index: 2;
  max-width: 16ch;
  padding: 24px 24px 0;
  font-family: var(--felix-font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 640px) {
  .service-card-title {
    padding: 32px 32px 0;
    font-size: 36px;
  }
}

.service-card-title span {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

@media (min-width: 640px) {
  .service-card-title span {
    font-size: 22px;
  }
}

.service-photo {
  position: absolute;
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
}

.service-arrow {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--felix-peach);
  color: var(--felix-black);
  transition: background-color 0.15s ease;
}

.service-card:hover .service-arrow {
  background: var(--felix-peach-hover);
}

@media (min-width: 640px) {
  .service-arrow {
    bottom: 32px;
    left: 32px;
    width: 53px;
    height: 53px;
  }
}

@media (min-width: 1024px) {
  .service-therapy {
    grid-column: 1 / span 4;
    grid-row: 1;
  }

  .service-surgery {
    grid-column: 5 / span 8;
    grid-row: 1;
  }

  .service-hospital {
    grid-column: 1 / span 4;
    grid-row: 2;
  }

  .service-dentistry {
    grid-column: 5 / span 4;
    grid-row: 2;
  }

  .service-oncology {
    grid-column: 9 / span 4;
    grid-row: 2 / span 2;
  }

  .service-diagnostics {
    grid-column: 1 / span 8;
    grid-row: 3;
  }
}

.service-therapy .service-photo {
  right: 0;
  bottom: 0;
  width: auto;
  max-width: 68%;
  height: 78%;
}

.service-surgery .service-photo {
  right: 2%;
  bottom: 0;
  width: auto;
  max-width: 58%;
  height: 70%;
}

.service-hospital .service-photo {
  right: 50%;
  bottom: 0;
  width: auto;
  max-width: 72%;
  height: 70%;
  transform: translateX(50%);
}

.service-dentistry .service-photo {
  right: 8%;
  bottom: 20%;
  width: auto;
  max-width: 48%;
  height: 52%;
  object-position: center bottom;
}

.service-oncology .service-photo {
  bottom: 4%;
  left: 50%;
  width: auto;
  max-width: 78%;
  height: 52%;
  transform: translateX(-50%);
}

.service-diagnostics .service-photo {
  right: 2%;
  bottom: 0;
  width: auto;
  max-width: 52%;
  height: 72%;
}

@media (min-width: 768px) {
  .service-dentistry .service-photo {
    right: 8%;
    bottom: 16%;
    max-width: 52%;
    height: 56%;
  }
}

@media (min-width: 1024px) {
  .service-therapy .service-photo {
    right: -6%;
    bottom: -8%;
    max-width: 80%;
    height: 92%;
  }

  .service-surgery .service-photo {
    right: 0;
    bottom: -6%;
    max-width: 68%;
    height: 78%;
  }

  .service-hospital .service-photo {
    bottom: -4%;
    max-width: 90%;
    height: 78%;
  }

  .service-dentistry .service-photo {
    right: -8%;
    bottom: -10%;
    max-width: 95%;
    height: 88%;
  }

  .service-oncology .service-photo {
    bottom: 0;
    max-width: 110%;
    height: 58%;
  }

  .service-diagnostics .service-photo {
    right: 4%;
    bottom: -8%;
    max-width: 58%;
    height: 82%;
  }
}

/* Services pager (homepage) */
.services-page[hidden] {
  display: none !important;
}

.services-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row dense;
    /* half-row unit — same as /uslugi (185*2+19=388) */
    grid-auto-rows: 185px;
    gap: 19px 24px;
    overflow: visible;
    /* место под выезд фото за нижний край карточек */
    padding-bottom: 1.25rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Карта                                                                      */
/* -------------------------------------------------------------------------- */

.felix-map {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.felix-map iframe,
.contacts-map iframe,
.uslugi-map iframe {
  display: block;
  width: 100%;
  height: 432px;
  margin: 0;
  border: 0;
  vertical-align: top;
}

.contacts-map iframe,
.uslugi-map iframe {
  height: 100%;
}

@media (min-width: 640px) {
  .felix-map iframe {
    height: 510px;
  }
}

/* -------------------------------------------------------------------------- */
/* Мобильное меню                                                             */
/* -------------------------------------------------------------------------- */

.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--felix-brown);
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  flex-shrink: 0;
  border-radius: 1px;
  background: #fff;
}

@media (min-width: 640px) {
  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
  }

  .mobile-menu-toggle span {
    width: 22px;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Шапка: явные размеры — Tailwind lg:h-auto / lg:py-* в сборке нет,
   из-за sm:h-[90px] контакты вылезали на топбар */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

.site-header > .felix-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 72px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
}

@media (min-width: 640px) {
  .site-header > .felix-container {
    height: 90px;
    min-height: 90px;
  }
}

@media (min-width: 1024px) {
  .site-header > .felix-container {
    height: auto !important;
    min-height: 122px;
    padding-top: 10px !important;
    padding-bottom: 16px !important;
    align-items: center;
  }

  .site-header .header-contacts {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
  }
}

.felix-topbar {
  overflow: hidden;
}

.felix-topbar-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

@media (min-width: 640px) {
  .felix-topbar-text {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .felix-topbar-text {
    font-size: 24px;
  }
}

.rounded-card {
  border-radius: 28px;
}

@media (min-width: 640px) {
  .rounded-card {
    border-radius: 40px;
  }
}

@media (min-width: 1024px) {
  .rounded-card {
    border-radius: var(--felix-radius-card);
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(100%, 320px);
  max-width: 100vw;
  padding: 24px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav .nav-main ul,
.mobile-nav .nav-main .mod-menu {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------------------------------------- */
/* Cookie consent                                                             */
/* -------------------------------------------------------------------------- */

.felix-cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding: 16px;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.felix-cookie-banner__inner {
  display: flex;
  max-width: var(--felix-content-width, 1200px);
  margin: 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.felix-cookie-banner__text {
  margin: 0;
  font-family: var(--felix-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--felix-black, #1a1a1a);
}

.felix-cookie-banner__text a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.felix-cookie-banner__text a:hover {
  color: var(--felix-green-hover, #89aa69);
}

.felix-cookie-banner__btn {
  flex-shrink: 0;
  align-self: stretch;
  min-width: 140px;
}

@media (min-width: 768px) {
  .felix-cookie-banner {
    padding: 20px 24px;
  }

  .felix-cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .felix-cookie-banner__text {
    font-size: 14px;
  }

  .felix-cookie-banner__btn {
    align-self: center;
  }
}
