/* SkillUnit: доводка за оригіналом (шрифти, кольори тексту, відступи, анімація кнопок). Підключається останнім.
   Значення взято зі старої головної (Elementor post-2.css) та порівняно зі старою темою на живому сайті. */

/* Єдиний відступ «по краях»: від шапки до заголовка (79 → 109) і від кінця тексту до підвалу — однаковий на всіх сторінках. */
:root { --su-edge: 30px; }

/* Базовий шрифт: на старому сайті скрізь Play (400/700). */
body { font-family: var(--f-head); color: #232323; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); color: #232323; }

/* ---------- Перший екран: висота від висоти пристрою ---------- */
.su-hero { box-sizing: border-box; }
@media (min-width: 1101px) {
	/* Відступ знизу такий самий, як зверху (1%): підпис праворуч і соцмережі зліва стоять на одній лінії */
	.su-hero { padding-top: 1%; padding-bottom: 1%; min-height: 900px; min-height: 100vh; min-height: 100svh; }
	.su-hero__left { height: auto; }
	.su-hero__body { padding-top: clamp(90px, 24vh, 220px); padding-top: clamp(90px, 24svh, 220px); }
	.su-hero__media { height: calc(100vh - 2vw - 80px); height: calc(100svh - 2vw - 80px); min-height: 440px; max-height: 960px; }
	.su-hero .su-hero__caption { margin-bottom: 0 !important; }
	.su-hero__foot { margin-top: auto; padding-bottom: 0; }
}
@media (max-width: 1100px) {
	.su-hero { min-height: 100vh; min-height: 100svh; }
	/* Текстовий блок займає перший екран: кнопки соцмереж унизу, відео починається нижче */
	.su-hero__left { min-height: calc(100vh - 150px); min-height: calc(100svh - 150px); }
	.su-hero__foot { margin-top: auto; }
	.su-hero__media { height: 60vh; height: 60svh; min-height: 340px; max-height: 640px; }
}
.su-hero__media video, .su-hero__media img.su-hero__poster { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.su-eyebrow, .su-eyebrow span { font-size: 16px; line-height: 24px; }
.su-eyebrow__ico, .su-eyebrow__ico svg { width: 34px; height: 34px; }
.su-hero__join { font-size: 16px; line-height: 24px; transition: padding .5s ease; }
.su-hero__foot:hover .su-hero__join, .su-soc:hover ~ .su-hero__join { padding-left: 5px; }
.su-hero__caption { font-size: 20px; line-height: 26px; color: #000; }

/* Соцмережі в hero та контактах: круг 46px з білим бордером, крок 32px, при наведенні піктограма чорніє */
.su-hero .su-soc__i, .su-contacts .su-soc__i {
	width: 46px; height: 46px; box-sizing: border-box; border: 3px solid #fff; box-shadow: none;
	font-size: 20px; margin-left: -14px; transition: color .3s ease;
}
.su-hero .su-soc__i:first-child, .su-contacts .su-soc__i:first-child { margin-left: 0; }
.su-hero .su-soc__i:hover, .su-contacts .su-soc__i:hover { transform: none; color: #000; }
.su-hero .su-soc__i--facebook, .su-contacts .su-soc__i--facebook { background: #15548B; }
.su-hero .su-soc__i--telegram, .su-contacts .su-soc__i--telegram { background: #55B0FF; }
.su-hero .su-soc__i--instagram, .su-contacts .su-soc__i--instagram { background: #8BC8FC; }
.su-contacts .su-soc__i { border-color: #fff; }
.su-soc:hover ~ .su-contacts__join { padding-left: 5px; }
.su-contacts__join { font-size: 16px; line-height: 24px; transition: padding .5s ease; }

/* ---------- Меню в шапці: салатовий при наведенні й для активного пункту; крапка не зсуває текст ---------- */
.su-nav__item > a { position: relative; transition: color .25s ease; }
.su-nav__item > a::before, .su-nav__item.has-mega:hover > a::before { content: "•"; position: absolute; left: -14px; top: 50%; margin: 0; transform: translateY(-50%); opacity: 0; transition: opacity .25s ease; }
.su-nav__item > a:hover, .su-nav__item.has-mega:hover > a, .su-nav__item.is-current > a { color: #9CCC3A; }
.su-nav__item > a:hover::before, .su-nav__item.has-mega:hover > a::before, .su-nav__item.is-current > a::before { opacity: 1; }

/* ---------- Кнопки: як на старому сайті ---------- */
.su-btn:not(.su-btn--ghost) {
	box-sizing: border-box; height: 49px; gap: 20px; padding: 4px 7px 4px 20px;
	border: 2px solid transparent; letter-spacing: 0; font-size: 18px;
	transition: background-color .3s, color .3s, border-color .3s;
}
/* Текст кнопки по вертикалі строго по центру (на старому сайті був зсунутий вниз приблизно на 6px) */
.su-btn:not(.su-btn--ghost) > span:first-child { padding: 0 0 4px; line-height: 30px; }
.su-btn__ico { flex: none; transition: transform .5s ease; }
.su-btn:hover .su-btn__ico { transform: rotate(50deg); }

.su-btn.su-btn--dark { background: #232323; border-color: #232323; color: #fff !important; }
.su-btn.su-btn--dark:hover { background: #fff; color: #232323 !important; border-color: var(--lime); }
.su-btn.su-btn--line { background: #fff; border-color: var(--lime); color: #232323; }
.su-btn.su-btn--line:hover { background: #232323; border-color: #232323; color: #fff; }
.su-btn.su-btn--line:hover .su-btn__ico, .su-btn.su-btn--dark:hover .su-btn__ico { background: var(--lime); }

/* ---------- Кнопка телефону в шапці: сірий фон перетікає вліво й заповнює всю кнопку ---------- */
.su-phone:not(.su-phone--m) .su-phone__ico { position: relative; z-index: 1; }
.su-phone:not(.su-phone--m) .su-phone__num { position: relative; isolation: isolate; background: transparent; }
.su-phone:not(.su-phone--m) .su-phone__num::before {
	content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; left: 0;
	background: var(--soft); border-radius: 50px; transition: left .55s cubic-bezier(.65, 0, .35, 1);
}
.su-phone:not(.su-phone--m):hover .su-phone__num::before, .su-phone:not(.su-phone--m):focus-visible .su-phone__num::before { left: -40px; }

/* ---------- Картки кейсів: кругла біла стрілка справа вгорі, при наведенні лаймова й повертається на 50° ---------- */
.su-case__go {
	position: absolute; z-index: 3; top: 20px; right: 12px; width: 35px; height: 35px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: #fff; color: #000; font-size: 16px;
	transition: .4s;
}
.su-case__go svg { width: 1em; height: 1em; }
.su-case:hover .su-case__go { background: var(--lime); transform: rotate(50deg); }
@media (max-width: 767px) {
	.su-case__go { width: 28px; height: 28px; top: 6px; right: 6px; font-size: 14px; }
}

/* ---------- Вступ ---------- */
.su-intro__text { font-size: 20px; line-height: 30px; color: #454545; }

/* ---------- Партнери: текст 20px ---------- */
.su-partners p { font-size: 20px; line-height: 30px; color: #2A2929; }

/* ---------- SEO-блок: ширина 900, заголовок 48/48, текст 18/27 у вікні з прокруткою ---------- */
.su-seo { max-width: 940px; margin-top: 110px; }
.su-seo__title { font-size: 48px; line-height: 48px; }
body.su-is-home .su-seo__text { font-size: 18px; line-height: 27px; color: #2A2929; max-height: 500px; overflow-y: auto; padding-right: 10px; }

/* ---------- Послуги: 3 колонки від 992px (hover), планшет 2, телефон 1 ---------- */
@media (max-width: 991px) {
	.su-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.su-bento .su-card--main { grid-area: auto / 1 / auto / -1; }
}
@media (max-width: 767px) {
	.su-bento { grid-template-columns: minmax(0, 1fr); }
	.su-bento .su-card--main { grid-area: auto; }
}
/* Розкрита картка: вміст рахується так, щоб список посилань не виходив за низ.
   Висота розкритого стану залежить від ширини (на вузьких екранах текст переноситься більше). */
@media (min-width: 992px) {
	.su-bento { --su-bh: 980px; }
	.su-bento .su-col { height: var(--su-bh); }
	.su-bento .su-card--main { height: var(--su-bh); padding-bottom: 20px; }
	.su-bento .su-col .su-card.is-hovered { height: var(--su-bh); padding-bottom: 20px; }
	.su-bento .su-card .su-card__text { margin-top: 16px; }
	.su-bento .su-card--main .su-card__text p { margin-bottom: 8px; }
	.su-bento .su-card--main .su-card__links, .su-bento .su-col .su-card.is-hovered .su-card__links { margin-top: 18px; }
	.su-bento .su-card__links li { line-height: 22px; }
	.su-bento .su-card__links a::before { top: 5px; }
	/* Заголовок: міжряддя завжди 40px, міняється лише розмір шрифту — тому текст під заголовком не підстрибує,
	   а залишається на місці, поки картка розкривається (раніше міжряддя міняло висоту заголовка стрибком) */
	.su-bento .su-col .su-card .su-card__title,
	.su-bento .su-card--main .su-card__title,
	.su-bento .su-card--main.is-shrunk .su-card__title,
	.su-bento .su-col .su-card.is-hovered .su-card__title { line-height: 40px; margin-top: 26px !important; transition: font-size .6s ease; }
	/* Малі картки (висота 360): текст трохи компактніший, щоб останній рядок не виходив за низ, і однаковий у спокої та при наведенні */
	.su-bento .su-col .su-card.su-card .su-card__title { margin-top: 18px !important; }
	.su-bento .su-col .su-card.su-card .su-card__text { margin-top: 12px; font-size: 16px; line-height: 23px; }
	.su-bento .su-col .su-card.su-card .su-card__text p { margin-bottom: 8px; }
	.su-bento .su-card, .su-bento .su-card--main { transition: transform .8s ease, height .8s ease, background-color .8s ease; }
	/* Список посилань з'являється плавно, а не різко */
	.su-bento .su-card__links { animation: su-links-in .6s ease .25s both; }
}
@keyframes su-links-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1200px) { .su-bento { --su-bh: 800px; } }
@media (min-width: 1400px) { .su-bento { --su-bh: 740px; } }

/* ---------- Підвал: як на старому сайті (сірий #D9D9D9, логотип, меню-пілюлі, соцмережі, копірайт) ---------- */
.su-footer { margin-top: var(--su-edge); padding: 0; background: #D9D9D9; }
.su-footer__in { box-sizing: border-box; max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); min-height: 75px; display: flex; align-items: center; justify-content: flex-start; gap: 0; }
.su-footer__logo { display: block; flex: 0 0 295px; line-height: 0; }
.su-footer__logo img { display: block; width: 60px; height: 49px; object-fit: contain; }
.su-footer__nav { display: flex; gap: 12px; }
.su-pill { box-sizing: border-box; height: 46px; padding: 0 20px; border-radius: 20px; background: #F6F6F6; color: #2A2929; font-size: 16px; line-height: 20px; transition: background-color .4s, color .4s; }
.su-pill:hover { background: var(--lime); }
.su-footer .su-soc { margin-left: 83px; }
.su-footer .su-soc__i { width: 46px; height: 46px; box-sizing: border-box; border: 3px solid #D9D9D9; box-shadow: none; font-size: 20px; margin-left: -14px; color: #D9D9D9; transition: background-color .3s, color .3s; }
.su-footer .su-soc__i:first-child { margin-left: 0; }
.su-footer .su-soc__i:hover { transform: none; background: #000; }
.su-footer .su-soc__i--facebook { background: #15548B; }
.su-footer .su-soc__i--telegram { background: #55B0FF; }
.su-footer .su-soc__i--instagram { background: #8BC8FC; }
.su-footer .su-soc__i--facebook:hover, .su-footer .su-soc__i--telegram:hover, .su-footer .su-soc__i--instagram:hover { background: #000; }
.su-footer__copy { margin: 0 0 0 auto; width: 208px; font-size: 16px; line-height: 24px; color: #2A2929; white-space: normal; }
@media (max-width: 1100px) {
	.su-footer__in { flex-wrap: wrap; gap: 20px; justify-content: space-between; }
	.su-footer__logo { flex: none; }
	.su-footer .su-soc { margin-left: 0; }
	.su-footer__copy { margin: 0; width: auto; }
}

/* ---------- Телефон ---------- */
@media (max-width: 767px) {
	.su-hero__title .su-hero__l1, .su-hero__title .su-hero__l2, .su-hero__title .su-hero__l3 { margin-bottom: 0; }
	.su-hero__title { font-size: 50px; line-height: 54px; }
	.su-hero__sub { font-size: 22px; }
	.su-h2, .su-intro__title { font-size: 40px; line-height: 44px; }
	.su-seo__title { font-size: 32px; line-height: 36px; }
	.su-intro__text { font-size: 18px; }
	.su-hero__caption { font-size: 18px; }
	.su-partners p { font-size: 18px; }
}

/* ---------- Рейтинг сторінки (kk Star Ratings) ---------- */
.kk-star-ratings { margin: 16px 0; }
/* Сторінки на Elementor вже містять рейтинг у вмісті, а підвал додає ще один — другий ховаємо */
.su-main > .kk-star-ratings ~ .kk-star-ratings { display: none; }


/* Плашка «Переглянь наше портфоліо» (головна): текст і стрілка — живими елементами, стрілка прокручується як у кейсів */
.su-badge { width: 283px; height: 146px; color: #111; text-decoration: none; }
.su-hero .su-badge svg.su-badge__bg { max-width: none; position: absolute; left: 0; top: 0; width: 283px; height: 146px; display: block; filter: drop-shadow(0 2px 10px rgba(30, 40, 70, .08)); }
.su-hero .su-badge img.su-badge__ph { inset: auto; max-width: none; position: absolute; left: 10px; top: 10px; width: 90px; height: 126px; border-radius: 12px; object-fit: cover; display: block; opacity: 1; filter: none; transform: none; }
.su-badge__star { position: absolute; left: 116px; top: 73px; }
.su-badge__txt { position: absolute; left: 115px; bottom: 9px; font-size: 15px; line-height: 19px; font-weight: 700; color: #111; text-align: left; }
.su-badge__go { position: absolute; left: 232px; top: 0; width: 45px; height: 45px; border-radius: 50%; background: var(--lime); color: #000; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .4s; }
.su-badge__go svg { width: 1em; height: 1em; }
.su-badge:hover .su-badge__go, .su-badge:focus-visible .su-badge__go { transform: rotate(50deg); }

/* Главная: телефон и переключатель языков поверх фото — отступ от краёв, как у плашки портфолио (15px) */
@media (min-width: 1101px) {
	.home .su-header:not(.is-fixed) .su-header__right { margin: calc(1vw + 2.5px) 15px 0 0; }
	.home .su-header:not(.is-fixed) .su-lang { margin-top: 4px; }
}
/* Шапка не перехватывает клики/наведение над пустыми местами (под ней лежит плашка портфолио) */
.su-header, .su-header__in, .su-nav, .su-nav__list { pointer-events: none; }
.su-header__in > .su-logo, .su-header__in > .su-header__right, .su-nav__item, .su-mega, .su-header .su-burger, .su-header button { pointer-events: auto; }
/* end polish */
