/*
 * Trips core — общий CSS тем dmitriy-travel.com / nz-trips.com / au-trips.com.
 * Мастер-копия: /root/projects/trips-theme/core/. Правки только там, потом deploy.sh.
 * Цвета и фото сайта — в site/site.css (переопределяет токены :root).
 */

/* ==========================================================================
   Tokens — значения по умолчанию (палитра dmitriy-travel). Сайт переопределяет их в site/site.css
   ========================================================================== */
:root {
	--ink:        #251a3d; /* тёмный сливовый (горы на аватарке) */
	--ink-soft:   #4a3e63;
	--muted:      #8a83a0;
	--paper:      #ffffff;
	--cream:      #f6f3fc; /* лавандово-белый */
	--cream-deep: #ece5f8;
	--line:       #e7e0f3;
	--accent:     #7a4fd0; /* фиолетовый закат */
	--accent-dk:  #6338bd;
	--accent-soft:#ede6fb;
	--accent2:    #c74f92; /* второй акцент: рубрики, цитаты, градиент кнопки */
	--accent2-dk: #b5427f;
	--accent3:    #ff8a66; /* третий акцент: аватары */
	--accent3-dk: #f4703f;
	--accent-glow:   rgba(122,79,208,.32);
	--accent-glow-2: rgba(122,79,208,.4);
	--link-line:  rgba(122,79,208,.45);
	--ink-shade:  rgba(37,26,61,.18);

	/* Герой: фото задаётся в site/site.css */
	--hero-bg:      #241a38;
	--hero-pos:     center 18%;
	--hero-eyebrow: #ffe0c6;
	--hero-lead:    #f6ecff;
	--hero-shadow:  rgba(40,20,60,.25);
	--hero-overlay:
		linear-gradient(180deg, rgba(24,16,42,.42) 0%, rgba(36,24,60,.12) 42%, rgba(150,58,120,.16) 74%, rgba(24,16,42,.5) 100%),
		radial-gradient(72% 82% at 50% 34%, rgba(122,79,208,.20), transparent 62%);

	--maxw:       1160px;
	--feedw:      940px;
	--readw:      720px;
	--radius:     18px;
	--radius-sm:  12px;
	--shadow:     0 1px 2px rgba(37,26,61,.06), 0 18px 44px rgba(37,26,61,.12);
	--shadow-sm:  0 1px 2px rgba(37,26,61,.05), 0 8px 22px rgba(37,26,61,.08);

	--font-ui:    "Twemoji Country Flags", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-disp:  "Twemoji Country Flags", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dk); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-disp); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
blockquote {
	margin: 1.8em 0; padding: .3em 0 .3em 1.3em;
	border-left: 4px solid var(--accent2);
	font-size: 1.28rem; line-height: 1.5; color: var(--ink-soft); font-weight: 500;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.screen-reader-text { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--font-ui); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
	padding: .82em 1.5em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
	background-origin: border-box; background-clip: border-box;
	transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 8px 22px var(--accent-glow); }
.btn-primary:hover { background: linear-gradient(120deg, var(--accent-dk), var(--accent2-dk)); color: #fff; box-shadow: 0 10px 26px var(--accent-glow-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1b87ba; color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.86);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand a { color: var(--ink); display: flex; align-items: center; gap: 12px; }
.brand .mark {
	width: 40px; height: 40px; border-radius: 11px; flex: none;
	background: var(--ink); color: #fff; display: grid; place-items: center;
	font-family: var(--font-disp); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
/* круглый логотип-аватар (как в Telegram) */
.brand .mark-img {
	width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
	background: none; padding: 0; box-shadow: 0 2px 10px var(--ink-shade);
}
.brand .name { font-family: var(--font-disp); font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: -.01em; }
.brand .tagline { display: block; font-family: var(--font-ui); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: .5em .9em; border-radius: 999px; color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.primary-nav a:hover { background: var(--cream); color: var(--ink); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--cream-deep); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }

/* Language switcher — globe + dropdown */
.lang-switch { position: relative; }
.lang-menu {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
	list-style: none; margin: 0; padding: 6px; min-width: 176px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-menu li { margin: 0; }
.lang-menu a, .lang-menu span.current {
	display: flex; align-items: center; gap: 10px; padding: .58em .8em; border-radius: 10px;
	font-weight: 600; font-size: .95rem; color: var(--ink-soft);
}
.lang-menu a:hover { background: var(--cream); color: var(--ink); }
.lang-menu .current { background: var(--cream-deep); color: var(--ink); }
.lang-menu .code { margin-left: auto; font-size: .72rem; font-weight: 800; letter-spacing: .05em; color: var(--muted); }
.lang-menu[hidden] { display: none; }

/* Search drawer */
.search-drawer { display: none; border-bottom: 1px solid var(--line); background: var(--cream); }
.search-drawer.open { display: block; }
.search-drawer .wrap { padding-top: 18px; padding-bottom: 18px; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; padding: .85em 1.1em; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; color: var(--ink); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form button { flex: none; }

/* ==========================================================================
   Hero — elegant, restrained
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; color: #fff; background-color: var(--hero-bg);
	background-size: cover; background-position: var(--hero-pos); background-repeat: no-repeat;
}
/* затемнение + закатный тинт для читаемости текста поверх фото */
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: var(--hero-overlay);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; max-width: 860px; text-align: center; }
.hero .eyebrow { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; color: var(--hero-eyebrow); margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.2rem); margin-bottom: .3em; font-weight: 800; text-shadow: 0 2px 24px var(--hero-shadow); }
.hero p.lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--hero-lead); max-width: 620px; margin: 0 auto 2em; line-height: 1.62; }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head .more-link { font-weight: 700; color: var(--accent-dk); white-space: nowrap; font-size: .95rem; }
.section-head .more-link:hover { color: var(--accent); }
.section-lead { color: var(--muted); margin: 0 0 30px; max-width: 620px; font-size: 1.02rem; }

/* ==========================================================================
   Feed — one wide row per article (editorial list)
   ========================================================================== */
.feed { max-width: var(--feedw); margin: 0; } /* левый край - вровень с заголовком секции */
.post-item { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.post-item:first-child { border-top: 0; padding-top: 6px; }
.post-item .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); }
.post-item .thumb a { display: block; height: 100%; }
.post-item .p-cat { display: inline-block; margin-bottom: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent2); }
.post-item .p-title { font-family: var(--font-disp); font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.16; margin: 0 0 .45em; }
.post-item .p-title a { color: var(--ink); }
.post-item .p-title a:hover { color: var(--accent-dk); }
.post-item .p-excerpt { color: var(--ink-soft); font-size: 1.04rem; margin: 0 0 1.1em; max-width: 46ch; }
.post-item .p-meta { color: var(--muted); font-size: .86rem; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; }
.post-item .p-meta .dot { color: var(--line); }
.post-item.reverse { grid-template-columns: 1fr 340px; }
.post-item.reverse .thumb { order: 2; }

.dt-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-item:hover .dt-cover, .card:hover .dt-cover { transform: scale(1.04); }
.dt-cover--placeholder { display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 30% 44%), hsl(calc(var(--h) + 35) 34% 32%)); color: rgba(255,255,255,.92); }
.dt-cover--placeholder span { font-family: var(--font-disp); font-weight: 700; font-size: 2.6rem; }

/* ==========================================================================
   Cards (grid) — related / archive / search
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-deep); }
.card .thumb a { display: block; height: 100%; }
.card .thumb a.card-cat { height: auto; } /* ярлык рубрики - не растягивать на всю картинку */
.card .card-cat { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.94); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: .3em .7em; border-radius: 999px; text-transform: uppercase; }
.card .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .card-title { font-family: var(--font-disp); font-size: 1.3rem; line-height: 1.2; margin: 0 0 .4em; }
.card .card-title a { color: var(--ink); }
.card .card-title a:hover { color: var(--accent-dk); }
.card .card-excerpt { color: var(--ink-soft); font-size: .97rem; margin: 0 0 1em; }
.card .card-meta { margin-top: auto; color: var(--muted); font-size: .83rem; display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   About strip
   ========================================================================== */
.about-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 44px; }
.about-strip .avatar { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--accent3)); display: grid; place-items: center; font-family: var(--font-disp); font-weight: 700; font-size: 2.3rem; color: #fff; flex: none; }
.about-strip h2 { color: #fff; margin: 0 0 .35em; }
.about-strip p { color: #c8cdd2; margin: 0; max-width: 560px; }
.about-strip .btn-tg { white-space: nowrap; }

/* ==========================================================================
   Single post
   ========================================================================== */
.post-hero { padding: 56px 0 26px; }
/* шапка статьи по ширине фото под ней - левые края совпадают */
.post-hero .wrap { max-width: 1040px; }
.post-hero .entry-title { max-width: 900px; }
.post-cat-line { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; min-height: 32px; }
.post-cat-line .dt-share { margin-left: auto; }
.post-cat-line a { display: inline-block; font-weight: 800; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent2); }
.entry-title { font-size: clamp(2.1rem, 4.4vw, 3.15rem); margin: 0 0 .5em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .92rem; align-items: center; }
.entry-meta .author { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-soft); }
.entry-meta .author .a-ava { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; }

.featured-image { margin: 10px 0 44px; }
.featured-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.featured-image figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }

.entry-content { max-width: var(--readw); margin: 0 auto; font-size: 1.14rem; line-height: 1.82; }
.entry-content > * { margin-left: auto; margin-right: auto; }
.entry-content h2 { margin-top: 1.9em; }
.entry-content h3 { margin-top: 1.5em; font-family: var(--font-ui); font-weight: 800; }
.entry-content img, .entry-content figure { border-radius: var(--radius); }
.entry-content figure { margin: 1.9em 0; }
.entry-content figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 10px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--link-line); }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content .alignwide { max-width: 1000px; }
.entry-content .alignfull { max-width: 100%; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
.wp-block-file { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.wp-block-file a:first-child { font-weight: 700; }

/* Таблицы, кнопки, FAQ-аккордеон (details) и заметка в контенте */
.entry-content .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.entry-content .wp-block-table table, .entry-content .wp-block-table thead, .entry-content .wp-block-table tfoot { border: 0; }
.entry-content th, .entry-content td, .entry-content .wp-block-table th, .entry-content .wp-block-table td { text-align: left; vertical-align: top; padding: .7em .9em; border: 0; border-bottom: 1px solid var(--line); }
.entry-content th { font-weight: 800; color: var(--ink); background: var(--cream); }
.entry-content tr td:first-child { color: var(--ink-soft); width: 42%; }
.entry-content .wp-block-table figcaption { text-align: left; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.entry-content .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5em; text-decoration: none;
	font-family: var(--font-ui); font-weight: 700; font-size: .98rem; line-height: 1.2;
	padding: .85em 1.5em; border-radius: 999px; color: #fff;
	background: linear-gradient(120deg, var(--accent), var(--accent2)); box-shadow: 0 8px 22px var(--accent-glow);
}
.entry-content .wp-block-button__link:hover { color: #fff; background: linear-gradient(120deg, var(--accent-dk), var(--accent2-dk)); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.entry-content .is-style-outline .wp-block-button__link:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.entry-content details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin: 0 0 10px; background: #fff; }
.entry-content details summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; line-height: 1.4; }
.entry-content details summary::-webkit-details-marker { display: none; }
.entry-content details summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.entry-content details[open] summary::after { content: "−"; }
.entry-content details > :not(summary) { margin-top: 0; }
.entry-content details[open] { padding-bottom: 6px; }
.entry-content .dt-note { background: var(--cream); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.6em 0; font-size: 1.02rem; }
.entry-content .dt-note p:last-child { margin-bottom: 0; }
.entry-content ol { padding-left: 1.4em; }
.entry-content ol li, .entry-content ul li { margin-bottom: .45em; }
.entry-content .dt-note ul:last-child, .entry-content .dt-note ol:last-child { margin-bottom: 0; }
.entry-content p.lead { font-size: 1.24rem; line-height: 1.7; color: var(--ink-soft); }
.entry-content mark { background: rgba(242,139,108,.25); color: inherit; padding: .1em .2em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Сравнительная таблица (класс dt-compare на блоке Table): первый столбец узкий, на телефоне - прокрутка. */
.entry-content .dt-compare table { min-width: 560px; }
.entry-content .dt-compare tr td:first-child { width: auto; min-width: 9em; }


.entry-tags { max-width: var(--readw); margin: 44px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; padding: .35em .8em; border-radius: 999px; }
.entry-tags a:hover { border-color: var(--ink); color: var(--ink); }

.author-box { max-width: var(--readw); margin: 52px auto 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; gap: 22px; align-items: flex-start; }
.author-box .a-ava { width: 64px; height: 64px; border-radius: 50%; flex: none; background: linear-gradient(140deg, var(--accent), var(--accent3)); display: grid; place-items: center; color: #fff; font-family: var(--font-disp); font-weight: 700; font-size: 1.6rem; }
.author-box h4 { margin: 0 0 .3em; font-family: var(--font-ui); }
.author-box p { margin: 0 0 .8em; color: var(--ink-soft); }
.author-box .ab-body { min-width: 0; }
.author-box .ab-label { font: 600 .74rem/1.3 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.author-box .ab-role { font-weight: 500; color: var(--ink-soft); }
.author-box .a-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p:last-child { margin-bottom: 0; }
.author-box .ab-contact {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: .6em 1.1em; border-radius: 999px;
	font: 700 .92rem/1.2 var(--font-ui); text-decoration: none; color: var(--accent);
	border: 1.5px solid var(--accent); transition: background .15s ease, color .15s ease, gap .15s ease;
}
.author-box .ab-contact:hover { background: var(--accent); color: #fff; gap: 11px; }
.author-box--photo .ab-contact { color: #fff; border-color: rgba(127,231,207,.7); background: rgba(255,255,255,.06); }
.author-box--photo .ab-contact:hover { background: #14e0b0; border-color: #14e0b0; color: #062634; }
.author-box--photo p { margin-bottom: .9em; }
/* Тёмный вариант с фото-фоном (config: author_bg): пейзаж под глубоким сине-зелёным затемнением */
.author-box--photo {
	position: relative; overflow: hidden; isolation: isolate; border: 0; color: #e7f2f3; align-items: center; gap: 26px; padding: 34px;
	background: radial-gradient(90% 120% at 100% 0%, rgba(20,224,176,.22), transparent 55%),
		linear-gradient(115deg, rgba(4,22,34,.94) 0%, rgba(6,38,52,.88) 45%, rgba(9,62,72,.78) 100%),
		var(--ab-bg) center 35% / cover no-repeat, #062634;
	box-shadow: 0 26px 56px -28px rgba(6,38,52,.85);
}
.author-box--photo::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
	background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%);
}
.author-box--photo .a-photo {
	width: 104px; height: 104px; padding: 3px;
	background: linear-gradient(135deg, #14e0b0, #1f4fff); box-shadow: 0 10px 30px -8px rgba(20,224,176,.55);
}
.author-box--photo .ab-label { color: #7fe7cf; }
.author-box--photo .ab-name { color: #fff; font-size: 1.3rem; margin: 0 0 .35em; }
.author-box--photo .ab-role { color: rgba(231,242,243,.78); }
.author-box--photo p { color: rgba(231,242,243,.85); }
/* Длинные слова в заголовках («Конфиденциальность» на 320px) - переносить, а не распирать страницу */
h1, h2, h3, .entry-title { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 420px) {
	h1, .entry-title { font-size: clamp(1.6rem, 8vw, 2rem); }
}
@media (max-width: 520px) {
	.author-box--photo { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 22px; }
	.author-box--photo .a-photo { width: 84px; height: 84px; }
}

.post-nav { max-width: var(--readw); margin: 44px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav .label { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.post-nav .ttl { color: var(--ink); font-weight: 600; margin-top: 5px; }
.post-nav .next { text-align: right; }

.related { background: var(--cream); }

/* ==========================================================================
   Archive / page header
   ========================================================================== */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 64px 0; }
.page-hero .kicker { color: var(--accent-dk); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: .78rem; margin-bottom: 12px; }
.page-hero h1 { margin: 0 0 .3em; }
.page-hero p { color: var(--muted); margin: 0; max-width: 620px; }
.page-content { max-width: var(--readw); margin: 0 auto; padding: 64px 0; font-size: 1.12rem; line-height: 1.8; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { max-width: var(--readw); margin: 60px auto 0; }
.comments-area .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comments-area .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 700; }
.comment-meta { color: var(--muted); font-size: .82rem; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; padding: .8em 1em; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; margin-bottom: 14px; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-weight: 700; }
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .dots { border: none; background: transparent; }

/* ==========================================================================
   Footer — slim
   ========================================================================== */
.site-footer { background: var(--ink); color: #b7bcc2; margin-top: 88px; }
.footer-slim { padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; font-size: .88rem; }
.footer-slim .f-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #9aa0a7; }
.footer-slim .f-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-family: var(--font-disp); font-weight: 700; font-size: 1.05rem; }
.footer-slim .f-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: .82rem; }
.footer-slim .f-brand .mark-img { border-radius: 50%; object-fit: cover; background: none; }
.footer-slim .f-right { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.footer-slim a { color: #c6cbd0; }
.footer-slim a:hover { color: #fff; }
.footer-note { color: #7f858c; }
.footer-project { color: #7f858c; }
.footer-project a { color: #c6cbd0; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
	background: var(--ink); color: #e6e8ea; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.35);
	padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-bar p { margin: 0; font-size: .92rem; flex: 1 1 300px; color: #cfd3d7; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar .btn { flex: none; }
.cookie-bar[hidden] { display: none; }

/* ==========================================================================
   States
   ========================================================================== */
.no-results { max-width: var(--readw); margin: 0 auto; padding: 90px 0; text-align: center; }

/* ==========================================================================
   Содержание статьи (toc.php + single.php + main.js), по образцу know.travel.
   До 1024px - липкая полоса над текстом: «Содержание + текущий раздел», по нажатию список.
   От 1024px - левая колонка рядом с текстом (sticky, текст по центру). Кнопка «Убрать наверх»
   (html.dt-toc-top) прячет колонку и включает полосу; в полосе «Показать слева» - обратно.
   ========================================================================== */
.entry-layout { padding: 0 24px; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 130px; }
.entry-toc { display: none; }

.dt-toc-title { flex: none; }
.dt-toc-dock {
	flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; padding: 0; margin: 0;
	display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.dt-toc-dock:hover { background: var(--cream); color: var(--accent); }
.dt-toc-list { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); }
.dt-toc-list li { margin: 0 0 2px; }
.dt-toc-list li.lvl-3 { padding-left: 24px; }
.dt-toc-link {
	display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 8px;
	border-left: 2px solid transparent; font-size: .9rem; line-height: 1.4;
	color: var(--ink-soft); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.dt-toc-list li.lvl-3 .dt-toc-link { font-size: .85rem; }
.dt-toc-link:hover { background: var(--cream); color: var(--ink); }
.dt-toc-link.is-active { color: var(--accent); background: var(--cream); border-left-color: var(--accent); }
.dt-toc-num { flex: none; min-width: 18px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.dt-toc-link.is-active .dt-toc-num { color: var(--accent); }

/* Полоса */
.dt-tocbar {
	position: sticky; top: calc(var(--dt-hdr, 73px) - 1px); z-index: 45; margin: 0 0 24px;
	background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
/* края полосы = края текста статьи */
.dt-tocbar-inner { max-width: calc(var(--readw) + 48px); margin: 0 auto; padding: 0 24px; }
.dt-tocbar-row { display: flex; align-items: center; gap: 8px; }
.dt-toc-toggle {
	display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 11px 0; margin: 0;
	background: none; border: 0; cursor: pointer; text-align: left;
	font: 400 .9rem/1.3 var(--font-ui); color: var(--muted);
}
.dt-toc-chev { flex: none; opacity: .7; transition: transform .2s ease; }
.dt-toc-toggle[aria-expanded="true"] .dt-toc-chev { transform: rotate(180deg); }
.dt-toc-toggle:hover { color: var(--ink); }
.dt-toc-current {
	margin-left: auto; min-width: 0; max-width: 60%; font-weight: 500; font-size: .85rem; color: var(--ink-soft);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dt-tocbar .dt-toc-dock { display: none; }
.dt-tocbar-drop { max-height: 65vh; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 12px; }
.dt-tocbar-drop[hidden] { display: none; }
.dt-tocbar .dt-toc-link { margin-left: -10px; }
.dt-tocbar .dt-toc-list li.lvl-3 { padding-left: 26px; }
.dt-tocbar .dt-toc-link { font-size: .95rem; padding: 9px 10px; border-left: 0; }
.dt-tocbar .dt-toc-list li.lvl-3 .dt-toc-link { font-size: .9rem; }
@media (max-width: 760px) {
	.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 118px; }
}
@media (max-width: 520px) {
	.dt-tocbar-inner { padding: 0 18px; max-width: none; }
}

/* Поделиться (в колонке/полосе содержания - с подписью и линией сверху; в шапке статьи - только иконки) */
.dt-share { display: flex; align-items: center; gap: 4px; font-family: var(--font-ui); }
.dt-toc .dt-share, .dt-tocbar-drop .dt-share { margin: 12px 0 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.dt-tocbar-drop .dt-share { margin-left: 0; }
.dt-share-label { font-size: .8rem; color: var(--muted); margin-right: auto; }
.dt-share-btn {
	position: relative; width: 32px; height: 32px; border: 0; border-radius: 8px; padding: 0;
	display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.dt-share-btn:hover { background: var(--cream); color: var(--accent); }
.dt-share-btn.is-done { color: var(--accent2); }
.dt-share--bare { gap: 6px; }
.dt-share--bare .dt-share-label { margin-right: 4px; font-size: .82rem; }
.post-cat-line a { white-space: nowrap; }
@media (max-width: 420px) { .dt-share--bare .dt-share-label { display: none; } }
.dt-share--bare .dt-share-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; }
.dt-share--bare .dt-share-btn:hover { border-color: var(--accent); background: #fff; }
.dt-share-tip {
	position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 5;
	background: var(--ink); color: #fff; font-size: .75rem; padding: 4px 8px; border-radius: 6px; pointer-events: none;
}

/* Кнопка «Наверх» */
.dt-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 44; width: 42px; height: 42px; padding: 0;
	display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
	background: rgba(255,255,255,.75); color: var(--ink-soft); backdrop-filter: blur(6px);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease, color .15s ease;
}
.dt-to-top.is-visible { opacity: .7; visibility: visible; transform: none; }
.dt-to-top:hover { opacity: 1; background: #fff; color: var(--accent); }

/* ПК: левая колонка (или полоса, если убрано наверх) */
@media (min-width: 1024px) {
	.entry-layout.has-toc {
		display: grid; align-items: start; column-gap: 40px;
		grid-template-columns: minmax(210px, 1fr) minmax(0, var(--readw)) minmax(0, 1fr);
		max-width: 1400px; margin: 0 auto;
	}
	.entry-layout.has-toc .entry-content { grid-column: 2; width: 100%; }
	.entry-layout.has-toc .entry-toc {
		display: block; grid-column: 1; justify-self: end; width: 100%; max-width: 280px;
		position: sticky; top: 96px;
	}
	.admin-bar .entry-layout.has-toc .entry-toc { top: 128px; }
	.entry-toc .dt-toc { display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
	.admin-bar .entry-toc .dt-toc { max-height: calc(100vh - 152px); }
	.dt-toc-head { display: flex; align-items: center; gap: 8px; padding: 0 0 10px 10px; margin-top: -6px; }
	.entry-toc .dt-toc-title { font: 600 .74rem/1.3 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
	.entry-toc .dt-toc-dock { margin-left: auto; }
	.entry-toc .dt-toc-list { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }

	html:not(.dt-toc-top) .dt-tocbar { display: none; }
	html:not(.dt-toc-top) .entry-content h2[id], html:not(.dt-toc-top) .entry-content h3[id] { scroll-margin-top: 92px; }
	html.dt-toc-top .entry-layout.has-toc .entry-toc { display: none; }
	html.dt-toc-top .dt-tocbar .dt-toc-dock { display: grid; }
}

/* Подсказка «таблицу можно листать» (main.js: только если таблица шире экрана) */
.dt-scroll-hint {
	display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 1.4em 0 -1em;
	font: 500 .72rem/1 var(--font-ui); letter-spacing: .02em; color: var(--muted); transition: opacity .4s ease;
}
.dt-scroll-hint.is-done { opacity: 0; }
.dt-scroll-hint svg { flex: none; }
.dt-scroll-hint .h-arrow { opacity: .55; animation: dtHintArrow 1.6s ease-in-out infinite; }
.dt-scroll-hint .h-arrow.r { animation-delay: .8s; }
.dt-scroll-hint .h-hand { color: var(--accent); animation: dtHintHand 1.6s ease-in-out infinite; }
@keyframes dtHintHand { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes dtHintArrow { 0%, 100% { opacity: .2; } 50% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .dt-scroll-hint .h-hand, .dt-scroll-hint .h-arrow { animation: none; } }

/* ==========================================================================
   Форма заявки - модальное окно (leads.php + assets/js/lead.js)
   ========================================================================== */
html.dt-lead-open { overflow: hidden; }
.dt-lead { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.dt-lead[hidden] { display: none; }
.dt-lead__overlay { position: absolute; inset: 0; background: rgba(8,24,36,.62); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.dt-lead__dialog {
	position: relative; width: 100%; max-width: 580px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 24px; padding: 34px 34px 26px; box-shadow: 0 40px 90px -30px rgba(8,24,36,.6);
	opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s ease, transform .2s ease;
	font-family: var(--font-ui); color: var(--ink);
}
.dt-lead.is-open .dt-lead__overlay { opacity: 1; }
.dt-lead.is-open .dt-lead__dialog { opacity: 1; transform: none; }
.dt-lead__dialog::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.dt-lead__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; transition: background .15s ease, color .15s ease; }
.dt-lead__x:hover { background: var(--ink); color: #fff; }
.dt-lead__title { font-size: 1.55rem; line-height: 1.2; margin: 0 40px 18px 0; letter-spacing: -.01em; }
.dt-lead__sub { margin: -8px 0 18px; color: var(--ink-soft); font-size: .95rem; }
.dt-lead__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dt-lead__f { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.dt-lead__f > span, .dt-lead__f legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; padding: 0; color: var(--ink); }
.dt-lead__f i { font-style: normal; color: var(--accent3-dk, #e4704e); }
.dt-lead__f input[type="text"], .dt-lead__f input[type="email"], .dt-lead__f select {
	width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff;
	font: 400 1rem/1.2 var(--font-ui); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.dt-lead__f input::placeholder { color: #9aa9b3; }
.dt-lead__f input:focus, .dt-lead__f select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(18,122,138,.14); }
.dt-lead__sel { position: relative; display: block; }
.dt-lead__sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); pointer-events: none; }
.dt-lead__note { display: block; margin-top: 8px; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.dt-lead__radios { display: flex; flex-wrap: wrap; gap: 10px; }
.dt-lead__radios legend { width: 100%; }
.dt-lead__radios label { position: relative; cursor: pointer; }
.dt-lead__radios input { position: absolute; opacity: 0; }
.dt-lead__radios label span { display: inline-flex; align-items: center; gap: 8px; padding: .62em 1.2em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; transition: all .15s ease; }
.dt-lead__radios label span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b9c6cd; box-sizing: border-box; transition: all .15s ease; }
.dt-lead__radios input:checked + span { border-color: var(--accent); background: rgba(18,122,138,.07); color: var(--accent); }
.dt-lead__radios input:checked + span::before { border: 4px solid var(--accent); }
.dt-lead__radios input:focus-visible + span { box-shadow: 0 0 0 4px rgba(18,122,138,.14); }
.dt-lead__capq { display: flex; align-items: center; gap: 14px; }
.dt-lead__capt { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.dt-lead__capq input { max-width: 120px; text-align: center; font-weight: 700 !important; }
.dt-lead__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dt-lead .is-bad input, .dt-lead .is-bad select, .dt-lead input.is-bad, .dt-lead select.is-bad { border-color: #e0475b !important; box-shadow: 0 0 0 4px rgba(224,71,91,.12); }
.dt-lead fieldset.is-bad label span { border-color: #e0475b; }
.dt-lead__err { margin: 2px 0 14px; padding: 10px 14px; border-radius: 12px; background: #fdecee; color: #b42335; font-size: .92rem; font-weight: 600; }
.dt-lead__submit {
	width: 100%; height: 56px; border: 0; border-radius: 14px; cursor: pointer; margin-top: 4px;
	background: linear-gradient(120deg, var(--accent), var(--accent2)); color: #fff; font: 700 1.05rem/1 var(--font-ui);
	box-shadow: 0 14px 30px -12px var(--accent-glow, rgba(18,122,138,.55)); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.dt-lead__submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.dt-lead__submit:disabled { opacity: .7; cursor: wait; transform: none; }
.dt-lead__consent { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.dt-lead__consent a { color: var(--accent); }
/* «Спасибо» */
.dt-lead__ok { text-align: center; padding: 10px 0 6px; }
.dt-lead__ok .dt-lead__title { margin: 18px 0 10px; }
.dt-lead__okicon { width: 84px; height: 84px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, #14e0b0, var(--accent2)); box-shadow: 0 0 0 10px rgba(20,224,176,.14), 0 16px 36px -12px rgba(46,154,107,.7); }
.dt-lead__okp { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; margin: 0 auto 22px; max-width: 420px; }
.dt-lead__msgr { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dt-lead__m { display: inline-flex; align-items: center; gap: 10px; padding: .8em 1.4em .8em .9em; border-radius: 16px; font-weight: 700; font-size: 1rem; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; }
.dt-lead__m .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.dt-lead__m--tg { background: #e8f4fc; color: #1b7fc4; }
.dt-lead__m--tg .ic { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.dt-lead__m--wa { background: #e7f8ee; color: #128c4a; }
.dt-lead__m--wa .ic { background: linear-gradient(135deg, #3ed16f, #1faa52); }
.dt-lead__m:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(8,24,36,.35); }
@media (max-width: 560px) {
	.dt-lead { padding: 0; place-items: end center; }
	.dt-lead__dialog { max-height: 94vh; border-radius: 22px 22px 0 0; padding: 26px 18px 20px; transform: translateY(30px); }
	.dt-lead__dialog::before { border-radius: 22px 22px 0 0; }
	.dt-lead__row2 { grid-template-columns: 1fr; gap: 0; }
	.dt-lead__title { font-size: 1.3rem; }
	.dt-lead__m { flex: 1 1 140px; justify-content: center; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.post-item, .post-item.reverse { grid-template-columns: 300px 1fr; }
	.post-item.reverse .thumb { order: 0; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.primary-nav.open { display: block; }
	.primary-nav ul { flex-direction: column; padding: 12px; gap: 2px; }
	.primary-nav a { padding: .8em 1em; }
	.nav-toggle { display: grid; }
	/* компактная шапка на телефоне */
	.header-inner { gap: 10px; min-height: 62px; }
	.brand .tagline { display: none; }
	.brand .name { font-size: 1.2rem; }
	.brand .mark, .brand .mark-img { width: 38px; height: 38px; }
	.header-actions { gap: 6px; }
	.icon-btn { width: 40px; height: 40px; }
	.icon-btn svg { width: 18px; height: 18px; }
	.hero .wrap { padding-top: 60px; padding-bottom: 60px; }
	.hero p.lead { font-size: 1.02rem; line-height: 1.55; }
	.section { padding: 52px 0; }
	.post-item, .post-item.reverse { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
	.post-item .thumb { aspect-ratio: 16 / 10; }
	.about-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.about-strip p { margin-inline: auto; }
	.post-nav { grid-template-columns: 1fr; }
	.author-box, .about-strip { padding: 26px; }
	.footer-slim { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
	.card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
	.wrap, .entry-layout { padding: 0 18px; }
	.brand .name { font-size: 1.1rem; white-space: nowrap; }
	.brand a { gap: 9px; }
	.header-actions { gap: 4px; }
	.icon-btn { width: 38px; height: 38px; }
	.hdr-tg { display: none; } /* на мобильном Telegram остаётся в баннере и подвале */
	.hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
	.lang-menu { min-width: 160px; }
}

/* Флаги стран: шрифт рисует только эмодзи-флаги (Windows их не показывает); грузится, только если флаг есть на странице */
@font-face { font-family: "Twemoji Country Flags"; font-display: swap; src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; }

/* Форма «Связаться» на странице (leads.php → dt_contact_form) */
.dt-contact { max-width: var(--readw); margin: 0 auto 72px; }
.dt-contact__box { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); padding: 34px 32px 28px; overflow: hidden; }
.dt-contact__box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.dt-contact__title { font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.dt-contact__sub { margin: 0 0 22px; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.dt-contact__f { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.dt-contact__f > span:not(.dt-contact__sel) { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.dt-contact__f i { font-style: normal; color: var(--accent3-dk, #e4704e); }
.dt-contact__f input[type="text"], .dt-contact__f select, .dt-contact__f textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: .72em .95em; transition: border-color .15s ease, box-shadow .15s ease;
}
.dt-contact__f textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.dt-contact__f select { appearance: none; -webkit-appearance: none; padding-right: 2.4em; }
.dt-contact__f input:focus, .dt-contact__f select:focus, .dt-contact__f textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dt-contact__sel { position: relative; display: block; }
.dt-contact__sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); pointer-events: none; }
.dt-contact__capq { display: flex; align-items: center; gap: 14px; }
.dt-contact__capt { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.dt-contact__capq input { max-width: 120px; text-align: center; font-weight: 700 !important; }
.dt-contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dt-contact .is-bad input, .dt-contact .is-bad select, .dt-contact .is-bad textarea, .dt-contact input.is-bad, .dt-contact select.is-bad, .dt-contact textarea.is-bad { border-color: #e0475b !important; box-shadow: 0 0 0 4px rgba(224,71,91,.12); }
.dt-contact__err { margin: 2px 0 14px; padding: 10px 14px; border-radius: 12px; background: #fdecee; color: #b42335; font-size: .92rem; font-weight: 600; }
.dt-contact__submit { width: 100%; justify-content: center; }
.dt-contact__submit:disabled { opacity: .7; cursor: wait; }
.dt-contact__consent { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.dt-contact__consent a { color: var(--accent); }
.dt-contact__ok { text-align: center; padding: 18px 0 8px; }
.dt-contact__ok p { color: var(--ink-soft); margin: 0; }
.dt-contact__okicon { width: 84px; height: 84px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.dt-contact__ok .dt-contact__title { margin: 18px 0 8px; }
@media (max-width: 600px) { .dt-contact__box { padding: 28px 18px 22px; border-radius: 20px; } .dt-contact__title { font-size: 1.35rem; } }

/* Облако меток: панель поиска и страница результатов */
.tag-cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tag-cloud__label { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tag-cloud a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; padding: .3em .8em; border-radius: 999px; }
.tag-cloud a small { color: var(--muted); font-size: .75rem; }
.tag-cloud a:hover { border-color: var(--accent); color: var(--accent-dk); }

/* Длинные ссылки и поле поиска не должны давать горизонтальную прокрутку на узких экранах */
.entry-content a, .page-content a { overflow-wrap: anywhere; }
.search-form input[type="search"] { min-width: 0; }

/* Фото автора на странице «Об авторе» */
.page-content .about-photo { float: right; width: 280px; margin: 6px 0 20px 32px; }
.page-content .about-photo img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .page-content .about-photo { float: none; width: 100%; max-width: 320px; margin: 0 auto 24px; } }
