
/* ========================================
   1. ШРИФТЫ
======================================== */

@font-face {
  font-family: "Montserrat";
  src:
    url("../fonts/Montserrat-Light.woff2") format("woff2"),
    url("../fonts/Montserrat-Light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src:
    url("../fonts/Montserrat-ExtraBold.woff2") format("woff2"),
    url("../fonts/Montserrat-ExtraBold.woff") format("woff");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}


/* ========================================
   2. ОБЩИЕ НАСТРОЙКИ
======================================== */

:root {
  --krm-black: #050505;
  --krm-white: #ffffff;
  --krm-light: #ededed;
  --krm-container: 1780px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 300;
  color: var(--krm-black);
  background: #ffffff;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.krm-container {
  width: min(calc(100% - 80px), var(--krm-container));
  margin-inline: auto;
}

/* Адаптив общего контейнера */

@media (max-width: 1440px) {
  .krm-container {
    width: calc(100% - 64px);
  }
}

@media (max-width: 1024px) {
  .krm-container {
    width: calc(100% - 48px);
  }
}

@media (max-width: 767px) {
  .krm-container {
    width: calc(100% - 32px);
  }
}


/* ========================================
   3. ШАПКА
======================================== */

.krm-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;

  width: 100%;
  min-height: 84px;

  background: rgba(0, 0, 0, 0.82);

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.krm-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.krm-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.krm-header__logo img {
  width: 110px;
  height: auto;
}

.krm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 48px);
  margin-left: auto;
}

.krm-nav > a:not(.krm-nav__phone) {
  font-size: 17px;
  font-weight: 300;
  color: #ffffff;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.krm-nav > a:hover {
  opacity: 0.7;
}

.krm-nav__phone {
  display: none;
}

.krm-header__phone {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 40px;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.krm-header__phone:hover {
  background: #dddddd;
}


/* Бургер */

.krm-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.krm-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

.krm-burger.is-active span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.krm-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.krm-burger.is-active span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}


/* ----------------------------------------
   АДАПТИВ ШАПКИ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-nav {
    gap: 20px;
  }

  .krm-nav > a:not(.krm-nav__phone) {
    font-size: 15px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-header,
  .krm-header__inner {
    min-height: 72px;
  }

  .krm-burger {
    display: flex;
  }

  .krm-header__phone {
    margin-left: auto;
  }

  .krm-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 10;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 16px 24px 26px;

    background: rgba(0, 0, 0, 0.97);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .krm-nav.is-open {
    display: flex;
  }

  .krm-nav > a:not(.krm-nav__phone) {
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid #333333;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-header,
  .krm-header__inner {
    min-height: 64px;
  }

  .krm-header__logo img {
    width: 86px;
  }

  .krm-header__phone {
    display: none;
  }

  .krm-nav {
    top: 64px;
  }

  .krm-nav__phone {
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
    padding: 15px;
    border-radius: 10px;
    background: #ffffff;
    color: #000000;
    font-weight: 800;
  }
}


/* ========================================
   4. ПЕРВЫЙ ЭКРАН
======================================== */

.krm-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 770px;
  overflow: hidden;
  color: #ffffff;
  background: #050505;
}

/* Фотография подключена через HTML */
.krm-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.krm-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 75px;
}

.krm-hero__content {
  max-width: 1280px;
  position: relative;
  max-width: 1280px;
  padding: 36px 0;
}

.krm-hero__overlay {
    position: absolute;
    z-index: 0;
    top: 104%;
    left: -65px;
    transform: translateY(-50%);
    width: 2500px;
    max-width: none;
    pointer-events: none;
}

.krm-hero__overlay img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.krm-hero__title {
  margin: 0 0 62px;
  font-size: clamp(40px, 3.7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.krm-hero__advantages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.krm-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.krm-hero__tag {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--krm-light);
  color: var(--krm-black);
  font-size: clamp(15px, 1.2vw, 22px);
  line-height: 1.25;
  font-weight: 300;
}

.krm-hero__tag strong {
  font-weight: 800;
}


/* ----------------------------------------
   АДАПТИВ ПЕРВОГО ЭКРАНА
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-hero {
    min-height: 680px;
  }

  .krm-hero__inner {
    padding-top: 140px;
    padding-bottom: 65px;
  }

   .krm-hero__overlay {
        width: 1920px;
        left: -31px;
        top: 325px;
  
  }

  .krm-hero__title {
    font-size: clamp(40px, 4.3vw, 62px);
    margin-bottom: 48px;
  }

  .krm-hero__tag {
    min-height: 48px;
    padding: 10px 18px;
    font-size: 16px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-hero {
    min-height: 650px;
  }

  .krm-hero__bg {
    object-position: 55% center;
  }

  .krm-hero__overlay {
    width: 1750px;
    left: -60px;
  }

  .krm-hero__title {
    max-width: 850px;
    font-size: clamp(38px, 5vw, 54px);
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-hero {
    min-height: 620px;
    align-items: flex-end;
  }

  .krm-hero__bg {
    object-position: 55% center;
  }

  .krm-hero__inner {
    padding-top: 130px;
    padding-bottom: 48px;
  }

  .krm-hero__content {
    padding: 22px 0;
  }

  .krm-hero__overlay {
    width: 1024px;
    top: 50%;
    left: -120px;
    transform: translateY(-50%);
  }

  .krm-hero__title {
    margin-bottom: 32px;
    font-size: clamp(32px, 8vw, 46px);
    line-height: 1.08;
  }

  .krm-desktop-break {
    display: none;
  }

  .krm-hero__advantages {
    gap: 10px;
  }

  .krm-hero__row {
    gap: 10px;
  }

  .krm-hero__tag {
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  .krm-hero {
    min-height: 650px;
  }

  .krm-hero__overlay {
    width: 1024px;
    left: -110px;
  }

  .krm-hero__title {
    font-size: 30px;
  }

  .krm-hero__tag {
    font-size: 12px;
  }
}


/* ========================================
   5. ПОЛОСА АКЦИИ
======================================== */

.krm-promo {
  background: #ffffff;
  color: #050505;
}

.krm-promo__inner {
  min-height: 146px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 35px;
}

.krm-promo__text {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 34px);
  line-height: 1.2;
  font-weight: 300;
}

.krm-countdown {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.krm-countdown__item {
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.krm-countdown__label {
  margin-bottom: 6px;
  font-size: 13px;
  color: #555555;
}

.krm-countdown__item strong {
  font-size: clamp(50px, 4vw, 66px);
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.krm-countdown__separator {
  padding-bottom: 3px;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

.krm-promo__button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 16px 30px;
  border-radius: 15px;
  background: #050505;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  transition: background 0.25s ease;
}

.krm-promo__button:hover {
  background: #333333;
}


/* ----------------------------------------
   АДАПТИВ ПОЛОСЫ АКЦИИ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-promo__button {
    min-height: 56px;
    font-size: 17px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-promo__inner {
    grid-template-columns: 1fr auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .krm-promo__button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-promo__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .krm-promo__text {
    font-size: 23px;
  }

  .krm-countdown {
    justify-content: center;
  }

  .krm-promo__button {
    grid-column: auto;
    min-height: 54px;
    border-radius: 10px;
    font-size: 16px;
  }
}


/* ========================================
   ТАЙМЕР — ЭКРАНЫ 375px И МЕНЬШЕ
======================================== */

@media (max-width: 375px) {

  .krm-countdown {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    width: 100%;
    min-width: 0;
  }

  .krm-countdown__item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .krm-countdown__item strong {
    display: block;
    font-size: clamp(26px, 8vw, 30px);
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .krm-countdown__label {
    display: block;
    font-size: 10px;
    white-space: nowrap;
  }

  .krm-countdown__separator {
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1.1;
    padding: 0 0 1px;
  }

}




/* ========================================
   6. УСЛУГИ
======================================== */

.krm-services {
  padding-top: 0;
  padding-bottom: 70px;
  background: #ffffff;
}

.krm-services__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Карточка */
.krm-service {
   display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  align-items: stretch;
  min-height: 556px
}

/* Фотогалерея */
.krm-service__gallery {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius:  16px 0 16px 16px;
  background: #111111;
}

.krm-service__track {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 100%;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.krm-service__track::-webkit-scrollbar {
  display: none;
}

.krm-service__track img {
    flex: 0 0 60%;
  width: 60%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  scroll-snap-align: start;
}

/* Стрелки галереи */
.krm-service__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);

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

  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;

  background: rgba(235,235,235,.82);
  color: #454545;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease;
}

.krm-service__arrow:hover {
  background: #ffffff;
}

.krm-service__arrow--prev {
  left: 14px;
}

.krm-service__arrow--next {
  right: 14px;
}

/* Правая колонка */
.krm-service__right {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  isolation: isolate;
}
.krm-service__right::before {
  content: "";
  position: absolute;
  z-index: 0;

  left: 0;
  bottom: 0;

  width: 40px;
  height: 90px;

  background: #050505;
  pointer-events: none;
}


/* Черный информационный блок */
.krm-service__info {
  position: relative;
  z-index: 1;

  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  padding: 36px 30px 26px;
  background: #050505;
  color: #ffffff;
  text-align: right;

  border-radius: 0 16px 16px 16px;
}

/* Белая ниша под кнопки */
.krm-service__actions {
   position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;

  padding: 16px 0 0 16px;
  background: #ffffff;
  border-radius: 16px 0 0 0;
}


/* Заголовок */
.krm-service__title {
  margin: 0 0 38px;
  font-size: clamp(23px, 2.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.krm-service__title strong {
  display: block;
  font-weight: 800;
}

.krm-service__title span {
  display: block;
  margin-top: 5px;
  font-weight: 300;
}

/* Преимущества */
.krm-service__features {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 70px;
}

.krm-service__features p {
  margin: 0;
  font-size: clamp(14px, 1.18vw, 23px);
  line-height: 1.35;
  font-weight: 300;
}

.krm-service__features strong {
  font-weight: 800;
}


/* Иконки и текст преимуществ */

.krm-service__bonus {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.krm-service__bonus-icon {
  display: block;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  object-fit: contain;
}

.krm-service__bonus-text {
  font-size: clamp(17px, 1.55vw, 27px);
  line-height: 1.2;
  font-weight: 300;
}

/* Кнопки под описанием */
.krm-service__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 16px;
  padding-left: 16px;
}

.krm-service__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;

  border-radius: 14px;
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.25;
  font-weight: 300;
  text-align: center;
  transition: background .2s ease;
}

.krm-service__btn--dark {
  background: #050505;
  color: #ffffff;
}

.krm-service__btn--dark:hover {
  background: #333333;
}

.krm-service__btn--light {
  background: #c5c5c5;
  color: #050505;
}

.krm-service__btn--light:hover {
  background: #dddddd;
}


/* ----------------------------------------
   АДАПТИВ УСЛУГ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-service,
  .krm-service__gallery {
    min-height: 510px;
  }

  .krm-service__track img {
    height: 510px;
  }

  .krm-service__info {
    padding: 30px 26px 24px;
  }

  .krm-service__title {
    margin-bottom: 30px;
    font-size: clamp(22px, 2.5vw, 32px);
  }

  .krm-service__features {
    gap: 12px;
  }

  .krm-service__bonuses {
    gap: 14px;
    padding-top: 24px;
  }

  .krm-service__actions {
    gap: 20px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-service {
    grid-template-columns: 55% 45%;
    min-height: 480px;
  }

  .krm-service__gallery {
    min-height: 480px;
  }

  .krm-service__track img {
    height: 480px;
    flex-basis: 80%;
    width: 80%;
  }

  .krm-service__info {
    padding: 24px 20px 20px;
  }

  .krm-service__title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .krm-service__features p {
    font-size: 14px;
  }

  .krm-service__bonuses p {
    font-size: 16px;
  }

  .krm-service__bonuses svg {
    width: 20px;
    height: 20px;
  }

  .krm-service__actions {
    gap: 10px;
    padding-left: 10px;
    padding-top: 10px;
  }

  .krm-service__btn {
    min-height: 50px;
    padding: 10px;
    font-size: 12px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-services {
    padding-bottom: 70px;
  }

  .krm-service__right::before,
  .krm-service__right::after,
  .krm-service__actions::before,
  .krm-service__actions::after {
    display: none;
  }

  .krm-services__list {
    gap: 32px;
  }

  .krm-service {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .krm-service__gallery {
    min-height: 0;
    height: 310px;
    border-radius: 14px 14px 0 0;
  }

  .krm-service__track img {
    height: 310px;
    flex-basis: 88%;
    width: 88%;
  }

  .krm-service__right {
    width: 100%;
  }

  .krm-service__info {
    min-height: 0;
    padding: 28px 20px;
    border-radius: 0 0 14px 14px;
    align-items: flex-start;
    text-align: left;
  }

  .krm-service__title {
    margin-bottom: 26px;
    font-size: clamp(23px, 6vw, 30px);
  }

  .krm-service__features {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
  }

  .krm-service__features p {
    font-size: 14px;
  }

  .krm-service__features br {
    display: none;
  }

  .krm-service__bonuses {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    margin-top: 0;
    padding-top: 28px;
  }

  .krm-service__bonuses p {
    justify-content: flex-start;
    font-size: 16px;
  }

    /* Иконка + текст */
  .krm-service__bonus {
     display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    max-width: 100%;
  }

  /* Текст бонусов */
  .krm-service__bonus-text {
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
  }


  .krm-service__actions {
    grid-template-columns: 1fr 1fr;
    padding: 12px 0 0;
    gap: 10px;
  }

  .krm-service__btn {
    min-height: 52px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 12px;
  }

  .krm-service__arrow {
    width: 32px;
    height: 32px;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  .krm-service__gallery {
    height: 260px;
  }

  .krm-service__track img {
    height: 260px;
  }

  .krm-service__info {
    padding: 24px 16px;
  }

  .krm-service__title {
    font-size: 22px;
  }

  .krm-service__features p {
    font-size: 13px;
  }

  .krm-service__btn {
    font-size: 11px;
  }
}





/* ========================================
   7. ХЕЛЛОУИНСКАЯ АКЦИЯ
======================================== */

.krm-halloween {
  padding-bottom: 70px;
}

.krm-halloween__box {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  background: #000;
  color: #fff;
  border-radius: 14px;
}

.krm-halloween__inner {
  position: relative;
  z-index: 2;
  min-height: 790px;
  display: grid;
  grid-template-columns: 34% 30% 36%;
  align-items: center;
}

/* Паутина */
.krm-halloween__web {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  max-width: none;
}

.krm-halloween__web--top {
width: 712px;
top: 0px;
right: 0px;
}

.krm-halloween__web--bottom {
  width: 650px;
  bottom: 1px;
  left: 0px;
}

/* Левая колонка */
.krm-halloween__content {
  align-self: start;
  padding-top: 44px;
  position: relative;
  z-index: 3;
}

.krm-halloween__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(32px, 2.5vw, 48px);
  line-height: 1.2;
  font-weight: 300;
}

.krm-halloween__title strong {
  font-weight: 800;
}

.krm-halloween__description {
  max-width: 550px;
  margin: 62px 0 54px;
  font-size: clamp(17px, 1.2vw, 23px);
  line-height: 1.2;
  font-weight: 300;
}

.krm-halloween__start {
  min-width: 242px;
  min-height: 54px;
  padding: 12px 25px;
  border: 0;
  border-radius: 14px;
  background: #c5c5c5;
  color: #17202a;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  transition: background .2s ease;
}

.krm-halloween__start:hover:not(:disabled) {
  background: #e0e0e0;
}

.krm-halloween__start:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Тыква */
.krm-halloween__pumpkin {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: center;
  align-self: end;
  pointer-events: none;
}

.krm-halloween__pumpkin img {
  display: block;
  width: clamp(480px, 35vw, 680px);
  max-width: none;
  height: auto;
  transform: translateX(-4%);
  padding-bottom: 111px;

   transform: translateX(calc(-4% - 40px));

   animation:
    pumpkinFloat 5s ease-in-out infinite,
    pumpkinGlow 3s ease-in-out infinite;

  transform-origin: center bottom;
  will-change: transform;
}

/* Плавное покачивание */
@keyframes pumpkinFloat {
  0%, 100% {
    transform: translateX(calc(-4% - 20px))
               translateY(0)
               rotate(-1deg);
  }

  50% {
    transform: translateX(calc(-4% - 20px))
               translateY(-12px)
               rotate(1deg);
  }
}

/* Мягкое свечение */
@keyframes pumpkinGlow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(255, 106, 0, .15));
  }

  50% {
    filter: drop-shadow(0 0 32px rgba(255, 106, 0, .4));
  }
}

/* Реакция на выигрыш */
.krm-halloween__pumpkin.is-winning img {
  animation: pumpkinWin .8s ease-out forwards;
}

@keyframes pumpkinWin {
  0% {
    transform: translateX(calc(-4% - 20px)) scale(1);
  }

  35% {
    transform: translateX(calc(-4% - 20px))
               translateY(-28px)
               scale(1.06);
  }

  65% {
    transform: translateX(calc(-4% - 20px))
               translateY(0)
               scale(.97);
  }

  100% {
    transform: translateX(calc(-4% - 20px)) scale(1);
  }
}


/* Плавное появление результата */
.krm-halloween__win:not([hidden]) {
  animation: halloweenReveal .65s ease-out both;
}

@keyframes halloweenReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Правая колонка */
.krm-halloween__result {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.krm-halloween__bubble {
  position: relative;
  width: 100%;
  background: #dedede;
  color: #050505;
  border-radius: 20px;
  text-align: center;
  font-weight: 300;
}

/* Диалог до розыгрыша */
.krm-halloween__bubble--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 172px;
  padding: 30px;
  font-size: 23px;
}

/* Хвостик диалога */
.krm-halloween__bubble::before {
  content: "";
  position: absolute;
  left: -36px;
  bottom: -1px;
  width: 68px;
  height: 52px;
  background: #dedede;
  clip-path: polygon(100% 0, 0 100%, 100% 78%);
}

/* Состояние после розыгрыша */
.krm-halloween__win[hidden],
.krm-halloween__initial[hidden] {
  display: none;
}

.krm-halloween__win {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.krm-halloween__bubble--win {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 34px 28px;
  min-height: 170px;
  font-size: 22px;
}

.krm-halloween__bubble--win strong {
  max-width: 100%;
  font-size: 21px;
  font-weight: 800;
}

/* Форма */
.krm-halloween__form {
  width: 100%;
}

.krm-halloween__form-description {
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 1.3;
}

.krm-halloween__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  width: 100%;
}

.krm-halloween__phone {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  outline-offset: 3px;
  background: #f1f1f1;
  color: #050505;
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
}

.krm-halloween__phone::placeholder {
  color: #9299a1;
}

.krm-halloween__submit {
  min-height: 60px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: #c5c5c5;
  color: #17202a;
  font-family: inherit;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
}

.krm-halloween__submit:hover {
  background: #e0e0e0;
}

.krm-halloween__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  cursor: pointer;
}

.krm-halloween__consent input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin: 0;
  accent-color: #c5c5c5;
}

.krm-halloween__message {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.4;
}


/* ----------------------------------------
   АДАПТИВ ХЕЛЛОУИНСКОЙ АКЦИИ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-halloween__box,
  .krm-halloween__inner {
    min-height: 650px;
  }

  .krm-halloween__inner {
    grid-template-columns: 35% 29% 36%;
  }

  .krm-halloween__description {
    margin: 45px 0 35px;
  }

  .krm-halloween__pumpkin img {
    width: 520px;
  }

  .krm-halloween__win {
    gap: 55px;
  }

  .krm-halloween__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-halloween__box,
  .krm-halloween__inner {
    min-height: 0;
  }

  .krm-halloween__inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .krm-halloween__content {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .krm-halloween__description {
    margin: 30px 0;
  }

  .krm-halloween__pumpkin {
    align-self: center;
  }

  .krm-halloween__pumpkin img {
    width: 440px;
    max-width: 140%;
  }

  .krm-halloween__win {
    gap: 35px;
  }

  .krm-halloween__bubble--initial {
    font-size: 19px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-halloween {
    padding-bottom: 70px;
  }

  .krm-halloween__box {
    border-radius: 12px;
  }

  .krm-halloween__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 36px;
    padding-bottom: 45px;
  }

  .krm-halloween__title {
    font-size: clamp(27px, 8vw, 38px);
  }

  .krm-halloween__description {
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.4;
  }

  .krm-halloween__start {
    min-height: 50px;
    min-width: 0;
    font-size: 16px;
  }

  .krm-halloween__pumpkin {
    order: 2;
    align-self: center;
  }

  .krm-halloween__pumpkin img {
    width: min(100%, 390px);
    max-width: 100%;
    animation-name: pumpkinFloatMobile, pumpkinGlow;
    padding-bottom: 10px;
  }

  .krm-halloween__pumpkin.is-winning img {
    animation: pumpkinWinMobile .8s ease-out forwards;
  }

  .krm-halloween__result {
    order: 3;
    width: 100%;
  }

  .krm-halloween__bubble--initial {
    min-height: 110px;
    font-size: 18px;
  }

  .krm-halloween__bubble--win {
    min-height: 0;
    padding: 24px 18px;
    gap: 16px;
    font-size: 17px;
  }

  .krm-halloween__bubble--win strong {
    font-size: 17px;
  }

  .krm-halloween__bubble::before {
    left: 25px;
    top: -35px;
    bottom: auto;
    transform: rotate(85deg);
  }

  .krm-halloween__win {
    gap: 30px;
  }

  .krm-halloween__form-description {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .krm-halloween__fields {
    grid-template-columns: 1fr;
  }

  .krm-halloween__phone,
  .krm-halloween__submit {
    min-height: 52px;
    font-size: 15px;
  }

  .krm-halloween__web--top {
    width: 400px;
    right: -170px;
    top: 0;
  }

  .krm-halloween__web--bottom {
    width: 330px;
    left: -150px;
    bottom: -50px;
  }
}

@keyframes pumpkinFloatMobile {
  0%, 100% {
    transform: translateX(-20px) translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateX(-20px) translateY(-8px) rotate(1deg);
  }
}

@keyframes pumpkinWinMobile {
  0%, 100% {
    transform: translateX(-20px) scale(1);
  }

  40% {
    transform: translateX(-20px) translateY(-16px) scale(1.04);
  }
}

/* Для пользователей, отключивших анимации */
@media (prefers-reduced-motion: reduce) {
  .krm-halloween__pumpkin img,
  .krm-halloween__pumpkin.is-winning img,
  .krm-halloween__win:not([hidden]) {
    animation: none;
  }
}




/* ========================================
   8. ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ
======================================== */

.krm-extra {
  padding: 0 0 70px;
  background: #ffffff;
}

.krm-extra__grid {
  display: grid;
  grid-template-columns: 40fr 25fr 35fr;
  grid-template-rows: 300px 360px;
  gap: 20px;
}

/* Заголовок */

.krm-extra__heading {
  grid-column: 1;
  grid-row: 1;
  padding-top: 35px;
}

.krm-extra__title {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-transform: none;
}

.krm-extra__title strong {
  display: block;
  font-weight: 800;
}

.krm-extra__title span {
  display: block;
  font-weight: 300;
}

/* Общая карточка */

.krm-extra__card {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 16px;
  background: #111111;
}

/* Фотография */

.krm-extra__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: inherit;
}

/* Размещение карточек */

.krm-extra__card--clean {
  grid-column: 2;
  grid-row: 1;
}

.krm-extra__card--sound {
  grid-column: 3;
  grid-row: 1;
}

.krm-extra__card--polish {
  grid-column: 1;
  grid-row: 2;
  margin-top: -80px;
}

.krm-extra__card--glass {
  grid-column: 2 / 4;
  grid-row: 2;
}

/* ----------------------------------------
   БЕЛАЯ ПОДЛОЖКА ПОД КНОПКОЙ
---------------------------------------- */

.krm-extra__action {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;

  padding: 16px 0 0 16px;

  background: #ffffff;
  border-radius: 16px 0 0 0;

  isolation: isolate;
}

/* ----------------------------------------
   ПСЕВДОЭЛЕМЕНТЫ ДЛЯ СКРУГЛЕНИЙ
---------------------------------------- */

/* Скругление слева от кнопки */

.krm-extra__action::before {
  content: "";
  position: absolute;

  left: -14px;
  bottom: 0;

  width: 16px;
  height: 16px;

  border-radius: 0 0 16px 0;
  box-shadow: 0 8px 0 0 #ffffff;

  pointer-events: none;
}

/* Скругление над кнопкой */

.krm-extra__action::after {
  content: "";
  position: absolute;

  top: -16px;
  right: -2px;

  width: 16px;
  height: 16px;

  border-radius: 0 0 16px 0;
  box-shadow: 0 8px 0 0 #ffffff;

  pointer-events: none;
}

/* ----------------------------------------
   КНОПКИ
---------------------------------------- */

.krm-extra__button {
  position: relative;
  z-index: 3;

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

  min-width: 180px;
  min-height: 64px;
  padding: 12px 25px;

  border-radius: 14px;
  background: #050505;
  color: #ffffff;

  font-size: clamp(14px, 1.1vw, 20px);
  line-height: 1.2;
  font-weight: 300;
  text-align: center;

  transition: background .25s ease;
}

.krm-extra__button:hover {
  background: #303030;
}

/* Индивидуальная ширина кнопок */

.krm-extra__card--clean .krm-extra__button {
  min-width: 180px;
}

.krm-extra__card--sound .krm-extra__button {
  min-width: 220px;
}

.krm-extra__card--polish .krm-extra__button {
  min-width: 310px;
}

.krm-extra__card--glass .krm-extra__button {
  min-width: 390px;
}


/* ----------------------------------------
   АДАПТИВ ДОПОЛНИТЕЛЬНЫХ УСЛУГ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-extra__grid {
    grid-template-rows: 250px 310px;
    gap: 16px;
  }

  .krm-extra__card--polish {
    margin-top: -60px;
  }

  .krm-extra__heading {
    padding-top: 20px;
  }

  .krm-extra__button {
    min-height: 54px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .krm-extra__card--clean .krm-extra__button,
  .krm-extra__card--sound .krm-extra__button {
    min-width: 140px;
  }

  .krm-extra__card--polish .krm-extra__button {
    min-width: 240px;
  }

  .krm-extra__card--glass .krm-extra__button {
    min-width: 300px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-extra__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 280px 300px;
    gap: 16px;
  }

  .krm-extra__heading {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0 0 12px;
  }

  .krm-extra__card--clean {
    grid-column: 1;
    grid-row: 2;
  }

  .krm-extra__card--sound {
    grid-column: 2;
    grid-row: 2;
  }

  .krm-extra__card--polish {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
  }

  .krm-extra__card--glass {
    grid-column: 2;
    grid-row: 3;
  }

  .krm-extra__action {
    padding: 10px 0 0 10px;
  }

  .krm-extra__button,
  .krm-extra__card--clean .krm-extra__button,
  .krm-extra__card--sound .krm-extra__button,
  .krm-extra__card--polish .krm-extra__button,
  .krm-extra__card--glass .krm-extra__button {
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-extra {
    padding-bottom: 0px;
  }

  .krm-extra__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .krm-extra__heading {
    grid-column: 1;
    grid-row: auto;
    padding: 0 0 4px;
  }

  .krm-extra__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .krm-extra__card--clean,
  .krm-extra__card--sound,
  .krm-extra__card--polish,
  .krm-extra__card--glass {
    grid-column: 1;
    grid-row: auto;
    height: 280px;
    margin-top: 0;
  }

  .krm-extra__action {
    padding: 10px 0 0 10px;
  }

  .krm-extra__button,
  .krm-extra__card--clean .krm-extra__button,
  .krm-extra__card--sound .krm-extra__button,
  .krm-extra__card--polish .krm-extra__button,
  .krm-extra__card--glass .krm-extra__button {
    min-width: 0;
    min-height: 48px;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  .krm-extra__card--clean,
  .krm-extra__card--sound,
  .krm-extra__card--polish,
  .krm-extra__card--glass {
    height: 240px;
  }

  .krm-extra__button {
    font-size: 12px;
  }
}



/* ========================================
   9. ПРОГРАММА РАССРОЧКИ
======================================== */

.krm-installment {
  padding: 140px 0;
  background: #ffffff;
   /* Обрезаем выступающую часть овала */
  overflow: clip;
}

/* Общая сцена */
.krm-installment__scene {
  position: relative;
  width: 100%;
  height: 730px;
  background: #ffffff;
  isolation: isolate;
}

/* Чёрный овал */
.krm-installment__oval {
  position: absolute;
    z-index: 0;
    top: -9%;
    left: 50%;
    transform: translateX(-50%);
    width: 125%;
    height: 118%;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
}

/* Фотография на всю ширину */
.krm-installment__photo {
  position: absolute;
  z-index: 1;

  top: 15px;
  left: 0;

  width: 100%;
  height: 700px;

  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

/* Текстовая подложка */
.krm-installment__card {
  position: absolute;
  z-index: 2;

  top: 15px;
  left: 0;

  width: 36%;
  min-height: 310px;

  padding: 1px 60px 44px max(40px, calc((100vw - 1780px) / 2));

  background: #050505;
  color: #ffffff;
  border-radius: 0 0 18px 0;
}

/* Заголовок */
.krm-installment__title {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 300;
}

.krm-installment__title span {
  font-weight: 300;
}

.krm-installment__title strong {
  font-weight: 800;
}

/* Описание */
.krm-installment__text {
  max-width: 470px;
  margin: 32px 0 40px;
  font-size: clamp(17px, 1.2vw, 23px);
  line-height: 1.25;
  font-weight: 300;
}

/* Кнопка */
.krm-installment__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  min-height: 54px;
  padding: 12px 22px;

  border-radius: 12px;
  background: #cfcfcf;
  color: #17202a;

  font-size: 17px;
  font-weight: 300;
  text-align: center;
  transition: background .2s ease;
}

.krm-installment__button:hover {
  background: #e2e2e2;
}


/* ----------------------------------------
   АДАПТИВ ПРОГРАММЫ РАССРОЧКИ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-installment__scene {
    height: 620px;
  }

  .krm-installment__photo {
    top: 60px;
    height: 500px;
  }

  .krm-installment__card {
    top: 60px;
    width: 38%;
    min-height: 270px;
    padding: 36px 35px 30px 32px;
  }

  .krm-installment__title {
    font-size: 34px;
  }

  .krm-installment__text {
    margin: 24px 0 30px;
    font-size: 16px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-installment__scene {
    height: 560px;
  }

  .krm-installment__photo {
    top: 80px;
    height: 400px;
  }

  .krm-installment__card {
    top: 80px;
    width: 45%;
    padding: 25px 26px;
  }

  .krm-installment__title {
    font-size: 29px;
  }

  .krm-installment__text {
    font-size: 15px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
   .krm-installment {
    padding: 70px 0;
    overflow: hidden;
  }

  /* Общий контейнер */
  .krm-installment__scene {
    position: relative;
    height: auto;
    padding: 0;
    background: #ffffff;
  }

  /* Полностью убираем овал */
  .krm-installment__oval {
    display: none;
  }

  /* Фотография */
  .krm-installment__photo {
    position: relative;
    top: auto;
    left: auto;

    display: block;
    width: 100%;
    height: 300px;

    object-fit: cover;
    object-position: center;
    border-radius: 14px;
  }

  /* Чёрная подложка под текст */
  .krm-installment__card {
    position: relative;
    top: auto;
    left: auto;

    width: 100%;
    min-height: 0;
    margin: -30px 0 0;
    padding: 24px 20px;

    background: #050505;
    color: #ffffff;

    border-radius: 14px;
  }

  /* Заголовок */
  .krm-installment__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
  }

  /* Описание */
  .krm-installment__text {
    margin: 20px 0 24px;
    font-size: 15px;
    line-height: 1.4;
  }

  /* Кнопка справа */
  .krm-installment__button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-width: 220px;
    min-height: 50px;

    margin-left: auto;
    margin-right: 0;

    font-size: 15px;
  }
}




/* ========================================
   10. НАШИ РАБОТЫ
======================================== */

.krm-works {
  padding: 35px 0 70px;
  background: #050505;
  color: #ffffff;
}

/* Заголовок и стрелки */
.krm-works__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.krm-works__heading {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.1;
  font-weight: 300;
}

.krm-works__heading strong {
  font-weight: 800;
}

/* Навигация */
.krm-works__navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.krm-works__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5c5c5;
  color: #050505;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s ease;
}

.krm-works__arrow:hover {
  background: #ffffff;
}

.krm-works__arrow:disabled {
  opacity: .4;
  cursor: default;
}

/* Слайдер */
.krm-works__slider {
  position: relative;
}

.krm-works__slide {
  display: none;
}

.krm-works__slide.is-active {
  display: block;
  animation: krmWorksFade .35s ease;
}

@keyframes krmWorksFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Три колонки */
.krm-works__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 34fr)
    minmax(0, 27fr)
    minmax(0, 39fr);
  gap: 48px;
  align-items: stretch;
  min-height: 510px;
}

/* Основная фотография */
.krm-works__main-photo {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.krm-works__main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Центральная колонка */
.krm-works__middle {
  display: flex;
  flex-direction: column;
  gap: 35px;
  min-width: 0;
}

.krm-works__title {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.4vw, 26px);
  line-height: 1.2;
  font-weight: 800;
}

.krm-works__goal {
  margin: 0;
  font-size: clamp(13px, .9vw, 17px);
  line-height: 1.3;
  font-weight: 300;
}

.krm-works__goal strong {
  font-weight: 800;
}

/* Дополнительная фотография */
.krm-works__detail-photo {
  min-width: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.krm-works__detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Правая колонка */
.krm-works__description {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 25px;
}

.krm-works__tasks {
  font-size: clamp(12px, .85vw, 16px);
  line-height: 1.32;
  font-weight: 300;
}

.krm-works__tasks > strong,
.krm-works__result strong {
  font-weight: 800;
}

.krm-works__tasks p {
  margin: 0 0 18px;
}

.krm-works__result {
  margin: 0;
  font-size: clamp(12px, .9vw, 17px);
  line-height: 1.3;
}

/* ----------------------------------------
   АДАПТИВ БЛОКА НАШИ РАБОТЫ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-works__grid {
    grid-template-columns:
      minmax(0, 34fr)
      minmax(0, 28fr)
      minmax(0, 38fr);
    gap: 26px;
    min-height: 430px;
  }

  .krm-works__main-photo {
    height: 430px;
  }

  .krm-works__middle {
    gap: 20px;
  }

  .krm-works__tasks p {
    margin-bottom: 12px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-works {
    padding-top: 32px;
  }

  .krm-works__grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
    gap: 22px;
  }

  .krm-works__main-photo {
    height: 420px;
  }

  .krm-works__detail-photo {
    flex: 1;
    min-height: 230px;
  }

  .krm-works__description {
    grid-column: 1 / -1;
    gap: 20px;
  }

  .krm-works__tasks {
    font-size: 14px;
  }

  .krm-works__result {
    font-size: 14px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-works {
    padding: 28px 0 70px;
  }

  .krm-works__header {
    margin-bottom: 22px;
    gap: 12px;
  }

  .krm-works__heading {
    font-size: 30px;
  }

  .krm-works__navigation {
    gap: 8px;
  }

  .krm-works__arrow {
    width: 32px;
    height: 32px;
  }

  .krm-works__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
  }

  .krm-works__main-photo {
    height: 340px;
  }

  .krm-works__middle {
    gap: 20px;
  }

  .krm-works__title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .krm-works__goal {
    font-size: 14px;
  }

  .krm-works__detail-photo {
    flex: none;
    height: 230px;
    min-height: 0;
  }

  .krm-works__description {
    grid-column: auto;
    gap: 22px;
  }

  .krm-works__tasks {
    font-size: 13px;
    line-height: 1.45;
  }

  .krm-works__tasks p {
    margin-bottom: 16px;
  }

  .krm-works__result {
    font-size: 14px;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  .krm-works__main-photo {
    height: 280px;
  }

  .krm-works__detail-photo {
    height: 190px;
  }

  .krm-works__heading {
    font-size: 26px;
  }
}

/* Учитываем настройки анимации пользователя */
@media (prefers-reduced-motion: reduce) {
  .krm-works__slide.is-active {
    animation: none;
  }
}



/* ========================================
   11. ОТЗЫВЫ КЛИЕНТОВ
======================================== */

.krm-reviews {
  padding: 70px 0;
  background: #ffffff;
  color: #050505;
}

/* Заголовок */
.krm-reviews__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.krm-reviews__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.krm-reviews__title {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.1;
  font-weight: 300;
}

.krm-reviews__title strong {
  font-weight: 800;
}

/* SVG Хорошее место */
.krm-reviews__rating {
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
  object-fit: contain;
}

/* Стрелки */
.krm-reviews__navigation {
  display: flex;
  gap: 12px;
  align-items: center;
}

.krm-reviews__arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: #c5c5c5;
  color: #050505;

  font-size: 17px;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}

.krm-reviews__arrow:hover:not(:disabled) {
  background: #eeeeee;
}

.krm-reviews__arrow:disabled {
  opacity: .4;
  cursor: default;
}

/* Лента слайдера */
.krm-reviews__slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.krm-reviews__slider::-webkit-scrollbar {
  display: none;
}

/* Карточка */
.krm-reviews__card {
  flex: 0 0 calc((100% - 30px) / 2);
  min-width: 0;
  min-height: 300px;

  padding: 30px;
  border-radius: 16px;
  background: #eeeeee;

  scroll-snap-align: start;
}

/* Автор и дата */
.krm-reviews__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.krm-reviews__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.krm-reviews__avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  width: 40px;
  height: 40px;

  border-radius: 50%;
  background: #050505;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.krm-reviews__name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.krm-reviews__date {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 300;
  color: #555555;
}

/* Текст отзыва */
.krm-reviews__content {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}

.krm-reviews__content p {
  margin: 0;
}

.krm-reviews__content p + p {
  margin-top: 18px;
}


/* ----------------------------------------
   АДАПТИВ ОТЗЫВОВ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-reviews__card {
    padding: 24px;
  }

  .krm-reviews__content {
    font-size: 14px;
  }

  .krm-reviews__slider {
    gap: 20px;
  }

  .krm-reviews__card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-reviews__header {
    margin-bottom: 24px;
  }

  .krm-reviews__card {
    flex-basis: calc((100% - 20px) / 2);
    padding: 20px;
  }

  .krm-reviews__name {
    font-size: 15px;
  }

  .krm-reviews__date {
    font-size: 12px;
  }

  .krm-reviews__content {
    font-size: 13px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-reviews {
    padding: 70px 0;
  }

  .krm-reviews__header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .krm-reviews__heading {
    gap: 12px;
  }

  .krm-reviews__title {
    font-size: 30px;
  }

  .krm-reviews__rating {
    height: 24px;
  }

  .krm-reviews__navigation {
    gap: 8px;
  }

  .krm-reviews__arrow {
    width: 32px;
    height: 32px;
  }

  .krm-reviews__slider {
    gap: 14px;
  }

  .krm-reviews__card {
    flex: 0 0 100%;
    min-height: 0;
    padding: 20px;
    border-radius: 12px;
  }

  .krm-reviews__card-header {
    gap: 10px;
    margin-bottom: 20px;
  }

  .krm-reviews__avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .krm-reviews__name {
    font-size: 14px;
  }

  .krm-reviews__date {
    font-size: 12px;
  }

  .krm-reviews__content {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  .krm-reviews__title {
    font-size: 26px;
  }

  .krm-reviews__card {
    padding: 16px;
  }

  .krm-reviews__author {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .krm-reviews__slider {
    scroll-behavior: auto;
  }
}



/* ========================================
   12. КОНТАКТЫ
======================================== */

.krm-contacts {
  padding: 0 0 70px;
  background: #ffffff;
  color: #050505;
}

.krm-contacts__title {
  margin: 0 0 28px;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.1;
  font-weight: 300;
}

/* Сетка */
.krm-contacts__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 28fr)
    minmax(0, 30fr)
    minmax(0, 42fr);
  gap: 24px;
  align-items: stretch;
}

/* Информационная карточка */
.krm-contacts__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 510px;
  padding: 38px 30px 26px;

  border-radius: 16px;
  background: #050505;
  color: #ffffff;
}

.krm-contacts__intro {
  margin: 0;
  font-size: clamp(14px, .95vw, 18px);
  line-height: 1.35;
  font-weight: 300;
}

.krm-contacts__intro strong {
  font-weight: 800;
}

/* Контакты */
.krm-contacts__details {
  margin-top: 36px;
}

.krm-contacts__details p {
  margin: 0 0 7px;
  font-size: clamp(12px, .85vw, 15px);
  line-height: 1.4;
}

.krm-contacts__details a:hover {
  text-decoration: underline;
}

/* Форма */
.krm-contacts__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 35px;
}

.krm-contacts__input,
.krm-contacts__submit {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}

.krm-contacts__input {
  background: #bdbdbd;
  color: #050505;
  font-weight: 300;
}

.krm-contacts__input::placeholder {
  color: #777777;
}

.krm-contacts__submit {
  background: #ffffff;
  color: #050505;
  font-weight: 300;
  cursor: pointer;
  transition: background .2s ease;
}

.krm-contacts__submit:hover {
  background: #dedede;
}

/* Согласие */
.krm-contacts__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.krm-contacts__consent input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #ffffff;
}

.krm-contacts__message {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.krm-contacts__message:empty {
  display: none;
}

/* Фотография */
.krm-contacts__photo {
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  border-radius: 16px;
  background: #dedede;
}

.krm-contacts__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Карта */
.krm-contacts__map-wrap {
  position: relative;
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  border-radius: 16px;
  background: #dadada;
}

.krm-contacts__map {
  width: 100%;
  height: 100%;
  min-height: 510px;

  /* Карта в чёрно-белых тонах */
  filter: grayscale(100%);
}

.krm-contacts__map-link {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 16px;

  padding: 12px 16px;
  border-radius: 10px;

  background: #050505;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  transition: background .2s ease;
}

.krm-contacts__map-link:hover {
  background: #333333;
}


/* Собственная метка на карте */

.krm-map-marker {
  width: 64px;
  height: 80px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.krm-map-marker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ----------------------------------------
   АДАПТИВ КОНТАКТОВ
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-contacts__grid {
    gap: 16px;
  }

  .krm-contacts__info {
    padding: 28px 22px 22px;
  }

  .krm-contacts__info,
  .krm-contacts__photo,
  .krm-contacts__map-wrap,
  .krm-contacts__map {
    min-height: 460px;
  }

  .krm-contacts__details {
    margin-top: 26px;
  }

  .krm-contacts__form {
    padding-top: 24px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-contacts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .krm-contacts__map-wrap {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .krm-contacts__map {
    min-height: 360px;
  }

  .krm-contacts__info,
  .krm-contacts__photo {
    min-height: 430px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-contacts {
    padding-bottom: 70px;
  }

  .krm-contacts__title {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .krm-contacts__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .krm-contacts__info {
    min-height: 0;
    padding: 28px 20px 24px;
  }

  .krm-contacts__intro {
    font-size: 15px;
  }

  .krm-contacts__details {
    margin-top: 25px;
  }

  .krm-contacts__details p {
    font-size: 13px;
  }

  .krm-contacts__form {
    padding-top: 30px;
  }

  .krm-contacts__photo {
    min-height: 0;
    height: 300px;
  }

  .krm-contacts__map-wrap {
    grid-column: auto;
    min-height: 350px;
  }

  .krm-contacts__map {
    min-height: 350px;
  }

  .krm-contacts__map-link {
    right: 12px;
    bottom: 12px;
    font-size: 12px;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  .krm-contacts__photo {
    height: 250px;
  }

  .krm-contacts__map-wrap,
  .krm-contacts__map {
    min-height: 300px;
  }
}



/* ========================================
   13. ПОДВАЛ
======================================== */

.krm-footer {
  background: #050505;
  color: #ffffff;
}

/* Основная часть */

.krm-footer__main {
  display: grid;
  grid-template-columns:
    minmax(0, 26fr)
    minmax(0, 34fr)
    minmax(0, 24fr)
    minmax(0, 16fr);
  gap: 32px;
  padding: 50px 0 64px;
  align-items: start;
}

/* Логотип */

.krm-footer__logo {
  display: inline-block;
}

.krm-footer__logo img {
  display: block;
  width: 150px;
  height: auto;
}

.krm-footer__description {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 300;
}

/* Навигация */

.krm-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.krm-footer__nav a,
.krm-footer__accordion-toggle {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.35;
  color: #c5c5c5;
  text-transform: uppercase;
  transition: color .2s ease;
}

.krm-footer__nav a:hover,
.krm-footer__accordion-toggle:hover {
  color: #ffffff;
}

.krm-footer__nav-title {
  color: #ffffff !important;
}

/* Аккордеон акций */

.krm-footer__accordion {
  width: 100%;
}

.krm-footer__accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.krm-footer__accordion-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.krm-footer__accordion-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.krm-footer__accordion-content {
  padding: 18px 0 2px;
}

.krm-footer__accordion-content[hidden] {
  display: none;
}

.krm-footer__promotion {
  max-width: 300px;
  margin-bottom: 20px;
}

.krm-footer__promotion:last-child {
  margin-bottom: 0;
}

.krm-footer__promotion strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.krm-footer__promotion p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  color: #c5c5c5;
}

/* Контакты и соцсети */

.krm-footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.krm-footer__phone {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  width: 100%;
  max-width: 240px;
  padding: 7px 14px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.krm-footer__socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.krm-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  transition: opacity .2s ease;
}

.krm-footer__socials a:hover {
  opacity: .7;
}

.krm-footer__socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Нижняя полоса */

.krm-footer__bottom {
  border-top: 1px solid #555555;
}

.krm-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 86px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.krm-footer__email {
  font-size: 20px;
  font-weight: 300;
  white-space: nowrap;
}

.krm-footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 30px;
}

.krm-footer__legal a {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
  transition: opacity .2s ease;
}

.krm-footer__legal a:hover {
  opacity: .65;
}


/* ----------------------------------------
   АДАПТИВ ПОДВАЛА
---------------------------------------- */

/* Ноутбуки */
@media (max-width: 1440px) {
  .krm-footer__main {
    grid-template-columns: 24fr 33fr 25fr 18fr;
    gap: 24px;
  }

  .krm-footer__nav a,
  .krm-footer__accordion-toggle {
    font-size: 12px;
  }

  .krm-footer__phone {
    font-size: 13px;
  }

  .krm-footer__email {
    font-size: 17px;
  }

  .krm-footer__legal {
    gap: 20px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .krm-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    padding: 45px 0 55px;
  }

  .krm-footer__contacts {
    align-items: flex-start;
  }

  .krm-footer__socials {
    justify-content: flex-start;
  }

  .krm-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .krm-footer__legal {
    justify-content: flex-start;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .krm-footer__logo img {
    width: 125px;
  }

  .krm-footer__description {
    font-size: 12px;
  }

  .krm-footer__nav {
    gap: 13px;
  }

  .krm-footer__nav a,
  .krm-footer__accordion-toggle {
    font-size: 12px;
  }

  .krm-footer__contacts {
    gap: 16px;
  }

  .krm-footer__phone {
    font-size: 14px;
    max-width: 230px;
  }

  .krm-footer__socials a {
    width: 34px;
    height: 34px;
  }

  .krm-footer__bottom-inner {
    padding-top: 25px;
    padding-bottom: 30px;
    gap: 24px;
  }

  .krm-footer__email {
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .krm-footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .krm-footer__legal a {
    font-size: 12px;
  }

  .krm-footer__promotion {
    max-width: 100%;
  }
}




/* ========================================
   14. УНИВЕРСАЛЬНЫЙ POPUP
======================================== */

.krm-modal[hidden] {
  display: none;
}

.krm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

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

  padding: 20px;
}

/* Затемнение страницы */
.krm-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);
}

/* Белое окно */
.krm-modal__dialog {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 540px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;

  padding: 42px 60px 56px;

  border-radius: 16px;
  background: #ffffff;
  color: #050505;

  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, .15);

  animation: krmModalShow .3s ease both;
}

/* Крестик */
.krm-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 28px;
  height: 28px;
  padding: 4px;

  border: 0;
  background: transparent;
  color: #050505;
  cursor: pointer;
}

.krm-modal__close svg {
  display: block;
  width: 100%;
  height: 100%;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
}

/* Заголовок */
.krm-modal__title {
  margin: 0 0 14px;

  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

/* Подзаголовок */
.krm-modal__subtitle {
  margin: 0 0 44px;

  font-size: 17px;
  line-height: 1.4;
  font-weight: 300;
}

/* Форма */
.krm-modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.krm-modal__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;

  border: 1px solid transparent;
  border-radius: 10px;
  outline-offset: 2px;

  background: #c5c5c5;
  color: #050505;

  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 300;
}

.krm-modal__input::placeholder {
  color: #858585;
}

/* Кнопка */
.krm-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 20px;

  border: 0;
  border-radius: 10px;

  background: #050505;
  color: #ffffff;

  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 300;

  cursor: pointer;
  transition: background .2s ease;
}

.krm-modal__submit:hover {
  background: #303030;
}

.krm-modal__submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Согласие */
.krm-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;

  margin-top: 6px;

  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 300;
  cursor: pointer;
}

.krm-modal__consent input {
  width: 16px;
  height: 16px;
  margin: 0;

  flex-shrink: 0;
  accent-color: #050505;
}

/* Сообщение формы */
.krm-modal__message {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.krm-modal__message:empty {
  display: none;
}

/* Появление окна */
@keyframes krmModalShow {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ----------------------------------------
   АДАПТИВ POPUP
---------------------------------------- */

/* Планшеты */
@media (max-width: 1024px) {
  .krm-modal__dialog {
    max-width: 480px;
    padding: 40px 40px 45px;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .krm-modal {
    padding: 16px;
  }

  .krm-modal__dialog {
    max-width: 100%;
    max-height: calc(100dvh - 32px);

    padding: 42px 24px 35px;
    border-radius: 14px;
  }

  .krm-modal__title {
    font-size: 22px;
  }

  .krm-modal__subtitle {
    margin-bottom: 30px;
    font-size: 14px;
  }

  .krm-modal__input {
    min-height: 48px;
    font-size: 16px;
  }

  .krm-modal__submit {
    min-height: 48px;
    font-size: 14px;
  }

  .krm-modal__consent {
    font-size: 10px;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  .krm-modal__dialog {
    padding: 40px 18px 28px;
  }

  .krm-modal__title {
    font-size: 20px;
  }
}

/* Уменьшение анимаций */
@media (prefers-reduced-motion: reduce) {
  .krm-modal__dialog {
    animation: none;
  }
}






/* ========================================
   15. POPUP МАТЕРИАЛЫ И ЦЕНА
======================================== */

.krm-materials-modal[hidden] {
  display: none;
}

.krm-materials-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.krm-materials-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
}

.krm-materials-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 48px 38px 55px;
  border-radius: 16px;
  background: url("../images/materials/modal-bg.webp") center / cover no-repeat;
  color: #050505;
  isolation: isolate;
}



.krm-materials-modal__close {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  color: #050505;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.krm-materials-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  align-items: end;
  gap: 36px;
}

.krm-materials-modal__title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 85px;
  margin: 0 0 38px;
  font-size: clamp(25px, 2vw, 36px);
  line-height: 1.12;
  font-weight: 300;
}

.krm-materials-modal__title strong {
  font-weight: 800;
}

.krm-materials-modal__table-wrap {
  width: 100%;
  overflow-x: auto;
}

.krm-materials-modal__table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.35;
}

.krm-materials-modal__table th,
.krm-materials-modal__table td {
  padding: 11px 10px;
  border: 1px solid #888888;
  text-align: center;
  vertical-align: middle;
}

.krm-materials-modal__table th {
  font-weight: 800;
}

.krm-materials-modal__table th:first-child,
.krm-materials-modal__table td:first-child {
  text-align: left;
  min-width: 135px;
}

.krm-materials-modal__table tbody tr:last-child {
  font-weight: 800;
}

/* Форма */
.krm-materials-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.krm-materials-modal__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #c5c5c5;
  color: #050505;
  font: inherit;
  font-size: 14px;
}

.krm-materials-modal__submit {
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #050505;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.krm-materials-modal__submit:hover {
  background: #333333;
}

.krm-materials-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.krm-materials-modal__consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
}

.krm-materials-modal__message {
  margin: 0;
  font-size: 12px;
}

.krm-materials-modal__message:empty {
  display: none;
}


/* ----------------------------------------
   АДАПТИВ POPUP МАТЕРИАЛЫ И ЦЕНА
---------------------------------------- */

@media (max-width: 1024px) {
  .krm-materials-modal__dialog {
    padding: 45px 28px 35px;
  }

  .krm-materials-modal__layout {
    gap: 22px;
  }

  .krm-materials-modal__table {
    font-size: 11px;
  }

  .krm-materials-modal__table th,
  .krm-materials-modal__table td {
    padding: 9px 7px;
  }
}

@media (max-width: 767px) {
  .krm-materials-modal {
    padding: 12px;
  }

  .krm-materials-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 45px 18px 28px;
    border-radius: 14px;
  }

  .krm-materials-modal__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .krm-materials-modal__title {
    min-height: 0;
    margin-bottom: 25px;
    font-size: 25px;
  }

  .krm-materials-modal__table {
    font-size: 11px;
  }

  .krm-materials-modal__table th:first-child,
  .krm-materials-modal__table td:first-child {
    min-width: 105px;
  }

  .krm-materials-modal__input {
    font-size: 16px;
  }
}



/* ========================================
   16. QUIZ WIDGET
======================================== */
.krm-quiz-widget {
  position: fixed;
  right: 72px;
  bottom: 130px;
  z-index: 1200;
  width: 185px;
  height: 185px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease;
}
.krm-quiz-widget__inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  animation: krmQuizBreathe 3s ease-in-out infinite;
}
.krm-quiz-widget__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.krm-quiz-widget__pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
  pointer-events: none;
  animation: krmQuizPulse 2.8s ease-out infinite;
}
.krm-quiz-widget__pulse--2 { animation-delay: 1.4s; }
@keyframes krmQuizBreathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes krmQuizPulse {
  0% { opacity: .55; transform: translate(-50%,-50%) scale(.85); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.6); }
}
body.krm-quiz-is-open .krm-quiz-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Белый крестик только на первом экране квиза */
.krm-quiz:has([data-screen="intro"].krm-quiz__screen--active)
.krm-quiz__close {
  color: #ffffff;
}

/* Кнопка Начать — на 20px выше */
.krm-quiz__screen[data-screen="intro"]
.krm-quiz__actions--start {
  transform: translateY(-20px);
}


/* Адаптив виджета */
@media (max-width: 1440px) {
  .krm-quiz-widget { right: 36px; bottom: 110px; width: 150px; height: 150px; }
}
@media (max-width: 1024px) {
  .krm-quiz-widget { right: 24px; bottom: 90px; width: 110px; height: 110px; }
}
@media (max-width: 767px) {
  .krm-quiz-widget { right: 16px; bottom: 70px; width: 76px; height: 76px; }
}

/* ========================================
   17. QUIZ POPUP
======================================== */
.krm-quiz[hidden] { display: none; }
.krm-quiz {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.krm-quiz__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}
.krm-quiz__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  height: min(560px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  color: #050505;
  outline: none;
}
.krm-quiz__close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #050505;
  cursor: pointer;
}
.krm-quiz__close svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.krm-quiz__form { margin: 0; }
.krm-quiz__screen { display: none; }
.krm-quiz__screen--active { display: block; }
.krm-quiz__hero {
  position: relative;
  min-height: 560px;
  height: 560px;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
}

/* Общий фон квиза */
.krm-quiz__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  pointer-events: none;
}

/* Первый экран — автомобили */
.krm-quiz__screen[data-screen="intro"]
.krm-quiz__hero-bg {
  background-image: url("../images/quiz/quiz-bg-start.webp");
}

/* Вопросы и финал — интерьер студии */
.krm-quiz__screen:not([data-screen="intro"])
.krm-quiz__hero-bg {
  background-image: url("../images/quiz/quiz-bg-steps.webp");
}

.krm-quiz__hero-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 265px 60px 34px;
}
.krm-quiz__title {
  margin: 0 0 16px;
  max-width: 850px;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.14;
  font-weight: 300;
}
.krm-quiz__title strong { font-weight: 800; }
.krm-quiz__title--small { margin-bottom: 28px; }
.krm-quiz__text {
  max-width: 690px;
  margin: 0;
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1.35;
  font-weight: 300;
}
.krm-quiz__text--final { margin-bottom: 20px; }
.krm-quiz__question-block { max-width: 900px; }
.krm-quiz__question {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.3;
}
.krm-quiz__options { display: grid; gap: 14px; }
.krm-quiz__options--two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; }
.krm-quiz__options--brands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; }
.krm-quiz__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
  line-height: 1.2;
  cursor: pointer;
}
.krm-quiz__option input { flex-shrink: 0; width: 17px; height: 17px; margin: 0; accent-color: #050505; }
.krm-quiz__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}
.krm-quiz__actions--between { justify-content: space-between; }
.krm-quiz__btn {
  min-width: 150px;
  min-height: 50px;
  padding: 10px 22px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.krm-quiz__btn--light { background: #cfcfcf; color: #050505; }
.krm-quiz__link {
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}
.krm-quiz__link--back { opacity: .7; }
.krm-quiz__final-form { display: grid; gap: 10px; max-width: 450px; }
.krm-quiz__input, .krm-quiz__submit {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 0;
  border-radius: 9px; font: inherit; font-size: 15px;
}
.krm-quiz__input { background: #c5c5c5; color: #050505; }
.krm-quiz__submit { background: #050505; color: #fff; cursor: pointer; }
.krm-quiz__consent { display: flex; gap: 8px; font-size: 11px; line-height: 1.4; cursor: pointer; }
.krm-quiz__consent input { flex-shrink: 0; width: 15px; height: 15px; margin: 0; }
.krm-quiz__message { margin: 0; font-size: 12px; }
.krm-quiz__message:empty { display: none; }

/* Компактное размещение вопросов: фон виден сверху, контент одинаковой высоты */
.krm-quiz__hero--small .krm-quiz__hero-content { padding-top: 155px; }
.krm-quiz__hero--intro .krm-quiz__hero-content { padding-top: 260px; }

/* Адаптив квиза */
@media (max-width: 1024px) {
  .krm-quiz__dialog { height: min(580px, calc(100dvh - 32px)); }
  .krm-quiz__hero { height: 580px; min-height: 580px; }
  .krm-quiz__hero-content { padding-right: 32px; padding-left: 32px; }
  .krm-quiz__hero--intro .krm-quiz__hero-content { padding-top: 270px; }
  .krm-quiz__hero--small .krm-quiz__hero-content { padding-top: 170px; }
  .krm-quiz__title { font-size: 32px; }
  .krm-quiz__options--brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .krm-quiz__option { font-size: 15px; }
}
@media (max-width: 767px) {
  .krm-quiz { padding: 12px; }
  .krm-quiz__dialog { width: 100%; height: min(620px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); }
  .krm-quiz__hero { height: auto; min-height: 620px; }
  .krm-quiz__hero-content { min-height: 620px; height: auto; padding: 336px 20px 24px; }
  .krm-quiz__hero--small .krm-quiz__hero-content { padding-top: 170px; }
  .krm-quiz__hero--intro .krm-quiz__hero-content { padding-top: 265px; }
  .krm-quiz__hero::after { left: -35%; width: 170%; bottom: -67%; }
  .krm-quiz__title { font-size: clamp(23px, 6vw, 29px); margin-bottom: 18px; }
  .krm-quiz__text { font-size: 15px; }
  .krm-quiz__question { font-size: 17px; margin-bottom: 18px; }
  .krm-quiz__options--two-col { grid-template-columns: 1fr; }
  .krm-quiz__options--brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .krm-quiz__option { font-size: 14px; }
  .krm-quiz__link { font-size: 17px; }
  .krm-quiz__btn { min-height: 46px; font-size: 16px; }
  .krm-quiz__input { font-size: 16px; }
}
@media (max-width: 375px) {
  .krm-quiz__hero--intro .krm-quiz__hero-content { padding-top: 245px; }
  .krm-quiz__hero-content { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .krm-quiz-widget__inner, .krm-quiz-widget__pulse { animation: none; }
  .krm-quiz-widget__pulse { display: none; }
}
