/* Styles for the custom Karat "home" widgets (new design, no theme CSS exists for these). */

/* ---------- Home hero ---------- */
.karat-hh{position:relative;background-size:cover;background-position:center;min-height:660px;display:flex;align-items:flex-end;overflow:hidden;}
.karat-hh__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;}
.karat-hh__overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.30) 0%,rgba(0,0,0,.55) 100%);z-index:1;}
.karat-hh__inner{position:relative;z-index:2;width:100%;padding:120px 0 44px;}
.karat-hh__content{text-align:center;color:#fff;margin-bottom:44px;}
.karat-hh__eyebrow{position:relative;isolation:isolate;display:inline-block;max-width:560px;margin:0 auto 18px;color:#fff;font-family:"Montserrat",Arial,sans-serif;font-size:14px;line-height:1.45;padding:10px 24px;text-shadow:0 2px 12px rgba(0,0,0,.45);}
.karat-hh__eyebrow::before{content:"";position:absolute;inset:2px 10px;z-index:-1;background:rgba(0,0,0,.5);border-radius:22px;filter:blur(30px);}
.karat-hh__title{margin:0 auto 22px;max-width:880px;color:#fff;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(30px,4.6vw,60px);line-height:1.05;text-transform:uppercase;}
.karat-hh__badge{display:inline-block;background:none;color:#fff;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(15px,2vw,20px);padding:0;}
.karat-hh__roles{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.karat-hh__role{background:#fff;border-radius:18px;padding:26px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;box-shadow:0 22px 44px rgba(0,0,0,.22);transition:transform .2s ease;}
.karat-hh__role:hover{transform:translateY(-4px);}
.karat-hh__role-title{font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(16px,1.6vw,20px);color:#151515;text-align:center;text-transform:uppercase;}
.karat-hh__role-btn{background:#f50914;color:#fff;padding:10px 26px;border-radius:999px;font-family:"Montserrat",Arial,sans-serif;font-weight:700;text-transform:none;letter-spacing:0;font-size:14px;}
@media(max-width:880px){
  .karat-hh{min-height:auto;}
  .karat-hh__inner{padding:96px 0 32px;}
  .karat-hh__roles{grid-template-columns:1fr;gap:16px;}
}

/* ---------- Overrides for theme-class sections ---------- */
/* Unbounded headings for these home sections */
.elementor .karat-steps .section-heading h2,
.elementor .standards .section-heading h2,
.elementor .karat-aud__title,
.elementor .karat-hab__title{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:700;}
.elementor .karat-aud__title-red{color:#f50914;}

/* taller video (media) cards */
.elementor .media-card{height:clamp(210px,20vw,300px);}
/* image always covers the whole card */
.elementor .media-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
/* mobile: keep the play button from overlapping the card title, and fix the button internals */
@media(max-width:600px){
  .elementor .media-card__caption{font-size:clamp(17px,6vw,25px);}
  .elementor .media-card__caption strong{max-width:56%;}
  .elementor .media-card .play-dot{width:80px;height:80px;}
  .elementor .media-card .play-dot::before{top:15px;}
  .elementor .media-card .play-dot::after{bottom:11px;font-size:9px;}
}
/* standards: white section bg, bigger number circle, stronger card shadow */
.elementor .standards{background:#fff;}
.elementor .white-card{box-shadow:0 26px 52px rgba(0,0,0,.18);}
.elementor .white-card span{width:54px;height:54px;font-size:20px;margin-bottom:22px;}

/* ---------- Home about (3 columns) ---------- */
.karat-hab__title{text-align:center;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(24px,3.4vw,40px);text-transform:uppercase;max-width:980px;margin:0 auto 40px;line-height:1.15;}
.karat-hab__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-bottom:40px;}
.karat-hab__col>strong{display:block;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:16px;margin-bottom:12px;}
.karat-hab__col p strong{font-weight:700;color:#151515;}
.karat-hab__col p{color:#292929;font-size:14px;line-height:1.6;}
@media(max-width:880px){.karat-hab__cols{grid-template-columns:1fr;gap:22px;}}

/* ---------- Steps (dashed line) ---------- */
.karat-steps__row{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;position:relative;}
.karat-steps__row::before{content:"";position:absolute;top:26px;left:6%;right:6%;border-top:2px dashed #cfcfcf;z-index:0;}
.karat-steps__item{position:relative;padding-top:74px;}
.karat-steps__num{position:absolute;top:0;left:0;width:54px;height:54px;border-radius:50%;background:#f50914;color:#fff;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;display:flex;align-items:center;justify-content:center;z-index:1;}
.karat-steps__item h3{font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:18px;margin:0 0 10px;text-transform:uppercase;}
.karat-steps__item p{color:#6d6d6d;font-size:13.5px;line-height:1.55;}
@media(max-width:880px){
  .karat-steps__row{grid-template-columns:1fr;gap:22px;}
  .karat-steps__row::before{display:none;}
  .karat-steps__item{padding-top:0;padding-left:74px;min-height:56px;}
  .karat-steps__item:not(:last-child)::before{content:"";position:absolute;left:26px;top:6px;bottom:-22px;border-left:2px dashed #cfcfcf;z-index:0;}
  .karat-steps__num{z-index:1;}
}

/* ---------- Audience (Кому підходить) ---------- */
.karat-aud__title-red{color:#f50914;}
.elementor .karat-aud__title{font-size:clamp(24px,3vw,36px)!important;line-height:1.12;}
.karat-aud__row{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;}
.karat-aud__card{background:#2b2b2b;color:#fff;border-radius:16px;padding:26px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;min-height:180px;}
.karat-aud__card--red{background:#f50914;}
.karat-aud__icon{width:34px;height:34px;filter:brightness(0) invert(1);}
.karat-aud__card strong{font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:13px;line-height:1.35;text-transform:uppercase;overflow-wrap:break-word;word-break:break-word;}
.karat-aud__desc{max-width:920px;margin:28px auto 0;text-align:left;color:#151515;font-size:14px;line-height:1.6;}
@media(max-width:1024px){
  .karat-aud__row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:14px;padding-bottom:10px;}
  .karat-aud__card{flex:0 0 calc(50% - 7px);scroll-snap-align:start;align-items:center;text-align:center;}
  /* Slider: narrower text box so the label wraps more (compact) and never overflows. */
  .karat-aud__card strong{max-width:150px;margin-inline:auto;}
}
@media(max-width:600px){.karat-aud__card{flex:0 0 100%;}}
.karat-aud__slider{position:relative;}
.karat-aud__arrow{display:none;}
@media(max-width:1024px){
  .karat-aud__arrow{display:grid;place-items:center;position:absolute;top:calc(50% - 5px);transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:#151515;border:0;cursor:pointer;z-index:4;transition:background .2s ease;}
  .karat-aud__arrow:hover{background:#f50914;}
  .karat-aud__arrow::before{content:"";display:block;width:9px;height:9px;border-top:2px solid #fff;border-right:2px solid #fff;}
  .karat-aud__arrow--prev{left:-14px;}
  .karat-aud__arrow--prev::before{transform:rotate(-135deg);margin-left:3px;}
  .karat-aud__arrow--next{right:-14px;}
  .karat-aud__arrow--next::before{transform:rotate(45deg);margin-right:3px;}
}

/* ---------- Home pricing ---------- */
.karat-price__eyebrow{color:#151515;font-family:"Montserrat",Arial,sans-serif;font-weight:600;font-size:13px;margin-bottom:10px;max-width:360px;}
.karat-price__top{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;margin-bottom:36px;}
.karat-price__head h2{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:700;font-size:clamp(26px,4vw,44px);text-transform:uppercase;line-height:1.1;margin:0;}
.karat-price__lists{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.karat-price__inc ul{list-style:disc;padding-left:18px;margin:0;color:#292929;font-family:"Montserrat",Arial,sans-serif;font-weight:600;font-size:14px;line-height:1.9;}
.karat-price__fit ul{list-style:disc;padding-left:18px;margin:0;color:#292929;font-family:"Montserrat",Arial,sans-serif;font-weight:400;font-size:14px;line-height:1.9;}
.karat-price__fit strong{display:block;color:#151515;margin-bottom:8px;font-family:"Montserrat",Arial,sans-serif;font-weight:700;}
.karat-price__cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.karat-price__card{background:#f50914;color:#fff;border-radius:20px;padding:34px 28px;text-align:center;}
.karat-price__card h3{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:700;font-size:20px;margin:0 0 4px;text-transform:uppercase;text-shadow:0 0 71.3px #353535;}
.karat-price__card strong{display:block;font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:700;font-size:22px;margin-bottom:20px;text-transform:uppercase;text-shadow:0 0 71.3px #353535;}
.karat-price__card a{display:inline-block;background:#151515;color:#fff;padding:12px 30px;border-radius:999px;font-family:"Montserrat",Arial,sans-serif;font-weight:600;text-transform:none;font-size:14px;}
@media(max-width:880px){
	.karat-price__top{grid-template-columns:1fr;gap:24px;}
	.karat-price__lists{grid-template-columns:1fr;gap:20px;}
	/* Cards: one column, centred, never wider than the screen. */
	.karat-price__cards{grid-template-columns:minmax(0,1fr);justify-items:center;}
	.karat-price__card{width:100%;max-width:420px;min-width:0;padding:28px 18px;}
	.karat-price__card h3{font-size:clamp(16px,4.8vw,20px);overflow-wrap:anywhere;}
	.karat-price__card strong{font-size:clamp(18px,5.2vw,22px);overflow-wrap:anywhere;}
}

/* ---------- Note slider (типові помилки / кому не підійде) ---------- */
.karat-notes__grid{display:grid;grid-template-columns:0.85fr 1.15fr;gap:44px;align-items:center;}
.karat-notes__title{color:#f50914;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(32px,4.6vw,60px);text-transform:uppercase;line-height:0.98;margin:0 0 16px;}
.karat-notes__subtitle{color:#151515;font-family:"Montserrat",Arial,sans-serif;font-weight:700;text-transform:uppercase;font-size:14px;letter-spacing:.3px;margin:0 0 26px;}
.karat-notes__nav{display:flex;gap:14px;}
.karat-notes__arrow{width:52px;height:52px;border-radius:50%;background:#151515;border:0;cursor:pointer;display:grid;place-items:center;transition:background .2s ease;}
.karat-notes__arrow:hover{background:#f50914;}
.karat-notes__arrow::before{content:"";display:block;width:10px;height:10px;border-top:2px solid #fff;border-right:2px solid #fff;}
.karat-notes__arrow--prev::before{transform:rotate(-135deg);margin-left:3px;}
.karat-notes__arrow--next::before{transform:rotate(45deg);margin-right:3px;}
.karat-notes__slider{overflow:hidden;}
.karat-notes__track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.karat-notes__track::-webkit-scrollbar{display:none;}
.karat-notes__card{flex:0 0 100%;scroll-snap-align:start;background:#2b2b2b;color:#fff;border-radius:24px;padding:44px;min-height:300px;box-sizing:border-box;}
.karat-notes__num{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#f50914;color:#fff;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:20px;margin-bottom:26px;}
.karat-notes__card h3{font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(20px,2vw,28px);line-height:1.12;text-transform:uppercase;margin:0 0 18px;}
.karat-notes__card p{color:#c9c9c9;font-family:"Montserrat",Arial,sans-serif;font-size:14px;line-height:1.65;margin:0;}
@media(max-width:880px){
  .karat-notes__grid{grid-template-columns:1fr;gap:24px;}
  .karat-notes__card{padding:30px;min-height:auto;}
}

/* ---------- Smaller section paddings on Elementor pages ---------- */
.elementor .section{padding-top:clamp(34px,4.5vw,54px);padding-bottom:clamp(34px,4.5vw,54px);}

/* ---------- Branch (філії) slider: bigger real map + red chevron arrows ---------- */
/* Wider cards so Google's embed renders a legible map (not just its logo). */
.elementor .branch-card{flex:0 0 220px!important;min-width:220px!important;}
.elementor .branch-card__map{display:block;height:164px!important;padding:0!important;background:#e9edf2!important;border:0!important;border-radius:32px!important;box-shadow:none!important;overflow:hidden;position:relative;cursor:pointer;}
/* Static OSM tile mosaic (3×3), CSS-shifted so the branch point sits at the card centre. */
.elementor .branch-card__mosaic{position:absolute;width:768px;height:768px;display:grid;grid-template-columns:repeat(3,256px);grid-template-rows:repeat(3,256px);z-index:0;}
.elementor .branch-card__mosaic img{display:block;width:256px;height:256px;max-width:none;}
.elementor .branch-card__map-pin{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);z-index:2;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35));pointer-events:none;}
.elementor .branch-card__map-attr{position:absolute;right:4px;bottom:3px;z-index:2;font:600 9px/1 "Montserrat",Arial,sans-serif;color:#3a3a3a;background:rgba(255,255,255,.75);padding:1px 4px;border-radius:4px;pointer-events:none;}
.elementor .branch-card__map iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;pointer-events:none;}
/* Fallback (no coords) — a clean pinned card that still opens the real map on click. */
.elementor .branch-card__map--empty{background:linear-gradient(135deg,#f2f5f8,#e4e9ef)!important;}
.elementor .branch-card__map-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#5a6472;font-family:"Montserrat",Arial,sans-serif;font-size:13px;font-weight:600;}
/* Arrows — red circle + white chevron (per reference), centred on the map. */
.elementor .branch-slider__arrow{top:88px!important;bottom:auto!important;transform:translateY(-50%)!important;width:48px!important;height:48px!important;display:grid!important;place-items:center!important;background:#050505!important;border:0!important;border-radius:50%!important;box-shadow:0 10px 26px rgba(0,0,0,.25)!important;}
.elementor .branch-slider__arrow::before{content:""!important;width:17px!important;height:17px!important;background:no-repeat center/contain!important;}
.elementor .branch-slider__arrow--prev::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%205l-7%207%207%207'/%3E%3C/svg%3E")!important;}
.elementor .branch-slider__arrow--next::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%205l7%207-7%207'/%3E%3C/svg%3E")!important;}
.elementor .branch-slider__arrow:hover{transform:translateY(-50%) scale(1.08)!important;}
.elementor .branch-slider__arrow:disabled{opacity:.34!important;transform:translateY(-50%)!important;}
/* Branch card text: address (Montserrat 400) + phone (Montserrat 700), all centred. */
.elementor .branch-card p{font-family:"Montserrat",Arial,sans-serif!important;font-weight:400!important;text-align:center!important;line-height:1.32!important;}
.elementor .branch-card__name{display:block!important;font-weight:700!important;margin-bottom:6px!important;}
.elementor .branch-card__addr{display:block!important;font-weight:400!important;margin-bottom:6px!important;}
.elementor .branch-card__phone{display:block!important;font-family:"Montserrat",Arial,sans-serif!important;font-weight:700!important;}

/* ---------- CTA / філії: centered column, header split (Філії left / tabs right) ---------- */
.elementor .karat-cta .branch-slider{margin-top:34px;}
.elementor .karat-cta .branch-slider__header{grid-template-columns:minmax(0,1fr) auto;align-items:center;text-align:left;gap:24px;}
.elementor .karat-cta .branch-slider__tabs{justify-content:flex-end;}
.elementor .karat-cta .elementor-heading-title{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:700!important;}
.elementor .karat-cta .elementor-widget-text-editor,.elementor .karat-cta .elementor-widget-text-editor p{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:500!important;}
.elementor .karat-cta .elementor-button{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;color:#151515!important;}

/* ---------- Speedometer: new dial (labels + "ПОВНИЙ УСПІХ" baked into artwork) ---------- */
/* Crop the empty bottom of the dial image (gauge only fills the top ~part). */
.elementor .process-speed__gauge{width:min(100%,1050px);aspect-ratio:1678/705;overflow:hidden;}
/* Halve the gap between the speedometer and the next section (was clamp(86,9vw,138)). */
.elementor .process{padding-bottom:clamp(43px,4.5vw,69px)!important;}
/* Counter: show only the animated number (0→100 %), half size, above the baked "ПОВНИЙ УСПІХ". */
.elementor .process-speed__counter{display:block!important;top:45%!important;z-index:3;}
.elementor .process-speed__counter .elementor-counter-number-wrapper{font-size:clamp(21px,4.5vw,48px)!important;}
.elementor .process-speed__counter .elementor-counter-title{display:none!important;}
/* Needle sweeps from 01 (left) to 07 (right) when it scrolls into view; sits below the number. */
.elementor .process-speed .process-speed__arrow{
	right:auto;bottom:auto;left:39.8%;top:31%;width:37%;
	transform-origin:29.2% 76.5%;
	transform:rotate(-118deg);
	transition:transform 1.8s cubic-bezier(0.18,0.82,0.22,1)!important;
	z-index:1;
}
.elementor .process-speed.is-speed-ready .process-speed__arrow{transform:rotate(35.4deg);}
/* mini-cta: white pill with a soft shadow so it reads as a button on the light section. */
.elementor .process__top .mini-cta{background:#fff!important;box-shadow:0 20px 44px rgba(0,0,0,0.20)!important;}
/* Mobile: heading must wrap (not overflow), button sits a touch lower + centred. */
@media(max-width:880px){
	.elementor .process__top h2{font-size:clamp(21px,6vw,32px)!important;letter-spacing:-0.6px!important;}
	.elementor .process__top h2 span{white-space:normal!important;}
	.elementor .process__top .mini-cta{margin:10px auto 0!important;justify-self:center!important;}
}
/* ===== Tablet + phone: swap the full dial for the semicircle ("ПОВНІЙ УСПІХ"
   pill centred, % below the gauge, needle sweeping from the hub). Desktop stays
   the full 01–07 dial (all of this lives inside the media query). ===== */
@media(max-width:1024px){
	/* Semicircle dial as a background; hide the full-gauge <img>. overflow:visible
	   so the % can sit below the arc. aspect-ratio matches the mob image (419/180). */
	.elementor .process-speed__gauge{width:min(100%,460px)!important;aspect-ratio:419/180!important;overflow:visible!important;}
	/* Reserve room under the gauge so the % (sitting below) isn't clipped by the section. */
	.elementor .process-speed{padding-bottom:clamp(82px,17vw,112px)!important;}
	.elementor .process-speed__dial{position:absolute!important;inset:0!important;background:url("/wp-content/themes/karat-landing/assets/images/process/speed-group-img-mob.webp") center bottom/contain no-repeat!important;}
	.elementor .process-speed__dial img{display:none!important;}
	/* Counter becomes a full-size layer; title + number are placed independently. */
	.elementor .process-speed__counter{position:absolute!important;inset:0!important;top:0!important;left:0!important;transform:none!important;display:block!important;}
	/* "ПОВНІЙ УСПІХ" pill in the centre of the arc. */
	.elementor .process-speed__counter .elementor-counter-title{display:inline-block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;border:2px solid #000!important;border-radius:9px!important;background:#fff!important;padding:5px 13px!important;color:#000!important;font-weight:700!important;text-transform:uppercase!important;white-space:nowrap!important;font-size:clamp(11px,3.4vw,15px)!important;letter-spacing:-.02em!important;line-height:1!important;}
	/* Animated % sits right below the speedometer. */
	.elementor .process-speed__counter .elementor-counter-number-wrapper{position:absolute!important;left:50%!important;top:104%!important;transform:translateX(-50%)!important;justify-content:center!important;font-size:clamp(42px,12vw,66px)!important;}
	/* Swap the widget's svg needle (pivot bottom-left) for arrow-speed.webp
	   (round bulb on the RIGHT). Bulb pinned to the hub (right:50% + origin right
	   center) stays put; only the pointed tip sweeps — flat-left (0deg) over the
	   top of the semicircle to flat-right (180deg) on scroll. */
	.elementor .process-speed .process-speed__arrow{left:auto!important;right:50%!important;top:auto!important;bottom:9%!important;width:30%!important;aspect-ratio:374/61!important;height:auto!important;background:url("/wp-content/themes/karat-landing/assets/images/process/arrow-speed.webp") right center/contain no-repeat!important;transform-origin:right center!important;transform:rotate(0deg)!important;}
	.elementor .process-speed .process-speed__arrow img{display:none!important;}
	.elementor .process-speed.is-speed-ready .process-speed__arrow{transform:rotate(180deg)!important;}
}
/* Phone: half the bottom padding under the % (tablet keeps the larger gap). */
@media(max-width:767px){
	.elementor .process-speed{padding-bottom:clamp(41px,8.5vw,56px)!important;}
}
/* Step cards under the speedometer — ONLY on tablet/phone (desktop keeps the
   labels on the dial). Tablet = 2 per row, phone = 1 per row. */
.elementor .process-steps{display:none;}
@media(max-width:1024px){
	.elementor .process-steps{display:block;margin-top:clamp(20px,6vw,34px);padding:0 16px;box-sizing:border-box;}
	.elementor .process-steps__grid{list-style:none;margin:0 auto;padding:0;max-width:720px;width:100%;box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr;gap:14px;}
	.elementor .process-steps__grid>*{box-sizing:border-box;}
	.elementor .process-steps__card{background:#fff;border-radius:20px;padding:24px;box-shadow:0 16px 36px rgba(0,0,0,.08);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:16px;aspect-ratio:2/1;width:100%;}
	.elementor .process-steps__head{display:flex;align-items:center;justify-content:center;gap:14px;}
	.elementor .process-steps__icon{flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:#f50914;display:grid;place-items:center;}
	.elementor .process-steps__icon img{width:30px;height:30px;display:block;}
	.elementor .process-steps__num{font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:28px;line-height:1;color:#151515;}
	.elementor .process-steps__text{margin:0;color:#151515;font-weight:600;font-size:15px;line-height:1.4;}
}
@media(max-width:767px){
	.elementor .process-steps__grid{grid-template-columns:1fr;max-width:300px;gap:12px;}
	.elementor .process-steps__card{padding:20px;border-radius:18px;gap:12px;}
	.elementor .process-steps__icon{flex:0 0 50px;width:50px;height:50px;}
	.elementor .process-steps__icon img{width:26px;height:26px;}
	.elementor .process-steps__num{font-size:24px;}
	.elementor .process-steps__text{font-size:14px;}
}
/* ===== Etapy (stages) + Contacts: show the mobile/tablet speedometer (semicircle
   dial + "ПОВНІЙ УСПІХ" pill + % below + step cards) on DESKTOP too. ≤1024 is already
   handled by the blocks above, so this only kicks in >1024 — no mobile conflict. ===== */
@media(min-width:1025px){
	.karat-page-el-moto .elementor .process-speed__gauge,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed__gauge{width:min(100%,460px)!important;aspect-ratio:419/180!important;overflow:visible!important;}
	.karat-page-el-moto .elementor .process-speed,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed{padding-bottom:120px!important;}
	.karat-page-el-moto .elementor .process-speed__dial,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed__dial{position:absolute!important;inset:0!important;background:url("/wp-content/themes/karat-landing/assets/images/process/speed-group-img-mob.webp") center bottom/contain no-repeat!important;}
	.karat-page-el-moto .elementor .process-speed__dial img,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed__dial img{display:none!important;}
	.karat-page-el-moto .elementor .process-speed__counter,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed__counter{position:absolute!important;inset:0!important;top:0!important;left:0!important;transform:none!important;display:block!important;}
	.karat-page-el-moto .elementor .process-speed__counter .elementor-counter-title,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed__counter .elementor-counter-title{display:inline-block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;border:2px solid #000!important;border-radius:9px!important;background:#fff!important;padding:5px 13px!important;color:#000!important;font-weight:700!important;text-transform:uppercase!important;white-space:nowrap!important;font-size:14px!important;letter-spacing:-.02em!important;line-height:1!important;}
	.karat-page-el-moto .elementor .process-speed__counter .elementor-counter-number-wrapper,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed__counter .elementor-counter-number-wrapper{position:absolute!important;left:50%!important;top:104%!important;transform:translateX(-50%)!important;justify-content:center!important;font-size:60px!important;}
	.karat-page-el-moto .elementor .process-speed .process-speed__arrow,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed .process-speed__arrow{left:auto!important;right:50%!important;top:auto!important;bottom:9%!important;width:30%!important;aspect-ratio:374/61!important;height:auto!important;background:url("/wp-content/themes/karat-landing/assets/images/process/arrow-speed.webp") right center/contain no-repeat!important;transform-origin:right center!important;transform:rotate(0deg)!important;}
	.karat-page-el-moto .elementor .process-speed .process-speed__arrow img,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed .process-speed__arrow img{display:none!important;}
	.karat-page-el-moto .elementor .process-speed.is-speed-ready .process-speed__arrow,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed.is-speed-ready .process-speed__arrow{transform:rotate(180deg)!important;}
	.karat-page-el-moto .elementor .process-steps,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps{display:block!important;margin-top:34px;padding:0 16px;box-sizing:border-box;}
	.karat-page-el-moto .elementor .process-steps__grid,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps__grid{list-style:none;margin:0 auto;padding:0;max-width:900px;width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fit,200px)!important;justify-content:center;gap:16px;}
	.karat-page-el-moto .elementor .process-steps__card,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps__card{background:#fff;border-radius:20px;padding:22px;box-shadow:0 16px 36px rgba(0,0,0,.08);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:14px;aspect-ratio:1/1!important;width:100%;}
	.karat-page-el-moto .elementor .process-steps__head,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps__head{display:flex;align-items:center;justify-content:center;gap:12px;}
	.karat-page-el-moto .elementor .process-steps__icon,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps__icon{flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:#f50914;display:grid;place-items:center;}
	.karat-page-el-moto .elementor .process-steps__icon img,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps__icon img{width:28px;height:28px;display:block;}
	.karat-page-el-moto .elementor .process-steps__num,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps__num{font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:24px;line-height:1;color:#151515;}
	.karat-page-el-moto .elementor .process-steps__text,
	.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-steps__text{margin:0;color:#151515;font-weight:600;font-size:14px;line-height:1.4;}
}

/* ---------- Ticker (бігуча строка): Unbounded 400 ---------- */
.elementor .ticker span,.elementor .ticker__track span{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:400!important;}

/* ---------- Benefits grid (Чому обирають Карат): always centred; cards auto-fit
   and shrink to fit any width instead of drifting/overflowing. ---------- */
.elementor .benefit-grid{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));justify-content:center;}
.elementor .benefit-slider{position:relative;}
.elementor .benefit-slider__arrow{display:none;}
@media(max-width:767px){
	/* PHONES ONLY: one full-width card per view, centred; swipe + arrows below.
	   768px+ (tablet/laptop/desktop) keeps the normal multi-column card grid. */
	.elementor .benefit-slider{position:relative;padding-bottom:70px;}
	.elementor .benefit-grid{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:14px;padding:0;margin:0;grid-template-columns:none!important;}
	.elementor .benefit-grid::-webkit-scrollbar{display:none;}
	.elementor .benefit-card{flex:0 0 100%!important;width:100%!important;min-width:100%!important;max-width:100%!important;scroll-snap-align:start!important;scroll-snap-stop:always!important;height:auto!important;min-height:300px!important;justify-items:start;align-content:center;text-align:left;padding:22px 20px!important;box-sizing:border-box;}
	.elementor .benefit-card h3{font-size:18px;}
	.elementor .benefit-card p{font-size:14px;line-height:1.4;}
	/* Arrows centred below the slider (← dark / → red). */
	.elementor .benefit-slider__arrow{display:grid;place-items:center;position:absolute;bottom:0;top:auto;transform:none;width:50px;height:50px;border-radius:50%;border:0;cursor:pointer;z-index:4;color:#fff;font-family:Arial,sans-serif;font-size:24px;line-height:1;box-shadow:0 10px 26px rgba(0,0,0,.2);}
	.elementor .benefit-slider__arrow--prev{left:calc(50% - 58px);right:auto;background:#1f1f1f;}
	.elementor .benefit-slider__arrow--prev::before{content:"←";}
	.elementor .benefit-slider__arrow--next{right:calc(50% - 58px);left:auto;background:#f50914;}
	.elementor .benefit-slider__arrow--next::before{content:"→";}
	/* Heading centred; balance wrapping so lines stay even. */
	.elementor .benefits .section-heading{text-align:center;}
	.elementor .benefits .section-heading .eyebrow,
	.elementor .benefits .section-heading h2{text-wrap:balance;}
	.elementor .benefits .section-heading .eyebrow{font-size:clamp(28px,3.6vw,44px)!important;}
	.elementor .benefits .section-heading h2{font-size:clamp(42px,5.5vw,66px)!important;}
}
/* Phones: size each phrase to fit ONE clean centred line (both are ~13 chars, so the
   two lines end up near-equal width — even, not the ragged one-word-per-line wrap). */
@media(max-width:600px){
	.elementor .benefits .section-heading .eyebrow{font-size:clamp(16px,6.2vw,30px)!important;}
	.elementor .benefits .section-heading h2{font-size:clamp(20px,7vw,34px)!important;}
}
/* Conditions career card ("Ми даємо нову професію"): top padding on mobile. */
.elementor .condition-card--career{height:auto;padding-top:300px;align-self:end;}
/* Nudge the red card's stop-sign 5px to the right (desktop). */
.elementor .condition-card__decor--stop{right:20px!important;}
/* Approach page only: narrower text/list block inside candidate + red "stop" cards
   (card stays the same width, the whole content column gets narrower). */
.karat-page-el-car .condition-card--candidate .condition-card__content,
.karat-page-el-car .condition-card--red .condition-card__content{max-width:320px!important;}
/* Let those cards grow taller to fit the (now narrower, taller) text instead of clipping. */
.karat-page-el-car .condition-card--candidate{height:auto!important;min-height:464px!important;}
.karat-page-el-car .condition-card--red{height:auto!important;min-height:332px!important;}
/* Stages "Переваги" benefit cards: a bit taller (grow to fit text). */
.karat-page-el-moto .benefit-card{height:auto!important;min-height:262px!important;}
/* Stages "Наші умови": same as approach — narrower text/list + grow-to-fit with the
   original heights as the floor (so cards can't shrink too much). */
.karat-page-el-moto .condition-card--candidate .condition-card__content,
.karat-page-el-moto .condition-card--red .condition-card__content{max-width:320px!important;}
.karat-page-el-moto .condition-card--candidate{height:auto!important;min-height:464px!important;}
.karat-page-el-moto .condition-card--red{height:auto!important;min-height:360px!important;}
/* Moto hero badges: grow to fit text (height) + keep equal halves (min-width:0 stops
   long words like "МОТОІНСТРУКТОР"/"80 000 ГРН" from expanding a column past the image),
   slightly smaller text so it fits within each half. */
.karat-page-el-moto .hero-stat{height:auto!important;min-width:0!important;}
.karat-page-el-moto .hero-stat strong{font-size:clamp(11px,2.5cqw,18px)!important;}
.karat-page-el-moto .hero-stat small{font-size:clamp(9px,2cqw,14px)!important;}
/* Contacts: bigger red "stop" card (larger minimum height). */
.karat-page-el-pravila-doroshnogo-ruhu .condition-card--red{height:auto!important;min-height:320px!important;}
/* Etapy (stages) + Contacts: hide the speedometer gauge itself (keep the step cards). */
.karat-page-el-moto .elementor .process-speed,
.karat-page-el-pravila-doroshnogo-ruhu .elementor .process-speed{display:none!important;}
@media(max-width:880px){.elementor .condition-card--career{padding-top:100px!important;}}
/* Phone career card: restore room for the photo/circle, nudge whole card 20px down,
   tight to the left, and smaller title/subtitle/list (matches the design). */
@media(max-width:760px){
	.elementor .condition-card--career{margin-top:90px!important;padding:clamp(140px,45vw,185px) 24px 30px!important;text-align:left!important;}
	/* Team photo follows the card gap. */
	.elementor .condition-card__team{top:-170px!important;}
	.elementor .condition-card--career h3{font-size:clamp(16px,5vw,22px)!important;line-height:1.05!important;margin-bottom:14px!important;text-align:left!important;}
	.elementor .condition-card--career strong{font-size:13px!important;}
	.elementor .condition-card--career ul{font-size:12.5px!important;line-height:1.24!important;}
	/* Ідеальний кандидат: cone + red circle moved to the TOP, text below. */
	.elementor .condition-card--candidate{height:auto!important;padding:clamp(180px,51vw,208px) 20px 30px!important;text-align:left!important;overflow:visible!important;}
	/* Red circle: +30%, raised so only the bottom HALF shows (clip-path keeps it a
	   semicircle while the card stays overflow:visible for the cone). */
	.elementor .condition-card--candidate .condition-card__shape{left:50%!important;right:auto!important;bottom:auto!important;top:clamp(-116px,-28.9vw,-96px)!important;transform:translateX(-50%)!important;width:clamp(191px,57.75vw,232px)!important;height:clamp(191px,57.75vw,232px)!important;clip-path:inset(50% 0 0 0)!important;}
	/* Cone: +10% again, raised another 15px, still pokes above the card. */
	.elementor .condition-card__decor--cone{left:50%!important;right:auto!important;bottom:auto!important;top:-35px!important;transform:translateX(-50%) rotate(0deg)!important;width:clamp(160px,48vw,200px)!important;}
	/* Не розглядаємо: title + list on top, STOP sign + white circle centred at the BOTTOM. */
	.elementor .condition-card--red{height:auto!important;padding:26px 24px clamp(230px,66vw,290px)!important;text-align:left!important;overflow:hidden;}
	/* White circle: smaller / narrower, centred near the bottom. */
	/* White circle: +30/+5% (mirrors the candidate's red circle); centred on the BOTTOM
	   edge so only the TOP half shows (card overflow:hidden clips the lower half). */
	.elementor .condition-card--red .condition-card__shape{left:50%!important;right:auto!important;top:auto!important;bottom:clamp(-116px,-28.9vw,-96px)!important;transform:translateX(-50%)!important;width:clamp(191px,57.75vw,232px)!important;height:clamp(191px,57.75vw,232px)!important;}
	/* STOP sign: +10% bigger, lowered ~15px (bottom clipped by the card — never outside). */
	.elementor .condition-card__decor--stop{left:50%!important;right:auto!important;top:auto!important;bottom:calc(clamp(-44px,-9vw,-27px) - 25px)!important;transform:translateX(-50%)!important;width:clamp(266px,79.9vw,351px)!important;}
	/* Smaller type on both side cards. */
	.elementor .condition-card--candidate h3,.elementor .condition-card--red h3{font-size:clamp(16px,4.9vw,22px)!important;line-height:1.05!important;margin-bottom:12px!important;}
	.elementor .condition-card--candidate strong{font-size:13px!important;margin-bottom:10px!important;}
	.elementor .condition-card--candidate ul,.elementor .condition-card--red ul{font-size:12px!important;line-height:1.26!important;}
	/* STOP card — a touch smaller still. */
	.elementor .condition-card--red h3{font-size:clamp(10px,3.4vw,15px)!important;}
	.elementor .condition-card--red ul{font-size:11px!important;line-height:1.28!important;}
}
/* Conditions cards — scale the fonts down to the design proportions so titles/lists fit
   the 2-column cards on laptop/desktop (the theme defaults 44/22/20px overflow). Mobile
   (≤767) keeps its own tuned sizes. */
@media(min-width:768px){
	.elementor .condition-card h3{font-size:clamp(20px,2.1vw,30px)!important;margin-bottom:clamp(12px,1.4vw,18px)!important;}
	.elementor .condition-card strong{font-size:clamp(13px,1.25vw,15px)!important;margin-bottom:10px!important;}
	.elementor .condition-card ul{font-size:clamp(12.5px,1.25vw,15px)!important;line-height:1.28!important;}
	.elementor .condition-card--career h3{font-size:clamp(20px,2.2vw,31px)!important;margin-bottom:clamp(10px,1.2vw,16px)!important;}
	.elementor .condition-card--career strong{font-size:clamp(13px,1.25vw,15px)!important;}
	.elementor .condition-card--career ul{font-size:clamp(12.5px,1.25vw,15px)!important;line-height:1.3!important;}
	/* Decorations hugged to the right edge + trim the red card's empty bottom space. */
	/* Cone: raised higher + candidate card shorter (less empty space below). */
	.elementor .condition-card--candidate{height:365px!important;}
	/* Title "ІДЕАЛЬНИЙ КАНДИДАТ" on two lines. */
	.elementor .condition-card--candidate h3{max-width:285px!important;}
	/* Desktop red circle: into the right part (not the far corner), 15% smaller. */
	.elementor .condition-card--candidate .condition-card__shape{right:-162px!important;bottom:20px!important;width:258px!important;height:259px!important;}
	/* Cone: moved left, slight tilt, smaller. */
	.elementor .condition-card__decor--cone{right:-15px!important;bottom:62px!important;width:clamp(146px,15.3vw,231px)!important;transform:rotate(2deg)!important;}
	.elementor .condition-card--red{height:auto!important;padding-bottom:40px!important;}
	/* STOP sign +15% bigger; white circle pushed to the side (not the corner). */
	.elementor .condition-card__decor--stop{right:-40px!important;width:clamp(215px,21.5vw,329px)!important;}
	.elementor .condition-card--red .condition-card__shape{right:-162px!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:258px!important;height:259px!important;}
	/* Smaller bottom padding inside the cards. */
	.elementor .condition-card{padding-bottom:26px!important;}
}
/* Lead paragraph shown instead of the list (stages page). */
.elementor .condition-card__lead{margin:0;color:inherit;font-size:clamp(14px,1.4vw,17px);line-height:1.4;max-width:40ch;}
/* Conditions on mobile: cards full-width & centred; clip any decoration that would
   push the section past the viewport (caused a right-shift on the smallest phones). */
@media(max-width:880px){
	.elementor .conditions{overflow-x:clip;}
	/* Cards as wide as possible — trim the conditions container side padding. */
	.elementor .conditions .container{width:min(calc(100% - 16px),1549px)!important;}
	.elementor .condition-grid{justify-items:center;}
	.elementor .condition-card{width:100%;max-width:100%;box-sizing:border-box;}
}

/* ---------- Info slider (Дізнайся більше про роботу): keep the slider; just centre
   the card content (icon → heading → text) on mobile. ---------- */
@media(max-width:880px){
	.elementor .info-card{grid-template-columns:1fr!important;justify-items:center!important;align-content:center!important;text-align:center!important;gap:16px!important;}
}
/* Super-small phones: shrink conditions card text so it fits. */
@media(max-width:380px){
	.elementor .condition-card h3{font-size:clamp(20px,6.4vw,26px)!important;}
	.elementor .condition-card strong{font-size:14px!important;}
	.elementor .condition-card ul{font-size:13px!important;line-height:1.18!important;}
}

/* ---------- Reviews (image slider) ---------- */
.karat-reviews__head{margin-bottom:26px;}
.karat-reviews__title{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:700!important;margin:0;font-size:clamp(24px,3vw,40px);text-transform:uppercase;}
.karat-reviews__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:52px;height:52px;border-radius:50%;background:#151515;border:0;cursor:pointer;display:grid;place-items:center;transition:background .2s ease;}
.karat-reviews__arrow:hover{background:#f50914;}
.karat-reviews__arrow::before{content:"";display:block;width:10px;height:10px;border-top:2px solid #fff;border-right:2px solid #fff;}
.karat-reviews__arrow--prev{left:12px;}
.karat-reviews__arrow--prev::before{transform:rotate(-135deg);margin-left:3px;}
.karat-reviews__arrow--next{right:12px;}
.karat-reviews__arrow--next::before{transform:rotate(45deg);margin-right:3px;}
.karat-reviews__slider{position:relative;}
.karat-reviews__track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.karat-reviews__track::-webkit-scrollbar{display:none;}
.karat-reviews__item{flex:0 0 300px;scroll-snap-align:start;}
.karat-reviews__item img{width:100%;height:auto;border-radius:18px;display:block;box-shadow:0 20px 44px rgba(0,0,0,.12);}
@media(max-width:880px){.karat-reviews__item{flex:0 0 70%;}}
@media(max-width:600px){.karat-reviews__item{flex:0 0 86%;}}

/* ---------- FAQ accordion ---------- */
.karat-faq__heading{font-family:"Unbounded","Montserrat",Arial,sans-serif!important;font-weight:700!important;}
.karat-faq__list{display:flex;flex-direction:column;gap:20px;max-width:none;margin:0 auto;}
.karat-faq__cat{margin:24px 0 2px;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(17px,2vw,24px);text-transform:uppercase;color:#151515;overflow-wrap:break-word;word-break:break-word;}
.karat-faq__cat:first-child{margin-top:0;}
.karat-faq__item{background:#fff;border-radius:26px;box-shadow:0 30px 60px rgba(0,0,0,.13);padding:26px 34px;}
.karat-faq__row{display:flex;align-items:center;gap:24px;}
.karat-faq__content{flex:1;min-width:0;}
.karat-faq__q{display:block;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(15px,1.5vw,18px);text-transform:uppercase;color:#151515;line-height:1.3;cursor:pointer;overflow-wrap:break-word;word-break:break-word;}
/* Smooth open/close: JS (karat-home.js) animates max-height to the EXACT content
   height, so there is no overshoot/snap. CSS holds the collapsed + rest states. */
.karat-faq__a{max-height:0;overflow:hidden;transition:max-height .35s ease;}
.karat-faq__item.is-open .karat-faq__a{max-height:none;}
.karat-faq__a p{margin:0;padding-top:14px;color:#6d6d6d;font-family:"Montserrat",Arial,sans-serif;font-size:14px;line-height:1.6;overflow-wrap:break-word;word-break:break-word;}
.karat-faq__toggle{flex:0 0 auto;width:50px;height:50px;border-radius:50%;background:#f50914;border:0;cursor:pointer;display:grid;place-items:center;transition:transform .3s ease,background .2s ease;}
.karat-faq__toggle:hover{background:#d1000c;}
/* Arrow icon (solar_arrow-up-outline, natural → ) tilted 45° down-right (↘) when closed. */
.karat-faq__toggle::before{content:"";display:block;width:20px;height:20px;background:url(faq-arrow.svg) center/contain no-repeat;transform:rotate(45deg);transition:transform .3s ease;}
.karat-faq__item.is-open .karat-faq__toggle::before{transform:rotate(-45deg);}
@media(max-width:600px){.karat-faq__item{padding:22px;}}
/* Mobile: block-level items so every card is full container width (no flex-item shrink). */
@media(max-width:880px){
	.elementor .karat-faq__list{display:block!important;}
	.elementor .karat-faq__item{display:block!important;width:100%!important;box-sizing:border-box;margin-bottom:18px;}
	.elementor .karat-faq__item:last-child{margin-bottom:0;}
	.elementor .karat-faq__row{display:flex;align-items:center;}
}

/* ---------- Hero (approach/stages/contacts) ---------- */
.elementor .karat-hero-sec h1{text-transform:uppercase;}
/* Hero subtitle text: drop the bottom spacing under it. */
.elementor .karat-hero-sec .elementor-widget-text-editor{margin-bottom:0!important;}
.elementor .karat-hero-sec .elementor-widget-text-editor p:last-child{margin-bottom:0!important;}
/* 10px side padding on the hero columns at every width (was 20/0). */
.elementor .karat-hero-sec .elementor-widget-wrap.elementor-element-populated{padding-left:10px!important;padding-right:10px!important;}
/* Instructor photo covers the whole slide background (badges overlay on top). */
.elementor .karat-hero-sec .hero-slide img{height:100%;object-fit:cover;border-radius:22px;}
/* Desktop: the slider stretches to the full height of the text column. */
@media(min-width:881px){
	.elementor .karat-hero-sec > .elementor-container{align-items:stretch!important;}
	.elementor .karat-hero-sec .elementor-column .elementor-widget-wrap{height:100%;}
	.elementor .karat-hero-sec .elementor-widget-karat-hero-slider,
	.elementor .karat-hero-sec .elementor-widget-karat-hero-slider > .elementor-widget-container{height:100%;}
	.elementor .karat-hero-sec .karat-hero__media{aspect-ratio:1!important;height:auto!important;width:min(100%,742px)!important;max-width:742px;margin-top:0;}
}
/* Tablet/phone: text + CTA on top, slider centred below; photo fills each slide and
   the age/income badges shrink so the photo behind stays clearly visible. */
@media(max-width:880px){
	/* Small top gap above the hero section on mobile. */
	.elementor .karat-hero-sec{padding-top:20px!important;margin-top:0!important;}
	.elementor .karat-hero-sec .elementor-widget-wrap.elementor-element-populated{padding-top:0!important;}
	.elementor .karat-hero-sec .elementor-container{flex-direction:column!important;}
	.elementor .karat-hero-sec .elementor-container > .elementor-column{width:100%!important;}
	/* Centre the hero content so nothing drifts off-axis on small screens. */
	.elementor .karat-hero-sec .elementor-widget-heading,
	.elementor .karat-hero-sec .elementor-widget-text-editor,
	.elementor .karat-hero-sec .elementor-heading-title{text-align:center!important;}
	/* Main title a touch bigger; eyebrow left as-is. */
	.elementor .karat-hero-sec h1.elementor-heading-title{font-size:30px!important;}
	/* CTA button + round video button on ONE line, centred, both smaller. */
	.elementor .karat-hero-sec .karat-hero__actions{flex-wrap:nowrap!important;justify-content:center!important;align-items:stretch!important;gap:14px!important;}
	.elementor .karat-hero-sec .button--hero{width:auto!important;padding:0 22px!important;font-size:14px!important;}
	.elementor .karat-hero-sec .hero-video{width:auto!important;}
	.elementor .karat-hero-sec .play-button{width:60px!important;height:60px!important;}
	.elementor .karat-hero-sec .hero-video span{width:80px!important;font-size:10px!important;}
	.elementor .karat-hero-sec .karat-hero__media{margin-inline:auto;}
	/* Keep the two info badges side-by-side at the bottom (theme stacks them ≤420px). */
	.elementor .karat-hero-sec .karat-hero__stats{grid-template-columns:1fr 1fr!important;}
	.elementor .karat-hero-sec .hero-stat{height:auto;padding:10px 12px;}
	.elementor .karat-hero-sec .hero-stat strong{font-size:13px;margin-bottom:5px;}
	.elementor .karat-hero-sec .hero-stat small,.elementor .karat-hero-sec .hero-stat span{font-size:10px;}
}
/* ---------- Hero actions: the CTA pill stretches to the SAME height as the round
   video button + its label — equal height on every screen. ---------- */
.elementor .karat-hero-sec .karat-hero__actions{align-items:stretch!important;padding-top:20px!important;}
.elementor .karat-hero-sec .button--hero{min-height:0!important;height:auto!important;}
/* Play triangle optically centred in the red circle (both hero + media cards). */
.elementor .play-button::before,.elementor .play-dot::before{margin-left:3px!important;}

/* ---------- Video (media) cards: identical caption placement on every card ---------- */
.elementor .media-card__caption{align-items:flex-end;}
/* Mobile: play circle on the LEFT, description on the RIGHT, one line, always
   inside the card (text shrinks/wraps; card clips as a safety net). */
@media(max-width:880px){
	.elementor .media-card{overflow:hidden;}
	.elementor .media-card__caption{flex-direction:row-reverse!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;}
	.elementor .media-card__caption strong{max-width:none!important;flex:1 1 auto;min-width:0;overflow-wrap:anywhere;font-size:clamp(16px,5vw,24px)!important;}
	.elementor .media-card .play-dot{flex:0 0 auto;width:64px;height:64px;}
}

/* ---------- Branch slider on mobile: Філії → перемикач → слайдер; one card fills the view ---------- */
@media(max-width:880px){
	.elementor .branch-slider__header{grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important;}
	.elementor .branch-slider__tabs{justify-content:center!important;}
	.elementor .branch-slider__viewport{width:calc(100% - 44px)!important;}
	.elementor .branch-card{flex-basis:100%!important;min-width:100%!important;}
}

/* ========== Quiz lead modal (shown after ~1 min) ========== */
.karat-quiz[hidden]{display:none;}
.karat-quiz{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;font-family:"Montserrat",Arial,sans-serif;}
.karat-quiz__overlay{position:absolute;inset:0;background:rgba(0,0,0,.55);}
.karat-quiz__dialog{position:relative;z-index:1;width:min(100%,1120px);max-height:94vh;overflow:auto;background:#fff;border-radius:30px;padding:clamp(26px,4vw,56px);box-shadow:0 40px 120px rgba(0,0,0,.35);}
.karat-quiz__close{position:absolute;top:20px;right:20px;display:grid;place-items:center;width:44px;height:44px;background:none;border:0;color:#151515;cursor:pointer;border-radius:50%;transition:background .2s;}
.karat-quiz__close:hover{background:#f2f2f2;}
/* progress steps */
.karat-quiz__steps{display:flex;align-items:center;margin:6px 0 clamp(22px,3.4vw,40px);padding-right:40px;}
.karat-quiz__step{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;border:2px solid #151515;color:#151515;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:16px;}
.karat-quiz__step.is-done{background:#151515;color:#fff;border-color:#151515;}
.karat-quiz__step.is-active{background:#f50914;color:#fff;border-color:#f50914;}
.karat-quiz__line{flex:1 1 auto;height:2px;background:#2a2a2a;margin:0 clamp(6px,1.4vw,12px);}
/* grid: heading left, content right */
.karat-quiz__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:clamp(20px,4vw,56px);align-items:start;margin-bottom:clamp(22px,3.2vw,34px);}
.karat-quiz__title{margin:0;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:800;font-size:clamp(22px,3vw,34px);line-height:1.08;text-transform:uppercase;color:#151515;}
.karat-quiz__title--quiz span{color:#f50914;}
.karat-quiz__title[hidden]{display:none;}
/* questions + options */
.karat-quiz__panel{display:none;}
.karat-quiz__panel.is-active{display:block;}
.karat-quiz__q{margin:0 0 clamp(16px,2.4vw,26px);font-weight:600;font-size:clamp(15px,1.5vw,18px);color:#151515;}
.karat-quiz__options{display:flex;flex-wrap:wrap;gap:14px 22px;}
.karat-quiz__opt{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:#151515;line-height:1.2;}
.karat-quiz__opt input{width:17px;height:17px;accent-color:#f50914;cursor:pointer;flex:0 0 auto;}
/* form fields */
.karat-quiz__field{display:flex;align-items:center;gap:10px;height:60px;padding:0 22px;margin-bottom:16px;border:1px solid #d4d4d4;border-radius:999px;}
.karat-quiz__field:focus-within{border-color:#151515;}
.karat-quiz__flag{font-size:20px;line-height:1;}
.karat-quiz__input{flex:1;height:100%;border:0;background:none;outline:none;font-family:"Montserrat",Arial,sans-serif;font-size:15px;color:#151515;}
.karat-quiz__thanks{font-size:clamp(16px,2vw,20px);font-weight:600;color:#151515;line-height:1.4;}
/* buttons */
.karat-quiz__actions{display:flex;gap:clamp(12px,2vw,22px);}
.karat-quiz__btn{flex:1;min-height:62px;padding:0 24px;border:0;border-radius:999px;background:#f50914;color:#fff;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(14px,1.5vw,18px);text-transform:uppercase;cursor:pointer;transition:background .2s,opacity .2s;}
.karat-quiz__btn:hover{background:#d1000c;}
.karat-quiz__btn[hidden]{display:none;}
.karat-quiz__btn:disabled{opacity:.45;cursor:not-allowed;}
@media(max-width:760px){
	.karat-quiz__dialog{padding:26px 18px;border-radius:22px;}
	.karat-quiz__grid{grid-template-columns:1fr;gap:18px;}
	.karat-quiz__steps{padding-right:36px;}
	.karat-quiz__step{width:30px;height:30px;font-size:14px;}
	.karat-quiz__btn{min-height:54px;}
}

/* ---------- FAQ: every card full container width, equal ---------- */
.elementor .karat-faq__list{max-width:none!important;width:100%;}
.elementor .karat-faq__item{width:100%;box-sizing:border-box;}

/* ========== Lead (Записатись) modal ========== */
.karat-lead[hidden]{display:none;}
.karat-lead{position:fixed;inset:0;z-index:100001;display:flex;align-items:center;justify-content:center;padding:18px;font-family:"Montserrat",Arial,sans-serif;}
.karat-lead__overlay{position:absolute;inset:0;background:rgba(0,0,0,.55);}
.karat-lead__dialog{position:relative;z-index:1;width:min(100%,440px);max-height:94vh;overflow:auto;background:#fff;border-radius:30px;padding:clamp(28px,5vw,42px);box-shadow:0 40px 120px rgba(0,0,0,.35);text-align:center;}
.karat-lead__close{position:absolute;top:20px;right:20px;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;border:0;color:#151515;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.14);transition:background .2s;}
.karat-lead__close:hover{background:#f2f2f2;}
.karat-lead__logo{display:block;height:34px;width:auto;margin:0 auto clamp(14px,2.5vw,20px);}
.karat-lead__title{margin:0 0 10px;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:800;font-size:clamp(28px,7vw,38px);text-transform:uppercase;line-height:1;color:#151515;}
.karat-lead__sub{margin:0 0 clamp(18px,3vw,26px);font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(12px,3.4vw,15px);text-transform:uppercase;line-height:1.28;color:#151515;}
.karat-lead__field{display:flex;align-items:center;gap:10px;height:60px;padding:0 22px;margin-bottom:14px;border:1px solid #dcdcdc;border-radius:999px;box-shadow:0 10px 26px rgba(0,0,0,.06);text-align:left;}
.karat-lead__field:focus-within{border-color:#151515;}
.karat-lead__flag{font-size:20px;line-height:1;}
.karat-lead__input{flex:1;height:100%;border:0;outline:none;background:none;font-family:"Montserrat",Arial,sans-serif;font-size:15px;color:#151515;}
.karat-lead__submit{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:92px;margin-top:8px;padding:0 12px 0 38px;border:0;border-radius:999px;background:#f50914;color:#fff;font-family:"Unbounded","Montserrat",Arial,sans-serif;font-weight:700;font-size:clamp(16px,4vw,21px);text-transform:uppercase;cursor:pointer;transition:background .2s;}
.karat-lead__submit:hover{background:#d1000c;}
.karat-lead__submit-icon{flex:0 0 auto;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#fff;color:#151515;}
.karat-lead__thanks{font-family:"Montserrat",Arial,sans-serif;font-size:clamp(15px,2vw,18px);font-weight:600;color:#151515;line-height:1.4;}

/* ---------- Standards (Наші стандарти) — slider on mobile, arrows below ---------- */
.elementor .standards-slider{position:relative;}
.elementor .standards-slider__arrow{display:none;}
@media(max-width:880px){
	.elementor .standards-slider{padding-bottom:70px;}
	.elementor .white-card-grid{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-snap-stop:always;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:16px;padding:10px 20px 24px;scroll-padding-left:20px;}
	.elementor .white-card-grid::-webkit-scrollbar{display:none;}
	.elementor .white-card{flex:0 0 100%!important;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box;box-shadow:0 14px 34px rgba(0,0,0,.10)!important;}
	.elementor .standards-slider__arrow{display:grid;place-items:center;position:absolute;bottom:0;width:50px;height:50px;border-radius:50%;border:0;cursor:pointer;color:#fff;font-family:Arial,sans-serif;font-size:24px;line-height:1;box-shadow:0 10px 26px rgba(0,0,0,.2);}
	.elementor .standards-slider__arrow--prev{left:calc(50% - 58px);background:#1f1f1f;}
	.elementor .standards-slider__arrow--prev::before{content:"\2190";}
	.elementor .standards-slider__arrow--next{right:calc(50% - 58px);background:#f50914;}
	.elementor .standards-slider__arrow--next::before{content:"\2192";}
}

/* ---------- Video cards: half-size play triangle + clickable + popup ---------- */
.elementor .media-card .play-dot::before{border-top-width:6.5px!important;border-bottom-width:6.5px!important;border-left-width:11px!important;}
.elementor .media-card--has-video{cursor:pointer;}
/* Video popup */
.karat-video[hidden]{display:none;}
.karat-video{position:fixed;inset:0;z-index:100002;display:flex;align-items:center;justify-content:center;padding:20px;}
.karat-video__overlay{position:absolute;inset:0;background:rgba(0,0,0,.82);}
.karat-video__dialog{position:relative;z-index:1;width:min(100%,940px);}
.karat-video__frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;box-shadow:0 40px 120px rgba(0,0,0,.5);}
.karat-video__frame iframe,.karat-video__frame video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;}
.karat-video__placeholder{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;color:#bdbdbd;font-family:"Montserrat",Arial,sans-serif;font-size:clamp(15px,2.4vw,20px);letter-spacing:.02em;}
.karat-video__close{position:absolute;top:-48px;right:0;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;border:0;color:#151515;font-size:18px;cursor:pointer;transition:background .2s;}
.karat-video__close:hover{background:#eee;}

/* Per-element tweak: top padding on a specific HTML widget. */
.elementor .elementor-element-124a1c1{padding-top:20px!important;}
