/* ==========================================================================
   Contact page — page-templates/contact.php
   Figma: Contact Desktop 519:30524 / Tablet 519:49059 / Mobile 519:49326
   ========================================================================== */

/* ---------- Hero (shared page-hero, contact geometry) ---------- */
.page-hero--contact { min-height: 538px; }
.page-hero--contact .page-hero__content { max-width: 680px; }
.page-hero--contact .page-hero__title { max-width: 920px; }
.page-hero--contact .page-hero__text { max-width: 680px; }
.page-hero--contact .page-hero__chip { padding-block: 8px; }

/* ---------- Contacts & form ---------- */
.contact-main { padding: 72px 0 96px; }
.contact-main__grid { display: flex; align-items: flex-start; gap: 24px; }
.contact-main__aside { display: flex; flex-direction: column; gap: 16px; width: 500px; flex: none; }

.contact-cards { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.contact-card {
	--accent: var(--c-orange);
	display: flex; align-items: center; gap: 18px;
	padding: 24px; border-radius: 8px; background: #fff;
	transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.contact-card:hover { box-shadow: 0 16px 36px -24px rgba(49, 43, 182, .35); }
.contact-card__icon {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 48px; height: 48px; border-radius: 8px; background: var(--accent); color: #fff;
}
.contact-card__icon .tk-icon { width: 24px; height: 24px; }
.contact-card--whatsapp .contact-card__icon .tk-icon { width: 20px; height: 20px; }
.contact-card--whatsapp { --accent: #17ce38; }
.contact-card--email { --accent: var(--c-blue); }
.contact-card--phone { --accent: var(--c-orange); }
.contact-card__icon, .contact-card__btn { background: var(--accent); }
.contact-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.contact-card__label { font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: .5px; text-transform: uppercase; color: var(--c-navy); }
.contact-card__value {
	font-weight: 400; font-size: 22px; line-height: 28px; color: var(--c-blue);
	overflow-wrap: anywhere; transition: color .2s;
}
.contact-card__value:hover { color: var(--c-orange); }
.contact-card__note { font-family: var(--ff-text); font-weight: 400; font-size: 13px; line-height: 15px; color: var(--c-navy); }
.contact-card__btn {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	min-width: 79px; padding: 10px 18px; border-radius: 100px; color: #fff;
	font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .5px; text-transform: uppercase;
	transition: filter .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.contact-card__btn:hover { filter: brightness(.92); transform: translateY(-1px); box-shadow: 0 8px 18px -8px var(--accent); }

.contact-office {
	display: flex; flex-direction: column; gap: 24px;
	padding: 28px; border-radius: 12px; background: var(--c-blue); color: #fff;
}
.contact-office__title { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 20px; line-height: 26px; color: #fff; }
.contact-office__title .tk-icon { width: 22px; height: 22px; flex: none; color: var(--c-orange); }
.contact-office__address {
	padding-bottom: 24px; border-bottom: .5px solid rgba(255, 255, 255, .3);
	font-family: var(--ff-text); font-style: normal; font-weight: 400; font-size: 16px; line-height: 24px; color: var(--c-on-dark);
}
.contact-office__hours { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.contact-office__row { display: flex; justify-content: space-between; gap: 16px; font-family: var(--ff-text); font-weight: 400; font-size: 14px; line-height: 16px; }
.contact-office__row dt { color: var(--c-on-dark); }
.contact-office__row dd { margin: 0; color: #fff; text-align: right; }

/* Form card */
.contact-form-card {
	display: flex; flex-direction: column; gap: 22px; flex: 1 1 0; min-width: 0;
	padding: 40px; border-radius: 16px; background: #fff;
	scroll-margin-top: calc(var(--header-h) + 16px);
}
.contact-form-card__head { display: flex; flex-direction: column; gap: 8px; }
.contact-form-card__title { font-weight: 400; font-size: 30px; line-height: 38px; color: var(--c-blue); }
.contact-form-card__text { max-width: 680px; font-family: var(--ff-text); font-weight: 400; font-size: 14px; line-height: 21px; color: #65777e; }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-form__topics { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form__topic { position: relative; cursor: pointer; }
.contact-form__topic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.contact-form__topic span {
	display: inline-flex; align-items: center;
	padding: 8px 14px; border: .7px solid #dee8ec; border-radius: 100px; background: #fff;
	font-family: var(--ff-text); font-weight: 400; font-size: 13px; line-height: 15px; color: var(--c-blue); white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.contact-form__topic:hover span { border-color: var(--c-blue); }
.contact-form__topic input:checked + span { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.contact-form__topic input:focus-visible + span { outline: 2px solid var(--c-orange); outline-offset: 2px; }

.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.contact-form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form__label { font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .8px; text-transform: uppercase; color: #65777e; }
.contact-form__control { position: relative; }
.contact-form__icon { position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; color: var(--c-orange); pointer-events: none; }
.contact-form__input {
	display: block; width: 100%; height: 52px;
	padding: 14px 16px; border: 1px solid #dee8ec; border-radius: 8px; background: #fcfeff;
	font-family: var(--ff-text); font-weight: 400; font-size: 15px; line-height: 22px; color: var(--c-navy);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.has-icon .contact-form__input { padding-left: 44px; }
.contact-form__input::placeholder { color: #8c9fad; opacity: 1; }
.contact-form__input:hover { border-color: #c5d3da; }
.contact-form__input:focus { outline: none; border-color: var(--c-blue); background: #fff; box-shadow: 0 0 0 3px rgba(49, 43, 182, .1); }
.contact-form__textarea { height: 75px; min-height: 75px; resize: vertical; }

.contact-form__attach { display: flex; flex-direction: column; gap: 4px; }
.contact-form__attach-label {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; cursor: pointer;
	font-family: var(--ff-text); font-weight: 400; font-size: 14px; line-height: 18px; color: var(--c-blue);
	transition: color .2s;
}
.contact-form__attach-label .tk-icon { width: 18px; height: 18px; flex: none; }
.contact-form__attach-label:hover { color: var(--c-orange); }
.contact-form__file:focus-visible + .contact-form__attach-label { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.contact-form__attach.has-file .contact-form__attach-label { color: var(--c-navy); }

.contact-form__consent { position: relative; }
.contact-form__check { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: 0; opacity: 0; }
.contact-form__consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.contact-form__box {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 18px; height: 18px; border: 1px solid #c5d3da; border-radius: 4px; background: #fff; color: #fff;
	transition: background-color .2s, border-color .2s;
}
.contact-form__box .tk-icon { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; }
.contact-form__check:checked + label .contact-form__box { background: var(--c-orange); border-color: var(--c-orange); }
.contact-form__check:checked + label .contact-form__box .tk-icon { opacity: 1; }
.contact-form__check:focus-visible + label .contact-form__box { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.contact-form__check.is-invalid + label .contact-form__box { border-color: var(--c-orange); box-shadow: 0 0 0 1px var(--c-orange) inset; }
.contact-form__consent-text { max-width: 560px; font-family: var(--ff-text); font-weight: 400; font-size: 13px; line-height: 19px; color: #65777e; }
.contact-form__consent-text a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__consent .tk-form__error { margin-left: 28px; }

.contact-form__footer { display: flex; align-items: center; gap: 20px; }
.contact-form__submit { min-height: 56px; padding: 18px 40px; gap: 10px; }
.contact-form__note { max-width: 300px; font-family: var(--ff-text); font-weight: 400; font-size: 13px; line-height: 19px; color: #65777e; }
.contact-form .tk-form__status { margin-top: -8px; }
.contact-form .tk-form__error { margin-top: 0; }

/* ---------- Map ---------- */
.contact-map { position: relative; height: 440px; overflow: hidden; background: #e4f1ff; }
.contact-map__canvas {
	position: absolute; inset: 0; display: block;
	background-image:
		linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px);
	background-size: 40px 40px;
	background-position: calc(50% - 720px) 0, calc(50% - 720px) 0;
}
.contact-map__canvas.has-image { background: #e4f1ff; }
.contact-map__canvas img { width: 100%; height: 100%; object-fit: cover; }
.contact-map__card {
	position: absolute; left: 50%; top: 150px; transform: translateX(-100px);
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	padding: 20px 24px; border-radius: 12px; background: #fff;
	box-shadow: 0 18px 40px -28px rgba(19, 15, 115, .35);
}
.contact-map__name { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 18px; line-height: 23px; color: var(--c-blue); }
.contact-map__pin {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 32px; height: 32px; border-radius: 50%; background: var(--c-orange); color: #fff;
}
.contact-map__pin .tk-icon { width: 16px; height: 16px; }
.contact-map__address { font-family: var(--ff-text); font-weight: 400; font-size: 14px; line-height: 17px; color: #65777e; }
.contact-map__link { gap: 6px; line-height: 18px; }
.contact-map__link .tk-icon { width: 16px; height: 16px; }

/* ---------- Other ways ---------- */
.contact-ways { padding: 96px 0; }
.contact-ways__head { margin-bottom: 48px; }
.contact-ways .eyebrow { gap: 10px; font-size: 12px; line-height: 18px; letter-spacing: 1.5px; color: var(--c-navy); }
.contact-ways .section-head__main { gap: 16px; }
.contact-ways__title { max-width: 720px; line-height: 51.84px; }
.contact-ways__text { width: 440px; font-family: var(--ff-text); font-weight: 400; font-size: 16px; line-height: 24px; color: #65777e; }
.contact-ways__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.contact-way {
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	padding: 32px; border-radius: 12px; background: var(--c-bg-soft);
	transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.contact-way:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(49, 43, 182, .4); }
.contact-way__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 8px; background: var(--c-blue); color: #fff;
}
.contact-way__icon .tk-icon { width: 20px; height: 20px; }
.contact-way__icon .tk-icon[width="22"] { width: 22px; height: 22px; }
.contact-way__title { font-weight: 400; font-size: 22px; line-height: 28px; color: var(--c-blue); }
.contact-way__text { max-width: 340px; font-family: var(--ff-text); font-weight: 400; font-size: 15px; line-height: 22.5px; color: #65777e; }
.contact-way__link { gap: 6px; line-height: 18px; }
.contact-way__link .tk-icon { width: 16px; height: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
	.page-hero--contact { min-height: 536px; }
	.page-hero--contact::before { display: none; }
	.page-hero--contact .page-hero__media {
		top: -21px; bottom: auto; right: auto; left: -.5%;
		width: 107%; height: auto; aspect-ratio: 1513 / 735;
	}
	.page-hero--contact .page-hero__img { object-position: 75% 50%; }
	.page-hero--contact .page-hero__content { max-width: 470px; }
	.page-hero--contact .page-hero__title { font-size: 46px; line-height: 50px; }

	.contact-main { padding: 58px 0 77px; }
	.contact-main__grid { flex-direction: column; align-items: stretch; }
	.contact-main__aside { width: auto; }
	.contact-form-card { flex: none; padding: 40px 32px; }
	.contact-form-card__title { font-size: 28px; line-height: 36px; }

	.contact-ways { padding: 77px 0; }
	.contact-ways__head { gap: 28px; margin-bottom: 36px; }
	.contact-ways__title { font-size: 38px; line-height: 41px; }
	.contact-ways__text { width: auto; max-width: none; }
	.contact-way { padding: 32px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.page-hero--contact { padding-bottom: 300px; }
	.page-hero--contact .page-hero__media {
		position: absolute; order: 0; margin: 0;
		top: auto; bottom: -25px; left: calc(50% - 487.5px); right: auto;
		width: 721px; height: 811px; aspect-ratio: auto;
	}
	.page-hero--contact .page-hero__img,
	.page-hero--contact .page-hero__media picture:has(source) .page-hero__img { object-position: 50% 100%; }
	.page-hero--contact .page-hero__inner { position: relative; z-index: 2; }
	.page-hero--contact .page-hero__title { font-size: 36px; line-height: 39px; letter-spacing: -1.6px; }

	.contact-main { padding: 43px 0 58px; }
	.contact-card { flex-direction: column; align-items: flex-start; padding: 24px 17px; }
	.contact-card__body { width: 100%; }
	.contact-office { padding: 28px 20px; }
	.contact-office__title { font-size: 18px; line-height: 23px; }
	.contact-form-card { padding: 30px 20px; }
	.contact-form-card__title { font-size: 24px; line-height: 31px; }
	.contact-form__grid { grid-template-columns: 1fr; gap: 16px; }
	.contact-form__grid > .contact-form__field:nth-child(2n+1):not(:first-child) { margin-top: 6px; }
	.contact-form__textarea { height: 96px; }
	.contact-form__footer { flex-direction: column; align-items: stretch; gap: 20px; }
	.contact-form__submit { width: 100%; padding-inline: 20px; }

	.contact-map__card { left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); }

	.contact-ways { padding: 58px 0; }
	.contact-ways__head { gap: 20px; margin-bottom: 26px; }
	.contact-ways__title { font-size: 30px; line-height: 32px; }
	.contact-ways__grid { grid-template-columns: 1fr; }
	.contact-way { padding: 24px 22px; }
}
