/* SkillUnit: додаткові стилі (нові шаблони, hover «Послуг», уточнення розмірів). Підключається після main.css. */

/* ---------- Уточнення розмірів за оригіналом ---------- */
.su-hero__sub { font-size: 24px; }
.su-btn:not(.su-btn--ghost) { font-size: 18px; }
body.su-is-home .su-seo__text { font-family: var(--f-head); font-size: 18px; line-height: 30px; }
@media (max-width: 767px) {
	.su-hero__sub { font-size: 22px; }
}

/* ---------- Послуги компанії: hover як на оригіналі ---------- */
.su-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.su-bento .su-card--main { grid-row: auto; }
.su-bento .su-card__links { display: block; }
.su-card__links a::before { transition: transform .3s ease-in-out, background-color .3s, border-color .3s; }
.su-card__links a:hover::before { transform: rotate(90deg); background: var(--blue); border-color: var(--blue); }
.su-card__links li { transition: transform .3s ease; }
.su-card__links li:hover { transform: translateX(10px); }
.su-bento--extra { margin-top: 20px; }

@media (max-width: 991px) {
	.su-bento .su-col { display: contents; }
	.su-bento { align-items: stretch; }
}

@media (min-width: 992px) {
	.su-bento .su-card--main { grid-area: auto; }
	.su-bento .su-col { position: relative; height: 740px; min-width: 0; }
	.su-bento .su-card--main { height: 740px; transition: height .8s ease, background-color .8s ease; z-index: 9; }
	.su-bento .su-card--main.is-shrunk { height: 360px; background-color: #fff; background-image: none; }
	.su-bento .su-card--main .su-card__title { font-size: 38px; line-height: 40px; transition: font-size .3s ease; }
	.su-bento .su-card--main.is-shrunk .su-card__title { font-size: 28px; line-height: 28px; }
	.su-bento .su-card--main.is-shrunk .su-card__links { display: none; }

	.su-bento .su-col .su-card { position: absolute; left: 0; width: 100%; height: 360px; min-height: 0; transition: transform .8s ease, height .8s ease, background-color .8s ease; }
	.su-bento .su-card--top { top: 0; }
	.su-bento .su-card--bottom { bottom: 0; }
	.su-bento .su-col .su-card .su-card__title { transition: font-size .3s ease; }
	.su-bento .su-col .su-card:not(.su-card--main) .su-card__links { display: none; }

	.su-bento .su-col .su-card.is-hovered { background-color: var(--lime); z-index: 9; height: 740px; }
	.su-bento .su-col .su-card.is-hovered .su-card__title { font-size: 38px; line-height: 40px; }
	.su-bento .su-col .su-card.is-hovered .su-card__links { display: block; }

	.su-bento .su-col:hover .su-card--bottom.is-away {
		transform: translateX(calc(var(--xp, 0%) - 20px * var(--ci, 0)));
		z-index: 1; pointer-events: none;
	}
	.su-bento .su-col:hover .su-card--top.is-away {
		transform: translateX(calc(var(--xp, 0%) - 20px * var(--ci, 0))) translateY(calc(100% + 20px));
		z-index: 1; pointer-events: none;
	}
}

/* ---------- Спільний банер сторінок ---------- */
.su-pagehero .su-svc__banner { min-height: 160px; }
.su-pagehero--post .su-svc__title { font-size: 44px; line-height: 50px; }
.su-page__body { padding-top: 30px; max-width: 890px; }
.su-prose h2, .su-prose h3, .su-prose h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.2; margin: 34px 0 16px; text-align: left; }
.su-prose h2 { font-size: 32px; }
.su-prose h3 { font-size: 24px; }
.su-prose h4 { font-size: 20px; }
.su-prose img { border-radius: 14px; }
.su-prose blockquote { margin: 24px 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--lime); }

/* ---------- Про нас ---------- */
.su-about__text { max-width: 960px; margin-top: 30px; }
.su-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.su-member { background: var(--soft); border-radius: 24px; padding: 16px; }
.su-member__ph { aspect-ratio: 1 / 1; border-radius: 16px; background: #e4e4e4; overflow: hidden; }
.su-member__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.su-member__name { margin-top: 16px; font-weight: 700; font-size: 20px; line-height: 1.2; }
.su-member__role { margin-top: 4px; font-size: 15px; color: var(--text); }

/* ---------- Контакти ---------- */
.su-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 10px; }
.su-info__card { background: var(--grey); border-radius: 30px; padding: 28px; }
.su-info__title { font-weight: 700; font-size: 28px; line-height: 1.1; }
.su-info__text { margin-top: 14px; font-size: 17px; line-height: 27px; }
.su-info__link { display: inline-flex; margin-top: 18px; font-size: 18px; text-decoration: underline; }
.su-info__link:hover { color: #9ccc3a; }
.su-info__soc { margin-top: 24px; }

/* ---------- Список кейсів ---------- */
.su-casegrid__intro { max-width: 760px; font-size: 18px; line-height: 30px; color: var(--text); margin-bottom: 30px; }
.su-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.su-filter { height: 40px; padding: 0 22px; border: 2px solid var(--dark); border-radius: 50px; background: transparent; font-size: 16px; color: var(--dark); transition: background .2s, border-color .2s; }
.su-filter:hover, .su-filter.is-on { background: var(--lime); border-color: var(--lime); }
.su-casegrid__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.su-casegrid .su-case { flex: none; height: 520px; }
.su-casegrid .su-case[hidden] { display: none; }

/* ---------- Сторінка кейсу ---------- */
.su-case-meta { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; margin-top: 30px; }
.su-case-meta__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.su-cblock__title { font-weight: 700; font-size: 36px; line-height: 1.1; text-transform: uppercase; }
.su-cblock__text { margin-top: 20px; max-width: 890px; }
.su-cblock__imgs { display: grid; gap: 24px; margin-top: 30px; }
.su-cblock__imgs.is-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.su-cblock__imgs img { display: block; width: 100%; height: auto; border-radius: 16px; }
.su-casenav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.su-casenav a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.su-casenav a:hover { color: #9ccc3a; }

/* ---------- Блог ---------- */
.su-blog__intro { max-width: 760px; font-size: 18px; line-height: 30px; color: var(--text); margin-bottom: 30px; }
.su-blog__list { display: grid; gap: 30px; }
.su-bcard { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 30px; align-items: start; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.su-bcard--noimg { grid-template-columns: 1fr; }
.su-bcard__img { display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--soft); }
.su-bcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.su-bcard__img:hover img { transform: scale(1.04); }
.su-bcard__date { font-size: 14px; color: #777; }
.su-bcard__title { margin: 8px 0 12px; font-size: 26px; line-height: 30px; }
.su-bcard__title a:hover { color: #9ccc3a; }
.su-bcard__excerpt { font-family: var(--f-text); font-size: 16px; line-height: 26px; color: var(--text); }
.su-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.su-pager .page-numbers { display: inline-flex; min-width: 42px; height: 42px; padding: 0 14px; align-items: center; justify-content: center; border-radius: 50px; background: var(--soft); }
.su-pager .page-numbers.current, .su-pager a.page-numbers:hover { background: var(--lime); }

/* ---------- Запис блогу ---------- */
.su-article { max-width: 890px; margin: 0 auto; padding: 30px 20px 0; }
.su-article__date { font-size: 14px; color: #777; }
.su-article__img { margin: 20px 0 30px; border-radius: 20px; overflow: hidden; }
.su-article__img img { display: block; width: 100%; height: auto; }
.su-postnav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; }
.su-postnav a { max-width: 48%; font-size: 17px; line-height: 24px; }
.su-postnav a:hover { color: #9ccc3a; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.su-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.su-casegrid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.su-case-meta { grid-template-columns: 1fr; gap: 24px; }
	.su-info { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.su-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.su-casegrid__list { grid-template-columns: 1fr; }
	.su-casegrid .su-case { height: 420px; }
	.su-cblock__title { font-size: 28px; }
	.su-bcard { grid-template-columns: 1fr; gap: 16px; }
	.su-bcard__title { font-size: 22px; line-height: 26px; }
	.su-pagehero--post .su-svc__title { font-size: 30px; line-height: 34px; }
	.su-postnav a { max-width: 100%; }
}

/* ---------- Бургер: смужки позиціонуються абсолютно (iOS Safari некоректно рахує flex усередині <button>) ---------- */
@media (max-width: 1100px) {
	.su-header .su-burger { display: block; position: relative; flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; padding: 0; -webkit-appearance: none; appearance: none; box-sizing: border-box; cursor: pointer; }
	.su-header .su-burger span { display: block; position: absolute; left: 8px; right: 8px; width: auto; height: 3px; margin: 0; border-radius: 2px; background: #232323; }
	.su-header .su-burger span:nth-child(1) { top: 11px; }
	.su-header .su-burger span:nth-child(2) { top: 18.5px; }
	.su-header .su-burger span:nth-child(3) { top: 26px; }
	.su-header .su-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.su-header .su-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.su-header .su-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Бриф на десктопі: по центру сторінки з рівними помірними відступами зверху й знизу (від висоти екрана) ---------- */
@media (min-width: 1101px) {
	.su-brief { box-sizing: border-box; width: 100%; margin: 0 auto; padding-top: clamp(30px, 6vh, 70px); padding-bottom: clamp(30px, 6vh, 70px); display: flex; align-items: center; justify-content: center; }
	.su-brief__in { width: 100%; }
}

/* ---------- Contact Form 7: спільне ---------- */
.wpcf7 form .wpcf7-spinner { display: none !important; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7 form > p:empty, .wpcf7 form br { display: none; }
.wpcf7 form .wpcf7-response-output, .wpcf7 form.sent .wpcf7-response-output, .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { margin: 16px 0 0 !important; padding: 0 !important; border: 0 !important; font-size: 15px; line-height: 22px; }
.wpcf7 form.sent .wpcf7-response-output { color: #4a9c1c; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { color: #dd3333; }
.wpcf7 form .wpcf7-response-output:empty, .wpcf7 form.init .wpcf7-response-output { display: none; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; line-height: 18px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #dd3333; }

/* ---------- Contact Form 7: бриф (form.su-quiz) ---------- */
.su-quiz .wpcf7-form-control { display: block; }
.su-quiz .wpcf7-list-item { display: block; margin: 0 0 18px 15px; }
.su-quiz .wpcf7-list-item:last-child { margin-bottom: 0; }
.su-quiz .wpcf7-list-item label { display: block; position: relative; cursor: pointer; font-size: 17px; }
.su-quiz .wpcf7-list-item input[type=radio], .su-quiz .wpcf7-list-item input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.su-quiz .wpcf7-list-item-label { display: block; position: relative; min-height: 30px; padding-left: 45px; line-height: 30px; }
.su-quiz .wpcf7-list-item-label::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; box-sizing: border-box; border: 1px solid var(--dark, #232323); border-radius: 50%; background: #fff; }
.su-quiz .wpcf7-checkbox .wpcf7-list-item-label::before { border-radius: 8px; }
.su-quiz .wpcf7-list-item-label::after { content: ""; position: absolute; left: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime, #b8e03a); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.su-quiz .wpcf7-checkbox .wpcf7-list-item-label::after { border-radius: 4px; }
.su-quiz .su-quiz__pane--radio .wpcf7-list-item-label::before, .su-quiz .su-quiz__pane--radio .wpcf7-list-item-label::after { border-radius: 50%; }
.su-quiz input:checked + .wpcf7-list-item-label::after { opacity: 1; transform: scale(1); }
.su-quiz input:focus-visible + .wpcf7-list-item-label::before { outline: 2px solid var(--lime, #b8e03a); outline-offset: 2px; }
.su-quiz .wpcf7-not-valid.su-input, .su-quiz input.wpcf7-not-valid { border-color: #dd3333; }
.su-quiz .wpcf7-not-valid-tip { margin-left: 15px; }
.su-quiz .wpcf7-form-control-wrap + .wpcf7-form-control-wrap { margin-top: 14px; }
.su-quiz .wpcf7-form-control-wrap .su-input { width: 100%; box-sizing: border-box; }
.su-quiz .wpcf7-response-output { margin-left: 15px !important; }
.su-quiz.submitting .su-quiz__nav { opacity: .6; pointer-events: none; }

/* ---------- Contact Form 7: контакти (form.su-form) ---------- */
.su-form .wpcf7-form-control-wrap, .su-form .wpcf7-list-item-label { display: block; margin: 0; font-size: inherit; line-height: inherit; text-transform: none; letter-spacing: 0; font-weight: inherit; color: inherit; }
.su-form .wpcf7-list-item { display: inline; margin: 0; }
.su-form .su-check .wpcf7-list-item-label { display: inline; font-size: 13px; line-height: 18px; color: #bdbdbd; font-weight: 400; }
.su-form .su-check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.su-form .su-check input[type=checkbox] { flex: none; margin-top: 2px; }
.su-form .wpcf7-form-control-wrap input[type=text], .su-form .wpcf7-form-control-wrap input[type=email], .su-form .wpcf7-form-control-wrap textarea { width: 100%; box-sizing: border-box; }
.su-form .wpcf7-not-valid-tip { color: #ff8b8b; }
.su-form .wpcf7-not-valid { border-color: #ff8b8b !important; }
.su-form .wpcf7-response-output { color: var(--lime, #b8e03a); }
.su-form.invalid .wpcf7-response-output, .su-form.failed .wpcf7-response-output, .su-form.spam .wpcf7-response-output, .su-form.unaccepted .wpcf7-response-output { color: #ff8b8b; }
.su-form.submitting .su-form__btn { opacity: .6; pointer-events: none; }
.su-contacts__in > .wpcf7 { display: flex; flex-direction: column; min-width: 0; }
.su-contacts__in > .wpcf7 > form { flex: 1 1 auto; }

/* ---------- Contact Form 7: жовта панель на «Контакти» (form.su-cform) ---------- */
.su-cpanel .su-cform .su-cform__f > .wpcf7-form-control-wrap { display: block; margin: 0; padding: 0; font-size: inherit; line-height: inherit; font-weight: 400; color: inherit; text-transform: none; }
.su-cpanel .su-cform input[type="tel"] { box-sizing: border-box; width: 100%; height: 40px; padding: 8px 16px; border: 1px solid rgba(42, 41, 41, .3); border-radius: 3px; background: rgb(209, 236, 106); color: rgb(42, 41, 41); font-family: var(--f-head); font-size: 14px; line-height: 19.6px; outline: 0; transition: border-color .3s; }
.su-cpanel .su-cform .su-cform__agree > .wpcf7-form-control-wrap { display: block; width: auto; }
.su-cpanel .su-cform .su-cform__agree .wpcf7-form-control, .su-cpanel .su-cform .su-cform__agree .wpcf7-list-item { display: block; margin: 0; }
.su-cpanel .su-cform .su-cform__agree label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.su-cpanel .su-cform .su-cform__agree .wpcf7-list-item-label { display: inline; margin: 0; padding: 0; font-size: 14px; line-height: 21px; font-weight: 400; color: rgba(42, 41, 41, .6); text-transform: none; letter-spacing: 0; }
.su-cpanel .su-cform .wpcf7-not-valid-tip { color: #c0392b; }
.su-cpanel .su-cform .wpcf7-not-valid { border-color: #c0392b; }
.su-cpanel .su-cform .wpcf7-response-output { color: #2a2929; }
.su-cpanel .su-cform.invalid .wpcf7-response-output, .su-cpanel .su-cform.failed .wpcf7-response-output { color: #c0392b; }
.su-cpanel .su-cform.submitting .su-cform__btn { opacity: .6; pointer-events: none; }
