:root{
  --bg:#0f1218;
  --bg2:#141924;
  --text:#0f1420;
  --muted:#6c7485;

  --card:#ffffff;
  --line:#e8ebf2;

  --accent:#d2202a;
  --accent2:#ff3a44;

  --shadow: 0 20px 60px rgba(15,18,24,.12);
  --radius: 18px;

  --container: 1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button,input,textarea{font:inherit}

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

/* Buttons */
.btn{
  border:0;
  border-radius: 12px;
  padding: 12px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  color:#fff;
  box-shadow: 0 16px 30px rgba(210,32,42,.25);
}
.btn--primary:hover{box-shadow:0 18px 38px rgba(210,32,42,.32)}
.btn--ghost{
  background:#fff;
  border:1px solid var(--line);
  color:#1a2232;
}
.btn--ghost:hover{box-shadow:0 10px 26px rgba(15,18,24,.10)}
.btn--lg{padding:14px 18px; border-radius:14px}
.btn--xl{padding:16px 18px; border-radius:14px; width:min(420px, 100%)}
.btn--sm{padding:10px 12px; border-radius:10px}

/* Inputs */
.input, .textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding: 12px 14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
  background:#fff;
}
.input:focus, .textarea:focus{
  border-color: rgba(210,32,42,.35);
  box-shadow: 0 0 0 4px rgba(210,32,42,.10);
}
.input--dark, .textarea--dark{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color:#fff;
}
.input--dark::placeholder, .textarea--dark::placeholder{color:rgba(255,255,255,.55)}
.input--dark:focus, .textarea--dark:focus{
  border-color: rgba(255,58,68,.45);
  box-shadow: 0 0 0 4px rgba(255,58,68,.16);
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 65%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__row{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  gap:4px;
  min-width: 220px;
  max-width: 300px;
}

.brand .white {
  min-width: inherit;
  max-width: inherit;
}

.brand img{
  max-width: 50%;
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav a{
  font-size:13px;
  color:#444;
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{background:rgba(255,255,255,.06); color: var(--accent)}
.header__actions{
  display:flex;
  align-items:center;
  gap:12px;
  color:#666;
}
.phone{
  color:#444;
  font-weight:600;
  font-size:13px;
  opacity:.92;
}

/* Burger */
.burger{
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
    background: rgb(245 52 62 / 29%);
  display:none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  gap:5px;
}
.burger span{
  display:block;
  width:18px; height:2px;
  background:#fff;
  opacity:.9;
  border-radius:2px;
}
.mnav{
  border-top:1px solid rgba(255,255,255,.06);
  padding:14px 0 18px;
  background: rgba(15,18,24,.92);
}
.mnav__inner{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mnav__inner a{color:rgba(255,255,255,.82); padding:10px 12px; border-radius:12px}
.mnav__inner a:hover{background:rgba(255,255,255,.06); color:#fff}
.mnav__hr{height:1px; background:rgba(255,255,255,.08); margin:6px 0}

/* Hero */
.hero{
  position:relative;
  color:#fff;
  background: radial-gradient(1200px 600px at 30% 10%, rgba(255,58,68,.18), transparent 55%),
              linear-gradient(180deg, #0f1218, #0f1218);
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:-30% -10% -30% -10%;
  background:
    radial-gradient(900px 420px at 70% 30%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 360px at 10% 60%, rgba(255,58,68,.12), transparent 62%),
    linear-gradient(0deg, rgba(0,0,0,.0), rgba(0,0,0,.0));
  filter:saturate(1.05);
}
.hero__shade{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(15,18,24,.90) 0%, rgba(15,18,24,.70) 45%, rgba(15,18,24,.35) 100%);
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  padding: 54px 0 42px;
}
.h1{
  margin:0 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height:1.05;
  letter-spacing:-.3px;
}
.hero__lead{
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.hero__chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 0 0 20px;
}
.chip{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
}
.hero__cta{
  display:flex;
  gap:12px;
  align-items:stretch;
  flex-wrap:wrap;
}
.hero__field{flex:1; min-width:220px}
.hero__hint{
  margin: 12px 0 0;
  font-size:12px;
  color: rgba(255,255,255,.62);
}
.hero__media{
  display:flex;
  align-items:stretch;
  justify-content:flex-end;
}
.hero__mediaCard{
  position:relative;
  width: min(520px, 100%);
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    radial-gradient(600px 240px at 70% 30%, rgba(255,58,68,.18), transparent 60%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow:hidden;
  min-height: 300px;
}
.hero__mediaLabel{
  position:absolute; left:16px; bottom:16px;
  font-size:12px;
  padding:10px 12px;
  border-radius: 12px;
  background: rgba(15,18,24,.55);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  z-index: 1;
}
.hero__mediaGlow{
  position:absolute; inset:-40%;
  background: radial-gradient(closest-side, rgba(255,58,68,.28), transparent 65%);
  transform: translate(25%, 0%);
  filter: blur(20px);
}

/* Stats */
.stats{
  background: #1a1f2a;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.stats__row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 18px 0;
}
.stat{
  padding: 10px 12px;
  text-align:center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat:last-child{border-right:0}
.stat__num{
  color: var(--accent2);
  font-weight: 800;
  font-size: 22px;
  letter-spacing:-.3px;
}
.stat__txt{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  margin-top: 2px;
}

/* Sections */
.section{padding: 56px 0}
.section--light{background:#f5f6f8}
.section__head{text-align:center; margin-bottom:22px}
.h2{
  color:#3b2998;
  margin:0 0 8px;
  font-size: clamp(22px, 2.2vw, 35px);
  letter-spacing:-.2px;
}
.h2--invert{color:#fff}
.section__sub{
  margin:0;
  color: var(--muted);
  font-size: 15px;
}
.section__center{text-align:center; margin-top:18px}

/* Cards 6 */
.cards6{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  background: rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.04);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 30px rgba(15,18,24,.06);
}
.card .ico{
  width: 75px;
  height: 76px;
  display:grid; place-items:center;
  border-radius:12px;
  background: rgb(39 94 158 / 8%);
  color: var(--accent);
  margin-bottom:10px;
  font-size:18px;
}
.card h3{
  margin: 0 0 6px;
  font-size: 20px;
}

.card:hover h3{
  color: rgb(64 75 99 / 86%);
  transition: cubic-bezier(.25, .46, .45, .94);
}


.card p{
  margin:0;
  font-size:15px;
  color: var(--muted);
  line-height:1.45;
}

/* Services */
.services{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top: 8px;
}
.service{
  background:#fff;
  border:1px solid rgba(0,0,0,.05);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 12px 34px rgba(15,18,24,.08);
  display:flex;
  flex-direction:column;
}
.service__img{
  height:250px;
  border-bottom:1px solid rgba(0,0,0,.05);
}
.service__body{padding:14px 14px 14px}
.service__title{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
  font-size:20px;
  margin-bottom:6px;
}
.service__dot{
  width:22px; height:22px;
  border-radius:8px;
  background: rgba(210,32,42,.10);
  border:1px solid rgba(210,32,42,.15);
}
.service p{
  margin:0 0 10px;
  font-size:15px;
  color: var(--muted);
  line-height:1.45;
}

.service .link{
  display: flex;
  flex-direction: row-reverse;
}

.link{
  font-size:12px;
  color: var(--accent);
  font-weight:700;
}

/* Steps */
.steps{
  position:relative;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.05);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 16px 44px rgba(15,18,24,.08);
}
.steps__line{
  position:absolute;
  left: 8%;
  right: 8%;
  top: 46px;
  height:2px;
  background: linear-gradient(90deg, rgba(210,32,42,.35), rgba(210,32,42,.10));
}
.step{
  position:relative;
  text-align:center;
  padding: 6px 8px 4px;
}
.step__badge{
  width:38px; height:38px;
  margin: 0 auto 10px;
  border-radius: 999px;
    background: rgb(255 255 255);
  border:1px solid rgba(210,32,42,.18);
  display:grid; place-items:center;
  color: var(--accent);
  font-weight:800;
  font-size:12px;
  position:relative;
  z-index:1;
}
.step__title{font-weight:800; font-size:13px; margin-bottom:4px}
.step__txt{font-size:12px; color:var(--muted); line-height:1.4}

/* Works */
.works{
  background:#fff;
  border:1px solid rgba(0,0,0,.05);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 44px rgba(15,18,24,.08);
}
.work{
  display:block;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.05);
}
.work__img{height:220px}

.work__img {
  position: relative;
  overflow: hidden;
  border-radius: 8px; /* если нужен скруглённый угол */
}

.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* лёгкий hover эффект */
.work:hover .work__img img {
  transform: scale(1.05);
}

.work__cap{
  padding: 10px 12px;
  font-size:12px;
  font-weight:700;
  color:#1a2232;
  background:#fff;
}
.works__nav{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top: 12px;
}
.navbtn{
  width:42px; height:42px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.07);
  background:#fff;
  cursor:pointer;
  font-size:20px;
  display:grid; place-items:center;
}
.navbtn:hover{box-shadow:0 10px 26px rgba(15,18,24,.10)}
.works__actions{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top: 14px;
  flex-wrap:wrap;
}

/* Reviews */
.reviews{
  background:#fff;
  border:1px solid rgba(0,0,0,.05);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 44px rgba(15,18,24,.08);
}
.review{
  border-radius: 16px;
  padding: 16px;
  border:1px solid rgba(210,32,42,.10);
  background: linear-gradient(180deg, rgba(210,32,42,.06), rgba(255,255,255,1));
}
.review__top{
  display:flex;
  align-items:center;
  gap:12px;
}
.review__ava{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(210,32,42,.12);
  color: var(--accent);
  font-weight:900;
}
.review__name{font-weight:900; font-size:13px}
.review__pos{font-size:12px; color:var(--muted)}
.review__stars{
  margin-left:auto;
  color: var(--accent);
  font-size: 14px;
  letter-spacing:1px;
}
.review__text{
  margin: 10px 0 0;
  font-size: 12px;
  color:#2a3448;
  line-height:1.55;
}
.reviews__nav{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 12px;
}
.reviews__dots{
  margin-top:10px;
  display:flex;
  justify-content:center;
}

/* CTA Form dark */
.cta{
  position:relative;
  color:#fff;
  padding: 56px 0;
  background: linear-gradient(180deg, #0f1218, #0b0e14);
  overflow:hidden;
}
.cta__bg{
  position:absolute; inset:-30%;
  background:
    radial-gradient(900px 380px at 30% 40%, rgba(255,58,68,.18), transparent 60%),
    radial-gradient(800px 380px at 80% 10%, rgba(255,255,255,.08), transparent 62%);
}
.cta__wrap{
  position:relative;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.form{margin-top: 14px}
.form__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field{display:flex; flex-direction:column; gap:8px}
.field__label{font-size:12px; color:rgba(255,255,255,.70)}
.field--wide{grid-column: 1 / -1}
.upload__box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius: 12px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  font-size:12px;
  color: rgba(255,255,255,.75);
}
.upload__btn{
  padding:10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:700;
}
.upload__input{display:none}
.consent{
  margin: 12px 0 14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: rgba(255,255,255,.75);
  font-size:12px;
}
.consent input{margin-top:2px}

/* Footer */
.footer{
  background:#121723;
  color:#fff;
  padding: 36px 0 18px;
}
.brand--footer .brand__logo{font-size:18px}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .9fr .9fr;
  gap: 18px;
}
.footer__ttl{
  font-weight:900;
  margin-bottom:10px;
  font-size:13px;
}

.chel-x {
    max-width: 250px!important;
}

.footer__col a{
  display:block;
  color: rgba(255,255,255,.78);
  font-size:12px;
  padding:6px 0;
}
.footer__col a:hover{color:#fff}
.footer__muted{
  color: rgba(255,255,255,.60);
  font-size:12px;
  line-height:1.5;
}
.footer__bottom{
  margin-top: 20px;
  padding-top: 14px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Placeholder */
.ph{

}

.service:hover {
  border:1px solid rgba(210,32,42,.18);
  transform: translate(0, -10px) !important;
}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none}
  .burger{display:inline-flex}
  .brand{min-width:auto}
  .hero__grid{grid-template-columns: 1fr; padding: 40px 0 34px}
  .hero__media{justify-content:flex-start}
  .stats__row{grid-template-columns: repeat(2, 1fr)}
  .stat{border-right:0; border-bottom:1px solid rgba(255,255,255,.06)}
  .stat:nth-last-child(-n+2){border-bottom:0}
  .cards6{grid-template-columns: repeat(2, 1fr)}
  .services{grid-template-columns: repeat(2, 1fr)}
  .steps{grid-template-columns: repeat(2, 1fr)}
  .steps__line{display:none}
  .footer__grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 560px){
  .container{width: calc(100% - 28px)}
  .hero__cta{gap:10px}
  .cards6{grid-template-columns: 1fr}
  .services{grid-template-columns: 1fr}
  .steps{grid-template-columns: 1fr}
  .form__grid{grid-template-columns: 1fr}
  .footer__grid{grid-template-columns: 1fr}
}


/* --- Adaptive improvements (added) --- */

/* Better header behavior on medium screens */
@media (max-width: 1100px){
  .header__row{gap:10px}
  .brand__sub{display:none}

    .brand {
        min-width: 220px;
        max-width: 210px;
    }
}



/* Tablet: compact actions */
@media (max-width: 980px){
  .header__row{height:auto; padding:12px 0}
  .header__actions{gap:10px}
  .phone{display:none}
  .btn--primary{box-shadow: 0 14px 26px rgba(210,32,42,.22)}
  .hero__mediaCard{min-height: 260px}
}

/* Small phones: stack hero CTA, tighten paddings */
@media (max-width: 560px){
  .header__actions .btn{display:none}
  .header__actions{gap:8px}
  .brand__logo{font-size:16px}
  .hero__grid{padding: 30px 0 26px}
  .hero__chips{gap:8px}
  .chip{padding:7px 9px}
  .hero__cta{flex-direction:column; align-items:stretch}
  .hero__field{min-width:0}
  .hero__mediaCard{min-height: 220px}
  .stats__row{gap:10px}
  .section{padding: 46px 0}
  .works{padding: 14px}
  .work__img{height: 190px}
  .works__actions .btn{width:100%}
  .navbtn{width:40px; height:40px}
}

/* Very small screens */
@media (max-width: 360px){
  .container{width: calc(100% - 22px)}
  .btn{padding: 11px 14px}
  .h1{letter-spacing:-.2px}
  .stat__num{font-size:27px}

    .footer {
        /*text-align: center;*/
    }

    .brand {
        min-width: 100px!important;
        max-width: 150px!important;
    }

.brand .brand--footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;

}

    .brand img {
        max-width: 50%;
        display: flex;
    }



}



.hero__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 400px; /* под размер вашего блока */
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero__slide.active {
  opacity: 1;
}

.hero__controls {
  position: absolute;
  bottom: 15px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero__btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero__btn.active {
  background-color: rgba(255, 255, 255, 1);
}

/* Базовая анимация для всех карточек */
.services .service {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    max-height 0.5s ease,
    margin 0.5s ease,
    padding 0.5s ease;
}

/* Скрытые карточки (начиная с 4-й) */
.services .service:nth-child(n+4) {
  opacity: 0;
  transform: translateY(20px);
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Когда раскрыто */
.services.services--expanded .service:nth-child(n+4) {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px; /* больше высоты карточки */
  margin: initial;
  padding: initial;
}

/* Когда секция открыта — показываем все */
.services.services--expanded .service {
  display: block;
}


/* Карточка услуги: маленькая тень по умолчанию */
.service {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;

  /* начальная тень (небольшая) */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  /* плавность */
  transition:
    box-shadow 0.35s cubic-bezier(.4,0,.2,1),
    transform 0.35s cubic-bezier(.4,0,.2,1);
}


.service:hover {
  transform: translateY(-4px);
  /* тень чуть больше */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transition:
    box-shadow 0.35s cubic-bezier(.4,0,.2,1),
    transform 0.35s cubic-bezier(.4,0,.2,1);
}


/* Блок изображения */
.service__img {
  width: 100%;
  aspect-ratio: 16 / 9;           /* чтобы карточки были ровные */
  background: #f2f2f2;            /* на время загрузки */
  overflow: hidden;
}

/* Сама картинка */
.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Лёгкий zoom картинки на hover */
.service:hover .service__img img {
  transform: scale(1.04);
}



/* ===== MKM MODAL (isolated) ===== */
.mkm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.mkm-modal.is-open {
    display: block;
}

/* backdrop */
.mkm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 280ms cubic-bezier(.4,0,.2,1);
}

.mkm-modal.is-open .mkm-modal__backdrop {
    opacity: 1;
}

/* dialog */
.mkm-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%);
    width: min(680px, calc(100% - 32px));
    border-radius: 20px;
    background: radial-gradient(120% 140% at 20% 0%, rgba(255, 48, 64, 0.14) 0%, rgba(18, 20, 26, 0.92) 45%, rgba(12, 14, 18, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0;
    transition:
            opacity 280ms cubic-bezier(.4,0,.2,1),
            transform 280ms cubic-bezier(.4,0,.2,1);
}

.mkm-modal.is-open .mkm-modal__dialog {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* close */
.mkm-modal__close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.mkm-modal__close:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.mkm-modal__close span {
    font-size: 26px;
    line-height: 1;
}

/* content */
.mkm-modal__content {
    padding: 34px 34px 28px;
    text-align: center;
}

.mkm-modal__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 48, 64, 0.14);
    border: 1px solid rgba(255, 48, 64, 0.28);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mkm-modal__title {
    margin: 18px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mkm-modal__text {
    margin: 0 auto 22px;
    max-width: 38ch;
    color: rgba(255,255,255,0.78);
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.5;
}

/* actions */
.mkm-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mkm-modal__btn {
    height: 48px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
    user-select: none;
}

.mkm-modal__btn:active {
    transform: translateY(1px);
}

.mkm-modal__btn--primary {
    background: linear-gradient(180deg, #ff3446 0%, #e61f33 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 48, 64, 0.22);
}

.mkm-modal__btn--primary:hover {
    box-shadow: 0 16px 34px rgba(255, 48, 64, 0.28);
    transform: translateY(-1px);
}

.mkm-modal__btn--ghost {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.14);
}

.mkm-modal__btn--ghost:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

/* responsive */
@media (max-width: 520px) {
    .mkm-modal__content { padding: 26px 18px 18px; }
    .mkm-modal__actions { grid-template-columns: 1fr; }
    .mkm-modal__close { right: 10px; top: 10px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    .mkm-modal__backdrop,
    .mkm-modal__dialog,
    .mkm-modal__btn,
    .mkm-modal__close {
        transition: none !important;
    }
}


/* ===== MKM Service Modal (isolated) ===== */
.mkmg-svcmodal{
    --mkm-accent:#d2202a;
    --mkm-accent2:#ff3a44;
    --mkm-text:#121826;
    --mkm-muted:#6b7280;
    --mkm-border:rgba(17,24,39,.10);
    --mkm-radius:18px;

    width:min(980px, 92vw);
    background:#fff;
    border-radius: calc(var(--mkm-radius) + 8px);
    border:1px solid var(--mkm-border);
    box-shadow: 0 18px 55px rgba(17,24,39,.18);
    overflow:hidden;
    position:relative;
}

/* close */
.mkmg-svcmodal__close{
    position:absolute;
    right:14px;
    top:14px;
    width:44px;
    height:44px;
    border-radius:14px;
    border:1px solid rgba(17,24,39,.10);
    background:#fff;
    color: rgba(17,24,39,.65);
    cursor:pointer;
    display:grid;
    place-items:center;
    transition: .2s ease;
    z-index:3;
}
.mkmg-svcmodal__close:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15,18,24,.10);
    color: rgba(17,24,39,.9);
}
.mkmg-svcmodal__close span{font-size:26px; line-height:1}

/* layout */
.mkmg-svcmodal__grid{
    display:grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    padding: 18px;
}

.mkmg-svcmodal__img{
    border-radius: 18px;
    overflow:hidden;
    border:1px solid rgba(0,0,0,.06);
    background:#f4f6fb;
    height: 280px;
}
.mkmg-svcmodal__img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.mkmg-svcmodal__right{
    padding: 8px 8px 8px 0;
}

.mkmg-svcmodal__title{
    margin: 6px 0 8px;
    font-size: clamp(22px, 2.6vw, 36px);
    line-height:1.05;
    letter-spacing:-.2px;
    color: var(--mkm-text);
    font-weight: 900;
}

.mkmg-svcmodal__lead{
    margin: 0 0 12px;
    color: var(--mkm-muted);
    font-size: 15px;
    line-height: 1.55;
}

.mkmg-svcmodal__list{
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--mkm-text);
}
.mkmg-svcmodal__list li{
    margin: 8px 0;
    color: rgba(17,24,39,.78);
}

.mkmg-svcmodal__actions{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* features row */
.mkmg-svcmodal__features{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 18px 18px;
    background: linear-gradient(180deg, rgba(15,18,24,.03), rgba(15,18,24,.00));
    border-top: 1px solid rgba(17,24,39,.08);
}

.mkmg-svcmodal__feature{
    background:#fff;
    border:1px solid rgba(17,24,39,.08);
    border-radius: 16px;
    padding: 12px 12px 10px;
    box-shadow: 0 10px 26px rgba(15,18,24,.06);
    min-height: 108px;
}

.mkmg-svcmodal__ico{
    width:40px;
    height:40px;
    border-radius: 14px;
    display:grid;
    place-items:center;
    background: rgba(255,58,68,.10);
    border: 1px solid rgba(255,58,68,.22);
    color: var(--mkm-accent);
    margin-bottom: 8px;
}
.mkmg-svcmodal__ico svg{
    width:22px;
    height:22px;
}

.mkmg-svcmodal__ftitle{
    font-weight: 900;
    color: rgba(17,24,39,.88);
    font-size: 13px;
    margin-bottom: 4px;
}

.mkmg-svcmodal__ftext{
    color: rgba(17,24,39,.62);
    font-size: 12px;
    line-height: 1.45;
}

/* Fancybox isolation */
.fancybox__content:has(.mkmg-svcmodal){
    padding: 0 !important;
    background: transparent !important;
}
.fancybox__backdrop{
    background: rgba(17,24,39,.55);
    backdrop-filter: blur(6px);
}

/* responsive */
@media (max-width: 860px){
    .mkmg-svcmodal__grid{
        grid-template-columns: 1fr;
    }
    .mkmg-svcmodal__right{
        padding: 0 6px 6px;
    }
    .mkmg-svcmodal__img{
        height: 300px;
    }
    .mkmg-svcmodal__features{
        grid-template-columns: 1fr;
    }
}


/* ===== Thanks page ===== */

.thanks-page{
    min-height: 100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
    background: linear-gradient(135deg,#0f172a,#1e293b);
}

.mkm-modal__dialog--static{
    position:relative;
    transform:none;
    margin:0;
}

.thanks-page .mkm-modal__content{
    animation: fadeUp .5s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform: translateY(20px);
    }
    to{
        opacity:1;
        transform: translateY(0);
    }
}




.is-sps{ overflow:hidden; }
.is-sps .mkm-modal--page{ position:fixed; inset:0; display:grid; place-items:center; padding:24px; z-index:9999; }
.is-sps .mkm-modal--page .mkm-modal__backdrop{ position:absolute; inset:0; background:rgba(17,24,39,.55); backdrop-filter:blur(6px); }
.is-sps .mkm-modal--page .mkm-modal__dialog{ position:relative; z-index:1; margin:0; transform:none; }


.uk-form-danger {
    border: 2px solid!important;
    border-color: rgb(255 6 6 / 36%)!important;
}



.scroll-top{
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(180deg, var(--accent2), var(--accent)); /* можно заменить на var(--accent) */
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s ease;
    z-index: 999;
}

.scroll-top:hover{
    transform: translateY(0) scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.scroll-top.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
