/* ==========================================================================
   ПВЦ Визовые страницы. Всё внутри .vp, чтобы не задевать остальной сайт.
   Палитра и формы — как у блога (pvc-blog), шрифт GothamPro из темы.
   ========================================================================== */

.vp {
	--vp-ink: #1f2330;
	--vp-text: #2a2f3b;
	--vp-muted: #5e6472;
	--vp-line: #e4e2de;
	--vp-soft: #f4f3f0;
	--vp-card: #ffffff;
	--vp-blue: #3a62d7;
	--vp-blue-dark: #2c4fb8;
	--vp-blue-soft: #e8eefc;
	--vp-accent: #c2410c;
	--vp-accent-dark: #9a3412;
	--vp-green: #1f6b45;
	--vp-green-soft: #e9f5ee;
	--vp-warn: #8a3b07;
	--vp-warn-soft: #fdf1e7;
	--vp-warn-line: #f3c9a6;
	--vp-radius: 18px;
	--vp-shadow: 0 6px 24px rgba(20, 24, 40, .07);

	color: var(--vp-text);
	padding: 8px 0 72px;
	font-size: 16px;
	line-height: 1.6;
}
.vp *, .vp *::before, .vp *::after { box-sizing: border-box; }

/* Сброс заголовков темы (.main h1/h2 задают 62/44px и большие отступы) */
.main .vp :is(h1, h2, h3, h4) { color: var(--vp-ink); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.vp a { color: inherit; text-decoration: none; }
.vp img { max-width: 100%; height: auto; }
.vp ul, .vp ol { margin: 0; padding: 0; }
.vp-nowrap { white-space: nowrap; }
.vp :focus-visible { outline: 3px solid var(--vp-blue); outline-offset: 2px; border-radius: 6px; }
.vp-ico { flex: none; }

/* ---------- Хлебные крошки ---------- */
.vp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--vp-muted); }
.vp-crumbs li { display: flex; align-items: center; gap: 6px; padding: 0; background: none; }
.vp-crumbs li::before { display: none; }
.vp-crumbs li + li::before { display: inline; content: "/"; color: #a3a7b0; position: static; width: auto; height: auto; background: none; }
.vp-crumbs a:hover { color: var(--vp-blue); }
.vp-crumbs [aria-current] { color: var(--vp-ink); font-weight: 500; }

/* ---------- Кнопки ---------- */
.vp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
	font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.vp .vp-btn--accent { background: var(--vp-accent); color: #fff; }
.vp .vp-btn--accent:hover { background: var(--vp-accent-dark); color: #fff; }
.vp .vp-btn--ghost { border-color: var(--vp-blue); color: var(--vp-blue); background: #fff; }
.vp .vp-btn--ghost:hover { background: var(--vp-blue-soft); }
.vp-btn--block { width: 100%; }

/* ---------- Первый экран ---------- */
.vp-hero {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center;
	margin: 20px 0 0; padding: 40px; border-radius: 24px;
	background: linear-gradient(135deg, #f7f6f3 0%, #eef2fb 100%);
}
.vp-hero--media { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.vp-hero__body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vp-hero__flag { width: 56px; height: 38px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.main .vp .vp-h1 { font-size: 42px; line-height: 1.14; max-width: 900px; text-wrap: balance; }
.vp-lead { max-width: 820px; font-size: 18px; line-height: 1.6; color: var(--vp-muted); }
.vp-lead p { margin: 0 0 10px; }
.vp-lead p:last-child { margin-bottom: 0; }
.vp-hero__media { margin: 0; border-radius: 18px; overflow: hidden; align-self: stretch; }
.vp-hero__media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }

.vp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 0; }
.vp-facts__item { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 0 rgba(20, 24, 40, .04); }
.vp-facts dt { font-size: 13px; color: var(--vp-muted); margin: 0 0 4px; font-weight: 500; }
.vp-facts dd { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--vp-ink); }

.vp-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.vp-checked {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
	color: var(--vp-green); background: var(--vp-green-soft);
}

/* ---------- Сетка: текст + боковая колонка ---------- */
.vp-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; margin-top: 44px; }
.vp-article { flex: 999 1 560px; min-width: 0; }
.vp-aside { flex: 1 1 290px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1025px) { .vp-aside { position: sticky; top: 100px; } }

/* ---------- Текст ---------- */
.vp-content { font-size: 17px; line-height: 1.75; color: var(--vp-text); }
.vp-content > * { margin-top: 0; margin-bottom: 20px; }
.main .vp .vp-content h2 { font-size: 30px; line-height: 1.25; margin: 48px 0 16px; scroll-margin-top: 100px; text-wrap: balance; }
.main .vp .vp-content > h2:first-child { margin-top: 0; }
.main .vp .vp-content h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 10px; scroll-margin-top: 100px; }
.vp-content p { margin: 0 0 18px; }
.vp-content a { color: var(--vp-blue); text-decoration: underline; text-underline-offset: 2px; }
.vp-content a:hover { color: var(--vp-blue-dark); }
.vp-content strong, .vp-content b { color: var(--vp-ink); font-weight: 600; }

.vp-content ul, .vp-content ol { padding-left: 24px; }
.vp-content ul { list-style: disc; }
.vp-content ol { list-style: decimal; }
.vp-content li { margin-bottom: 10px; padding-left: 4px; background: none; }
.vp-content li::before { display: none; }
.vp-content li::marker { color: var(--vp-blue); }

/* Пошаговая инструкция: номера в кружках */
.vp-content ol.vp-steps { list-style: none; padding: 0; counter-reset: vpstep; display: flex; flex-direction: column; gap: 12px; }
.vp-content .vp-steps > li {
	counter-increment: vpstep; position: relative; margin: 0;
	padding: 18px 20px 18px 72px; border-radius: 16px; background: var(--vp-soft); line-height: 1.65;
}
.vp-content .vp-steps > li::before {
	content: counter(vpstep); display: flex; align-items: center; justify-content: center;
	position: absolute; left: 20px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
	background: var(--vp-blue); color: #fff; font-weight: 700; font-size: 16px; line-height: 1;
}
.vp-content .vp-steps > li > strong:first-child { display: block; margin-bottom: 2px; font-size: 17px; }

/* Таблицы: на телефоне прокрутка внутри блока */
.vp-table { overflow-x: auto; border: 1px solid var(--vp-line); border-radius: 14px; -webkit-overflow-scrolling: touch; background: #fff; }
.vp-content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; border: 0; }
.vp-content th, .vp-content td { padding: 13px 18px; text-align: left; vertical-align: top; border: 0; border-top: 1px solid var(--vp-line); }
.vp-content thead th { background: var(--vp-soft); font-weight: 600; color: var(--vp-ink); border-top: 0; }
.vp-content tbody td:first-child { font-weight: 500; color: var(--vp-ink); width: 42%; }

/* Плашка «Срочно» и другие выделения */
.vp-callout {
	position: relative; padding: 22px 24px 22px 64px; border-radius: 16px;
	background: var(--vp-warn-soft); border: 1px solid var(--vp-warn-line); color: #4a2408;
}
.vp-callout::before {
	content: "!"; position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%;
	background: var(--vp-accent); color: #fff; font-weight: 800; font-size: 17px; line-height: 30px; text-align: center;
}
.main .vp .vp-content .vp-callout__title { margin: 0 0 8px; font-size: 20px; color: var(--vp-warn); }
.vp-callout p:last-child { margin-bottom: 0; }
.vp-callout--info { background: var(--vp-blue-soft); border-color: #c9d6f6; color: #1c2b55; }
.vp-callout--info::before { content: "i"; background: var(--vp-blue); }

/* Призыв внутри текста */
.vp-cta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 32px 0;
	padding: 28px; border-radius: var(--vp-radius); background: var(--vp-ink); color: #d4d6dc;
}
.vp-cta__text { flex: 1 1 320px; font-size: 16px; line-height: 1.55; }
.vp-cta__text p { margin: 0; }
.vp-content .vp-cta strong { color: #fff; display: block; font-size: 19px; margin-bottom: 4px; }
.vp-content .vp-cta a.vp-btn { text-decoration: none; color: #fff; }

/* ---------- Калькулятор ---------- */
.vp-calc { background: #fff; border: 1px solid var(--vp-line); border-radius: var(--vp-radius); padding: 26px; box-shadow: var(--vp-shadow); }
.vp-calc__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.vp .vp-calc__head p { margin: 0; }
.vp-calc__ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--vp-blue-soft); color: var(--vp-blue); }
.vp-calc__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--vp-ink); }
.vp-calc__inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.vp-calc__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--vp-muted); }
.vp-stepper { display: inline-flex; align-items: stretch; border: 1px solid #d6d4cf; border-radius: 12px; overflow: hidden; background: #fff; width: max-content; }
.vp-stepper button { width: 44px; min-height: 44px; border: 0; background: var(--vp-soft); color: var(--vp-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.vp-stepper button:hover { background: #e9e7e2; }
.vp-stepper input {
	width: 56px; border: 0; text-align: center; font: inherit; font-size: 17px; font-weight: 700; color: var(--vp-ink);
	-moz-appearance: textfield; appearance: textfield; background: #fff;
}
.vp-stepper input::-webkit-inner-spin-button, .vp-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.vp-calc__opt { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: 15px; cursor: pointer; }
.vp-calc__opt input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--vp-blue); flex: none; }
.vp-content .vp-calc__table { min-width: 0; margin-top: 6px; }
.vp-content .vp-calc__table th, .vp-content .vp-calc__table td { padding: 10px 0; border-top: 1px dashed var(--vp-line); font-weight: 400; }
.vp-content .vp-calc__table tbody tr:first-child > * { border-top: 0; }
.vp-content .vp-calc__table td { text-align: right; white-space: nowrap; color: var(--vp-ink); width: auto; }
.vp-content .vp-calc__table tfoot th, .vp-content .vp-calc__table tfoot td { border-top: 2px solid var(--vp-ink); padding-top: 14px; font-weight: 700; font-size: 18px; color: var(--vp-ink); }
.vp-calc__note { margin: 12px 0 0 !important; font-size: 14px; line-height: 1.5; color: var(--vp-muted); }
.vp-calc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--vp-line); }
.vp-calc__service { margin: 0 !important; font-size: 15px; }
.vp-content .vp-calc a.vp-btn { text-decoration: none; }

/* ---------- FAQ ---------- */
.vp-faq { margin-top: 56px; }
.main .vp .vp-faq h2 { font-size: 30px; margin-bottom: 18px; scroll-margin-top: 100px; }
.vp-faq__item { background: #fff; border: 1px solid var(--vp-line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.vp-faq__item summary {
	list-style: none; cursor: pointer; min-height: 60px; padding: 16px 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--vp-ink);
}
.vp-faq__item summary::-webkit-details-marker { display: none; }
.vp-faq__item summary:hover { color: var(--vp-blue); }
.vp-faq__sign { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--vp-soft); }
.vp-faq__sign::before, .vp-faq__sign::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
	background: var(--vp-ink); border-radius: 2px; transition: transform .2s;
}
.vp-faq__sign::after { transform: rotate(90deg); }
.vp-faq__item[open] .vp-faq__sign::after { transform: rotate(0); }
.vp-faq__answer { padding: 0 20px 18px; font-size: 16px; line-height: 1.65; color: #3d4250; }
.vp-faq__answer p { margin: 0 0 10px; }
.vp-faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Боковая колонка ---------- */
.vp-toc, .vp-service, .vp-related { background: #fff; border-radius: var(--vp-radius); padding: 24px; box-shadow: var(--vp-shadow); }
.vp-toc__title { margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vp-muted); }
.vp-toc ol { padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.vp-toc li, .vp-related li { padding: 0; background: none; }
.vp-toc li::before, .vp-related li::before { display: none; }
.vp-toc li::marker { color: var(--vp-muted); }
.vp-toc a { color: var(--vp-blue); }
.vp-toc a:hover, .vp-toc a.is-active { text-decoration: underline; }
.vp-toc a.is-active { color: var(--vp-ink); font-weight: 600; }

.vp-service { display: flex; flex-direction: column; gap: 16px; }
.vp-service__head { display: flex; align-items: center; gap: 12px; }
.vp-service__head img { width: 40px; height: 28px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.vp-service__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--vp-ink); }
.vp-service__facts { margin: 0; }
.vp-service__facts dt { font-size: 13px; color: var(--vp-muted); }
.vp-service__facts dd { margin: 0; }
.vp-service__big { font-size: 24px; font-weight: 700; color: var(--vp-ink); }
.vp-service__phone { text-align: center; font-size: 14px; font-weight: 600; color: var(--vp-blue) !important; }
.vp-service__phone:hover { text-decoration: underline; }

.vp-related ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.vp-related a { color: var(--vp-blue); }
.vp-related a:hover { text-decoration: underline; }

/* ---------- Заявка ---------- */
.vp-order {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start;
	margin-top: 64px; padding: 44px; border-radius: 24px; background: var(--vp-ink); color: #d4d6dc;
	scroll-margin-top: 90px;
}
.main .vp .vp-order .vp-h2 { color: #fff; font-size: 32px; line-height: 1.2; margin-bottom: 14px; text-wrap: balance; }
.vp-order__lead { font-size: 17px; line-height: 1.6; }
.vp-order__lead p { margin: 0 0 12px; }
.vp-order__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0 !important; font-size: 16px; color: #fff; }
.vp-order__list li { display: flex; align-items: flex-start; gap: 10px; padding: 0; background: none; }
.vp-order__list li::before { display: none; }
.vp-order__list .vp-ico { color: #8fd3ad; margin-top: 3px; }
.vp-order__note { margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: #a9adb8; }
.vp-order__form { background: #fff; border-radius: 18px; padding: 28px; color: var(--vp-text); }

/* Форма шага 1 мастера — поля и классы темы, подстраиваем под карточку */
.vp .vp-form .main-form { padding: 0; background: none; }
.vp .vp-form .main-form label { font-size: 14px; font-weight: 500; color: var(--vp-muted); padding-bottom: 6px; }
.vp .vp-form .main-form .text-field { height: 50px; margin: 0 0 16px; border: 1px solid #d6d4cf; border-radius: 12px; font-size: 16px; background: #fff; }
.vp .vp-form .main-form .text-field:focus { border-color: var(--vp-blue); outline: none; box-shadow: 0 0 0 3px var(--vp-blue-soft); }
.vp .vp-form .main-form .text-field.last { margin-bottom: 8px; }
.vp-form__hint { margin: 0 0 18px; font-size: 13px; line-height: 1.45; color: var(--vp-muted); }
.vp .vp-form .vp-form__submit {
	display: block; width: 100%; min-height: 54px; margin: 12px 0 0; padding: 0 24px;
	border: 0; border-radius: 999px; background: var(--vp-accent); color: #fff;
	font-size: 17px; font-weight: 600; line-height: 1.2; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.vp .vp-form .vp-form__submit:hover { background: var(--vp-accent-dark); }
.vp .vp-form .status { display: none; margin-top: 14px; font-size: 14px; color: var(--vp-accent-dark); }

/* ---------- Статьи блога ---------- */
.vp-blog { margin-top: 64px; }
.vp-blog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.main .vp .vp-blog .vp-h2 { font-size: 28px; }
.vp-more { display: inline-flex; align-items: center; gap: 6px; color: var(--vp-blue) !important; font-weight: 600; font-size: 15px; }
.vp-more:hover { text-decoration: underline; }
.vp-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.vp-blog__card { display: flex; flex-direction: column; background: #fff; border-radius: var(--vp-radius); overflow: hidden; box-shadow: var(--vp-shadow); transition: transform .2s, box-shadow .2s; }
.vp-blog__card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20, 24, 40, .11); }
.vp-blog__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.vp-blog__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-blog__title { padding: 18px 22px 22px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--vp-ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
	.main .vp .vp-h1 { font-size: 34px; }
	.vp-hero, .vp-hero--media { grid-template-columns: 1fr; padding: 32px; }
	.vp-hero__media img { min-height: 0; aspect-ratio: 16 / 9; }
	.vp-order { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 767px) {
	.vp { padding-bottom: 48px; }
	.vp-hero, .vp-hero--media { padding: 22px 18px; border-radius: 18px; margin-top: 14px; }
	.main .vp .vp-h1 { font-size: 27px; line-height: 1.2; }
	.vp-lead { font-size: 16px; }
	.vp-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
	.vp-facts__item { padding: 12px; }
	.vp-facts dd { font-size: 16px; }
	.vp-hero__actions .vp-btn { width: 100%; }
	.vp-layout { gap: 32px; margin-top: 28px; }
	.vp-content { font-size: 16px; }
	.main .vp .vp-content h2, .main .vp .vp-faq h2 { font-size: 23px; margin-top: 36px; }
	.main .vp .vp-content h3 { font-size: 19px; }
	.vp-content table { min-width: 0; font-size: 14px; }
	.vp-content th, .vp-content td { padding: 10px 12px; }
	.vp-content tbody td:first-child { width: auto; }
	.vp-content .vp-steps > li { padding: 16px 16px 16px 60px; }
	.vp-content .vp-steps > li::before { left: 14px; width: 32px; height: 32px; font-size: 15px; }
	.vp-callout { padding: 18px; }
	.vp-callout::before { position: static; display: block; margin-bottom: 10px; }
	.vp-cta, .vp-calc, .vp-toc, .vp-service, .vp-related { padding: 20px; }
	.vp-calc__foot .vp-btn { width: 100%; }
	.vp-order { padding: 22px 18px; margin-top: 44px; border-radius: 18px; }
	.main .vp .vp-order .vp-h2 { font-size: 24px; }
	.vp-order__form { padding: 20px; }
	.vp-blog { margin-top: 44px; }
	.vp-blog__grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.vp-blog__card, .vp-faq__sign::after { transition: none; }
	.vp-blog__card:hover { transform: none; }
}
