:root {
	--brand: #5b5fc7;
	--brand-dark: #4347a8;
	--brand-soft: #eceefe;
	--urgent: #d9480f;
	--urgent-soft: #fff1e8;
	--ink: #1d2033;
	--muted: #5d6178;
	--bg: #ffffff;
	--bg-alt: #f6f7fb;
	--card: #ffffff;
	--line: #e3e5ef;
	--shadow: 0 10px 30px rgba(29, 32, 51, 0.08);
	--radius: 14px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--brand: #8f93ff;
		--brand-dark: #a9acff;
		--brand-soft: #24264a;
		--urgent: #ff8a4c;
		--urgent-soft: #3a2418;
		--ink: #eceef8;
		--muted: #a4a8c0;
		--bg: #12131c;
		--bg-alt: #181a26;
		--card: #1e2030;
		--line: #2c2f45;
		--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	}
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.text-muted { color: var(--muted) !important; }
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* Buttons */
.btn-brand, .btn-ghost {
	display: inline-flex; align-items: center; gap: 8px;
	border-radius: 999px; padding: 12px 24px; font-weight: 600;
	border: 2px solid var(--brand); cursor: pointer; text-decoration: none;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-urgent { background: var(--urgent); border-color: var(--urgent); }
.btn-urgent:hover { background: var(--urgent); border-color: var(--urgent); filter: brightness(0.92); }
button:disabled { opacity: 0.6; cursor: wait; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--brand); }
.wordmark:hover { color: var(--ink); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn-brand { color: #fff; padding: 8px 18px; }
@media (max-width: 767px) {
	.site-nav a:not(.btn-brand) { display: none; }
}

/* Hero */
.hero { padding: 96px 0 80px; background: radial-gradient(ellipse at top right, var(--brand-soft), transparent 60%); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: var(--muted); font-size: 1.2rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.hero-points i { color: var(--brand); margin-right: 6px; }
.hero-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 28px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.9rem; color: var(--muted);
}
.hero-card .ok { color: #2f9e44; }
.hero-card .warn { color: var(--urgent); }
@media (max-width: 991px) { .hero-card { margin-top: 48px; } }

/* Cards */
.card-x {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; height: 100%; transition: transform 0.15s, box-shadow 0.15s;
}
.card-x:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-x .icon {
	width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand); font-size: 26px; margin-bottom: 18px;
}
.card-x.is-urgent .icon { background: var(--urgent-soft); color: var(--urgent); }
.card-x h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-x p { color: var(--muted); margin: 0; }
.grid-gap > [class*="col-"] { margin-bottom: 24px; }

/* Packages */
.package { display: flex; flex-direction: column; position: relative; }
.package.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.package.is-urgent { border: 2px solid var(--urgent); }
.package .badge-x {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
	background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700;
	padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.package.is-urgent .badge-x { background: var(--urgent); }
.package h3 { font-size: 1.3rem; }
.package .hours { font-size: 0.95rem; color: var(--muted); }
.package .price { font-size: 2.4rem; font-weight: 800; margin: 12px 0 0; }
.package .price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.package .rate { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.package ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.package li { padding: 6px 0; display: flex; gap: 10px; }
.package li i { color: var(--brand); margin-top: 5px; }
.package.is-urgent li i { color: var(--urgent); }
.packages-note { text-align: center; color: var(--muted); margin-top: 8px; }

/* Steps */
.step-num {
	width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
	display: grid; place-items: center; font-weight: 700; margin-bottom: 16px;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Contact CTA */
.cta { text-align: center; }
.cta .hero-actions { justify-content: center; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Request dialog */
dialog.request {
	width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
	border: none; border-radius: var(--radius); padding: 0; background: var(--card); color: var(--ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
dialog.request::backdrop { background: rgba(18, 19, 28, 0.6); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.25rem; margin: 0; }
.icon-btn { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 4px; }
.icon-btn:hover { color: var(--ink); }
.dialog-body { padding: 20px 24px 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--bg); color: var(--ink); font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 575px) { .field-row { grid-template-columns: 1fr; } }
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }
.radio-row input { width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 12px 0 0; font-size: 0.95rem; }
.form-msg.error { color: var(--urgent); }
.form-done { text-align: center; padding: 24px 0 8px; }
.form-done i { font-size: 48px; color: #2f9e44; }
.cf-turnstile-box { margin: 6px 0 14px; min-height: 65px; }

/* AI assistant */
.assistant-launcher {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	width: 60px; height: 60px; border-radius: 50%; border: none;
	background: var(--brand); color: #fff; font-size: 28px; cursor: pointer;
	box-shadow: 0 10px 30px rgba(91, 95, 199, 0.45);
}
.assistant-launcher:hover { background: var(--brand-dark); }
.assistant-panel {
	position: fixed; right: 20px; bottom: 92px; z-index: 60;
	width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
	display: none; flex-direction: column;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); overflow: hidden;
}
.assistant-panel.open { display: flex; }
@media (max-width: 575px) { .assistant-panel { right: 16px; } .assistant-launcher { right: 16px; bottom: 16px; } }
.assistant-head { background: var(--brand); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.assistant-head strong { display: block; }
.assistant-head small { opacity: 0.85; }
.assistant-head .icon-btn { color: #fff; }
.assistant-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 0.95rem; }
.msg.bot { background: var(--bg-alt); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.assistant-actions { display: flex; gap: 8px; padding: 0 16px 10px; }
.assistant-actions button {
	flex: 1; font-size: 0.85rem; padding: 8px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--brand); background: var(--card); color: var(--brand); font-weight: 600;
}
.assistant-actions button:hover { background: var(--brand-soft); }
.assistant-form { display: flex; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; border: none; padding: 14px 16px; background: var(--card); color: var(--ink); font: inherit; min-width: 0; }
.assistant-form input:focus { outline: none; }
.assistant-form button { border: none; background: none; color: var(--brand); padding: 0 16px; font-size: 1.3rem; cursor: pointer; }
.assistant-note { font-size: 0.75rem; color: var(--muted); text-align: center; padding: 0 16px 8px; }

/* Simple content pages */
.page { padding: 64px 0; }
.page .container { max-width: 760px; }
.page h1 { margin-bottom: 24px; }
.page h2 { font-size: 1.3rem; margin-top: 32px; }
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-size: 6rem; font-weight: 800; color: var(--brand); line-height: 1; }
