/**
 * Стилі тільки головної сторінки (hero, categories, benefits, catalog, FAQ, form).
 * Header та footer — у assets/css/global.css, підключаються на всіх сторінках.
 */

/* При full-bleed секціях (100vw) прибираємо горизонтальний скрол */
.granulka-front-page {
	overflow-x: hidden;
}

/* Контейнер головної — max-width з макету */
.granulka-front-page .granulka-page {
	width: 100%;
	margin: 0;
}

/* Основний контейнер контенту (окрім full-bleed секцій на кшталт hero) */
.granulka-front-page .granulka-main {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 64px;
}

/* ========== HERO (банер) ========== */
.granulka-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 0;
}

.granulka-hero__slider {
	position: relative;
	width: 100%;
	border-radius: 0;
	overflow: hidden;
	background: #d9d9d9;
	height: 465px;
	min-height: 465px;
}

@media (min-width: 992px) {
	.granulka-hero__slider {
		aspect-ratio: 3 / 1;
		height: auto;
		min-height: 0;
	}
}

@media (min-width: 992px) and (max-width: 1100px) {
	.granulka-hero__slider {
		min-height: 420px;
	}

	.granulka-hero__content {
		padding: 48px 16px;
		gap: 20px;
	}

	.granulka-hero__title {
		font-size: 32px;
		max-width: 560px;
	}
}

.granulka-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.granulka-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.granulka-hero__bg {
	position: absolute;
	inset: 0;
	background-image: var(--hero-bg-desktop);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: none;
}

.granulka-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(37, 37, 37, 0.7);
}

.granulka-hero__content {
	position: relative;
	z-index: 2;
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 64px 64px;
	text-align: center;
	gap: 24px;
}

.granulka-hero__title {
	margin: 0;
	max-width: 920px;
	font-family: 'Onest', sans-serif;
	font-size: 48px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: #ffffff;
}

/* Кнопка в hero — точно за Figma 132-148 */
.granulka-hero__catalog-btn {
	min-width: 240px;
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.01em;
	border-radius: 8px;
}

.granulka-hero .granulka-hero__catalog-btn.granulka-btn--outline {
	background: rgba(232, 248, 240, 0.20);
	color: #ffffff;
	border: 1px solid #F0F0F0;
}

.granulka-hero .granulka-hero__catalog-btn.granulka-btn--outline:hover {
	background-color: #0e9a57;
	color: #ffffff;
	border: 1px solid #0e9a57;
}

.granulka-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.40);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #ffffff;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.granulka-hero__arrow:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.8);
}

.granulka-hero__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.granulka-hero__arrow--prev {
	left: 32px;
}

.granulka-hero__arrow--next {
	right: 32px;
}

.granulka-hero__arrow-icon {
	width: 24px;
	height: 24px;
	display: block;
	/* svg */
}

.granulka-hero__arrow--prev .granulka-hero__arrow-icon {
	transform: rotate(180deg);
	transform-origin: center;
}

@media (max-width: 991px) {
	.granulka-hero__bg {
		background-image: var(--hero-bg-mobile, var(--hero-bg-desktop));
	}

	.granulka-hero {
		padding: 0;
	}

	.granulka-hero__slider,
	.granulka-hero__content {
		min-height: 420px;
	}

	.granulka-hero__content {
		padding: 48px 16px;
		gap: 20px;
	}

	.granulka-hero__title {
		font-size: 32px;
		max-width: 560px;
	}

	/* На мобільних стрілки слайдера не показуємо */
	.granulka-hero__arrow {
		display: none;
	}

	.granulka-hero__arrow--prev {
		left: 16px;
	}

	.granulka-hero__arrow--next {
		right: 16px;
	}
}

@media (max-width: 480px) {
	.granulka-hero__slider,
	.granulka-hero__content {
		min-height: 360px;
	}

	.granulka-hero__title {
		font-size: 28px;
	}

	.granulka-hero__arrow {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 991px) {
	.granulka-front-page .granulka-main {
		padding: 0 16px;
	}
}

/* ========== COMPANY ABOUT ========== */
.granulka-company-about {
	background-color: #ffffff;
	margin-top: 24px;
	padding: 40px;
	border-radius: 8px;
}

.granulka-company-about__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 1160px;
	margin: 0 auto;
}

.granulka-company-about__text {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: 0.01em;
	color: #6B6B6B;
}

.granulka-company-about__richtext {
	font-family: 'Onest', sans-serif;
	color: #6B6B6B;
}

.granulka-company-about__richtext p {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: 0.01em;
}

@media (max-width: 991px) {
	.granulka-company-about {
		padding: 24px 16px 40px;
		margin-top: 24px;
		border-radius: 8px;
	}

	.granulka-company-about__inner {
		gap: 12px;
	}

	.granulka-company-about__text {
		font-size: 16px;
		line-height: 24px;
	}

	.granulka-company-about__richtext p {
		font-size: 16px;
		line-height: 24px;
	}
}

/* ========== CATEGORIES (Категорії продукції) - Desktop ========== */
.granulka-categories {
	background-color: #fff;
	margin-top: 32px;
	padding: 40px;
	border-radius: 8px;
}

.granulka-categories__inner {
	display: flex;
	align-items: flex-start;
	gap: 64px;
}

.granulka-categories__list-wrap {
	flex: 0 0 360px;
}

.granulka-categories__title {
	margin: 0 0 28px;
	font-family: 'Onest', sans-serif;
	font-size: 32px;
	font-weight: 500;
	line-height: 40px;
	letter-spacing: 0.01em;
	color: #464646;
}

.granulka-categories__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.granulka-categories__link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-family: 'Onest', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 32px;
	letter-spacing: 0.01em;
	color: #464646;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
	padding: 10px 0;
	border-bottom: 1px solid #F0F0F0;
}

.granulka-categories__link:hover {
	color: #11b568;
	border-bottom-color: #BBB;
}

.granulka-categories__link.is-active {
	color: #11b568;
	border-bottom-color: #BBB;
}

/* Стрілка в кінці рядка (справа) */
.granulka-categories__link::after {
	content: '';
	display: block;
	width: 24px;
	height: 24px;
	margin-left: auto;
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.2s ease;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M6%2012H18.5M18.5%2012L12.5%206M18.5%2012L12.5%2018%22%20stroke%3D%22%2311B568%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}

.granulka-categories__link:hover::after,
.granulka-categories__link.is-active::after {
	opacity: 1;
}

.granulka-categories__preview {
	flex: 1 1 auto;
	background: #ffffff;
	border-radius: 16px;
	padding: 0;
	width: 624px;
	height: 568px;
	overflow: hidden;
}

.granulka-categories__preview-img,
.granulka-categories__preview-placeholder {
	width: 100%;
	height: 100%;
	border-radius: 16px;
	display: block;
	object-fit: cover;
}

.granulka-categories__preview-placeholder {
	background: #f0f0f0;
}

/* Mobile: слайдер без стрілок, свайп + крапки (Figma 189-614, 194-1349, 194-1334) */
.granulka-categories__mobile {
	display: none;
}

@media (max-width: 991px) {
	.granulka-categories {
		background-color: transparent;
		padding: 0;
	}

	.granulka-categories__inner {
		display: none;
	}

	.granulka-categories__mobile {
		display: block;
	}

	.granulka-categories__mobile-title {
		margin: 0 0 20px;
		font-family: 'Onest', sans-serif;
		font-size: 24px;
		font-weight: 500;
		line-height: 32px;
		letter-spacing: 0.01em;
		color: #464646;
		text-align: center;
	}

	.granulka-categories__mobile-track {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		margin: 0 -4px;
		scrollbar-width: none;
		margin-right: -16px;
	}
	.granulka-categories__mobile-track::-webkit-scrollbar {
		display: none;
	}

	/* Картка категорії — Figma 194-1349: 281×336px, padding 8px; картинка Figma 194-1350: 265×240px */
	.granulka-categories__mobile-card {
		flex: 0 0 calc(100% - 48px);
		width: 100%;
		max-width: 281px;
		padding: 8px;
		box-sizing: border-box;
		scroll-snap-align: start;
		scroll-snap-stop: always;
		background: #fff;
		border-radius: 16px;
		overflow: hidden;
		text-decoration: none;
		display: flex;
		flex-direction: column;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	}

	.granulka-categories__mobile-card-img {
		width: 100%;
		height: 240px;
		flex-shrink: 0;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		border-radius: 8px 8px 0 0;
	}
	.granulka-categories__mobile-card-img--placeholder {
		background-color: #f0f0f0;
	}

	.granulka-categories__mobile-card-title {
		flex: 1;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		text-align: center;
		padding: 16px 16px 30px 16px;
		font-family: 'Onest', sans-serif;
		font-size: 20px;
		font-style: normal;
		font-weight: 400;
		line-height: 32px;
		color: #11b568;
	}

	/* Крапки: неактивна — круг (Figma 194-1334), активна — пілюля зелена (Figma 194-1349) */
	.granulka-categories__dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin-top: 20px;
		flex-wrap: wrap;
	}

	.granulka-categories__dot {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background-color: #e2e2e2;
		border: none;
		padding: 0;
		cursor: default;
		transition: background-color 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
	}

	.granulka-categories__dot.is-active {
		width: 24px;
		height: 8px;
		border-radius: 4px;
		background-color: #11b568;
	}
}

/* Desktop: не показувати мобільний блок */
@media (min-width: 992px) {
	.granulka-categories__mobile {
		display: none;
	}
}

/* ========== BENEFITS (Переваги) ========== */
.granulka-benefits {
	margin-top: 24px;
	padding: 0;
	border-radius: 8px;
}

.granulka-benefits__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.granulka-benefits__title {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: 0.24px;
	color: #464646;
}

.granulka-benefits__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.granulka-benefits__card {
	min-height: 216px;
	background: #ffffff;
	border: 1px solid #F0F0F0;
	border-radius: 16px;
	padding: 16px;
	box-sizing: border-box;
}

.granulka-benefits__card:hover,
.granulka-benefits__card:focus-within {
	background-color: rgba(17, 181, 104, 0.10);
}

.granulka-benefits__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
}

.granulka-benefits__beans {
	display: flex;
	align-items: center;
	gap: 4px;
}

.granulka-benefits__bean {
	width: 24px;
	height: 24px;
	aspect-ratio: 1/1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.granulka-benefits__bean svg {
	width: 19.5px;
	height: 19.5px;
	display: block;
}

.granulka-benefits__bean.is-green svg {
	/* Зелене зерно має інший viewBox, тому трохи зменшуємо, щоб виглядали однаково. */
	transform: scale(0.8333);
	transform-origin: center;
}

.granulka-benefits__number {
	font-family: 'Onest', sans-serif;
	font-size: 24px;
	font-weight: 600;
	font-style: normal;
	line-height: 24px;
	letter-spacing: 0.24px;
	color: #11b568;
	background: transparent;
	border-radius: 0;
	display: inline-flex;
}

.granulka-benefits__card-title {
	margin: 0 0 16px;
	font-family: 'Onest', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 32px;
	letter-spacing: 0.01em;
	color: #464646;
}

.granulka-benefits__card-desc {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.01em;
	color: #6B6B6B;
}

@media (max-width: 991px) {
	.granulka-benefits {
		padding: 0;
		border-radius: 0;
		margin-top: 24px;
	}

	.granulka-benefits__inner {
		gap: 20px;
	}

	.granulka-benefits__title {
		font-size: 24px;
		font-style: normal;
		font-weight: 600;
		line-height: 40px;
		letter-spacing: 0.24px;
		text-align: center;
	}

	.granulka-benefits__card {
		min-height: 240px;
		padding: 16px;
		background: #ffffff;
	}

	.granulka-benefits__card-top {
		margin-bottom: 40px;
	}

	.granulka-benefits__beans {
		gap: 3px;
	}

	.granulka-benefits__bean {
		width: 19.5px;
		height: 19.5px;
	}

	.granulka-benefits__bean svg {
		width: 19.5px;
		height: 19.5px;
	}

	.granulka-benefits__number {
		font-size: 24px;
		line-height: 22px;
	}

	.granulka-benefits__card-title {
		font-size: 20px;
		line-height: 28px;
	}

	.granulka-benefits__card-desc {
		font-size: 16px;
		line-height: 22px;
	}
}

@media (max-width: 768px) {
	.granulka-benefits__grid {
		grid-template-columns: 1fr;
	}
}

/* ========== CATALOG ABOUT (Каталог / Про нас) ========== */
.granulka-catalog-about {
	background-color: #fff;
	margin-top: 24px;
	padding: 80px 40px;
	border-radius: 8px;
	position: relative;
}

.granulka-catalog-about__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	justify-content: center;
}

.granulka-catalog-about__images {
	position: relative;
	width: 537px;
	height: 431px;
	flex: 0 0 auto;
}

.granulka-catalog-about__img {
	position: absolute;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
}

.granulka-catalog-about__img img {
	position: absolute;
	display: block;
	max-width: none;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.granulka-catalog-about__img--1 {
	left: 0;
	top: 0;
	width: 257px;
	height: 375px;
}

.granulka-catalog-about__img--2 {
	left: 281px;
	top: 58px;
	width: 256px;
	height: 373px;
}

.granulka-catalog-about__text {
	width: 536.5px;
	min-height: 343px;
	margin: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: 41px;
    padding-bottom: 41px; /* щоб top-іконки не перекривали текст */
	box-sizing: border-box;
}

.granulka-catalog-about__text-p {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 44px;
	color: #464646;
}

.granulka-catalog-about__icon {
	position: absolute;
	width: 32px;
	height: 32px;
	display: block;
}

.granulka-catalog-about__icon--top-left {
	left: 0;
	top: 13px;
}

.granulka-catalog-about__icon--top-right {
	left: 36px;
	top: 0;
	transform: scaleY(-1) rotate(180deg);
	transform-origin: center;
}

.granulka-catalog-about__icon--bottom-left {
	left: auto;
	top: auto;
	right: 36px;
	bottom: 0;
}

.granulka-catalog-about__icon--bottom-right {
	left: auto;
	top: auto;
	right: 0;
	bottom: 13px;
	transform: scaleY(-1) rotate(180deg);
	transform-origin: center;
}

@media (max-width: 991px) {
	.granulka-catalog-about {
		background-color: #fff;
		padding: 24px 16px 40px;
		border-radius: 8px;
		margin-top: 24px;
	}

	.granulka-catalog-about__inner {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 40px;
	}

	.granulka-catalog-about__images {
		width: 316px;
		max-width: 100%;
		height: 243px;
		position: relative;
		margin: 0 auto;
	}

	.granulka-catalog-about__img {
		position: absolute;
		left: 0;
		top: 0;
		width: 150px;
		height: 219px;
		margin: 0;
	}

	.granulka-catalog-about__img--1 {
		left: 0;
		top: 0;
		border-radius: 8px;
	}

	.granulka-catalog-about__img--2 {
		left: 166px;
		top: 24px;
		border-radius: 8px;
	}

	.granulka-catalog-about__text {
		width: 100%;
		min-height: 0;
		margin: 0;
		display: block;
		overflow: visible;
		padding-top: 0;
	}

	.granulka-catalog-about__icon {
		display: none;
	}

	.granulka-catalog-about__text-p {
		font-size: 18px;
		font-weight: 600;
		line-height: 28px;
		letter-spacing: 0.18px;
	}
}

/* ========== FAQ (Питання та відповіді) ========== */
.granulka-faq {
	background-color: #fff;
	margin-top: 24px;
	padding: 40px;
	border-radius: 8px;
}

.granulka-faq__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}

.granulka-faq__title {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: 0.24px;
	color: #464646;
}

.granulka-faq__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 739px;
	max-width: 100%;
}

.granulka-faq__item {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 16px;
	position: relative;
}

.granulka-faq__trigger {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.granulka-faq__question {
	font-family: 'Onest', sans-serif;
	font-size: 20px;
	font-weight: 500;
	font-style: normal;
	line-height: 32px;
	letter-spacing: 0;
	color: #464646;
}

.granulka-faq__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.granulka-faq__arrow {
	width: 24px;
	height: 24px;
	display: none;
}

.granulka-faq__arrow--down {
	display: block;
}

.granulka-faq__item.is-open .granulka-faq__arrow--down {
	display: none;
}

.granulka-faq__item.is-open .granulka-faq__arrow--up {
	display: block;
}

.granulka-faq__answer {
	display: none;
	margin-top: 16px;
}

.granulka-faq__answer.is-open {
	display: block;
	margin-top: 16px;
}

.granulka-faq__answer-text {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 24px;
	letter-spacing: 0.16px;
	color: #6B6B6B;
}

@media (max-width: 991px) {
	.granulka-faq {
		padding: 24px 16px 40px;
		margin-top: 24px;
	}

	.granulka-faq__inner {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	.granulka-faq__title {
		font-size: 20px;
		line-height: 32px;
		letter-spacing: normal;
		font-weight: 500;
	}

	.granulka-faq__list {
		width: 100%;
	}

	.granulka-faq__question {
		font-size: 20px;
		line-height: 32px;
	}
}

/* ========== CONTACT FORM (Залишилися питання?) ========== */
.granulka-contact-form {
	background-color: #ffffff;
	margin-top: 24px;
	padding: 40px;
	border-radius: 8px;
}

.granulka-contact-form__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.granulka-contact-form__form-wrap {
	width: 410px;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.granulka-contact-form__title {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: 0.24px;
	color: #464646;
}

.granulka-contact-form__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.granulka-contact-form__field {
	margin: 0;
	height: 56px;
	background: #f8f8f8;
	border: 1.5px solid #dedede;
	border-radius: 8px;
	box-sizing: border-box;
	padding: 0 16px;
	position: relative;
}

.granulka-contact-form__field label {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-family: 'Onest', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.16px;
	color: #7a7a7a;
	pointer-events: none;
	transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, line-height 0.18s ease;
}

.granulka-contact-form__input {
	width: 100%;
	border: 0;
	outline: none;
	background: transparent;
	font-family: 'Onest', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.16px;
	color: #1f1f1f;
	padding: 0;
	margin: 0;
	height: 56px;
	box-sizing: border-box;
}

/* Floating label on focus or when there's a value (placeholder=" " in markup) */
.granulka-contact-form__input:focus + label,
.granulka-contact-form__input:not(:placeholder-shown) + label {
	top: 8px;
	transform: translateY(0);
	font-size: 12px;
	line-height: 20px;
}

.granulka-contact-form__input:focus,
.granulka-contact-form__input:not(:placeholder-shown) {
	padding-top: 16px;
}

.granulka-contact-form__input:focus {
	outline: none;
}

.granulka-contact-form__submit {
	width: 100%;
}

.granulka-contact-form__image {
	flex: 0 1 739px;
	width: auto;
	max-width: 739px;
	height: auto;
	aspect-ratio: 1232 / 623.89746;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	min-width: 0;
}

.granulka-contact-form__image img {
	position: absolute;
	left: 0;
	top: -26.64%;
	width: 110.9%;
	height: 146.01%;
	object-fit: cover;
	display: block;
}

@media (max-width: 991px) {
	.granulka-contact-form {
		padding: 24px 16px 40px;
		margin-top: 24px;
		background-color: #ffffff;
		border-radius: 8px;
	}

	.granulka-contact-form__inner {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	.granulka-contact-form__form-wrap {
		width: 100%;
	}

	.granulka-contact-form__image {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		aspect-ratio: 1232 / 623.89746;
		height: auto;
		margin: 0 auto;
		min-width: 0;
	}

	.granulka-contact-form__image img {
		top: -26.64%;
		width: 110.9%;
		height: 146.01%;
	}

	.granulka-contact-form__title {
		font-size: 18px;
		font-weight: 600;
		line-height: 28px;
		letter-spacing: 0.18px;
		text-align: center;
	}
}
