/*
Theme Name: ConsalIT
Theme URI: https://consalit.com.ua
Author: Kirill Sidorov
Description: Легка тема для consalit.com.ua — перенос сайтів, редизайн, реклама. Без конструкторів і jQuery.
Version: 1.0.3
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: consalit
*/

:root {
	--ink: #0F1720;
	--ink-2: #2A3440;
	--muted: #3A4654;
	--muted-dark: #B8C2CC;
	--line: #D3D9E0;
	--line-dark: #2E3A47;
	--bg: #EEF1F4;
	--card: #FFFFFF;
	--soft: #E3E7EC;
	--accent: #FF6A2B;
	--display: 'Unbounded', system-ui, sans-serif;
	--body: 'Manrope', system-ui, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--white { background: var(--card); }
.section--dark { background: var(--ink); color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; color: var(--muted); }
.section--dark .section-head p { color: var(--muted-dark); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 320px)), 1fr)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 600; border-radius: 10px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav li { position: relative; }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 0; min-width: 240px; flex-direction: column; gap: 0; box-shadow: 0 16px 32px -16px rgba(15,23,32,.25); }
.nav .sub-menu a { display: block; padding: 8px 16px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 10px; }
.menu-toggle summary::-webkit-details-marker { display: none; }

@media (max-width: 900px) {
	.nav, .header-cta { display: none; }
	.menu-toggle { display: block; }
	.menu-toggle[open] .mobile-nav { display: block; }
	.mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); padding: 16px 24px 24px; }
	.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
	.mobile-nav a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; font-size: 17px; }
	.mobile-nav .sub-menu { padding-left: 16px; }
	.mobile-nav .sub-menu a { font-weight: 500; font-size: 15px; }
	.mobile-nav .btn { margin-top: 12px; width: 100%; }
}

/* Hero */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted); }
.hero__visual { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.browser { background: #fff; border: 1px solid #C9D0D8; border-radius: 12px; overflow: hidden; }
.browser__bar { padding: 8px 12px; display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; }
.browser--old { width: 82%; transform: rotate(-1.5deg); }
.browser--old .browser__bar { background: #DDE2E8; }
.browser--old .warn { color: #A3261A; font-weight: 500; }
.browser--old .url { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.old { padding: 14px; font-family: 'Times New Roman', serif; background: #F6F3E4; }
.old__title { background: #2B4C8C; color: #FFFF66; padding: 6px 10px; font-size: 18px; font-weight: bold; }
.old__body { display: grid; grid-template-columns: 90px 1fr; gap: 10px; margin-top: 10px; font-size: 12px; }
.old__menu { background: #C8D3E8; padding: 6px; line-height: 1.7; color: #1A2E5C; }
.old__goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.old__goods div { height: 58px; background: #D9D9D9; border: 1px solid #999; }
.old__err { font-family: var(--mono); font-size: 10px; color: #7A2A20; margin-top: 8px; }
.browser--new { align-self: flex-end; width: 86%; margin-top: -40px; border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(15,23,32,.35); }
.browser--new .browser__bar { background: #F4F6F8; border-bottom: 1px solid #E3E7EC; color: var(--muted); }
.browser--new .ok { color: #1E6B3A; font-weight: 500; }
.new { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.new__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; }
.new__nav { display: flex; gap: 6px; align-items: center; }
.new__nav i { width: 54px; height: 8px; border-radius: 4px; background: var(--line); }
.new__nav b { width: 40px; height: 22px; border-radius: 6px; background: var(--accent); }
.new__banner { height: 70px; border-radius: 10px; background: var(--ink); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.new__banner i { height: 10px; width: 60%; border-radius: 5px; background: #fff; }
.new__banner b { height: 8px; width: 35%; border-radius: 4px; background: #5F6B78; }
.new__goods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.new__goods div { display: flex; flex-direction: column; gap: 6px; }
.new__goods i { height: 56px; border-radius: 8px; background: var(--soft); }
.new__goods b { height: 6px; width: 75%; border-radius: 3px; background: #C9D0D8; }
.hero__stack { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 0 4px; }

/* Cards */
.sign { border: 1px solid var(--line-dark); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sign__num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.sign h3, .card h3 { font-family: var(--body); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.sign p { font-size: 15px; color: var(--muted-dark); }
.card { background: var(--card); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card p { font-size: 15px; color: var(--muted); }
.section--white .card { background: var(--bg); }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split__head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__head h2 { font-size: 34px; }
.split__head p { font-size: 17px; color: var(--ink-2); }
.split__body { flex: 2 1 560px; min-width: 0; --min: 240px; }

/* Services */
.service { background: var(--card); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; border: 1.5px solid transparent; transition: border-color .15s ease; }
.service:hover { border-color: var(--ink); color: var(--ink); }
.service h3 { font-family: var(--body); font-weight: 700; font-size: 19px; letter-spacing: 0; }
.service p { font-size: 15px; color: var(--muted); }
.service__more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; }
.service__tag { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Process */
.step { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ink); padding-top: 18px; }
.step:last-child { border-color: var(--accent); }
.step h3 { font-family: var(--body); font-weight: 700; font-size: 19px; letter-spacing: 0; }
.step p { font-size: 15px; color: var(--muted); }

/* Prices */
.price { background: var(--card); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.price--hot { background: var(--ink); color: #fff; }
.price__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.price__badge { background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px; }
.price__value { font-family: var(--display); font-weight: 600; font-size: 30px; }
.price ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.price--hot ul { color: var(--muted-dark); }
.price .btn { margin-top: auto; }

/* Banner */
.banner { background: var(--accent); border-radius: 20px; padding: 44px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.banner__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.banner h2 { font-size: 30px; line-height: 1.2; }
.banner p { font-size: 17px; }

/* Cases */
.case-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .15s ease; }
.case-card:hover { transform: translateY(-2px); color: var(--ink); }
.case-card__img { aspect-ratio: 16 / 9; background: var(--soft); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--muted); overflow: hidden; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.case-card__label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.case-card h3 { font-family: var(--body); font-weight: 700; font-size: 20px; letter-spacing: 0; }
.case-card p { font-size: 15px; color: var(--muted); }
.case-card__metric { display: flex; gap: 8px; align-items: baseline; font-family: var(--mono); font-size: 13px; }
.case-card__metric b { font-family: var(--display); font-size: 22px; color: var(--ink); }

/* Guarantee */
.guarantee { border: 2px solid var(--ink); border-radius: 20px; padding: 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.guarantee div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.guarantee h2 { font-size: 26px; line-height: 1.25; }
.guarantee p { font-size: 17px; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Lead form */
.cta .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cta__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta__text h2 { font-size: 38px; }
.cta__text p { font-size: 17px; color: var(--muted-dark); }
.lead-form { flex: 1 1 420px; min-width: 0; background: #fff; color: var(--ink); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lead-form input, .lead-form textarea, .lead-form select { font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px; border: 1.5px solid #C9D0D8; border-radius: 10px; min-height: 48px; width: 100%; background: #fff; color: var(--ink); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form__note { font-size: 13px; color: var(--muted); text-align: center; }
.lead-form__msg { padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.lead-form__msg--ok { background: #E3F4E8; color: #1E6B3A; }
.lead-form__msg--err { background: #FBE6E3; color: #A3261A; }

/* Footer */
.site-footer { background: var(--ink); color: #8794A1; border-top: 1px solid var(--line-dark); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: #C9D0D8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Inner pages */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); max-width: 900px; }
.page-hero p { font-size: 18px; color: var(--ink-2); margin-top: 16px; max-width: 720px; }
.breadcrumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }

.content { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.content > * + * { margin-top: 1.1em; }
.content h2 { font-size: 28px; margin-top: 1.8em; color: var(--ink); }
.content h3 { font-size: 21px; margin-top: 1.5em; color: var(--ink); font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.content ul, .content ol { padding-left: 1.3em; }
.content li + li { margin-top: .4em; }
.content img { border-radius: 12px; }
.content blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--card); border-radius: 14px; font-size: 19px; }
.content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.content th, .content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.content code { font-family: var(--mono); font-size: .88em; background: var(--soft); padding: 2px 6px; border-radius: 5px; }
.content pre { background: var(--ink); color: #E3E7EC; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.content pre code { background: none; padding: 0; }
.content a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Before / after block */
.ba { background: var(--card); border-radius: 20px; padding: 32px; margin: 0 0 48px; }
.ba__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ba__col { display: flex; flex-direction: column; gap: 14px; }
.ba__tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ba__col--after .ba__tag { color: var(--ink); }
.ba__img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); aspect-ratio: 16 / 10; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba__stack { font-family: var(--mono); font-size: 14px; }
.ba__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; }
.metric { background: var(--bg); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.metric__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.metric__vals { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.metric__from { font-family: var(--mono); font-size: 15px; color: var(--muted); text-decoration: line-through; }
.metric__to { font-family: var(--display); font-size: 26px; font-weight: 600; }
.ba__facts { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.ba__facts b { color: var(--ink); }
.review { margin-top: 48px; background: var(--ink); color: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.review p { font-size: 20px; line-height: 1.5; }
.review cite { font-style: normal; color: var(--muted-dark); font-size: 15px; }

.post-list { --min: 320px; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--card); text-decoration: none; font-weight: 600; padding: 0 12px; }
.pagination .current { background: var(--ink); color: #fff; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter a { padding: 8px 16px; border-radius: 20px; background: var(--card); text-decoration: none; font-weight: 600; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.filter a.is-active { background: var(--ink); color: #fff; }

@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.section-head h2, .split__head h2 { font-size: 27px; }
	.cta__text h2 { font-size: 30px; }
	.banner, .guarantee { padding: 28px; }
	.banner h2 { font-size: 24px; }
	.hero { padding: 44px 0 56px; }
	.hero__lead { font-size: 17px; }
	.browser--old, .browser--new { width: 100%; }
	.browser--new { margin-top: -20px; }
	.hero__stack { flex-direction: column; gap: 4px; }
	.content { font-size: 17px; }
	.ba { padding: 20px; }
}
