/*
Theme Name: AlcalC Clean
Theme URI: https://alcalc.ru
Author: Your Name
Description: Простая, чистая и быстрая тема для сайта калькулятора алкоголя. Совместима с плагином «Калькулятор алкоголя».
Version: 1.0
License: GPL-2.0-or-later
Text Domain: alcalc
*/

/* ==========================================================================
   БАЗА / СБРОС
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--acc: #2563eb;          /* акцент (синий) */
	--acc-dark: #1e40af;
	--ink: #1f2937;          /* основной текст */
	--muted: #6b7280;        /* приглушённый текст */
	--line: #e5e7eb;         /* границы */
	--bg: #f7f8fa;           /* фон страницы */
	--card: #ffffff;         /* фон карточек */
	--radius: 14px;
	--shadow: 0 4px 20px rgba(0, 0, 0, .06);
	--wrap: 860px;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--acc);
	text-decoration: none;
	transition: color .15s ease;
}

a:hover {
	color: var(--acc-dark);
	text-decoration: underline;
}

/* ==========================================================================
   КОНТЕЙНЕР
   ========================================================================== */
.site-container {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.site-header {
	background: var(--card);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 66px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.site-logo:hover {
	text-decoration: none;
	color: var(--ink);
}

.site-logo__icon {
	font-size: 26px;
	line-height: 1;
}

/* Меню */
.main-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--ink);
	font-weight: 500;
	font-size: 15px;
}

.main-nav a:hover {
	background: var(--bg);
	color: var(--acc);
	text-decoration: none;
}

.main-nav .current-menu-item > a {
	background: var(--acc);
	color: #fff;
}

/* Мобильное меню */
.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--ink);
}

/* ==========================================================================
   ОСНОВНОЙ КОНТЕНТ
   ========================================================================== */
.site-main {
	padding: 34px 0 50px;
}

.content-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 30px 34px;
}

/* Типографика внутри записей */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--ink);
	line-height: 1.25;
	margin: 1.6em 0 .6em;
}

.entry-content h1 { font-size: 1.9rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.22rem; }

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.1em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: .4em;
}

.entry-content strong {
	color: var(--ink);
}

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 12px 18px;
	border-left: 4px solid var(--acc);
	background: var(--bg);
	border-radius: 8px;
	color: var(--muted);
}

.entry-content img {
	border-radius: 10px;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
}

.entry-content th {
	background: var(--bg);
}

.page-title {
	font-size: 2rem;
	margin: 0 0 24px;
	color: var(--ink);
}

/* Заглушка «ничего не найдено» */
.no-content {
	text-align: center;
	color: var(--muted);
	padding: 40px 0;
}

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.site-footer {
	background: var(--card);
	border-top: 1px solid var(--line);
	padding: 28px 0;
	margin-top: 20px;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--muted);
	font-size: 14px;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	color: var(--muted);
}

.footer-nav a:hover {
	color: var(--acc);
}

.footer-disclaimer {
	width: 100%;
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.5;
	border-top: 1px solid var(--line);
	padding-top: 14px;
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 720px) {
	body {
		font-size: 16px;
	}

	.content-card {
		padding: 22px 18px;
		border-radius: 12px;
	}

	.nav-toggle {
		display: block;
	}

	.main-nav {
		position: absolute;
		top: 66px;
		left: 0;
		right: 0;
		background: var(--card);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		display: none;
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 20px 16px;
	}

	.main-nav a {
		padding: 12px 10px;
		border-radius: 8px;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}