/**
 * Thaicon Theme — Футер
 *
 * Структура:
 *   ┌───────────────────────────────────────────────────────┐
 *   │  [ЛОГО] СЛОГАН              [Контакты + соц.сети]     │
 *   ├───────────────────────────────────────────────────────┤
 *   │  Полит. │ Польз.согл. │ © 2026 │ Все права │ Карта    │
 *   └───────────────────────────────────────────────────────┘
 *
 * Используются дизайн-токены темы:
 *   --t-blue-pale, --t-blue-light, --t-blue-medium,
 *   --t-dark, --t-dark-muted, --t-white,
 *   --t-speed-normal, --t-speed-slow
 *
 * @package Thaicon
 */


/* ============================================================
   КОРЕНЬ
   ============================================================ */

.site-footer {
	background: var(--t-blue-pale);
	color: var(--t-dark);
	font-size: 0.875rem;                  /* 14px */
	line-height: 1.5;
	border-top: 1px solid var(--t-blue-light);
}

.site-footer__container {
	max-width: 86.5rem;
	margin: 0 auto;
	padding: 0 1.875rem;                  /* 30px */
}


/* ============================================================
   ВЕРХНИЙ БЛОК: бренд + контакты
   ============================================================ */

.site-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2.5rem;
	padding: 2rem 0 1.75rem;              /* 32px 0 28px */
	border-bottom: 1px solid var(--t-blue-light);
}


/* ---------- Лого + слоган ---------- */

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.site-footer__logo {
	display: inline-flex;
	flex-shrink: 0;
	max-width: 12.5rem;
	height: 3rem;/* 150px */
}

.site-footer__logo img {
	display: block;
	max-width: 100%;
	height: auto;
}

.site-footer__slogan {
	font-size: 1rem;
	font-weight: 600;
	color: var(--t-dark-muted);
	text-transform: uppercase;
}


/* ---------- Контакты ---------- */

.site-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 15rem;                     /* 240px */
	text-align: right;
}

.site-footer__phone {
	font-size: 1.25rem;                   /* 20px */
	font-weight: 700;
	color: var(--t-dark);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color var(--t-speed-normal);
}

.site-footer__phone:hover {
	color: var(--t-blue-medium);
}

.site-footer__contacts-title {
	font-weight: 600;
	color: var(--t-dark);
	margin-top: 0.25rem;
}

.site-footer__contacts-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.site-footer__contacts-list a {
	color: var(--t-dark);
	text-decoration: none;
	transition: color var(--t-speed-normal);
}

.site-footer__contacts-list a:hover {
	color: var(--t-blue-medium);
}

.site-footer__address {
	color: var(--t-dark-muted);
	font-size: 0.8125rem;                 /* 13px */
}


/* ---------- Соц.сети ---------- */

.site-footer__socials {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}

.site-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;                          /* 32px */
	height: 2rem;
	border-radius: 50%;
	background: var(--t-white);
	color: var(--t-dark-muted);
	transition:
			background-color var(--t-speed-normal),
			color            var(--t-speed-normal),
			transform        var(--t-speed-normal);
}

.site-footer__social:hover {
	background: var(--t-blue-medium);
	color: var(--t-white);
	transform: translateY(-0.0625rem);
}

.site-footer__social svg {
	width: 1rem;
	height: 1rem;
}


/* ---------- Кнопка «Проверить сертификат» ---------- */

.site-footer__cert-btn {
	display: inline-block;
	align-self: flex-end;
	margin-top: 0.75rem;
	padding: 0.625rem 1.125rem;           /* 10px 18px */
	background: var(--t-dark);
	color: var(--t-white);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 1.0625rem;
	text-decoration: none;
	transition: background-color var(--t-speed-normal);
}

.site-footer__cert-btn:hover {
	background: var(--t-blue-medium);
	color: var(--t-white);
}


/* ============================================================
   НИЖНЯЯ ПОЛОСА
   ============================================================ */

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding: 1rem 0;
	font-size: 0.75rem;                   /* 12px */
	color: var(--t-dark-muted);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer__legal a {
	color: var(--t-dark);
	text-decoration: underline;
	text-decoration-color: rgba(29, 39, 46, 0.3);
	text-underline-offset: 0.1875rem;
	transition:
			color                   var(--t-speed-normal),
			text-decoration-color   var(--t-speed-normal);
}

.site-footer__legal a:hover {
	color: var(--t-blue-medium);
	text-decoration-color: currentColor;
}

.site-footer__copyright,
.site-footer__rights {
	color: var(--t-dark);
}

.site-footer__sitemap {
	margin-left: auto;
	color: var(--t-dark);
	text-decoration: underline;
	text-decoration-color: rgba(29, 39, 46, 0.3);
	text-underline-offset: 0.1875rem;
	transition:
			color                   var(--t-speed-normal),
			text-decoration-color   var(--t-speed-normal);
}

.site-footer__sitemap:hover {
	color: var(--t-blue-medium);
	text-decoration-color: currentColor;
}


/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 959px) {
	.site-footer__top {
		flex-direction: column;
		gap: 1.5rem;
	}

	.site-footer__brand,
	.site-footer__contacts {
		text-align: left;
		align-items: flex-start;
	}

	.site-footer__socials {
		justify-content: flex-start;
	}

	.site-footer__cert-btn {
		align-self: flex-start;
	}
}

@media (max-width: 639px) {
	.site-footer__container {
		padding: 0 0.9375rem;             /* 15px */
	}

	.site-footer__top {
		padding: 1.25rem 0;
		gap: 1.25rem;
	}

	.site-footer__brand {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.site-footer__slogan {
		font-size: 0.75rem;
	}

	.site-footer__phone {
		font-size: 1.125rem;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.625rem;
		font-size: 0.75rem;
	}

	.site-footer__legal {
		flex-direction: column;
		gap: 0.625rem;
	}

	.site-footer__sitemap {
		margin-left: 0;
	}
}


/* ============================================================
   КУКИ-БАННЕР
   ============================================================ */

.cookie-banner {
	position: fixed;
	bottom: 1.25rem;
	left: 1.25rem;
	right: 1.25rem;
	max-width: 31.25rem;
	margin: 0 auto;
	background: var(--t-white);
	border-radius: 1.25rem;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 0.5rem 2rem rgba(29, 39, 46, 0.15);
	z-index: 990;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	transform: translateY(calc(100% + 2rem));
	opacity: 0;
	transition:
			transform var(--t-speed-slow) cubic-bezier(0.76, 0, 0.24, 1),
			opacity   var(--t-speed-slow);
}

.cookie-banner.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.cookie-banner__text {
	flex: 1;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--t-dark-muted);
}

.cookie-banner__text a {
	color: var(--t-blue-medium);
	text-decoration: underline;
}

.cookie-banner__accept {
	flex-shrink: 0;
	padding: 0.75rem 1.5rem;
	background: var(--t-dark);
	color: var(--t-white);
	border: none;
	border-radius: 1.0625rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-speed-normal);
}

.cookie-banner__accept:hover {
	background: var(--t-blue-medium);
}

@media (max-width: 639px) {
	.cookie-banner {
		left: 0.625rem;
		right: 0.625rem;
		bottom: 0.625rem;
		padding: 1rem;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		border-radius: 1rem;
	}

	.cookie-banner__text {
		font-size: 0.75rem;
	}

	.cookie-banner__accept {
		width: 100%;
		font-size: 0.75rem;
		padding: 0.75rem 1.25rem;
	}
}
