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

.kk-home { overflow-x: clip; }
.kk-container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.kk-section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; text-transform: uppercase; margin: 0; letter-spacing: .01em; }

/* спільна кнопка-пилюля */
.kk-btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--kk-cream); color: var(--kk-text-dark);
	text-decoration: none; font-weight: 700;
	padding: 15px 30px; border-radius: var(--kk-pill);
	transition: transform var(--kk-ease), background var(--kk-ease);
}
.kk-btn:hover { background: #DB8622; transform: translateY(-1px); }

/* ---------------- 1. HERO ---------------- */
.kk-hero {
	position: relative;
	width: calc(100vw - 80px);
	max-width: none;
	margin: 24px 0 24px calc(50% - 50vw + 40px);
	border-radius: 22px;
	overflow: hidden;
}
.kk-hero__track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.kk-hero__slide {
	flex: 0 0 100%;
	min-height: 680px;
	background-image: var(--kk-hero-bg);
	background-size: cover; background-position: center;
	position: relative; display: flex; align-items: flex-start;
}
.kk-hero__slide::before { content: ""; position: absolute; inset: 0; 
/*background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%); */
}
.kk-hero__inner { position: relative; z-index: 1; max-width: 680px; padding: clamp(60px, 9vh, 96px) clamp(28px, 5vw, 64px) 0; color: #fff; }
.kk-hero__heading { font-size: clamp(34px, 5vw, 70px); font-weight: 800; line-height: 1.05; margin: 0 0 18px; }
.kk-hero__text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); margin: 0 0 26px; max-width: 420px; }

.kk-hero__arrow {
	position: absolute; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.9); color: #1b1a18; cursor: pointer; font-size: 22px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center; z-index: 2;
	transition: background var(--kk-ease);
}
.kk-hero__arrow:hover { background: #fff; }
.kk-hero__arrow--prev { right: 74px; }
.kk-hero__arrow--next { right: 22px; }
.kk-hero__dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.kk-hero__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: background var(--kk-ease); }
.kk-hero__dot.is-active { background: #fff; }

/* ---------------- 2. ТРИ БЛОКИ ---------------- */
.kk-solutions .kk-section-title { margin-bottom: 40px; }
.kk-solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kk-solution {
	background: #F3EEE2; border-radius: 16px; padding: 26px;
	transition: transform var(--kk-ease), box-shadow var(--kk-ease);
}
.kk-solution__url {text-decoration: unset; color: unset;}
.kk-solution:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 24px 50px rgba(0,0,0,.12); }
.kk-solution__title { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: var(--kk-text-dark); }
.kk-solution__text { font-size: 15px; color: #6f6a60; margin: 0 0 20px; }
.kk-solution__img img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; display: block; }

/* ---------------- 3 & 5. СЛАЙДЕР ТОВАРІВ ---------------- */
.kk-pslider { padding: 120px 0; }
.kk-pslider--dark { background: var(--kk-bg); color: var(--kk-text); position: relative; }
.kk-pslider__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.kk-pslider__nav { display: flex; gap: 10px; }
.kk-pslider__arrow {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor;
	background: transparent; color: inherit; cursor: pointer; font-size: 20px;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background var(--kk-ease), color var(--kk-ease);
}
.kk-pslider--dark .kk-pslider__arrow:hover { background: #fff; color: #1b1a18; }
.kk-pslider--light .kk-pslider__arrow:hover { background: #1b1a18; color: #fff; }

.kk-pslider__track {
	display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
	scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none;
	padding-bottom: 4px;
	margin-right: calc(50% - 50vw);
	padding-right: 28px;
	scroll-padding-right: 28px;
}
.kk-pslider__track::-webkit-scrollbar { display: none; }

/* Картка товару */
.kk-pcard {
	flex: 0 0 300px; scroll-snap-align: start;
	border-radius: 16px; padding: 18px; overflow: hidden;
	display: flex; flex-direction: column;
	transition: background var(--kk-ease), color var(--kk-ease), transform var(--kk-ease);
}
.kk-pslider--dark .kk-pcard { background: #F3EEE2; color: var(--kk-text-dark); }
.kk-pslider--light .kk-pcard { background: #F3F3E9; color: var(--kk-text-dark); }
.kk-pcard:hover { background: #56694C; color: #fff; }

.kk-pcard__media { position: relative; margin-bottom: 16px; }
.kk-pcard__img img { width: 100%; height: 200px; object-fit: contain; display: block; }
.kk-pcard__profile { display: none; min-height: 250px; }
.kk-pcard:hover .kk-pcard__img { display: none; }
.kk-pcard:hover .kk-pcard__profile { display: block; }
.kk-pcard__profile-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.kk-pcard__notes { font-size: 14px; line-height: 1.4; margin: 0 0 16px; color: rgba(255,255,255,.85);display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.kk-pcard__taste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.kk-pcard__taste-label { display: block; font-size: 13px; margin-bottom: 5px; }
.kk-dots { display: inline-flex; gap: 4px; }
.kk-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.kk-dot.is-on { background: #fff; }
.kk-pcard:not(:hover) .kk-dot { background: rgba(27,26,24,.2); }
.kk-pcard:not(:hover) .kk-dot.is-on { background: var(--kk-text-dark); }

.kk-pcard__cat { font-size: 12px; letter-spacing: .06em; opacity: .6; text-transform: uppercase; }
.kk-pcard__name { font-size: 18px; font-weight: 700; margin: 6px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.kk-pcard__opts {display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; flex: 1 1 auto;}
.kk-pcard__opt {
	border: 1px solid rgba(27,26,24,.25); background: transparent; color: inherit;
	border-radius: 6px; padding: 1px 8px; font-size: 13px; cursor: pointer;
	transition: background var(--kk-ease), border-color var(--kk-ease), color var(--kk-ease); height: fit-content;
}
.kk-pcard .kk-pcard__opt:hover { border-color: rgba(255,255,255,.4); background:#FAFAF2; color: #171717; }
.kk-pcard:hover .kk-pcard__opt.is-active { background: #fff; color: #1b1a18; border-color: #fff; }

section.kk-pslider.kk-pslider--light .kk-pcard:hover .kk-pcard__add {background: #FAFAF2; color: #171717;}
.kk-pcard__price { font-size: 17px; margin-bottom: 14px; }
.kk-pcard__price .amount { font-weight: 600; }
.kk-pcard__add {
	margin-top: auto; border: 0; cursor: pointer;
	background: var(--kk-text-dark); color: #fff; font-weight: 700; font-size: 15px;
	padding: 13px; border-radius: var(--kk-pill); transition: opacity var(--kk-ease);
}
.kk-pcard .kk-pcard__add:hover { background: #F0F0E6; color: #1b1a18; }
.kk-pcard__add[disabled] { opacity: .6; cursor: default; }

/* ---------------- 4. ЗЕЛЕНА СЕКЦІЯ (overlap) ---------------- */
.kk-green { position: relative; z-index: 100; height: 0; }
.kk-green__inner {
	background: #56694C; color: #fff; border-radius: 22px;
	padding: clamp(30px, 4vw, 56px);
	display: flex; gap: 40px; align-items: center;
	box-shadow: 0 30px 70px rgba(0,0,0,.2);
	transform: translateY(-50%);
}
.kk-green__left { flex: 0 0 56%; }
.kk-green__heading { font-size: clamp(24px, 3vw, 34px); font-weight: 800; text-transform: uppercase; margin: 0 0 14px; }
.kk-green__sub { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); margin: 0; }
.kk-green__right { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.kk-green__btn {
	border: 1px solid rgba(255,255,255,.5); border-radius: var(--kk-pill);
	padding: 10px 18px; font-size: 14px; color: #fff; text-decoration: none;
	transition: background var(--kk-ease), color var(--kk-ease); font-weight: 700;
}
.kk-green__btn:hover { background: #fff; color: #56694C; border-color: #fff; }

/* ---------------- 6 & 7. 50/50 ---------------- */
.kk-split { display: flex; min-height: 480px; }
.kk-split--img-left { flex-direction: row-reverse; }
.kk-split__text {
	flex: 1 1 50%;
	background-size: cover; background-position: center;
	display: flex; align-items: center; padding: clamp(30px, 5vw, 80px);
	color: var(--kk-text-dark);
}
.kk-split__text.is-dark { color: #fff; position: relative; }
.kk-split__text.is-dark::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.kk-split__text-inner { position: relative; z-index: 1; max-width: 480px; }
.kk-split__heading { font-size: clamp(24px, 3vw, 34px); font-weight: 800; text-transform: uppercase; margin: 0 0 18px; }
.kk-split__body { font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.kk-split__body p { margin: 0 0 12px; }
.kk-split__btn { background: #111; color: #fff; }
.kk-split__btn:hover { background: #F0F0E6; }
.kk-split__media { flex: 1 1 50%; }
.kk-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- 8. БЛОГ ---------------- */
.kk-blog { padding: 120px 0; }
.kk-blog .kk-section-title { margin-bottom: 34px; }
.kk-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kk-blog__card {
	position: relative; display: block; height: 420px; border-radius: 16px; overflow: hidden;
	background-size: cover; background-position: center; text-decoration: none;
	transition: transform var(--kk-ease);
}
.kk-blog__card:hover { transform: translateY(-6px); }
.kk-blog__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.8) 100%); }
.kk-blog__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; color: #fff; }
.kk-blog__title { font-size: 19px; font-weight: 700; margin: 0 0 10px; line-height: 1.25; }
.kk-blog__date { font-size: 14px; color: rgba(255,255,255,.75); }


/* ================= Override'и ================= */
.container.grid-container { width: 100%; max-width: unset; }
.site-content { display: block; }

.kk-hero__arrow {
	position: absolute; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid white; background: rgb(255 255 255 / 0%); color: #fffdfa; cursor: pointer;
	font-size: 21px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
	z-index: 2; transition: background var(--kk-ease); padding: 0; padding-bottom: 4px;
}
.kk-hero__arrow:hover { background: #fff; color: black; }

.kk-btn { background: #FAFAF2; }

.kk-hero__dot.is-active { background: #fff; scale: 1.4; }

.kk-solution { background: #FAFAF2; }
.kk-solutions { padding: 120px 0; background: #F3F3E9; }
.kk-solution__img img { width: 100%; height: 300px; object-fit: contain; border-radius: 10px; display: block; }
.kk-solution__text { font-size: 15px; color: #171717; margin: 0 0 20px; }

/* ================= Override'и (картки товарів) ================= */
.kk-pcard { flex: 0 0 340px; }
.kk-pslider--dark { background: var(--kk-bg); color: var(--kk-text); padding-bottom: 260px; }
.kk-pslider--dark .kk-pcard { background: #121212; color: #FAFAF2; }
.kk-pcard__opt { border: 1px solid rgb(255 255 255); }
.kk-pcard__opt.is-active { background: #FAFAF2; border-color: var(--kk-text-dark); color: #171717; }
.kk-pcard__cat { font-size: 14px; letter-spacing: .06em; opacity: .6; text-transform: uppercase; }
.kk-pslider__arrow {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor;
	background: transparent; color: inherit; cursor: pointer; font-size: 20px;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background var(--kk-ease), color var(--kk-ease); padding: 0; padding-bottom: 4px;
}
.kk-pcard__add {
	margin-top: auto; border: 0; cursor: pointer; background: #FAFAF2; color: #171717;
	font-weight: 700; font-size: 15px; padding: 13px; border-radius: var(--kk-pill);
	transition: opacity var(--kk-ease); width: 100%;
}
.kk-pcard__name { font-size: 20px; font-weight: 700; margin: 6px 0 24px; }
.kk-pcard__taste-label { display: block; font-size: 14px; margin-bottom: 0px; line-height: 1; }
.kk-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }

.kk-pcard:hover { background: #56694C !important; }

.kk-pcard__img img { width: 100%; height: 250px; }

/* Вирівнюємо ціну + кнопку по низу карток (без "сходинок") */
.kk-pcard__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.kk-pcard__price { margin-top: auto; }

/* Білий слайдер: кнопка темна + над зеленою секцією */
section.kk-pslider.kk-pslider--light .kk-pcard__add { background: #171717; color: #FAFAF2; }
section.kk-pslider.kk-pslider--light .kk-pcard__add:hover { background: #FAFAF2; color: #171717; }
section.kk-pslider.kk-pslider--light { padding-top: 260px; z-index: 99; position: relative; }

/* Білий слайдер: опції з темною обводкою/активним станом */
section.kk-pslider.kk-pslider--light .kk-pcard__opt { border: 1px solid rgb(23 23 23); }
/*section.kk-pslider.kk-pslider--light .kk-pcard__opt.is-active { background: #171717; color: #FAFAF2; }*/

section.kk-pslider.kk-pslider--light .kk-pcard:hover .kk-pcard__opt { border: 1px solid rgb(255 255 255); }
/* ---------------- АДАПТИВ ---------------- */
@media (max-width: 900px) {
	.kk-solutions__grid { grid-template-columns: 1fr; }
	.kk-green { height: auto; }
	.kk-green__inner { flex-direction: column; align-items: stretch; margin: 30px 0; transform: none; }
	.kk-green__left { flex-basis: auto; }
	.kk-split { flex-direction: column; min-height: 0; }
	.kk-split--img-left { flex-direction: column; }
	.kk-split__text { flex-basis: auto; }
	.kk-split__media { flex-basis: auto; height: 320px; }
	.kk-blog__grid { grid-template-columns: 1fr; }
	.kk-blog__card { height: 320px; }
}

@media (max-width: 600px) {
	.kk-hero { width: calc(100vw - 24px); margin-left: calc(50% - 50vw + 12px); border-radius: 16px; }
	.kk-hero__slide { min-height: 540px; background-image: var(--kk-hero-bg-mobile);}
	.kk-hero__arrow { bottom: 16px; }
	.kk-pslider,
	.kk-solutions,
	.kk-blog { padding: 48px 0; }
	.kk-container { padding: 0 18px; }
	.kk-pcard { flex: 0 0 250px; }
}

/* Мобілка: прибираємо великі паддінги наїзду + гасимо горизонтальний скрол */
@media (max-width: 900px) {
	.kk-pslider--dark { padding-bottom: 48px; }
	section.kk-pslider.kk-pslider--light { padding-top: 48px; }
	body { overflow-x: hidden; }
}

@media (min-width: 2000px) {
	.kk-split {max-height: 700px; }
	.kk-split:not(.kk-split--img-left) .kk-split__text {padding-left: max(28px, calc((100vw - 1280px) / 2 + 28px)); padding-right: 28px; box-sizing: border-box;}
}

.kk-pcard__name a { color: inherit; text-decoration: none; transition: opacity var(--kk-ease); }
.kk-pcard__name a:hover { opacity: .75; }