/* ==========================================================================
   UZ Consulate Frankfurt — оформление
   Строго и официально: белый фон, лазурь флага, тонкая полоса флага,
   геометрический орнамент как едва заметный фон.
   ========================================================================== */

:root {
	--uzc-radius: 8px;
	--uzc-shadow: 0 1px 2px rgba(11, 42, 60, .06), 0 8px 24px rgba(11, 42, 60, .06);
	--uzc-ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2300607a' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M40 8l9.4 22.6L72 40l-22.6 9.4L40 72l-9.4-22.6L8 40l22.6-9.4z'/%3E%3Cpath d='M17.4 17.4L40 26.8l22.6-9.4-9.4 22.6 9.4 22.6L40 53.2l-22.6 9.4 9.4-22.6z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Cpath d='M0 0l8 8M80 0l-8 8M0 80l8-8M80 80l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Пропуск к содержанию */
.uzc-skip {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	padding: .6rem 1rem; background: var(--wp--preset--color--navy); color: #fff; border-radius: 0 0 6px 6px;
}
.uzc-skip:focus { top: 0; }

/* ---------- Верхняя строка ---------- */
.uzc-topbar {
	background: var(--wp--preset--color--navy);
	color: #dbe7ee;
	font-size: .875rem;
	padding-top: .4rem; padding-bottom: .4rem;
}
.uzc-topbar__inner { gap: .5rem 1.5rem; }
.uzc-topbar .gk-langs a { color: #dbe7ee; }
.uzc-topbar .gk-langs a[aria-current="true"] { color: #fff; border-bottom-color: var(--wp--preset--color--flag-blue); }
.uzc-topbar .gk-status--closed { background: rgba(255, 255, 255, .1); color: #dbe7ee; }
.uzc-topbar .gk-status--open { background: rgba(19, 138, 59, .25); color: #c9f2d6; }

/* ---------- Шапка ---------- */
.uzc-header { background: #fff; padding-top: .85rem; padding-bottom: .85rem; position: relative; z-index: 20; }
.uzc-header__inner { gap: 1rem 2rem; align-items: center; }
.uzc-brand { gap: .85rem; align-items: center; min-width: 0; }
.uzc-brand .wp-block-site-logo img { width: 56px; height: auto; }
.uzc-brand__name { display: flex; flex-direction: column; text-decoration: none; color: var(--wp--preset--color--navy); line-height: 1.2; }
.uzc-brand__title { font-weight: 700; font-size: 1.05rem; }
.uzc-brand__city { font-size: .875rem; color: var(--wp--preset--color--muted); }
.uzc-header .gk-appointment .gk-button { padding: .65em 1.1em; white-space: nowrap; }

.uzc-nav { margin-left: auto; }
.uzc-nav__toggle { display: none; }
.uzc-nav__panel ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.25rem; flex-wrap: nowrap; }
.uzc-nav__panel li { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1240px) {
	.uzc-nav__panel a { font-size: .95rem; }
	.uzc-nav__panel ul { gap: .25rem 1rem; }
	.uzc-brand__title { font-size: .98rem; }
}
.uzc-nav__panel a {
	display: block; padding: .5rem 0; color: var(--wp--preset--color--navy);
	text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent;
}
.uzc-nav__panel a:hover { border-bottom-color: var(--wp--preset--color--flag-blue); }

/* Полоса флага: голубой · красный · белый · красный · зелёный */
.uzc-flagline { display: grid; grid-template-rows: 5px 1px 3px 1px 5px; }
.uzc-flagline span:nth-child(1) { background: var(--wp--preset--color--flag-blue); }
.uzc-flagline span:nth-child(2) { background: var(--wp--preset--color--flag-red); }
.uzc-flagline span:nth-child(3) { background: #fff; }
.uzc-flagline span:nth-child(4) { background: var(--wp--preset--color--flag-red); }
.uzc-flagline span:nth-child(5) { background: var(--wp--preset--color--accent); }

/* ---------- Мобильное меню ---------- */
@media (max-width: 960px) {
	.uzc-header__inner { flex-wrap: wrap !important; }
	.uzc-brand { flex: 1 1 auto; }
	.uzc-header .gk-appointment { order: 3; width: 100%; }
	.uzc-header .gk-appointment .gk-button { width: 100%; justify-content: center; }
	.js .uzc-nav__toggle {
		display: inline-flex; align-items: center; gap: .5rem;
		background: none; border: 1px solid var(--wp--preset--color--line-strong); border-radius: 6px;
		padding: .5rem .8rem; font: inherit; font-weight: 600; color: var(--wp--preset--color--navy); cursor: pointer;
	}
	.uzc-burger, .uzc-burger::before, .uzc-burger::after {
		display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
	}
	.uzc-burger::before, .uzc-burger::after { content: ""; position: absolute; left: 0; }
	.uzc-burger::before { top: -6px; }
	.uzc-burger::after { top: 6px; }
	.uzc-nav.is-open .uzc-burger { background: transparent; }
	.uzc-nav.is-open .uzc-burger::before { transform: translateY(6px) rotate(45deg); }
	.uzc-nav.is-open .uzc-burger::after { transform: translateY(-6px) rotate(-45deg); }
	.uzc-nav { margin-left: 0; }
	.js .uzc-nav__panel {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-top: 1px solid var(--wp--preset--color--line); box-shadow: var(--uzc-shadow);
		padding: .5rem var(--wp--preset--spacing--30) 1rem;
	}
	.js .uzc-nav.is-open .uzc-nav__panel { display: block; }
	.uzc-nav__panel ul { flex-direction: column; gap: 0; }
	.uzc-nav__panel a { padding: .85rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
}

/* ---------- Общие разделы ---------- */
.uzc-main { padding-top: var(--wp--preset--spacing--40); padding-bottom: var(--wp--preset--spacing--50); }
.uzc-main--home { padding-top: 0; padding-bottom: 0; }
.uzc-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.uzc-section--tint { background: var(--wp--preset--color--surface); }
.uzc-section-head {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
	margin-bottom: var(--wp--preset--spacing--30);
}
.uzc-section-head h2 { margin: 0; position: relative; padding-left: 1rem; }
.uzc-section-head h2::before {
	content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px;
	background: linear-gradient(var(--wp--preset--color--flag-blue) 0 45%, var(--wp--preset--color--flag-red) 45% 55%, var(--wp--preset--color--accent) 55%);
}
.uzc-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.uzc-more:hover { text-decoration: underline; }
.uzc-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 60ch; }
.uzc-mt { margin-top: var(--wp--preset--spacing--40) !important; }

/* Карточка (стиль группы) */
.is-style-uzc-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--uzc-radius); padding: var(--wp--preset--spacing--30); box-shadow: var(--uzc-shadow);
}
.is-style-uzc-ornament { background-color: var(--wp--preset--color--tint); background-image: var(--uzc-ornament); background-size: 80px 80px; }

/* ---------- Первый экран ---------- */
.uzc-hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.uzc-hero__cols { gap: var(--wp--preset--spacing--40); }
.uzc-hero__title { margin: 0 0 .5rem; }
.uzc-hero__lead { font-size: var(--wp--preset--font-size--large); color: #33434d; max-width: 46ch; margin: 0 0 1.5rem; }
.uzc-tasks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.uzc-tasks a {
	display: inline-block; padding: .5rem .9rem; border-radius: 999px; background: #fff;
	border: 1px solid var(--wp--preset--color--line-strong); color: var(--wp--preset--color--navy);
	text-decoration: none; font-weight: 600; font-size: .95rem;
}
.uzc-tasks a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.uzc-visit { display: grid; gap: .9rem; }
.uzc-visit__title { margin: 0; font-size: var(--wp--preset--font-size--large); }
.uzc-visit .gk-appointment .gk-button { width: 100%; justify-content: center; }

/* ---------- Новости ---------- */
.uzc-news .wp-block-post-template { gap: var(--wp--preset--spacing--30); }
.uzc-news-card {
	height: 100%; background: #fff; border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--uzc-radius); overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow .15s ease;
}
.uzc-news-card:hover { box-shadow: var(--uzc-shadow); }
.uzc-news-card .wp-block-post-featured-image { margin: 0; }
.uzc-news-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.uzc-news-card__body { padding: 1rem 1.1rem 1.25rem; display: grid; gap: .4rem; }
.uzc-news-card__title { font-size: 1.05rem !important; line-height: 1.35; margin: 0; }
.uzc-news-card__title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.uzc-news-card__title a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.uzc-news-card .wp-block-post-excerpt { font-size: .95rem; color: var(--wp--preset--color--muted); margin: 0; }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--40); font-weight: 600; }

/* ---------- Откройте Узбекистан ---------- */
.uzc-discover { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); background: var(--wp--preset--color--navy); color: #e6eef3; }
.uzc-discover__inner { display: grid; gap: var(--wp--preset--spacing--40); grid-template-columns: 1.2fr 1fr; align-items: center; }
.uzc-discover__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--uzc-radius); display: block; }
.uzc-discover h2 { color: #fff; margin-top: 0; }
.uzc-discover h2::after {
	content: ""; display: block; width: 64px; height: 3px; margin-top: .75rem; background: var(--wp--preset--color--gold);
}
.uzc-discover p { font-size: var(--wp--preset--font-size--large); }
.uzc-discover__links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.uzc-discover__links a {
	display: flex; justify-content: space-between; padding: .85rem 1rem; border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 6px; color: #fff; text-decoration: none; font-weight: 600;
}
.uzc-discover__links a:hover { background: rgba(255, 255, 255, .08); border-color: var(--wp--preset--color--gold); }
@media (max-width: 800px) { .uzc-discover__inner { grid-template-columns: 1fr; } }

/* ---------- Вопросы ---------- */
.uzc-ask h2 { margin-top: 0; font-size: var(--wp--preset--font-size--large); }

/* ---------- Страница услуги ---------- */
.uzc-service__cols { gap: var(--wp--preset--spacing--40); }
.uzc-service .wp-block-post-terms a { text-decoration: none; color: var(--wp--preset--color--primary); }
.uzc-sticky { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }
.uzc-sticky .gk-appointment .gk-button { width: 100%; justify-content: center; }
@media (max-width: 781px) { .uzc-sticky { position: static; } }

/* ---------- Запись (мета) ---------- */
.uzc-meta { gap: .5rem 1rem; color: var(--wp--preset--color--muted); }
.uzc-meta .wp-block-post-terms a { text-decoration: none; }

/* ---------- Контакты ---------- */
.uzc-contacts-cols { gap: var(--wp--preset--spacing--40); }
.uzc-contacts-cols .gk-hours-wrap { margin-top: var(--wp--preset--spacing--30); }

/* ---------- Подвал ---------- */
.uzc-footer { background: var(--wp--preset--color--navy); color: #c9d7df; padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--30); font-size: .95rem; }
.uzc-footer a { color: #fff; }
.uzc-footer__cols { gap: var(--wp--preset--spacing--40); }
.uzc-footer__name { color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-top: 0; }
.uzc-footer__title, .uzc-footer .gk-hours caption { color: #fff; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em; margin-top: 0; }
.uzc-footer .gk-contacts dt { color: #8fa6b3; }
.uzc-footer .gk-hours th, .uzc-footer .gk-hours td { border-bottom-color: rgba(255, 255, 255, .12); padding: .3rem 0; }
.uzc-footer .gk-status--closed { background: rgba(255, 255, 255, .1); color: #dbe7ee; }
.uzc-footer .gk-emergency { background: rgba(206, 17, 38, .12); color: #fff; border-left-color: var(--wp--preset--color--flag-red); }
.uzc-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.uzc-footer .gk-social { flex-direction: column; gap: .4rem; }
.uzc-footer__bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .12); margin-top: var(--wp--preset--spacing--40); padding-top: 1rem; font-size: .875rem;
}
.uzc-footer__bottom p { margin: 0; }
.uzc-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ---------- Печать: только содержимое ---------- */
@media print {
	.uzc-topbar, .uzc-header, .uzc-flagline, .uzc-footer, .gk-notice, .uzc-aside, .gk-appointment { display: none !important; }
	a { color: #000; }
}

/* Меньше движения — для тех, кто это выбрал в системе */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Узбекский орнамент ---------- */
:root {
	--uzc-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 12 12 0l12 12L12 24zM24 12 36 0l12 12-12 12z' fill='%23c9a227' fill-opacity='.9'/%3E%3Cpath d='M6 12 12 6l6 6-6 6zM30 12l6-6 6 6-6 6z' fill='%230b2a3c'/%3E%3C/svg%3E");
}
.uzc-band { height: 24px; background-image: var(--uzc-band); background-repeat: repeat-x; background-size: 48px 24px; }
.uzc-footer { position: relative; }
.uzc-section-head h2::after { content: ""; display: block; width: 72px; height: 10px; margin-top: .35rem; background: var(--uzc-band) left center / 20px 10px repeat-x; }
.uzc-discover { background-image: var(--uzc-ornament); background-size: 80px 80px; }
.uzc-hero { position: relative; }
.uzc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: var(--uzc-band) repeat-x; background-size: 48px 24px; }
.uzc-page-hero { padding: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--30); }
.uzc-page-hero h1 { margin: 0; }
.uzc-prose p { max-width: 70ch; }
.uzc-prose h2 { margin-top: 2rem; }

/* Крупный текст и контраст по запросу пользователя */
.uzc-a11y { display: inline-flex; gap: .25rem; }
.uzc-a11y button { background: #fff; border: 1px solid var(--wp--preset--color--line-strong); border-radius: 4px; padding: .1rem .5rem; font: inherit; font-weight: 700; cursor: pointer; }
html.uzc-large { font-size: 118%; }

/* =========================================================
   Редизайн 1.1 — шапка, первый экран, разделы главной
   ========================================================= */
.uzc-wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--wp--preset--spacing--30, 1.25rem); }

/* Шапка: герб фиксированного размера, название в 2 строки */
.uzc-brand { flex: 0 1 auto; }
.uzc-brand__link { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--wp--preset--color--navy); }
.uzc-brand__logo { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; }
.uzc-brand__name { display: flex; flex-direction: column; line-height: 1.2; max-width: 17rem; }
.uzc-brand__title { font-weight: 700; font-size: 1.05rem; }
.uzc-brand__city { font-size: .85rem; color: var(--wp--preset--color--muted); }
.uzc-header .gk-appointment { margin: 0; }
.uzc-header .gk-appointment__hint { display: none; }
.gk-button .gk-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.gk-icon--xs { width: .9em; height: .9em; vertical-align: -.1em; }
.gk-icon--sm { width: 1.1em; height: 1.1em; }
@media (max-width: 1180px) {
	.uzc-header__inner { flex-wrap: wrap !important; }
	.uzc-brand { flex: 1 1 auto; }
	.uzc-header .gk-appointment { order: 3; width: 100%; }
	.uzc-header .gk-appointment .gk-button { width: 100%; justify-content: center; }
	.js .uzc-nav__toggle {
		display: inline-flex; align-items: center; gap: .5rem; background: none;
		border: 1px solid var(--wp--preset--color--line-strong); border-radius: 6px;
		padding: .5rem .8rem; font: inherit; font-weight: 600; color: var(--wp--preset--color--navy); cursor: pointer;
	}
	.uzc-burger, .uzc-burger::before, .uzc-burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
	.uzc-burger::before, .uzc-burger::after { content: ""; position: absolute; left: 0; }
	.uzc-burger::before { top: -6px; } .uzc-burger::after { top: 6px; }
	.js .uzc-nav__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--wp--preset--color--line); box-shadow: var(--uzc-shadow); padding: .5rem 1.25rem 1rem; z-index: 30; }
	.js .uzc-nav.is-open .uzc-nav__panel { display: block; }
	.uzc-nav__panel ul { flex-direction: column; gap: 0; }
	.uzc-nav__panel a { padding: .85rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
}

/* Первый экран с фото */
.uzc-hero2 {
	position: relative; color: #fff; overflow: hidden;
	background: #0b2a3c var(--uzc-hero-img, none) center / cover no-repeat;
}
.uzc-hero2::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,38,.92) 0%, rgba(6,26,38,.78) 45%, rgba(6,26,38,.35) 100%); }
.uzc-hero2__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(3rem, 6vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.uzc-hero2__kicker { margin: 0 0 .75rem; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: #f2d77a; font-weight: 600; }
.uzc-hero2__title { color: #fff; margin: 0 0 .75rem; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; }
.uzc-hero2__lead { font-size: 1.15rem; color: #e3edf2; max-width: 40ch; margin: 0 0 1.5rem; }
.uzc-hero2 .gk-search { max-width: 36rem; }
.uzc-hero2 .gk-search input { border: 0; }
.uzc-hero2 .uzc-tasks a { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(4px); }
.uzc-hero2 .uzc-tasks a:hover { background: #fff; color: var(--wp--preset--color--navy); }
.uzc-hero2__card { background: #fff; color: var(--wp--preset--color--navy); border-radius: 12px; padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: grid; gap: .8rem; }
.uzc-hero2__card h2 { margin: 0; font-size: 1.25rem; }
.uzc-hero2__card .gk-appointment { margin: 0; }
.uzc-hero2__card .gk-appointment .gk-button { width: 100%; justify-content: center; }
.uzc-hero2__card .gk-contacts { margin: 0; }
.uzc-hero2__credit { position: absolute; right: 1rem; bottom: .5rem; margin: 0; font-size: .75rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .uzc-hero2__inner { grid-template-columns: 1fr; } .uzc-hero2::before { background: rgba(6,26,38,.82); } }
.uzc-hero::after, .uzc-hero { } /* старый первый экран больше не используется */

/* Быстрые действия поверх края первого экрана */
.uzc-quickwrap { position: relative; z-index: 2; margin-top: -1.5rem; }
.gk-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.gk-quick a { display: flex; gap: .9rem; align-items: center; height: 100%; padding: 1.1rem 1.2rem; background: #fff; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); box-shadow: var(--uzc-shadow); text-decoration: none; color: var(--wp--preset--color--navy); transition: transform .15s ease, box-shadow .15s ease; }
.gk-quick a:hover, .gk-quick a:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,42,60,.14); }
.gk-quick__icon { display: grid; place-items: center; width: 3rem; height: 3rem; flex: 0 0 3rem; border-radius: 50%; background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary); }
.gk-quick__icon .gk-icon { width: 1.5rem; height: 1.5rem; }
.gk-quick__text { display: grid; gap: .1rem; }
.gk-quick__text span { font-size: .9rem; color: var(--wp--preset--color--muted); }

/* Две колонки */
.uzc-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.uzc-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uzc-split__side { display: grid; gap: 1rem; }
@media (max-width: 900px) { .uzc-split, .uzc-split--even { grid-template-columns: 1fr; } }

/* «Откройте Узбекистан» — фото городов */
.uzc-discover2 { background: var(--wp--preset--color--navy) var(--uzc-ornament); background-size: 80px 80px; color: #e6eef3; padding: var(--wp--preset--spacing--50) 0; }
.uzc-section-head--light h2 { color: #fff; }
.uzc-section-head--light .uzc-more { color: #f2d77a; }
.uzc-discover2__lead { max-width: 65ch; font-size: 1.1rem; margin: 0 0 1.5rem; }
.uzc-cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.uzc-city { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #123; }
.uzc-city img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.uzc-city:hover img { transform: scale(1.04); }
.uzc-city__text { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: grid; gap: .2rem; color: #fff; }
.uzc-city__text strong { font-size: 1.2rem; }
.uzc-city__text span { font-size: .88rem; color: #dfe8ee; }
.uzc-discover2__links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.uzc-discover2__links a { display: inline-block; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; }
.uzc-discover2__links a:hover { background: #fff; color: var(--wp--preset--color--navy); }

/* Карточки новостей: одинаковая высота, без пустот */
.uzc-news-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; height: auto; }
.uzc-news-card__title { text-transform: none; }

/* Мелочи */
.uzc-faqbox .uzc-section-head { margin-bottom: 1rem; }
@media (max-width: 600px) {
	.uzc-brand__logo { width: 44px; height: 44px; flex-basis: 44px; }
	.uzc-brand__title { font-size: .95rem; }
	.uzc-topbar__inner { justify-content: center !important; }
	.uzc-hero2__title { font-size: 1.9rem; }
}
@media print { .uzc-hero2, .uzc-quickwrap, .gk-tools, .gk-qr, .uzc-discover2 { display: none !important; } }
.uzc-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin: 1.5rem 0; }
.uzc-gallery__item { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.uzc-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gk-notice--info { background: #fff4d6; color: #4a3500; border-bottom: 1px solid #f0d27a; }
/* Шапка: название не сжимается, кнопка записи на средних экранах прячется (есть в первом экране) */
.uzc-brand { flex: 0 0 auto; }
.uzc-brand__name { max-width: 15.5rem; }
.uzc-nav__panel ul { gap: .25rem 1.1rem; }
.uzc-nav__panel a { font-size: .98rem; }
@media (min-width: 1181px) and (max-width: 1420px) { .uzc-header .gk-appointment { display: none; } }
.uzc-hero2 + .uzc-band { display: none; }
.uzc-quickwrap { margin-top: -2.25rem; }
/* Компактная шапка на телефоне */
@media (max-width: 1180px) {
	.uzc-header__inner { flex-wrap: wrap !important; row-gap: .6rem !important; }
	.uzc-brand { flex: 1 1 0; min-width: 0; }
	.uzc-nav { order: 2; margin-left: auto; }
}
@media (max-width: 600px) {
	.gk-notice { font-size: .82rem; padding: .45rem .75rem; }
	.uzc-topbar { padding-top: .3rem; padding-bottom: .3rem; }
	.uzc-topbar__inner { flex-wrap: nowrap !important; gap: .5rem !important; justify-content: space-between !important; }
	.uzc-topbar .gk-status { display: none; }
	.uzc-topbar .gk-langs ul { gap: .1rem .55rem; } .uzc-topbar .gk-langs { font-size: .8rem; }
	.uzc-a11y button { padding: .05rem .4rem; }
	.uzc-header { padding-top: .6rem; padding-bottom: .6rem; }
	.uzc-brand__logo { width: 40px; height: 40px; flex-basis: 40px; }
	.uzc-brand__title { font-size: .9rem; }
	.uzc-brand__city { font-size: .75rem; }
	.js .uzc-nav__toggle { padding: .45rem .6rem; }
	.js .uzc-nav__toggle span:last-child { font-size: .9rem; }
	.uzc-header .gk-appointment .gk-button { padding: .6em 1em; }
	.uzc-hero2__kicker { display: none; }
	.uzc-hero2__inner { padding-top: 1.75rem; gap: 1.5rem; }
	.uzc-quickwrap { margin-top: -1.25rem; }
	.gk-quick { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.gk-quick a { flex-direction: column; align-items: flex-start; padding: .85rem; gap: .5rem; }
	.gk-quick__text span { display: none; }
}
.uzc-main .uzc-lead { max-width: none; text-wrap: pretty; }
/* Фото-баннер внутренних страниц */
.uzc-pagebanner { position: relative; min-height: 150px; display: flex; align-items: flex-end; background: var(--wp--preset--color--navy) var(--uzc-banner, none) center 40% / cover no-repeat; }
.uzc-pagebanner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,38,.15), rgba(6,26,38,.75)); }
.uzc-pagebanner__crumbs { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem; color: #e6eef3; font-size: .92rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.uzc-pagebanner__crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.uzc-pagebanner__crumbs a:hover { text-decoration: underline; }
@media (max-width: 600px) { .uzc-pagebanner { min-height: 96px; } }
@media print { .uzc-pagebanner { display: none; } }
.uzc-footer__nodata { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: #c9d8e1; }
.uzc-footer__nodata a { color: #fff; }
/* Меню из 7 пунктов: раньше переходим на кнопку «Меню» */
@media (min-width: 1181px) and (max-width: 1320px) { .uzc-nav__panel a { font-size: .92rem; } .uzc-nav__panel ul { gap: .25rem .85rem; } }

/* Высокий контраст: чёрный фон, белый текст, жёлтые ссылки и кнопки (кнопка ◐ в верхней строке). */
html.uzc-contrast, html.uzc-contrast body { background: #000 !important; color: #fff !important; }
html.uzc-contrast *:not(img):not(svg):not(path):not(video):not(iframe) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.uzc-contrast a, html.uzc-contrast a * { color: #ffe066 !important; text-decoration: underline !important; }
html.uzc-contrast .gk-button, html.uzc-contrast button, html.uzc-contrast input[type="submit"], html.uzc-contrast .wp-block-button__link { background-color: #ffe066 !important; color: #000 !important; border: 2px solid #fff !important; }
html.uzc-contrast .gk-button *, html.uzc-contrast button * { color: #000 !important; text-decoration: none !important; }
html.uzc-contrast input, html.uzc-contrast select, html.uzc-contrast textarea { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.uzc-contrast :focus-visible { outline: 3px solid #ffe066 !important; outline-offset: 2px; }
html.uzc-contrast svg { fill: currentColor; }
html.uzc-contrast img { filter: grayscale(1) contrast(1.15); }
html.uzc-contrast .uzc-a11y button[aria-pressed="true"] { background-color: #ffe066 !important; color: #000 !important; }

/* =========================================================
   Живой, но строгий дизайн 1.2: орнамент, движение, глубина
   ========================================================= */
:root {
	--uzc-star-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M40 8l9.4 22.6L72 40l-22.6 9.4L40 72l-9.4-22.6L8 40l22.6-9.4z'/%3E%3Cpath d='M17.4 17.4L40 26.8l22.6-9.4-9.4 22.6 9.4 22.6L40 53.2l-22.6 9.4 9.4-22.6z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
	--uzc-star-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b8892d' d='M12 1l2.7 6.3L21 4.6l-2.7 6.3L23 12l-4.7 1.1L21 19.4l-6.3-2.7L12 23l-2.7-6.3L3 19.4l2.7-6.3L1 12l4.7-1.1L3 4.6l6.3 2.7z'/%3E%3C/svg%3E");
	--uzc-ease: cubic-bezier(.2, .7, .2, 1);
}
body { background-image: linear-gradient(180deg, #ffffff 0, #f8fafb 100%); }

/* Первый экран и баннеры страниц: мягкий геометрический узор поверх фото */
/* звёздный узор убран по просьбе консульства */
.uzc-pagebanner > * { position: relative; z-index: 1; }

/* Заголовки разделов: золотая восьмиконечная звезда */
.gk-p2box > h2, .uzc-section-head h2, .gk-news h2.gk-nx__h, .gk-feeds > h2 {
	display: flex; align-items: center; gap: .55rem;
}

@keyframes uzc-spin { to { transform: rotate(360deg); } }

/* Карточки: приподнимаются, на границе загорается акцент */
.gk-card, .gk-infocard, .uzc-news-card, .gk-service, .gk-p2cards li, .gk-topic, .gk-tile {
	transition: transform .25s var(--uzc-ease), box-shadow .25s var(--uzc-ease), border-color .25s;
}
.gk-card:hover, .gk-infocard:hover, .uzc-news-card:hover, .gk-service:hover, .gk-p2cards li:hover, .gk-topic:hover, .gk-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(11, 42, 60, .13);
	border-color: #9fc7d3;
}

/* Кнопки: сдержанный градиент и «живая» стрелка */
.gk-button--primary, .wp-element-button, .wp-block-button__link {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
	transition: transform .2s var(--uzc-ease), box-shadow .2s, background-color .2s;
}
.gk-button--primary:hover, .wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 69, 88, .28); }
.gk-button--primary:active, .wp-element-button:active { transform: translateY(0); box-shadow: none; }

/* Появление при прокрутке (класс ставит скрипт; без JS всё видно сразу) */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--uzc-ease), transform .6s var(--uzc-ease); will-change: opacity, transform; }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv.is-in.gk-card:hover, .js .rv.is-in.gk-infocard:hover { transform: translateY(-4px); }

/* Шапка: тонкая тень при прокрутке */
.uzc-header { transition: box-shadow .25s; }
.uzc-header.is-stuck { box-shadow: 0 6px 20px rgba(11, 42, 60, .12); }

/* Полоса флага над подвалом */
.uzc-footer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, #0099b5 0 33%, #ffffff 33% 34%, #ce1126 34% 35%, #ffffff 35% 36%, #138a3b 36% 100%); margin-bottom: 0; opacity: .0; }

/* Режимы доступности и «меньше движения» отключают украшения */
@media (prefers-reduced-motion: reduce) {
	.js .rv { opacity: 1; transform: none; transition: none; }
	.gk-p2box > h2::before, .gk-feeds > h2::before { animation: none; }
	.gk-card, .gk-infocard, .uzc-news-card, .gk-service, .gk-p2cards li { transition: none; }
	.gk-card:hover, .gk-infocard:hover, .uzc-news-card:hover, .gk-p2cards li:hover { transform: none; }
	html { scroll-behavior: auto; }
}
html.uzc-contrast .uzc-hero2::after, html.uzc-contrast .uzc-pagebanner::after, html.uzc-contrast .uzc-pagebanner::before { display: none; }
html.uzc-contrast .rv { opacity: 1; transform: none; }
html.uzc-contrast .gk-p2box > h2::before { display: none; }

/* =========================================================
   Дизайн 1.3: «шаг в будущее» — мягко, плавно, строго
   ========================================================= */
html { scroll-behavior: smooth; }

/* Плавные переходы между страницами (Chrome, Edge, Safari; остальные просто открывают страницу) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: uzc-vt-out .22s ease both; }
::view-transition-new(root) { animation: uzc-vt-in .38s var(--uzc-ease) both; }
@keyframes uzc-vt-out { to { opacity: 0; } }
@keyframes uzc-vt-in { from { opacity: 0; transform: translateY(10px); } }
.uzc-header { view-transition-name: uzc-header; }
::view-transition-group(uzc-header) { animation-duration: 0s; }
/* Запасной вариант: мягкое появление содержимого при загрузке */
.uzc-main { animation: uzc-page-in .5s var(--uzc-ease) both; }
@keyframes uzc-page-in { from { opacity: 0; transform: translateY(8px); } }

/* Фон: чистое фото с медленным «дыханием»; сверху лёгкое затемнение под текст */
.uzc-hero2 { isolation: isolate; background: #0b2a3c; }
.uzc-hero2::after {
	content: ""; position: absolute; inset: -4%; z-index: -1;
	background: var(--uzc-hero-img, none) center / cover no-repeat;
	animation: uzc-breathe 26s ease-in-out infinite alternate;
}
@keyframes uzc-breathe { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
.uzc-hero2::before { background: linear-gradient(100deg, rgba(6,26,38,.88) 0%, rgba(6,26,38,.62) 48%, rgba(6,26,38,.12) 100%); }
.uzc-hero2__main > * { animation: uzc-rise .7s var(--uzc-ease) both; }
.uzc-hero2__main > *:nth-child(2) { animation-delay: .06s; }
.uzc-hero2__main > *:nth-child(3) { animation-delay: .12s; }
.uzc-hero2__main > *:nth-child(4) { animation-delay: .18s; }
.uzc-hero2__main > *:nth-child(5) { animation-delay: .24s; }
.uzc-hero2__card { animation: uzc-rise .8s .15s var(--uzc-ease) both; backdrop-filter: saturate(1.2); }
@keyframes uzc-rise { from { opacity: 0; transform: translateY(18px); } }

/* Стеклянная шапка */
.uzc-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }

/* Фон страницы: едва заметные цветные «облака» в цветах флага */
body {
	background-image:
		radial-gradient(900px 500px at 8% -5%, rgba(0, 153, 181, .07), transparent 60%),
		radial-gradient(800px 480px at 100% 12%, rgba(19, 138, 59, .06), transparent 60%),
		radial-gradient(700px 400px at 70% 60%, rgba(184, 137, 45, .05), transparent 60%),
		linear-gradient(180deg, #ffffff 0, #f8fafb 100%);
	background-attachment: fixed;
}

/* Быстрые действия: в один ряд, без «сироты» */
.gk-quick { grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); }

/* Карточки: мягкая подсветка, иконки оживают */
.gk-card, .gk-infocard, .uzc-news-card, .gk-service, .gk-p2cards li, .gk-topic, .gk-tile, .gk-quick a {
	transition: transform .35s var(--uzc-ease), box-shadow .35s var(--uzc-ease), border-color .35s, background-color .35s;
}
.gk-quick a:hover .gk-quick__icon, .gk-service:hover .gk-icon, .gk-card:hover .gk-icon { transform: scale(1.12) rotate(-4deg); }
.gk-quick__icon, .gk-service .gk-icon, .gk-card .gk-icon { transition: transform .35s var(--uzc-ease), background-color .35s; }
.gk-quick a:hover .gk-quick__icon { background: var(--wp--preset--color--primary); color: #fff; }
.gk-service { position: relative; overflow: hidden; }
.gk-service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(0, 153, 181, .08) 50%, transparent 60%); transform: translateX(-120%); transition: transform .9s var(--uzc-ease); pointer-events: none; }
.gk-service:hover::after { transform: translateX(120%); }

/* Изображения в карточках новостей: плавное приближение */
.uzc-news-card img, .gk-nx img { transition: transform .7s var(--uzc-ease); }
.uzc-news-card:hover img, .gk-nx a:hover img { transform: scale(1.05); }

/* Заголовки разделов: тонкий узбекский акцент (флаг) вместо звёзд */
.gk-p2box > h2, .gk-feeds > h2, .gk-news h2.gk-nx__h { position: relative; padding-bottom: .5rem; }
.gk-p2box > h2::after, .gk-feeds > h2::after, .gk-news h2.gk-nx__h::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, #0099b5 0 60%, #ce1126 60% 70%, #138a3b 70% 100%);
	transform-origin: left; animation: uzc-grow .9s var(--uzc-ease) both;
}
@keyframes uzc-grow { from { transform: scaleX(0); } }

/* Поле поиска и кнопки: мягкий фокус */
.gk-search input:focus, .gk-form input:focus, .gk-form textarea:focus, .gk-form select:focus { box-shadow: 0 0 0 4px rgba(0, 153, 181, .18); outline: none; transition: box-shadow .25s; }
a { transition: color .2s, background-color .2s, border-color .2s; }

/* Полоса «Как получить услугу»: путь из четырёх шагов */
.gk-path { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.gk-path::before { content: ""; position: absolute; left: 12%; right: 12%; top: 2.1rem; height: 3px; background: linear-gradient(90deg, #0099b5, #138a3b); opacity: .28; border-radius: 3px; }
.gk-path li { counter-increment: step; position: relative; text-align: center; padding: 0 .5rem; }
.gk-path__n { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; margin: 0 auto .8rem; border-radius: 50%; background: #fff; border: 3px solid #0099b5; color: #004558; font-weight: 800; font-size: 1.4rem; box-shadow: 0 8px 22px rgba(0, 69, 88, .15); position: relative; z-index: 1; transition: transform .35s var(--uzc-ease), background-color .35s, color .35s; }
.gk-path li:hover .gk-path__n { transform: translateY(-4px) scale(1.06); background: #0099b5; color: #fff; }
.gk-path li:nth-child(4) .gk-path__n { border-color: #138a3b; }
.gk-path strong { display: block; margin-bottom: .2rem; color: var(--wp--preset--color--navy, #0b2a3c); }
.gk-path span.gk-path__t { color: var(--wp--preset--color--muted, #5b6770); font-size: .95rem; }
.gk-pathbox { padding: clamp(1.2rem, 3vw, 2rem); background: #fff; border: 1px solid var(--wp--preset--color--line, #dbe4e8); border-radius: 18px; box-shadow: 0 10px 34px rgba(11, 42, 60, .06); }
.gk-pathbox h2 { margin: 0 0 1.4rem; text-align: center; }
@media (max-width: 760px) {
	.gk-path { grid-template-columns: 1fr; gap: 1.1rem; }
	.gk-path::before { left: 2.1rem; right: auto; top: 1rem; bottom: 1rem; width: 3px; height: auto; }
	.gk-path li { text-align: left; display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 .9rem; align-items: center; }
	.gk-path__n { margin: 0; grid-row: span 2; }
}

/* Меньше движения / высокий контраст: всё спокойно */
@media (prefers-reduced-motion: reduce) {
	.uzc-hero2::after, .uzc-hero2__main > *, .uzc-hero2__card, .uzc-main, .gk-p2box > h2::after { animation: none !important; }
	::view-transition-old(root), ::view-transition-new(root) { animation: none; }
	html { scroll-behavior: auto; }
	.gk-service::after { display: none; }
}
html.uzc-contrast .uzc-hero2::after { animation: none; opacity: .35; }
html.uzc-contrast .uzc-header { backdrop-filter: none; background: #fff; }
html.uzc-contrast body { background-image: none; }
@media (max-width: 900px) { .uzc-hero2::before { background: rgba(6, 26, 38, .8); } }
.uzc-section-head h2 { display: block; }
.uzc-section-head h2::after { width: 72px; height: 3px; margin-top: .45rem; border-radius: 3px; background: linear-gradient(90deg, #0099b5 0 60%, #ce1126 60% 70%, #138a3b 70% 100%); transform-origin: left; animation: uzc-grow .9s var(--uzc-ease) both; }
