/*
Theme Name:   Kadence Child — 2domena.ru
Theme URI:    https://2domena.ru
Description:  Дочерняя тема Kadence для сайта 2domena.ru. Фирменная палитра, локальный шрифт Montserrat, стили тарифных карточек, домен-чекера, промо-строки и отзывов. Родительская тема: Kadence.
Author:       2domena.ru
Template:     kadence
Version:      1.0.0
RequiresPHP:  7.4
Text Domain:  kadence-2domena
*/

/* ============================================================
   ФИРМЕННАЯ ПАЛИТРА 2domena.ru (извлечена с текущего сайта)
   ============================================================ */
:root {
	--tdo-deep:    #082333;  /* самый тёмный фон (hero, футер) */
	--tdo-dark:    #122d3e;  /* тёмно-синий текст на светлом */
	--tdo-primary: #204056;  /* основной фирменный синий */
	--tdo-blue:    #274961;  /* кнопки, акценты */
	--tdo-muted:   #6d7d9a;  /* приглушённый сине-серый */
	--tdo-light:   #f3f5f9;  /* светлый фон секций */
	--tdo-line:    #e5e7eb;  /* границы карточек */
	--tdo-red:     #c51e39;  /* промо/скидки */
	--tdo-green:   #28a745;  /* «свободен» */
	--tdo-radius:  14px;
}

/* ============================================================
   ЛОКАЛЬНЫЙ ШРИФТ (аналог Poppins с поддержкой кириллицы)
   Вариативный Montserrat 400–800, всего 61 КБ, font-display: swap
   ============================================================ */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('assets/fonts/Montserrat-var-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('assets/fonts/Montserrat-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.kadence-sticky-header .kadence-heading,
.wp-block-kadence-advancedheading {
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* ============================================================
   ПРОМО-СТРОКА (как «Скидка на все планы!»)
   ============================================================ */
.tdo-promo, [class*="tdo-promo"] {
	background: var(--tdo-red);
	color: #fff;
	text-align: center;
	padding: 10px 16px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}
.tdo-promo a { color: #fff; text-decoration: underline; }

/* ============================================================
   HERO
   ============================================================ */
.tdo-hero {
	background: linear-gradient(135deg, #082333 0%, #204056 62%, #274961 100%);
	color: #fff;
}
.tdo-hero h1,
.tdo-hero h2 { color: #fff; }
.tdo-hero .tdo-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	justify-content: center;
	margin-top: 28px;
	list-style: none;
	padding: 0;
}
.tdo-hero .tdo-stats li {
	font-size: 15px;
	font-weight: 600;
	color: #cfe0ef;
	display: flex;
	align-items: center;
	gap: 8px;
}
.tdo-hero .tdo-stats li::before {
	content: '✓';
	color: #7fd1a8;
	font-weight: 800;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.tdo-btn-primary .wp-block-button__link {
	background: var(--tdo-blue) !important;
	color: #fff !important;
	border-radius: 999px;
	padding: 14px 30px;
	font-weight: 700;
	transition: transform .15s ease, box-shadow .15s ease;
}
.tdo-btn-primary .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(32, 64, 86, .35);
}
.tdo-btn-light .wp-block-button__link {
	background: #fff !important;
	color: var(--tdo-primary) !important;
	border-radius: 999px;
	padding: 14px 30px;
	font-weight: 700;
}
.tdo-btn-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--tdo-primary) !important;
	border: 2px solid var(--tdo-blue);
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 700;
}

/* ============================================================
   ДОМЕН-ЧЕКЕР (обёртка шорткода WP Domain Checker)
   ============================================================ */
.tdo-checker {
	background: #fff;
	border: 1px solid var(--tdo-line);
	border-radius: var(--tdo-radius);
	box-shadow: 0 18px 50px rgba(8, 35, 51, .10);
	padding: 34px 30px;
	max-width: 860px;
	margin: 0 auto;
}
/* мягкая подгонка формы плагина под фирменный стиль */
.tdo-checker .wdc-style-1-clean-form input[type="text"],
.tdo-checker .wdc-style-1-clean-form input[type="search"] {
	border: 2px solid var(--tdo-line);
	border-radius: 999px !important;
	height: 54px;
	padding: 0 20px;
	font-size: 16px;
}
.tdo-checker .wdc-style-1-clean-form input[type="text"]:focus {
	border-color: var(--tdo-blue);
	outline: none;
}
.tdo-checker .wdc-style-1-clean-form button,
.tdo-checker .wdc-style-1-clean-form input[type="submit"] {
	background: var(--tdo-blue) !important;
	color: #fff !important;
	border: none;
	border-radius: 999px !important;
	height: 54px;
	padding: 0 34px;
	font-weight: 700;
	cursor: pointer;
}
.tdo-checker .wdc-result-available { color: var(--tdo-green) !important; font-weight: 700; }

/* ============================================================
   ТАРИФНЫЕ КАРТОЧКИ
   ============================================================ */
.tdo-plan {
	background: #fff;
	border: 1px solid var(--tdo-line);
	border-radius: var(--tdo-radius);
	padding: 30px 26px;
	box-shadow: 0 6px 22px rgba(8, 35, 51, .06);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .18s ease, box-shadow .18s ease;
}
.tdo-plan:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 44px rgba(8, 35, 51, .12);
}
.tdo-plan .tdo-plan-name {
	font-size: 22px;
	font-weight: 800;
	color: var(--tdo-primary);
	margin: 0 0 6px;
}
.tdo-plan .tdo-plan-price {
	font-size: 30px;
	font-weight: 800;
	color: var(--tdo-dark);
}
.tdo-plan .tdo-plan-price small {
	font-size: 15px;
	font-weight: 600;
	color: var(--tdo-muted);
}
.tdo-plan ul {
	list-style: none;
	margin: 18px 0 22px;
	padding: 0;
	font-size: 14.5px;
	color: var(--tdo-dark);
}
.tdo-plan ul li {
	padding: 5px 0 5px 26px;
	position: relative;
	line-height: 1.45;
}
.tdo-plan ul li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 5px;
	color: var(--tdo-green);
	font-weight: 800;
}
.tdo-plan .wp-block-button { margin-top: auto; }

/* карточка «популярный тариф» */
.tdo-plan.is-featured {
	border: 2px solid var(--tdo-blue);
	position: relative;
}
.tdo-plan.is-featured::after {
	content: 'ХИТ';
	position: absolute;
	top: -12px;
	right: 18px;
	background: var(--tdo-red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	padding: 4px 12px;
	border-radius: 999px;
}

/* ============================================================
   ИКОНКИ-УСЛУГИ
   ============================================================ */
.tdo-service {
	text-align: center;
	padding: 26px 20px;
	border-radius: var(--tdo-radius);
	background: #fff;
	border: 1px solid var(--tdo-line);
	height: 100%;
}
.tdo-service img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	margin: 0 auto 14px;
}
.tdo-service h3 { margin: 0 0 8px; font-size: 19px; color: var(--tdo-primary); }
.tdo-service p { font-size: 14.5px; color: var(--tdo-muted); margin: 0; }

/* ============================================================
   ТЁМНАЯ СЕКЦИЯ (серверы, локация)
   ============================================================ */
.tdo-dark-section {
	background: linear-gradient(135deg, #082333 0%, #122d3e 100%);
	color: #fff;
	border-radius: var(--tdo-radius);
}
.tdo-dark-section h2, .tdo-dark-section h3 { color: #fff; }
.tdo-dark-section p { color: #cfe0ef; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.tdo-review {
	background: #fff;
	border: 1px solid var(--tdo-line);
	border-radius: var(--tdo-radius);
	padding: 26px 24px;
	height: 100%;
}
.tdo-review .tdo-review-stars { color: #f5a623; letter-spacing: 2px; }
.tdo-review p { font-size: 14.5px; color: var(--tdo-dark); line-height: 1.6; }
.tdo-review .tdo-review-author {
	font-weight: 700;
	color: var(--tdo-primary);
	font-size: 14px;
	margin-top: 10px;
}

/* ============================================================
   FAQ (core/details)
   ============================================================ */
.wp-block-details {
	background: #fff;
	border: 1px solid var(--tdo-line);
	border-radius: 12px;
	padding: 6px 18px;
	margin-bottom: 12px;
}
.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--tdo-primary);
	padding: 10px 0;
	font-size: 16px;
}
.wp-block-details[open] summary { border-bottom: 1px solid var(--tdo-line); margin-bottom: 8px; }
.wp-block-details > *:not(summary) { padding-bottom: 10px; }

/* ============================================================
   ТАБЛИЦА ЗОН / ДОКУМЕНТОВ
   ============================================================ */
.wp-block-table table { border-radius: 12px; overflow: hidden; font-size: 15px; }
.wp-block-table thead { background: var(--tdo-primary); color: #fff; }
.wp-block-table thead th { color: #fff; font-weight: 700; }
.wp-block-table tbody tr:nth-child(even) { background: var(--tdo-light); }

/* ============================================================
   СЕКЦИЯ CTA
   ============================================================ */
.tdo-cta {
	background: linear-gradient(135deg, #204056 0%, #274961 100%);
	color: #fff;
	border-radius: var(--tdo-radius);
	text-align: center;
}
.tdo-cta h2, .tdo-cta h3 { color: #fff; }

/* ============================================================
   МЕЛКОЕ
   ============================================================ */
.tdo-kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tdo-muted);
	margin-bottom: 8px;
}
.tdo-section { padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 767px) {
	.tdo-section { padding-top: 44px; padding-bottom: 44px; }
	.tdo-checker { padding: 22px 16px; }
}
