/* =========================================================================
   КУЗНЯ КАВИ — сторінка «Співпраця»
   Токени з kk-header.css (:root)
   ========================================================================= */

.kk-sp { overflow-x: clip; }

/* Контейнер сайту на всю ширину (сторінка-лендінг) */
.site-content { display: block; }
.container.grid-container { width: 100%; max-width: unset; }

.kk-sp .kk-container { max-width: 1280px; margin: 0 auto; padding: 0 88px; align-items: stretch; }
.kk-sp .kk-section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; text-transform: uppercase; margin: 0 0 40px; }
.kk-sp .kk-btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: #FAFAF2; color: var(--kk-text-dark); text-decoration: none; font-weight: 700;
	padding: 15px 30px; border-radius: var(--kk-pill); transition: background var(--kk-ease), transform var(--kk-ease);
}
.kk-sp .kk-btn:hover { background: #fff; transform: translateY(-1px); }

/* ---------- 1. БАНЕР ---------- */
.kk-sp-banner {
	background: var(--kk-bg); background-size: cover; background-position: center;
	position: relative; display: flex; align-items: center; min-height: 520px;
}
.kk-sp-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.1) 100%); }
div.kk-sp-banner__inner.kk-container { position: relative; z-index: 1; width: 100%; color: #fff; text-align: left; padding-left: 28px; padding-right: 28px; }
.kk-sp-banner__heading { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 0 0 16px; max-width: 620px; }
.kk-sp-banner__text { font-size: 16px; color: rgba(255,255,255,.85); margin: 0 0 26px; max-width: 460px; }

/* ---------- 2. 4 ПЕРЕВАГИ ---------- */
.kk-sp-features { padding: 90px 0; background: #FAF8F0; }
.kk-sp-intro { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kk-sp-intro__text { font-size: 15px; color: #171717; margin: 16px 0 0; line-height: 1.55; }
.kk-sp-features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0 7%; }
.kk-sp-feature { background: #F3F3E9; border-radius: 16px; padding: 30px; border: 1px solid #d3d3d3; }
.kk-sp-feature__ic { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; background: #FAFAF2; align-items: center; justify-content: center; margin-bottom: 18px; border: 1px solid #d3d3d3; box-shadow: 0 3px 7px 1px #d3d3d3; }
.kk-sp-feature__ic img { width: 22px; height: 22px; object-fit: contain; }
.kk-sp-feature__title { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: var(--kk-text-dark); }
.kk-sp-feature__text { font-size: 14px; color: #6f6a60; margin: 0; line-height: 1.5; }
.kk-sp-feature__text p { margin: 0 0 8px; }
.kk-sp-feature__text p:last-child { margin-bottom: 0; }

/* ---------- 3. ЩО ПРОПОНУЄМО (чорна) ---------- */
.kk-sp-offer { padding: 90px 0; background: #171717; color: #FAFAF2; }
.kk-sp-offer__title { text-align: center; margin-bottom: 46px; }
.kk-sp-offer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kk-sp-offer__card { background: #0e0e0e; border-radius: 16px; padding: 30px; display: flex; flex-direction: column; }
.kk-sp-offer__sub { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.kk-sp-offer__text { font-size: 14px; color: rgba(255,255,255,.7); margin: 0 0 22px; line-height: 1.5; }
.kk-sp-offer__img { margin-top: auto; }
.kk-sp-offer__img img { width: 100%; height: 200px; object-fit: contain; display: block; }

/* ---------- 4. ГАЛЕРЕЯ ---------- */
.kk-sp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.kk-sp-gallery__item img { width: 100%; height: 260px; object-fit: cover; display: block; }

/* ---------- 5. ФОРМАТИ ---------- */
.kk-sp-formats { padding: 90px 0; background: #F3F3E9; }
.kk-sp-formats__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 44px; }
.kk-sp-formats__text { font-size: 15px; color: #171717; margin: 0; line-height: 1.6; }
.kk-sp-formats__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.kk-sp-format { padding: 28px; background: #FAFAF2; border-radius: 16px; border: 1px solid #d3d3d3; grid-column: span 2; }
.kk-sp-format:nth-child(4), .kk-sp-format:nth-child(5) { grid-column: span 3; }
.kk-sp-format__ic { display: inline-flex; width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px; background: #FAFAF2; align-items: center; justify-content: center; border: 1px solid #d3d3d3; box-shadow: 0 3px 7px 1px #d3d3d3; }
.kk-sp-format__ic img { width: 20px; height: 20px; object-fit: contain; }
.kk-sp-format__title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--kk-text-dark); }
.kk-sp-format__text { font-size: 14px; color: #171717; margin: 0; line-height: 1.5; }

/* ---------- 6. ФОРМА ---------- */
.kk-sp-contact { padding: 90px 0; background: #FAF8F0; }
.kk-sp-contact__inner { display: grid; grid-template-columns: 33% 1fr; gap: 48px; align-items: stretch; }
.kk-sp-contact__info { display: flex; flex-direction: column; }
.kk-sp-contact__text { font-size: 15px; color: #171717; margin: 16px 0 34px; line-height: 1.6; }
.kk-sp-contact__img { flex: 1 1 auto; min-height: 0; position: relative; }
.kk-sp-contact__img img { position: absolute; inset: 0; width: 100%; height: calc(100% - 36px); object-fit: cover; object-position: top; border-radius: 14px; display: block; }

/* Стилі форми Contact Form 7 */
.kk-sp-contact__form .wpcf7-form { display: flex; flex-direction: column; gap: 18px; }
.kk-sp-contact__form p { margin-bottom: 0; }
.kk-cf7__row { display: flex; gap: 18px; }
.kk-cf7__row .kk-cf7__field { flex: 1 1 0; min-width: 0; }
.kk-cf7__field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; color: var(--kk-text-dark); }
.kk-cf7__field .wpcf7-form-control-wrap { display: block; }
.kk-sp-contact__form input[type="text"],
.kk-sp-contact__form input[type="email"],
.kk-sp-contact__form input[type="tel"],
.kk-sp-contact__form select,
.kk-sp-contact__form textarea {
	width: 100%; background: #FBF9F3; border: 1px solid rgba(27,26,24,.16);
	border-radius: 12px; padding: 15px 16px; font-size: 16px; color: var(--kk-text-dark);
	font-weight: 400; outline: none; -webkit-appearance: none; appearance: none;
	transition: border-color var(--kk-ease);
}
.kk-sp-contact__form input::placeholder,
.kk-sp-contact__form textarea::placeholder { color: #9a958b; }
.kk-sp-contact__form input:focus,
.kk-sp-contact__form select:focus { border-color: var(--kk-text-dark); }
.kk-sp-contact__form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B1A18' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

/* Телефон з прапорцем */
.kk-cf7__phone { position: relative; }
.kk-cf7__phone .kk-cf7__flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; z-index: 1; pointer-events: none; }
.kk-cf7__phone input[type="tel"] { padding-left: 42px; }

/* Чекбокс згоди */
.kk-cf7__check .wpcf7-list-item { margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.kk-cf7__check .wpcf7-list-item-label { font-size: 13px; font-weight: 400; color: #171717; line-height: 1.4; }
.kk-cf7__check input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; }

/* Кнопка */
.kk-sp-contact__form .wpcf7-submit {
	width: 100%; border: 0; cursor: pointer; background: #111; color: #fff;
	font-weight: 700; font-size: 16px; padding: 17px; border-radius: var(--kk-pill);
	transition: background var(--kk-ease);
}
.kk-sp-contact__form .wpcf7-submit:hover { background: #000; }
.wpcf7-spinner { margin: 12px auto 0; display: block; }
.wpcf7 .wpcf7-response-output { border-radius: 10px; margin: 6px 0 0; font-size: 14px; }

/* =========================================================================
   АДАПТИВ (в кінці, щоб коректно перебивати десктоп)
   ========================================================================= */
@media (max-width: 900px) {
	.kk-sp-features__grid { grid-template-columns: 1fr; margin: 0; }
	.kk-sp-offer__grid { grid-template-columns: 1fr; }
	.kk-sp-formats__head { grid-template-columns: 1fr; gap: 16px; }
	.kk-sp-formats__grid { grid-template-columns: 1fr 1fr; }
	.kk-sp-format,
	.kk-sp-format:nth-child(4),
	.kk-sp-format:nth-child(5) { grid-column: auto; }
	.kk-sp-contact__inner { grid-template-columns: 1fr; gap: 30px; }
	.kk-sp-contact__img { position: static; min-height: 240px; }
	.kk-sp-contact__img img { position: static; height: 240px; }

	/* Галерея: ~1.5 фото зі скролом */
	.kk-sp-gallery { display: flex; overflow-x: auto; scrollbar-width: none; }
	.kk-sp-gallery::-webkit-scrollbar { display: none; }
	.kk-sp-gallery__item { flex: 0 0 66%; }
	.kk-sp-gallery__item img { height: 280px; }
}

@media (max-width: 560px) {
	.kk-sp .kk-container { padding: 0 18px; }
	.kk-sp-formats__grid { grid-template-columns: 1fr; }
	.kk-cf7__row { flex-direction: column; }
	.kk-sp-banner { min-height: 360px; }
}

/* Великі екрани */
@media (min-width: 1920px) {
	.kk-sp-banner { min-height: 620px; }
	.kk-sp-gallery__item img { height: 460px; }
}
