/*
Theme Name: Crewly
Description: Українська тема для каталогу вакансій, послуг і агенцій із відкритим пошуком та модерацією оголошень.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crewly
*/

@font-face {
	font-family: Manrope;
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/manrope-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
	font-family: Manrope;
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: Manrope;
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: Manrope;
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--cw-blue: #00b0ef;
	--cw-strong: #006e96;
	--cw-ink: #10283b;
	--cw-muted: #516678;
	--cw-soft: #e9f8fc;
	--cw-line: #dfe9ef;
	--cw-bg: #f6f9fb;
	--cw-white: #fff;
	--cw-radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--cw-bg); color: var(--cw-ink); font: 500 1rem/1.58 Manrope, system-ui, sans-serif; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--cw-strong); outline-offset: 3px; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.18; overflow-wrap: anywhere; }
.cw-icon { width: 20px; height: 20px; flex-shrink: 0; }
.cw-wrap { width: min(1224px, calc(100% - 96px)); margin-inline: auto; }
.screen-reader-text {
	position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px;
	padding: 0; border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap;
}
.cw-skip:focus {
	z-index: 20; top: 9px; left: 10px; width: auto; height: auto; padding: 9px 14px;
	background: var(--cw-white); color: var(--cw-strong); clip: auto; clip-path: none;
}

.cw-header { background: var(--cw-white); border-bottom: 1px solid var(--cw-line); }
.cw-header__inner {
	min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr;
	align-items: center; gap: 25px;
}
.cw-brand, .custom-logo-link { justify-self: start; }
.cw-brand {
	display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-width: 0;
	font-size: 1.58rem; font-weight: 800; line-height: 1.08; letter-spacing: -.067em;
}
.cw-brand > span:last-child { overflow-wrap: anywhere; }
.cw-brand__mark {
	display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px;
	background: var(--cw-blue); color: #062436; border-radius: 11px;
}
.cw-brand__mark .cw-icon { width: 22px; height: 22px; }
.cw-brand__dot { color: var(--cw-strong); }
.custom-logo { max-width: min(175px, 100%); max-height: 54px; object-fit: contain; }
.cw-nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 25px; padding: 0; list-style: none; }
.cw-nav-list a { display: inline-block; padding-block: 9px; font-size: .91rem; font-weight: 750; color: var(--cw-muted); }
.cw-nav-list a:hover, .cw-nav-list a[aria-current="page"], .cw-nav-list .current-menu-item a { color: var(--cw-strong); }
.cw-header__post { justify-self: end; }
.cw-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
	padding: 11px 17px; border: 1px solid transparent; border-radius: 11px; background: var(--cw-blue);
	color: var(--cw-white); font-size: .91rem; font-weight: 800; line-height: 1.3; text-align: center;
	transition: background-color .15s, box-shadow .15s;
}
.cw-button:hover { background: #1ec6fb; box-shadow: 0 3px 11px #006e961f; }
.cw-button .cw-icon { width: 17px; height: 17px; }
.cw-menu-toggle {
	display: none; width: 42px; height: 42px; place-items: center; padding: 0;
	border: 1px solid var(--cw-line); border-radius: 10px; background: var(--cw-white);
}
.cw-text-link { width: fit-content; color: var(--cw-strong); font-size: .92rem; font-weight: 800; }
.cw-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.cw-home { padding-block: 28px 66px; }
.cw-hero {
	position: relative; isolation: isolate; overflow: hidden; min-height: 418px;
	border: 1px solid #ccecf5; border-radius: 26px; background: #e5f7fc;
}
.cw-hero__media { position: absolute; inset: 0 0 0 43%; z-index: -1; }
.cw-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.cw-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, #e5f7fc, #e5f7fcdd 12%, #e5f7fc55 29%, transparent 50%);
}
.cw-hero__content { position: relative; padding: 43px 47px 40px; width: min(665px, 59%); }
.cw-hero__label {
	display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 10px;
	margin-bottom: 17px; border: 1px solid #b6e5f4; border-radius: 100px; background: #ffffffa3;
	color: var(--cw-strong); font-size: .83rem; font-weight: 800;
}
.cw-hero__label .cw-icon { width: 15px; height: 15px; }
.cw-hero h1 { font-size: clamp(2.5rem, 4.65vw, 3.95rem); line-height: 1.04; letter-spacing: -.073em; }
.cw-hero h1 span { display: block; margin-top: 4px; color: var(--cw-strong); }
.cw-hero p { max-width: 465px; margin: 19px 0 23px; color: #354f61; font-size: 1.03rem; }
.cw-hero__details {
	margin-top: 17px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px;
	list-style: none; color: #375669; font-size: .87rem; font-weight: 750;
}
.cw-hero__details li { display: inline-flex; align-items: center; gap: 5px; }
.cw-hero__details .cw-icon { width: 15px; height: 15px; color: var(--cw-strong); }

.cw-search { display: grid; align-items: center; min-width: 0; }
.cw-search--hero {
	grid-template-columns: minmax(0, 1fr) minmax(133px, .73fr) auto; gap: 2px;
	padding: 5px; border: 1px solid #d5eaf4; border-radius: 14px;
	background: var(--cw-white); box-shadow: 0 8px 24px #1b627917;
}
.cw-search__field { display: flex; align-items: center; min-width: 0; position: relative; }
.cw-search__keyword > .cw-icon { margin-inline-start: 12px; color: var(--cw-strong); }
.cw-search input, .cw-search select {
	min-width: 0; width: 100%; height: 43px; padding: 5px 11px; border: 0;
	background: transparent; font-size: .88rem; font-weight: 750; text-overflow: ellipsis;
}
.cw-search input::placeholder { color: var(--cw-muted); opacity: 1; }
.cw-select { position: relative; display: block; min-width: 0; }
.cw-select select { appearance: none; padding-right: 29px; }
.cw-select .cw-icon {
	position: absolute; top: 50%; right: 8px; width: 16px; height: 16px;
	color: var(--cw-muted); transform: translateY(-50%); pointer-events: none;
}
.cw-search--hero .cw-select { border-inline-start: 1px solid var(--cw-line); }
.cw-search--hero .cw-button { padding-inline: 14px; white-space: nowrap; }
.cw-search--catalog {
	grid-template-columns: minmax(200px, 1.55fr) repeat(2, minmax(135px, .85fr)) auto;
	gap: 8px; padding: 8px; background: var(--cw-white); border: 1px solid var(--cw-line);
	border-radius: 14px;
}
.cw-search--has-format { grid-template-columns: minmax(200px, 1.55fr) repeat(3, minmax(135px, .85fr)) auto; }
.cw-search--catalog .cw-search__field { border: 1px solid var(--cw-line); border-radius: 9px; background: #fbfdff; }

.cw-section { margin-top: 39px; }
.cw-section__heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 6px 17px; margin-bottom: 17px; }
.cw-section__heading h2, .cw-cta h2 { font-size: clamp(1.48rem, 2.8vw, 2.02rem); letter-spacing: -.053em; }
.cw-section__heading p { margin-top: 4px; color: var(--cw-muted); font-size: .92rem; }
.cw-section__heading > a { margin-bottom: 2px; }
.cw-categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cw-category {
	display: flex; min-width: 0; min-height: 116px; flex-direction: column; justify-content: space-between; gap: 12px;
	padding: 14px; border: 1px solid var(--cw-line); border-radius: 15px; background: var(--cw-white);
	transition: border-color .15s, background-color .15s;
}
.cw-category:hover { border-color: #69c9e9; background: #fbfeff; }
.cw-category__icon, .cw-card__icon {
	display: inline-grid; place-items: center; flex-shrink: 0; width: 41px; height: 41px; border-radius: 11px;
}
.cw-category__name { display: block; line-height: 1.3; font-size: .92rem; font-weight: 800; overflow-wrap: anywhere; }
.cw-tone-blue { background: #e1f5ff; color: #0076a7; }
.cw-tone-pink { background: #fcecf4; color: #a73370; }
.cw-tone-violet { background: #efecff; color: #6143bf; }
.cw-tone-green { background: #e2f7f0; color: #17775f; }
.cw-tone-orange { background: #fff0e4; color: #aa5021; }
.cw-tone-sky { background: #e6f4fe; color: #1b6caa; }

.cw-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cw-card {
	position: relative; min-width: 0; padding: 16px 17px 13px; border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius); background: var(--cw-white); transition: border-color .15s, box-shadow .15s;
}
.cw-card:hover, .cw-card:focus-within { border-color: #9bdaf0; box-shadow: 0 5px 15px #1438490a; }
.cw-card__top { display: flex; align-items: flex-start; gap: 11px; }
.cw-card__name { flex: 1; min-width: 0; }
.cw-card__name h3 { margin-top: 1px; font-size: 1.03rem; }
.cw-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--cw-radius); }
.cw-card__name a:focus-visible { outline: 0; }
.cw-card__name a:focus-visible::after { outline: 3px solid var(--cw-strong); outline-offset: 2px; }
.cw-card__name a:hover { color: var(--cw-strong); }
.cw-card__name p { margin-top: 4px; color: var(--cw-muted); font-size: .87rem; overflow-wrap: anywhere; }
.cw-card__icon { width: 44px; height: 44px; overflow: hidden; }
.cw-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.cw-card__date { padding-top: 2px; text-align: right; color: var(--cw-muted); font-size: .79rem; font-weight: 700; }
.cw-card__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #edf2f5; }
.cw-tags { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; gap: 5px; }
.cw-tag {
	display: inline-flex; padding: 4px 8px; border-radius: 6px; background: #eef5fa; color: #344e67;
	font-size: .79rem; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere;
}
a.cw-tag:hover { color: var(--cw-strong); text-decoration: underline; }
.cw-tag--format { background: #e6f7f1; color: #22624e; }
.cw-demo { color: #626d77; font-size: .77rem; }
.cw-pay { color: var(--cw-strong); font-size: .94rem; font-weight: 800; overflow-wrap: anywhere; }

.cw-discover { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cw-discover__card { position: relative; padding: 25px; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: var(--cw-white); }
.cw-discover__card:hover { border-color: #9bdaf0; }
.cw-discover__card h2 { margin: 12px 0 6px; font-size: 1.33rem; }
.cw-discover__card a::after { content: ""; position: absolute; inset: 0; border-radius: var(--cw-radius); }
.cw-discover__card p { color: var(--cw-muted); }
.cw-cta {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
	padding: 29px 34px; border: 1px solid #cde6f0; border-radius: var(--cw-radius);
	background: linear-gradient(120deg, #e9f9fd, #dff4fc);
}
.cw-cta p { margin-top: 6px; color: var(--cw-muted); }

.cw-inner { min-height: 62vh; padding-block: 25px 68px; }
.cw-crumb { display: flex; flex-wrap: wrap; gap: 3px 9px; align-items: center; margin-bottom: 19px; color: var(--cw-muted); font-size: .88rem; overflow-wrap: anywhere; }
.cw-crumb a { color: var(--cw-strong); font-weight: 750; }
.cw-crumb a:hover { text-decoration: underline; }
.cw-page-heading, .cw-detail-head {
	padding: 25px 28px; margin-bottom: 19px; border: 1px solid #d3eaf2; border-radius: var(--cw-radius);
	background: linear-gradient(115deg, #ebf9fd, #e1f4fb);
}
.cw-page-heading h1, .cw-detail-head h1 { margin-top: 8px; font-size: clamp(2rem, 4.7vw, 3.45rem); letter-spacing: -.064em; }
.cw-page-heading p { margin-top: 7px; color: var(--cw-muted); }
.cw-page-heading > .cw-category__icon, .cw-detail-head > .cw-category__icon { background: #fff; }
.cw-results { margin-top: 31px; }
.cw-empty {
	display: grid; justify-items: center; gap: 8px; padding: 37px 16px; border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius); background: var(--cw-white); text-align: center;
}
.cw-empty h3 { font-size: 1.21rem; }
.cw-empty p { color: var(--cw-muted); }
.cw-empty h1 { margin-bottom: 9px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 18px; }
.page-numbers {
	display: inline-grid; min-width: 40px; min-height: 40px; padding: 5px 9px; place-items: center; border: 1px solid var(--cw-line);
	border-radius: 9px; background: var(--cw-white); color: var(--cw-strong); font-weight: 800;
}
.page-numbers.current { background: var(--cw-blue); color: var(--cw-ink); }

.cw-detail-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; margin-top: 9px; color: var(--cw-muted); font-size: .93rem; }
.cw-detail-by time { display: inline-flex; align-items: center; gap: 5px; }
.cw-detail-by .cw-icon { width: 15px; height: 15px; }
.cw-detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); align-items: start; gap: 15px; }
.cw-surface { min-width: 0; padding: 25px; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: var(--cw-white); }
.cw-prose { line-height: 1.72; overflow-wrap: anywhere; }
.cw-prose h2, .cw-summary h2 { font-size: 1.28rem; letter-spacing: -.025em; }
.cw-prose > * + * { margin-top: 13px; }
.cw-prose a { color: var(--cw-strong); text-decoration: underline; text-underline-offset: 3px; }
.cw-prose p, .cw-prose li { color: #3d5668; }
.cw-prose table { display: block; max-width: 100%; overflow: auto; }
.cw-listing-image { display: block; max-height: 440px; width: 100%; object-fit: cover; border-radius: 12px; }
.cw-summary .cw-tags, .cw-summary .cw-help, .cw-summary .cw-button { margin-top: 14px; }
.cw-summary .cw-tags:empty { display: none; }
.cw-summary__price { margin-top: 6px; font-size: 1.23rem; font-weight: 800; color: var(--cw-strong); }
.cw-post-preview + .cw-post-preview { margin-top: 12px; }

.cw-form { max-width: 790px; }
.cw-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.cw-field { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: .91rem; font-weight: 800; }
.cw-field--wide { grid-column: 1 / -1; }
.cw-field input, .cw-field select, .cw-field textarea, .post-password-form input:not([type="submit"]) {
	width: 100%; min-height: 43px; padding: 7px 10px; border: 1px solid #cddce4; border-radius: 8px;
	background: #fbfdff; font-weight: 650; caret-color: var(--cw-strong);
}
.cw-field select { padding-right: 28px; }
.cw-field textarea { min-height: 110px; resize: vertical; }
.cw-form .cw-button { margin-top: 15px; }
.cw-help { margin-top: 8px; font-size: .88rem; color: var(--cw-muted); }
.cw-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cw-alert { margin-bottom: 17px; padding: 11px 13px; border: 1px solid #f1c1c5; border-radius: 10px; background: #fff3f4; color: #892337; }
.cw-alert ul { padding-inline-start: 20px; }
.cw-success h2 { margin-block: 9px 4px; }
.cw-success p { color: var(--cw-muted); }

.cw-footer { padding-block: 30px 18px; border-top: 1px solid var(--cw-line); background: var(--cw-white); }
.cw-footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px 30px; padding-bottom: 21px; }
.cw-footer__top p { margin-top: 8px; color: var(--cw-muted); font-size: .9rem; }
.cw-footer__end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; border-top: 1px solid var(--cw-line); padding-top: 14px; color: var(--cw-muted); font-size: .85rem; }
.cw-footer__end a:hover { color: var(--cw-strong); text-decoration: underline; }

@media (max-width: 1100px) {
	.cw-wrap { width: calc(100% - 64px); }
	.cw-hero__content { width: min(630px, 66%); padding-inline: 31px; }
	.cw-hero__media { left: 42%; }
}
@media (max-width: 900px) {
	.cw-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cw-category { min-height: 104px; }
	.cw-header__inner { gap: 14px; }
	.cw-nav-list { gap: 5px 13px; }
}
@media (max-width: 760px) {
	.cw-wrap { width: calc(100% - 36px); }
	.cw-header__inner { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 64px; gap: 8px; }
	.cw-header__post { grid-area: 1 / 2; padding-inline: 9px; min-height: 41px; font-size: .79rem; gap: 4px; }
	.cw-header__post .cw-icon { width: 14px; height: 14px; }
	.cw-menu-toggle { display: grid; grid-area: 1 / 3; width: 38px; height: 40px; }
	.cw-navigation { grid-area: 2 / 1 / 3 / -1; padding: 2px 0 9px; }
	.cw-navigation--collapsible:not(.cw-navigation--open) { display: none; }
	.cw-navigation .cw-nav-list { gap: 2px 15px; }
	.cw-home { padding-block: 16px 42px; }
	.cw-hero { min-height: 0; border-radius: 20px; }
	.cw-hero__content { width: min(100%, 540px); padding: 26px 23px 179px; }
	.cw-hero h1 { font-size: clamp(2.12rem, 7.1vw, 3.3rem); }
	.cw-hero p { font-size: .96rem; margin-block: 13px 16px; }
	.cw-hero__media { inset: auto 0 0 0; height: 164px; }
	.cw-hero__media img { object-position: center 15%; }
	.cw-hero__media::after { background: linear-gradient(180deg, #e5f7fc, #e5f7fc66 14%, transparent 36%); }
	.cw-hero__details { margin-top: 10px; gap: 4px 12px; font-size: .81rem; }
	.cw-section { margin-top: 29px; }
	.cw-section__heading { margin-bottom: 12px; }
	.cw-card { padding-inline: 13px; }
	.cw-search--catalog,
	.cw-search--has-format { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cw-search--catalog .cw-search__keyword { grid-column: 1 / -1; }
	.cw-detail-layout { grid-template-columns: 1fr; }
	.cw-inner { padding-block: 17px 42px; }
	.cw-cta { padding: 22px; }
}
@media (max-width: 490px) {
	.cw-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.cw-category { min-height: 95px; padding: 10px; }
	.cw-card-grid, .cw-discover, .cw-form__grid { grid-template-columns: 1fr; }
	.cw-brand { font-size: 1.33rem; gap: 6px; }
	.cw-brand__mark { width: 31px; height: 31px; border-radius: 8px; }
	.cw-brand__mark .cw-icon { width: 18px; height: 18px; }
	.cw-hero__content { padding-inline: 16px; }
	.cw-hero__label { margin-bottom: 12px; }
	.cw-search--hero { grid-template-columns: minmax(0, 1fr) auto; }
	.cw-search--hero .cw-search__keyword { grid-column: 1 / -1; border-bottom: 1px solid var(--cw-line); }
	.cw-search--hero .cw-select { border-inline-start: 0; }
	.cw-search--hero .cw-button { min-height: 41px; padding-inline: 9px; }
	.cw-surface, .cw-page-heading, .cw-detail-head { padding: 17px; }
	.cw-footer__top { gap: 8px; }
}
@media (max-width: 355px) {
	.cw-wrap { width: calc(100% - 24px); }
	.cw-header__post { max-width: 127px; }
	.cw-header__post .cw-icon { display: none; }
	.cw-hero__details { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
