/*
Theme Name: Симаков Веб
Template: twentytwentyfive
Description: Дочерняя тема сайта simakov-web.ru. Крупный шрифт и контрастные цвета под читателя 50+.
Version: 1.2.0
Text Domain: simakov
*/

/* Ссылка на заявку в шапке. Здесь стоял личный телефон, рабочий номер ИП встанет сюда же */
.sm-cta a {
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

/* Надпись веб{узор} в шапке по vebuzor.css. Шрифты локальные и урезаны до букв надписи,
   поэтому весят 3 КБ; остальной сайт на системных шрифтах */
@font-face {
	font-family: "vz-logo";
	src: url("assets/fonts/unbounded-600-logo.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: "vz-braces";
	src: url("assets/fonts/jetbrains-mono-500-braces.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
.vz-logo-wrap {
	margin: 0;
}
.vz-logo {
	font-family: "vz-logo", sans-serif;
	font-weight: 600;
	font-size: 28px;
	letter-spacing: -0.025em;
	line-height: 1;
	white-space: nowrap;
	color: #1C2340;
	text-decoration: none;
}
.vz-logo .vz-br {
	font-family: "vz-braces", monospace;
	font-weight: 500;
	color: #C8321F;
}

/* Карточки услуг и кейсов */
.sm-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	height: 100%;
}
.sm-card h3 a {
	text-decoration: none;
}
.sm-card h3 a:hover {
	text-decoration: underline;
}

/* Формы Contact Form 7 */
.wpcf7 label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 6px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.wpcf7 textarea {
	height: 9em;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}
.wpcf7 .wpcf7-acceptance label {
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
}
.wpcf7 input[type="checkbox"] {
	width: 22px;
	height: 22px;
	vertical-align: -4px;
	margin-right: 8px;
}
.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 600;
	padding: 16px 32px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-dark);
}
.wpcf7 input[type="submit"]:disabled {
	opacity: .55;
	cursor: not-allowed;
}

/* Черновые места, которые Степан должен заполнить до публикации */
.sm-todo {
	background: #fff3b0;
	outline: 2px dashed #c79a00;
}

/* Секции главной: содержимое по ширине шапки, длинный текст не шире удобной строки */
.sm-inner > p,
.sm-inner > h1,
.sm-inner > h2 {
	max-width: 760px;
}

/* Код: моноширинный шрифт, длинные команды прокручиваются внутри блока, а не ломают страницу */
code,
pre {
	font-family: Consolas, "SFMono-Regular", Menlo, "Liberation Mono", monospace;
}
:not(pre) > code {
	font-size: .9em;
	background: var(--wp--preset--color--base-2);
	padding: 1px 5px;
	border-radius: 4px;
	overflow-wrap: anywhere;
}
.wp-block-code {
	overflow-x: auto;
}
.wp-block-code code {
	white-space: pre;
}
.wp-block-table {
	overflow-x: auto;
}

/* Окно выбора cookie: внизу экрана, кнопки равного веса, чтобы отказ был так же прост, как согласие */
.sm-cookie {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1000;
	max-width: 760px;
	margin: 0 auto;
	padding: 20px 24px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	font-size: var(--wp--preset--font-size--small);
}
.sm-cookie[hidden] {
	display: none;
}
.sm-cookie p {
	margin: 0 0 14px;
}
.sm-cookie__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.sm-cookie button {
	font: inherit;
	font-weight: 600;
	padding: 12px 28px;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 6px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	cursor: pointer;
}
.sm-cookie button[data-sm-cookie="no"] {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent);
}
.sm-cookie button:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-dark);
	outline-offset: 2px;
}
