/*
Theme Name: Fortis Legal
Theme URI: https://fortislegal.kz/
Author: Fortis Legal
Description: Адаптивная тема WordPress для юридической компании Fortis Legal (Алматы, Астана). Тёмно-синяя палитра с золотыми акцентами, готовые страницы услуг, миграционного права, форма заявки с сохранением обращений в админке.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fortis-legal
Tags: business, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, responsive-layout, translation-ready, right-sidebar
*/

/* =========================================================
   1. Переменные и базовые стили
   ========================================================= */

:root {
	--navy-900: #060f1f;
	--navy-800: #0b1a33;
	--navy-700: #122544;
	--navy-600: #1b3157;
	--gold-500: #c8a45c;
	--gold-400: #d8b978;
	--gold-100: #f0e3c8;
	--cream: #f7f4ed;
	--paper: #ffffff;
	--ink: #16202f;
	--ink-soft: #4a566b;
	--line: #e2ddd2;
	--line-dark: rgba(200, 164, 92, 0.28);
	--radius: 4px;
	--radius-lg: 8px;
	--shadow-sm: 0 2px 10px rgba(6, 15, 31, 0.06);
	--shadow-md: 0 12px 34px rgba(6, 15, 31, 0.1);
	--shadow-lg: 0 24px 60px rgba(6, 15, 31, 0.16);
	--wrap: 1200px;
	--wrap-narrow: 860px;
	--gutter: clamp(18px, 4vw, 40px);
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: "Playfair Display", "Times New Roman", Georgia, serif;
	--header-h: 84px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.fl-menu-open {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--navy-700);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}

a:hover {
	color: var(--gold-500);
}

h1,
h2,
h3,
h4,
h5 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--navy-800);
	margin: 0 0 0.55em;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(2rem, 1.35rem + 2.8vw, 3.4rem);
}

h2 {
	font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.4rem);
}

h3 {
	font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
}

h4 {
	font-size: 1.1rem;
}

p {
	margin: 0 0 1.1em;
}

ul,
ol {
	padding-left: 1.2em;
}

blockquote {
	margin: 1.6em 0;
	padding: 1em 0 1em 1.4em;
	border-left: 3px solid var(--gold-500);
	font-family: var(--serif);
	font-size: 1.2rem;
	font-style: italic;
	color: var(--navy-700);
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

th,
td {
	border: 1px solid var(--line);
	padding: 0.65rem 0.85rem;
	text-align: left;
}

th {
	background: var(--cream);
	font-weight: 600;
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
	background: var(--cream);
}

pre {
	padding: 1rem;
	overflow-x: auto;
	border-radius: var(--radius);
}

::selection {
	background: var(--gold-500);
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: var(--navy-800);
	color: #fff;
	border-radius: var(--radius);
}

:focus-visible {
	outline: 2px solid var(--gold-500);
	outline-offset: 3px;
}

/* =========================================================
   2. Раскладка
   ========================================================= */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

.section {
	padding: clamp(56px, 7vw, 108px) 0;
}

.section--tight {
	padding: clamp(40px, 5vw, 72px) 0;
}

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

.section--navy {
	background: var(--navy-800);
	color: rgba(255, 255, 255, 0.82);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
	color: #fff;
}

.section-head {
	max-width: 720px;
	margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--sans);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 14px;
}

.eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: var(--gold-500);
}

.section-head--center .eyebrow::before {
	display: none;
}

.lead {
	font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.16rem);
	color: var(--ink-soft);
}

.section--navy .lead {
	color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   3. Кнопки
   ========================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 0.94rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
	transition: all 0.25s var(--ease);
}

.btn--gold {
	background: var(--gold-500);
	border-color: var(--gold-500);
	color: var(--navy-900);
}

.btn--gold:hover {
	background: var(--gold-400);
	border-color: var(--gold-400);
	color: var(--navy-900);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(200, 164, 92, 0.32);
}

.btn--navy {
	background: var(--navy-800);
	border-color: var(--navy-800);
	color: #fff;
}

.btn--navy:hover {
	background: var(--navy-700);
	border-color: var(--navy-700);
	color: #fff;
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.36);
	color: #fff;
}

.btn--ghost:hover {
	border-color: var(--gold-500);
	background: rgba(200, 164, 92, 0.12);
	color: #fff;
}

.btn--outline {
	background: transparent;
	border-color: var(--navy-800);
	color: var(--navy-800);
}

.btn--outline:hover {
	background: var(--navy-800);
	color: #fff;
}

.btn--wide {
	width: 100%;
}

.btn--wa {
	background: #25d366;
	border-color: #25d366;
	color: #06331a;
}

.btn--wa:hover {
	background: #1fbb59;
	border-color: #1fbb59;
	color: #06331a;
	transform: translateY(-2px);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--navy-700);
}

.link-arrow svg {
	transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
	transform: translateX(4px);
}

/* =========================================================
   4. Шапка
   ========================================================= */

.topbar {
	background: var(--navy-900);
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.82rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 42px;
	flex-wrap: wrap;
}

.topbar__list {
	display: flex;
	align-items: center;
	gap: 22px;
	line-height: 1.4;
	flex-wrap: wrap;
	margin: 0;
	padding: 6px 0;
	list-style: none;
}

.topbar__list li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.topbar a {
	color: rgba(255, 255, 255, 0.78);
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.topbar a:hover {
	color: var(--gold-400);
}

.topbar svg {
	width: 14px;
	height: 14px;
	flex: none;
	opacity: 0.8;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(11, 26, 51, 0.97);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: box-shadow 0.3s var(--ease);
}

.site-header.is-stuck {
	box-shadow: 0 10px 30px rgba(6, 15, 31, 0.35);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: none;
	color: var(--gold-500);
}

.brand:hover {
	color: var(--gold-400);
}

.brand__mark {
	width: 42px;
	height: 47px;
	flex: none;
	color: inherit;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand__name {
	font-family: var(--serif);
	font-size: 1.28rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--gold-400);
}

.brand__tag {
	font-family: var(--serif);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.44em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-top: 5px;
	padding-left: 0.22em;
}

.brand img.custom-logo {
	max-height: 52px;
	width: auto;
}

.nav {
	margin-left: auto;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list li {
	position: relative;
}

.nav__list a {
	display: block;
	padding: 10px 14px;
	font-size: 0.93rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	border-radius: var(--radius);
	white-space: nowrap;
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-ancestor > a {
	color: var(--gold-400);
	background: rgba(255, 255, 255, 0.06);
}

.nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: 0.7;
}

.nav__list ul {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 268px;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 2px solid var(--gold-500);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 8px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.22s var(--ease);
}

.nav__list li:hover > ul,
.nav__list li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav__list ul li a {
	color: var(--ink);
	padding: 10px 14px;
	font-size: 0.9rem;
	white-space: normal;
}

.nav__list ul li a:hover {
	background: var(--cream);
	color: var(--navy-800);
}

.header__cta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.header__phone {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.15;
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
}

.header__phone span {
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.header__call {
	display: none;
	width: 46px;
	height: 46px;
	flex: none;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius);
	color: #fff;
	place-items: center;
}

.header__call:hover {
	border-color: var(--gold-500);
	color: var(--gold-400);
}

.burger {
	display: none;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius);
	background: transparent;
	cursor: pointer;
	padding: 0;
	position: relative;
	flex: none;
}

.burger span {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 1.5px;
	background: #fff;
	transform: translateX(-50%);
	transition: all 0.25s var(--ease);
}

.burger span:nth-child(1) {
	top: 16px;
}

.burger span:nth-child(2) {
	top: 22px;
}

.burger span:nth-child(3) {
	top: 28px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
	top: 22px;
	transform: translateX(-50%) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
	top: 22px;
	transform: translateX(-50%) rotate(-45deg);
}

/* Мобильное меню */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 950;
	background: var(--navy-900);
	padding: 88px var(--gutter) 40px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.34s var(--ease);
	visibility: hidden;
}

.mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.mobile-nav__close {
	position: absolute;
	top: 22px;
	right: var(--gutter);
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius);
	background: transparent;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav > ul > li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.mobile-nav a {
	display: block;
	padding: 15px 0;
	color: #fff;
	font-size: 1.06rem;
	font-weight: 500;
}

.mobile-nav a:hover {
	color: var(--gold-400);
}

.mobile-nav ul ul {
	padding-left: 14px;
	padding-bottom: 8px;
	border-left: 1px solid rgba(200, 164, 92, 0.3);
	margin-left: 2px;
}

.mobile-nav ul ul a {
	padding: 9px 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.72);
}

.mobile-nav__foot {
	margin-top: 32px;
	display: grid;
	gap: 12px;
}

.mobile-nav__foot .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px 24px;
}

/* =========================================================
   5. Hero
   ========================================================= */

.hero {
	position: relative;
	background:
		radial-gradient(120% 120% at 78% 10%, rgba(200, 164, 92, 0.16) 0%, rgba(200, 164, 92, 0) 55%),
		linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 68%);
	color: #fff;
	overflow: hidden;
	padding: clamp(64px, 9vw, 132px) 0 clamp(56px, 7vw, 104px);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 64px 64px;
	pointer-events: none;
	mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 100%);
	-webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 100%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(36px, 5vw, 72px);
	align-items: center;
}

.hero h1 {
	color: #fff;
	margin-bottom: 22px;
}

.hero h1 em {
	font-style: normal;
	color: var(--gold-500);
}

.hero__text {
	font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem);
	color: rgba(255, 255, 255, 0.76);
	max-width: 56ch;
	margin-bottom: 32px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 42px;
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 4vw, 48px);
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero__stat b {
	display: block;
	font-family: var(--serif);
	font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
	color: var(--gold-500);
	line-height: 1;
	margin-bottom: 6px;
}

.hero__stat span {
	font-size: 0.86rem;
	color: rgba(255, 255, 255, 0.62);
	max-width: 22ch;
	display: block;
}

/* Карточка-форма в hero */
.hero__card {
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-lg);
	padding: clamp(24px, 3vw, 36px);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow-lg);
}

.hero__card h2 {
	font-size: 1.42rem;
	color: #fff;
	margin-bottom: 8px;
}

.hero__card p {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 20px;
}

/* =========================================================
   6. Карточки услуг
   ========================================================= */

.grid {
	display: grid;
	gap: clamp(18px, 2.2vw, 28px);
}

.grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: clamp(26px, 3vw, 34px);
	transition: all 0.28s var(--ease);
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--gold-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
	border-color: transparent;
}

.card:hover::before {
	transform: scaleX(1);
}

.card__icon {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(200, 164, 92, 0.14);
	color: var(--gold-500);
	margin-bottom: 20px;
	flex: none;
}

.card__icon svg {
	width: 26px;
	height: 26px;
}

.card h3 {
	margin-bottom: 10px;
}

.card p {
	color: var(--ink-soft);
	font-size: 0.96rem;
	margin-bottom: 18px;
}

.card .link-arrow {
	margin-top: auto;
}

.card--navy {
	background: var(--navy-700);
	border-color: rgba(255, 255, 255, 0.1);
}

.card--navy h3 {
	color: #fff;
}

.card--navy p {
	color: rgba(255, 255, 255, 0.7);
}

/* Преимущества */
.adv {
	position: relative;
	padding: 30px 0 0;
	border-top: 2px solid var(--line-dark);
}

.section--navy .adv {
	border-top-color: rgba(200, 164, 92, 0.35);
}

.adv__num {
	font-family: var(--serif);
	font-size: clamp(2.4rem, 1.8rem + 2vw, 3.3rem);
	line-height: 1;
	color: var(--gold-500);
	margin-bottom: 4px;
}

.adv__num small {
	font-size: 0.42em;
	margin-left: 4px;
	letter-spacing: 0.04em;
}

.adv h3 {
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 10px;
}

.adv p {
	font-size: 0.92rem;
	margin: 0;
	color: var(--ink-soft);
}

.section--navy .adv p {
	color: rgba(255, 255, 255, 0.66);
}

/* =========================================================
   7. Блоки контента
   ========================================================= */

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.quote-band {
	background:
		linear-gradient(135deg, var(--navy-800), var(--navy-900));
	color: #fff;
	text-align: center;
	padding: clamp(56px, 7vw, 96px) 0;
	position: relative;
	overflow: hidden;
}

.quote-band__mark {
	font-family: var(--serif);
	font-size: 8rem;
	line-height: 0.6;
	color: rgba(200, 164, 92, 0.22);
	display: block;
	margin-bottom: 10px;
}

.quote-band p {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem);
	line-height: 1.35;
	max-width: 20ch;
	margin: 0 auto 18px;
	color: #fff;
}

.quote-band span {
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-500);
}

/* Этапы работы */
.steps {
	counter-reset: step;
	display: grid;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.steps li {
	counter-increment: step;
	position: relative;
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: clamp(14px, 2vw, 26px);
	align-items: start;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.steps li:last-child {
	border-bottom: 0;
}

.steps li::before {
	content: "0" counter(step);
	font-family: var(--serif);
	font-size: 1.8rem;
	color: var(--gold-500);
	line-height: 1;
}

.steps h3 {
	margin-bottom: 6px;
	font-family: var(--sans);
	font-size: 1.06rem;
	font-weight: 600;
}

.steps p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.96rem;
}

/* Практики: аккордеон */
.practice {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	margin-bottom: 16px;
	overflow: hidden;
	transition: box-shadow 0.25s var(--ease);
}

.practice.is-open {
	box-shadow: var(--shadow-sm);
	border-color: var(--line-dark);
}

.practice__head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 28px);
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--serif);
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
	font-weight: 600;
	color: var(--navy-800);
}

.practice__head:hover {
	color: var(--gold-500);
}

.practice__ico {
	width: 44px;
	height: 44px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(200, 164, 92, 0.14);
	color: var(--gold-500);
}

.practice__ico svg {
	width: 22px;
	height: 22px;
}

.practice__toggle {
	margin-left: auto;
	width: 30px;
	height: 30px;
	flex: none;
	position: relative;
}

.practice__toggle::before,
.practice__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--gold-500);
	transform: translate(-50%, -50%);
	transition: transform 0.3s var(--ease);
}

.practice__toggle::before {
	width: 14px;
	height: 2px;
}

.practice__toggle::after {
	width: 2px;
	height: 14px;
}

.practice.is-open .practice__toggle::after,
.faq__item.is-open .practice__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.practice__body {
	display: none;
	padding: 0 clamp(18px, 2.4vw, 28px) clamp(22px, 2.6vw, 30px);
}

.practice.is-open .practice__body {
	display: block;
	animation: fl-fade 0.3s var(--ease);
}

@keyframes fl-fade {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.practice__lead {
	color: var(--ink-soft);
	margin-bottom: 22px;
	max-width: 76ch;
}

.practice__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: clamp(20px, 2.4vw, 32px);
}

.practice__group h4 {
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--navy-800);
	padding-bottom: 8px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.check-list li {
	position: relative;
	padding-left: 26px;
	font-size: 0.94rem;
	color: var(--ink-soft);
	line-height: 1.6;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 13px;
	height: 8px;
	border-left: 2px solid var(--gold-500);
	border-bottom: 2px solid var(--gold-500);
	transform: rotate(-45deg);
}

.check-list strong {
	color: var(--ink);
	font-weight: 600;
}

.section--navy .check-list li {
	color: rgba(255, 255, 255, 0.72);
}

.section--navy .check-list strong {
	color: #fff;
}

/* FAQ */
.faq {
	border-top: 1px solid var(--line);
}

.faq__item {
	border-bottom: 1px solid var(--line);
}

.faq__q {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 22px 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--sans);
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--navy-800);
	line-height: 1.5;
}

.faq__q:hover {
	color: var(--gold-500);
}

.faq__q .practice__toggle {
	margin-top: -2px;
}

.faq__a {
	display: none;
	padding: 0 46px 24px 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
	max-width: 84ch;
}

.faq__item.is-open .faq__a {
	display: block;
	animation: fl-fade 0.3s var(--ease);
}

/* =========================================================
   8. Формы
   ========================================================= */

.form {
	display: grid;
	gap: 14px;
}

.form__row {
	display: grid;
	gap: 6px;
}

.form label {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.hero__card .form label,
.section--navy .form label {
	color: rgba(255, 255, 255, 0.6);
}

.form input,
.form select,
.form textarea {
	width: 100%;
	padding: 13px 15px;
	font-family: var(--sans);
	font-size: 0.98rem;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form textarea {
	min-height: 118px;
	resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
	outline: none;
	border-color: var(--gold-500);
	box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.16);
}

.hero__card .form input,
.hero__card .form select,
.hero__card .form textarea,
.section--navy .form input,
.section--navy .form select,
.section--navy .form textarea {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.hero__card .form input::placeholder,
.section--navy .form input::placeholder,
.hero__card .form textarea::placeholder,
.section--navy .form textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.hero__card .form select option,
.section--navy .form select option {
	color: var(--ink);
}

.form__hp {
	position: absolute !important;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

.form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.8rem;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: var(--ink-soft);
}

.hero__card .form__consent,
.section--navy .form__consent {
	color: rgba(255, 255, 255, 0.55);
}

.form__consent a {
	color: var(--navy-700);
	text-decoration: underline;
}

.hero__card .form__consent a,
.section--navy .form__consent a {
	color: var(--gold-400);
}

.form__consent input {
	width: 17px;
	height: 17px;
	flex: none;
	margin-top: 2px;
	accent-color: var(--gold-500);
}

.form__msg {
	display: none;
	padding: 13px 16px;
	border-radius: var(--radius);
	font-size: 0.92rem;
	line-height: 1.5;
}

.form__msg.is-visible {
	display: block;
}

.form__msg.is-ok {
	background: rgba(38, 160, 96, 0.12);
	border: 1px solid rgba(38, 160, 96, 0.4);
	color: #1c7a4a;
}

.form__msg.is-err {
	background: rgba(196, 60, 60, 0.1);
	border: 1px solid rgba(196, 60, 60, 0.36);
	color: #b23b3b;
}

.hero__card .form__msg.is-ok,
.section--navy .form__msg.is-ok {
	color: #7ce0aa;
}

.hero__card .form__msg.is-err,
.section--navy .form__msg.is-err {
	color: #ffa8a8;
}

.btn.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

/* =========================================================
   9. Контакты
   ========================================================= */

.contact-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: clamp(24px, 3vw, 34px);
	height: 100%;
}

.contact-card h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.contact-card__city {
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-500);
	font-family: var(--sans);
	font-weight: 600;
}

.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.96rem;
	color: var(--ink-soft);
}

.contact-list svg {
	width: 18px;
	height: 18px;
	flex: none;
	margin-top: 3px;
	color: var(--gold-500);
}

.contact-list a {
	color: var(--ink);
	font-weight: 500;
}

.contact-list a:hover {
	color: var(--gold-500);
}

.map-embed {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	min-height: 340px;
	background: var(--cream);
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	min-height: 340px;
	border: 0;
	display: block;
}

/* CTA-полоса */
.cta-band {
	background: linear-gradient(135deg, var(--gold-500), #b8873f);
	color: var(--navy-900);
	padding: clamp(40px, 5vw, 64px) 0;
}

.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.cta-band h2 {
	color: var(--navy-900);
	margin: 0 0 6px;
	max-width: 22ch;
}

.cta-band p {
	margin: 0;
	color: rgba(6, 15, 31, 0.72);
	font-size: 0.98rem;
	max-width: 52ch;
}

.cta-band .btn--navy:hover {
	background: var(--navy-900);
}

/* Плавающая кнопка WhatsApp */
.wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 800;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 26px rgba(37, 211, 102, 0.42);
	transition: transform 0.25s var(--ease);
}

.wa-float:hover {
	transform: scale(1.08);
	color: #fff;
}

.wa-float svg {
	width: 28px;
	height: 28px;
}

/* =========================================================
   10. Внутренние страницы, блог
   ========================================================= */

.page-hero {
	background:
		radial-gradient(110% 130% at 85% 0%, rgba(200, 164, 92, 0.15) 0%, rgba(200, 164, 92, 0) 60%),
		linear-gradient(160deg, var(--navy-800), var(--navy-900));
	color: #fff;
	padding: clamp(48px, 6vw, 86px) 0 clamp(40px, 5vw, 70px);
}

.page-hero h1 {
	color: #fff;
	max-width: 20ch;
	margin-bottom: 16px;
}

.page-hero p {
	color: rgba(255, 255, 255, 0.72);
	max-width: 70ch;
	margin: 0;
}

.breadcrumbs {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 18px;
}

.breadcrumbs a {
	color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs a:hover {
	color: var(--gold-400);
}

.breadcrumbs span + span::before {
	content: "/";
	margin: 0 8px;
	opacity: 0.5;
}

.entry-content {
	font-size: 1.02rem;
}

.entry-content > * + h2 {
	margin-top: 1.8em;
}

.entry-content > * + h3 {
	margin-top: 1.5em;
}

.entry-content img,
.wp-block-image img {
	border-radius: var(--radius-lg);
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.3em;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.alignleft {
	float: left;
	margin: 0.4em 1.6em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.6em;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 0.85rem;
	color: var(--ink-soft);
	text-align: center;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all 0.28s var(--ease);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.post-card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--cream);
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card__thumb img {
	transform: scale(1.05);
}

.post-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card__meta {
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 10px;
}

.post-card h3 {
	font-size: 1.15rem;
	margin-bottom: 10px;
}

.post-card p {
	font-size: 0.94rem;
	color: var(--ink-soft);
	margin-bottom: 16px;
}

.post-card .link-arrow {
	margin-top: auto;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 48px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 0.94rem;
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--navy-800);
	border-color: var(--navy-800);
	color: #fff;
}

/* Сайдбар и виджеты */
.content-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
}

.widget {
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin-bottom: 22px;
}

.widget-title {
	font-family: var(--sans);
	font-size: 0.84rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 14px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.94rem;
}

.widget li:last-child {
	border-bottom: 0;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 0.95rem;
}

.search-form button {
	padding: 12px 18px;
	border: 0;
	border-radius: var(--radius);
	background: var(--navy-800);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

/* Комментарии */
.comment-list {
	list-style: none;
	padding: 0;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--sans);
	margin-bottom: 12px;
}

.comment-form .submit {
	background: var(--navy-800);
	color: #fff;
	border: 0;
	padding: 13px 26px;
	border-radius: var(--radius);
	font-weight: 600;
	cursor: pointer;
}

/* 404 */
.err404 {
	text-align: center;
	padding: clamp(60px, 9vw, 130px) 0;
}

.err404__num {
	font-family: var(--serif);
	font-size: clamp(5rem, 3rem + 12vw, 11rem);
	line-height: 0.9;
	color: var(--gold-500);
	opacity: 0.35;
	margin-bottom: 10px;
}

/* =========================================================
   11. Подвал
   ========================================================= */

.site-footer {
	background: var(--navy-900);
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.94rem;
	padding-top: clamp(48px, 6vw, 76px);
}

.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
	gap: clamp(28px, 4vw, 52px);
	padding-bottom: clamp(36px, 4vw, 56px);
}

.site-footer h4 {
	font-family: var(--sans);
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 18px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
	color: var(--gold-400);
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.footer__about p {
	max-width: 42ch;
	font-size: 0.94rem;
	margin: 18px 0;
}

.footer__socials {
	display: flex;
	gap: 10px;
}

.footer__socials a {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	color: #fff;
}

.footer__socials a:hover {
	background: var(--gold-500);
	border-color: var(--gold-500);
	color: var(--navy-900);
}

.footer__socials svg {
	width: 18px;
	height: 18px;
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	padding: 22px 0 26px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.44);
}

.footer__disclaimer {
	font-size: 0.8rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.34);
	max-width: 100%;
	padding-bottom: 24px;
}

/* =========================================================
   12. Анимация появления
   ========================================================= */

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* =========================================================
   13. Адаптив
   ========================================================= */

@media (max-width: 1180px) {
	.nav__list a {
		padding: 10px 10px;
		font-size: 0.88rem;
	}

	.header__phone {
		display: none;
	}
}

@media (max-width: 1024px) {
	:root {
		--header-h: 72px;
	}

	.nav {
		display: none;
	}

	.burger {
		display: block;
	}

	.hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__card {
		max-width: 560px;
	}

	.content-sidebar {
		grid-template-columns: 1fr;
	}

	.topbar__inner {
		justify-content: center;
	}
}

@media (max-width: 860px) {
	body {
		font-size: 16px;
	}

	.topbar__list--secondary {
		display: none;
	}

	.header__cta .btn--gold {
		display: none;
	}

	.header__call {
		display: grid;
	}

	.cta-band__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer__grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

@media (max-width: 640px) {
	.hero__actions .btn,
	.mobile-nav__foot .btn {
		width: 100%;
	}

	.hero__stats {
		gap: 22px;
	}

	.hero__stat {
		min-width: 128px;
	}

	.steps li {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.steps li::before {
		font-size: 1.4rem;
	}

	.faq__a {
		padding-right: 0;
	}

	.brand__name {
		font-size: 1.06rem;
		letter-spacing: 0.14em;
	}

	.brand__tag {
		font-size: 0.64rem;
		letter-spacing: 0.38em;
	}

	.brand__mark {
		width: 32px;
		height: 36px;
	}

	.practice__head {
		gap: 12px;
		font-size: 1.02rem;
	}

	.practice__ico {
		display: none;
	}

	.wa-float {
		width: 52px;
		height: 52px;
	}
}

@media (max-width: 400px) {
	.topbar {
		display: none;
	}

	.brand {
		gap: 10px;
	}
}

/* Печать */
@media print {
	.site-header,
	.topbar,
	.site-footer,
	.wa-float,
	.cta-band,
	.mobile-nav {
		display: none !important;
	}

	body {
		color: #000;
		font-size: 12pt;
	}
}
