/* =========================================================
   MeiYaMei Avada Corp — data-driven design system
   ========================================================= */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--body-font), "Helvetica Neue", Arial, sans-serif;
	font-size: var(--body-size, 18px);
	font-weight: var(--body-weight, 400);
	line-height: 1.62;
	color: var(--body);
	background: var(--bg);
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .25s, opacity .25s; }
a:hover { opacity: .82; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1em; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-family: var(--head-font), "Helvetica Neue", Arial, sans-serif;
	font-weight: var(--head-weight, 600);
	line-height: 1.18;
	color: var(--ink);
	letter-spacing: -.01em;
}

h1 { font-size: clamp(36px, 4.4vw, 58px); }
h2 { font-size: clamp(28px, 3.1vw, 42px); }
h3 { font-size: clamp(20px, 1.7vw, 24px); }
h4 { font-size: 18px; }

body.ac-cap-1 h1,
body.ac-cap-1 h2,
body.ac-cap-1 h3 { text-transform: capitalize; }

.container { width: 100%; max-width: var(--container, 1280px); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm, 820px); }

.eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brand);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	font-family: var(--head-font), Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--brand);
	border: 2px solid var(--brand);
	border-radius: var(--radius, 4px);
	cursor: pointer;
	transition: all .25s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; opacity: 1; }
.btn--sm { padding: 11px 22px; font-size: 13px; }
.btn--wide { width: 100%; }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--head-font), Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}
.link-more svg { width: 15px; height: 15px; transition: transform .3s; }
.link-more:hover svg { transform: translateX(5px); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; padding: 8px 14px; background: #fff; }

/* ---------- topbar ---------- */

.topbar {
	background: var(--dark);
	color: rgba(255,255,255,.8);
	font-size: 13px;
}
.topbar-in { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 38px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; }

/* ---------- header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.site-header__in {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--header-h, 78px);
}
.brand img { height: var(--logo-h, 38px); width: auto; max-width: none; }

.mainnav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.mainnav__list { display: flex; gap: 26px; }
.mainnav__item > a { display: block; padding: 10px 0; color: var(--ink); font-size: 16px; font-weight: 500; }
.mainnav__item > a:hover,
.mainnav__item.is-current > a { color: var(--brand); }
.header-cta { padding: 12px 24px; font-size: 14px; }

.site-header--dark { background: var(--dark); border-color: rgba(255,255,255,.12); }
.site-header--dark .mainnav__item > a { color: #fff; }
.site-header--dark .mainnav__item > a:hover { color: var(--brand); }
.site-header--dark .nav-toggle { border-color: rgba(255,255,255,.4); }
.site-header--dark .nav-toggle span { background: #fff; }

.drawer-top { display: none; }

.nav-toggle {
	display: none;
	position: relative;
	z-index: 95;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius, 4px);
	cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: all .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 55;
	background: rgba(8, 14, 24, .5);
	opacity: 0;
	visibility: hidden;
	transition: all .3s;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

/* ---------- sections base ---------- */

section { position: relative; }
.site-main > section { padding: var(--sec-pad, 96px) 0; }
.site-main > section.hero,
.site-main > section.page-hero,
.site-main > section.band-img,
.site-main > section.banners { padding: 0; }

.sec-head { max-width: 760px; margin: 0 auto 52px; }
.sec-head--left { margin-left: 0; text-align: left; }
.sec-head--center { text-align: center; }
.sec-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
	margin-bottom: 40px;
}
.sec-head p.sec-text,
.sec-text { color: var(--body); }
.sec-btn { margin-top: 26px; }

/* ---------- hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 620px;
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}
.hero-veil { position: absolute; inset: 0; }
.hero-in { position: relative; z-index: 2; padding: 110px 24px; }
.hero-in h1 { color: #fff; font-weight: var(--hero-weight, 600); max-width: 800px; margin-bottom: .35em; }
.hero-text { max-width: 620px; color: rgba(255,255,255,.88); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero--center .hero-in { text-align: center; }
.hero--center .hero-in h1,
.hero--center .hero-text { margin-left: auto; margin-right: auto; }
.hero--center .hero-actions { justify-content: center; }
.hero--top { align-items: flex-start; }
.hero--top .hero-in { padding-top: 96px; padding-bottom: 150px; }
.hero--light { color: var(--ink); }
.hero--light .hero-in h1 { color: var(--ink); }
.hero--light .hero-text { color: var(--body); }
.hero--light .hero-actions .btn--ghost { border-color: var(--ink); color: var(--ink); }
.hero--light .hero-actions .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 640px) {
	.hero:not(.hero--light):not(.hero--split)::after {
		content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .24);
	}
}

/* split hero: copy left, contained photo right (matches Avada image-element banners) */
.hero--split { background: var(--bg); color: var(--ink); overflow: visible; }
.hero-split-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 72px 24px; }
.hero-copy h1 { color: var(--ink); }
.hero--split .hero-text { color: var(--body); }
.hero--split .hero-actions .btn--ghost { border-color: var(--ink); color: var(--ink); }
.hero--split .hero-actions .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero-media { display: flex; justify-content: flex-end; }
.hero-media img { width: 100%; height: auto; max-height: 600px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) {
	.hero-split-in { grid-template-columns: 1fr; gap: 34px; }
	.hero-media { justify-content: stretch; }
	.hero-media img { max-height: 420px; }
}

/* ---------- page hero ---------- */

.page-hero { padding: 92px 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .hero-text { max-width: 640px; color: var(--body); color: color-mix(in srgb, var(--ink) 78%, #ffffff); }
.page-hero .eyebrow { color: var(--brand); }
.page-hero--dark { background: var(--dark); border-bottom: 0; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .hero-text { color: rgba(255,255,255,.8); }
.page-hero--dark .eyebrow { color: #fff; }

/* ---------- banners ---------- */

.banners { padding: 0; }
.banners-in {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
	padding-top: 26px;
	padding-bottom: 0;
}
.banners-in .banner:only-child,
.banners-in .banner:first-child:nth-last-child(3) { grid-column: auto; }
.banner {
	position: relative;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	border-radius: var(--radius, 4px);
	overflow: hidden;
}
.banners-in:has(.banner:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.banner__veil { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.62) 100%); }
.banner__in { position: relative; z-index: 2; padding: 34px; color: #fff; }
.banner__in h3 { color: #fff; font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 18px; }
.banner__in p { color: rgba(255,255,255,.85); }

/* ---------- head-only section ---------- */

.sec-head-wrap { padding: 92px 0 0; }
.sec-head-wrap + section { padding-top: 40px; }

/* ---------- features ---------- */

.features-grid { display: grid; gap: 28px; }
.feat-card {
	padding: 30px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius, 4px);
}
.feat-img { width: 100%; height: 210px; object-fit: cover; border-radius: var(--radius, 4px); margin-bottom: 22px; }
.feat-img--icon { width: auto; max-width: 110px; height: auto; max-height: 110px; object-fit: contain; margin: 0 0 22px; }
.feat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 20px;
	color: var(--brand);
	background: color-mix(in srgb, var(--brand) 10%, #fff);
	border-radius: 50%;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat-num { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--brand); }
.feat-card h3 { margin-bottom: .4em; }
.feat-card p { margin-bottom: 0; color: var(--body); }
.features--dark { background: var(--dark); }
.features--dark h2, .features--dark h3 { color: #fff; }
.features--dark .sec-text, .features--dark .feat-card p { color: rgba(255,255,255,.75); }
.features--dark .feat-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.testimonials--dark { background: var(--dark); }
.testimonials--dark h2 { color: #fff; }
.testimonials--dark .t-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.testimonials--dark .t-card p { color: rgba(255,255,255,.82); }
.testimonials--dark .t-card footer strong { color: #fff; }

/* ---------- products ---------- */

.products-grid { display: grid; gap: 22px; }
.product {
	position: relative;
	padding: 16px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius, 4px);
	transition: box-shadow .25s, transform .25s;
}
.product__badge {
	position: absolute; z-index: 2; top: 26px; left: 26px;
	background: var(--brand); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: 6px 10px; border-radius: 2px;
}
.product__meta { margin: 0 0 6px; font-size: 14px; color: var(--body); }
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 25, 50, .12); }
.product__media { display: block; overflow: hidden; border-radius: var(--radius, 4px); background: var(--soft); }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.product:hover .product__media img { transform: scale(1.05); }
.product h3 { margin: 16px 0 .3em; font-size: 17px; }
.product h3 a { color: var(--ink); }
.product__price { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.product__price del { color: #9aa6b6; font-weight: 400; }
.product__price ins { text-decoration: none; color: var(--brand); }
.stars { display: inline-block; font-size: 13px; color: #f5a623; letter-spacing: 1px; }
.stars::before { content: "★★★★★"; }

/* ---------- cats ---------- */

.cats { padding: 34px 0 0; }
.cats-in { display: flex; justify-content: center; gap: 46px; flex-wrap: wrap; }
.cats--tiles { padding: 72px 0; }
.cats-grid { display: grid; gap: 20px; }
.cat-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius, 4px); aspect-ratio: 1 / 1; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile span {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 36px 12px 12px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
	color: #fff; font-weight: 600; font-size: clamp(14px, 3.6vw, 20px);
	line-height: 1.25; text-align: center; overflow-wrap: anywhere;
}
@media (max-width: 640px) {
	.cat-tile span { padding: 28px 8px 10px; font-size: 14px; }
}
.cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}
.cat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	color: var(--brand);
	background: var(--soft);
	border-radius: 50%;
	transition: all .25s;
}
.cat__icon svg { width: 28px; height: 28px; }
.cat:hover .cat__icon { background: var(--brand); color: #fff; }

/* ---------- split ---------- */

.split-in {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}
.split--rev .split-media { order: 2; }
.split-media img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	border-radius: var(--radius, 4px);
}
.split-text h2 { margin-bottom: .4em; }
.split-p { color: var(--body); }
.checklist { margin: 24px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.checklist svg { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--brand); }
.split-btn { margin-top: 28px; }
.split--soft { background: var(--soft); }
.split--soft .split-text { max-width: 540px; }

/* ---------- stats ---------- */

.stats { background-size: cover; background-position: center; }
.stats--dark { background-color: var(--dark); color: #fff; }
.stats-in { padding: calc(var(--sec-pad, 96px) * .875) 0; }
.ac-compact .stats--dark + section { padding-top: calc(var(--sec-pad, 96px) * 1.8); }
.stats-title { text-align: center; color: inherit; }
.stats-grid { display: grid; gap: 26px; text-align: center; }
.stat__num {
	display: block;
	font-family: var(--head-font), Arial, sans-serif;
	font-size: clamp(38px, 4vw, 56px);
	font-weight: 700;
	color: var(--brand);
	line-height: 1;
}
.stats--dark .stat__num { color: #fff; }
.stat__label { display: block; margin-top: 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* ---------- testimonials ---------- */

.t-grid { display: grid; gap: 24px; }
.t-card {
	margin: 0;
	padding: 32px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius, 4px);
}
.t-quote { display: block; margin-bottom: 16px; color: var(--brand); }
.t-quote svg { width: 30px; height: 30px; }
.t-card p { color: var(--body); }
.t-card footer { display: flex; align-items: center; gap: 14px; }
.t-card footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.t-card footer strong { display: block; color: var(--ink); font-size: 15px; }
.t-card footer span { font-size: 13px; color: #8b97a8; }

/* ---------- pricing ---------- */

.p-grid { display: grid; gap: 24px; align-items: stretch; }
.p-card {
	position: relative;
	padding: 34px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius, 4px);
}
.p-card--best { border-color: var(--brand); border-width: 2px; box-shadow: 0 20px 50px rgba(10, 25, 50, .1); }
.p-badge {
	display: inline-block; margin-bottom: 10px;
	background: var(--brand); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: 5px 10px; border-radius: 2px;
}
.p-price { font-family: var(--head-font), Arial, sans-serif; font-size: 44px; font-weight: 700; color: var(--ink); }
.p-price span { font-size: 16px; font-weight: 400; color: var(--body); }
.p-feats { margin: 20px 0 28px; }
.p-feats li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--body); }
.p-feats svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--brand); }

/* ---------- team ---------- */

.team-grid { display: grid; gap: 24px; }
.team-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius, 4px); overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.team-card__in { padding: 20px 22px; }
.team-card__in h3 { margin-bottom: .15em; font-size: 20px; }
.team-card__in p { margin: 0; font-size: 14px; color: var(--brand); }

/* ---------- gallery ---------- */

.g-grid { display: grid; gap: 14px; }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius, 4px); }

/* ---------- faq ---------- */

.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius, 4px); margin-bottom: 12px; }
.faq-item summary {
	position: relative;
	padding: 20px 56px 20px 24px;
	font-family: var(--head-font), Arial, sans-serif;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink); transition: transform .3s; }
.faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::after { transform: rotate(0); }
.faq-body { padding: 0 24px 22px; color: var(--body); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- logos ---------- */

.logos { padding: 56px 0; }
.logos-in { text-align: center; }
.logos-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8b97a8; }
.logos-grid { display: grid; gap: 32px; align-items: center; margin-top: 24px; }
.logos-grid img { max-height: 42px; width: auto; margin: 0 auto; opacity: .6; filter: grayscale(1); }
.logos--tall .logos-grid img { max-height: 130px; width: auto; opacity: .9; filter: none; }

/* ---------- cta ---------- */

.cta-band {
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 100px 0;
	overflow: hidden;
}
.cta-veil { position: absolute; inset: 0; }
.cta-band--light .cta-text h2 { color: var(--ink); }
.cta-band--light .cta-text p { color: var(--body); }
.btn--ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-in { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-text h2 { color: #fff; margin-bottom: .3em; }
.cta-text p { color: rgba(255,255,255,.82); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cta-in--center { display: block; text-align: center; }
.cta-in--center .cta-actions { justify-content: center; margin-top: 28px; }

/* ---------- news ---------- */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card__media { display: block; overflow: hidden; border-radius: var(--radius, 4px); background: var(--soft); }
.news-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.news-card__ph {
	width: 100%;
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--head-font), Arial, sans-serif;
	font-size: 30px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(120deg, var(--brand) 0%, var(--dark) 100%);
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card h3 { margin: 18px 0 .35em; font-size: 21px; }
.news-card h3 a { color: var(--ink); }
.news-card p { color: var(--body); }

/* ---------- contact ---------- */

.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.info-list { margin-top: 26px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.info-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; color: var(--brand); background: var(--soft); border-radius: 50%; }
.info-icon svg { width: 18px; height: 18px; }
.contact-form-wrap,
.quote-form-wrap {
	padding: 36px;
	background: var(--soft);
	border-radius: var(--radius, 4px);
}
.contact-form,
.quote-form { display: grid; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.quote-form input,
.quote-form textarea {
	width: 100%;
	padding: 13px 15px;
	font-family: inherit;
	font-size: 15px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius, 4px);
}
.contact-form input:focus,
.contact-form textarea:focus,
.quote-form input:focus,
.quote-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-form textarea,
.quote-form textarea { resize: vertical; }
.quote-form-wrap { max-width: 900px; margin: 0 auto; }
.cc-hp { position: absolute; left: -9999px; }

.flash {
	padding: 13px 16px;
	margin-bottom: 18px;
	font-size: 14px;
	border-radius: var(--radius, 4px);
}
.flash--ok { color: #14532d; background: #dcfce7; border: 1px solid #bbf7d0; }
.flash--err { color: #7f1d1d; background: #fee2e2; border: 1px solid #fecaca; }

/* ---------- steps ---------- */

.steps-grid { display: grid; gap: 26px; }
.step { padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius, 4px); }
.step__num { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.step h3 { font-size: 20px; }
.step p { margin: 0; color: var(--body); }

/* ---------- boxes ---------- */

.boxes-grid { display: grid; gap: 24px; }
.box-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius, 4px); overflow: hidden; }
.box-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.box-card__in { padding: 24px; }
.box-card__in h3 { font-size: 20px; }
.box-card__in p { color: var(--body); }
.box-card__in .link-more { margin-top: 8px; }

/* ---------- bands ---------- */

.band-img { background-size: cover; background-position: center; }

.badges { padding: 26px 0; }
.badges-in { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.badges-in img { max-height: 46px; width: auto; opacity: .85; }

/* ---------- richtext / page body ---------- */

.richtext { padding: 90px 0; }
.richtext h2 { margin-bottom: .5em; }
.entry h2, .entry h3 { margin-top: 1.4em; }
.page-body { padding: 80px 0 100px; }

/* ---------- archive ---------- */

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.archive-grid .news-card__media { background: var(--soft); }
.pager { margin-top: 44px; }
.pager .nav-links { display: flex; gap: 8px; }
.pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius, 4px);
}
.pager .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- footer ---------- */

.site-footer { padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { height: 40px; width: auto; max-width: none; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; }
.footer-contact a { color: inherit; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: inherit; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.site-footer .flash { display: inline-block; }

.subscribe-form { display: flex; margin-top: 12px; border-bottom: 1px solid rgba(255,255,255,.35); }
.subscribe-form input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 10px 2px;
	color: #fff;
	background: transparent;
	border: 0;
	font-family: inherit;
	font-size: 15px;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.55); }
.subscribe-form button {
	width: 44px;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.subscribe-form button svg { width: 20px; height: 20px; margin: 0 auto; }

.footer-bar { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.footer-bar p { margin: 0; }

.scroll-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 40;
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: #fff;
	background: var(--brand);
	border: 0;
	border-radius: var(--radius, 4px);
	cursor: pointer;
}
.scroll-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.scroll-top.is-visible { display: inline-flex; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
	.site-main > section { padding: calc(var(--sec-pad, 96px) * .75) 0; }
	.nav-toggle { display: block; }
	.mainnav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 70;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 340px;
		max-width: 86vw;
		height: 100vh;
		padding: 0 28px 28px;
		background: #fff;
		border-left: 1px solid var(--line);
		overflow-y: auto;
		box-shadow: -18px 0 40px rgba(0, 0, 0, .16);
	}
	body.nav-open .mainnav { display: flex; }
	body.nav-open .site-header { z-index: 80; }
	body.nav-open .nav-toggle { opacity: 0; pointer-events: none; }
	.mainnav__list { flex-direction: column; gap: 0; margin-top: 16px; }
	.mainnav__item { border-bottom: 1px solid var(--line); }
	.mainnav__item > a { padding: 15px 0; font-size: 17px; color: var(--ink); }
	.site-header--dark .mainnav__item > a { color: var(--ink); }
	.header-cta { margin-top: 24px; align-self: flex-start; }
	.drawer-top {
		position: sticky;
		top: 0;
		z-index: 3;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin: 0 -28px;
		padding: 16px 20px;
		background: var(--dark);
	}
	.drawer-top img { height: 34px; width: auto; max-width: none; }
	.drawer-close {
		position: relative;
		width: 38px;
		height: 38px;
		padding: 0;
		background: transparent;
		border: 1px solid rgba(255,255,255,.45);
		border-radius: 50%;
		cursor: pointer;
	}
	.drawer-close span::before,
	.drawer-close span::after {
		content: "";
		position: absolute;
		left: 11px;
		top: 18px;
		width: 15px;
		height: 2px;
		background: #fff;
	}
	.drawer-close span::before { transform: rotate(45deg); }
	.drawer-close span::after { transform: rotate(-45deg); }

	.split-in, .contact-in { grid-template-columns: 1fr; gap: 40px; }
	.split-media img { height: 380px; }
	.features-grid, .products-grid, .t-grid, .p-grid, .team-grid, .g-grid, .steps-grid, .boxes-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.banners-in { grid-template-columns: 1fr; }
	.banner { min-height: 320px; }
	.news-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.cta-in { display: block; }
	.mainnav { width: 100%; max-width: 100%; border-left: 0; }
	.nav-overlay { background: rgba(8, 14, 24, .6); }
	.cta-actions { margin-top: 28px; }
}

@media (max-width: 720px) {
	.site-main > section { padding: calc(var(--sec-pad, 96px) * .58) 0; }
	h1 { font-size: 32px; }
	h2 { font-size: 27px; }
	.hero { min-height: 520px !important; }
	.hero-in { padding: 80px 20px; }
	.features-grid, .products-grid, .t-grid, .p-grid, .team-grid, .g-grid, .steps-grid, .boxes-grid, .news-grid, .archive-grid { grid-template-columns: 1fr !important; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.cf-row { grid-template-columns: 1fr; }
	.contact-form-wrap, .quote-form-wrap { padding: 26px 20px; }
	.stats-grid { grid-template-columns: 1fr 1fr !important; }
	.split-media img { height: 280px; }
	.sec-head--row { display: block; }
	.sec-head--row .link-more { margin-top: 10px; }
	.cats-in { gap: 26px; }
	.topbar-in { justify-content: center; }
	.topbar-in p + p { display: none; }
}
