/* Mindoria: site (index.php, cgv.php) and customer area (account/). One small system:
   Manrope, ink navy, the logo's orange as the action colour (darkened for contrast). */
:root {
	--ink: #10213a;
	--text: #10213a;
	--text-2: #4a5a70;
	--text-3: #5b6b80;
	--bg: #f5f6f8;
	--surface: #ffffff;
	--surface-2: #fbfbfc;
	--border: #e3e7ed;
	--border-strong: #cdd4de;
	--accent: #c4501a;
	--accent-hover: #a8430f;
	--accent-text: #9e3f12;
	--accent-soft: #fff1e8;
	--accent-bright: #ff8a50;
	--on-dark: #ffffff;
	--on-dark-2: #c5d0de;
	--on-dark-3: #9fb0c6;
	--success: #17704f;
	--success-dot: #1f8f6a;
	--success-soft: #e1f3eb;
	--danger: #b42335;
	--danger-soft: #fdecee;
	--info-soft: #eaf1fb;
	--radius: 12px;
	--radius-lg: 20px;
	--shadow: 0 30px 60px -24px rgba(16, 33, 58, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(196, 80, 26, .45); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons and fields */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
	border: 1.5px solid transparent; font-size: 16px; font-weight: 700;
	text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b3152; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
	font-weight: 500; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--border-strong);
	border-radius: 10px; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(16, 33, 58, .12); }
.field .hint { font-weight: 500; font-size: 13px; color: var(--text-3); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .error { font-weight: 600; font-size: 13px; color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.alert { border-radius: var(--radius); padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.alert-success { background: var(--success-soft); color: #0f5a3f; }
.alert-error { background: var(--danger-soft); color: #8c1b2a; }
.alert-info { background: var(--info-soft); color: #1d3d66; }

/* ===================== Site ===================== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; font-size: 15px; font-weight: 600; }
.site-nav a { color: #3b4a5e; text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.header-actions .login { font-weight: 700; color: var(--ink); text-decoration: none; padding: 12px 10px; }
.header-actions .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }

.hero { background: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.ticks span, .tick-list span { display: inline-flex; align-items: center; gap: 6px; }
.hero-visual { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.phone-card { width: 100%; max-width: 440px; background: var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.phone-card .meta { display: flex; justify-content: space-between; color: var(--on-dark-3); font-size: 13px; font-weight: 600; }
.phone-card .meta b { color: var(--accent-bright); }
.bubble { background: #fff; border-radius: 18px 18px 18px 6px; padding: 18px 20px; font-size: 15px; line-height: 1.55; }
.bubble small { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-stats div { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 14px; }
.mini-stats b { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.mini-stats .orange { color: var(--accent-bright); }
.mini-stats span { font-size: 12px; color: var(--on-dark-3); font-weight: 600; }
.phone-card .caption { font-size: 12px; color: var(--on-dark-3); }

.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; padding-top: 28px; padding-bottom: 28px; }
.band .label { font-size: 14px; font-weight: 700; color: var(--text-3); }
.band .word { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.band p { flex: 1 1 260px; font-size: 15px; color: var(--text-2); }

.section { padding: 96px 0; }
.section-white { background: #fff; border-top: 1px solid var(--border); }
.section-dark { background: var(--ink); color: #fff; }
.section h2 { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 18px; font-weight: 800; }
.card p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.steps-dark { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.steps-dark div { display: flex; flex-direction: column; gap: 12px; }
.steps-dark b { font-size: 15px; font-weight: 800; color: var(--accent-bright); }
.steps-dark h3 { font-size: 21px; font-weight: 800; }
.steps-dark p { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { flex: 1 1 340px; min-width: 0; }
.split .wide { flex: 2 1 520px; }
.tick-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; color: #3b4a5e; }
.offer { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.offer h3 { font-size: 22px; font-weight: 800; }
.offer p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { font-size: 17px; font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 600; }
.contact-lines span { color: var(--text-2); font-weight: 500; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.small { font-size: 13px; color: var(--text-3); }
.site-footer { background: var(--ink); color: var(--on-dark-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 32px; padding-bottom: 32px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 36px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 800; margin: 20px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: #2b3a50; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; }

/* ===================== Customer area ===================== */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.sidebar { flex: 1 1 248px; max-width: 100%; background: var(--ink); color: var(--on-dark-2); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.sidebar .brand { color: #fff; padding: 0 8px; }
.sidebar .brand:hover { color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 700; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--on-dark-2); text-decoration: none; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.side-user { margin-top: auto; padding: 14px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.side-user b { font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.side-user span { overflow-wrap: anywhere; }
.side-user a { color: var(--accent-bright); font-weight: 700; padding-top: 6px; }
.main { flex: 999 1 640px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin-top: 4px; font-size: 15px; color: var(--text-3); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.kpi .label { font-size: 14px; font-weight: 700; color: var(--text-3); }
.kpi .value { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.kpi .note { font-size: 14px; color: var(--text-3); }
.kpi-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi-dark .label { color: var(--on-dark-3); }
.kpi-dark .note { color: var(--on-dark-2); }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.row > .grow { flex: 2 1 480px; min-width: 0; }
.row > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.box h2 { font-size: 18px; font-weight: 800; }
.box-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.box-head span { font-size: 14px; color: var(--text-3); }
.box p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.box-soft { background: var(--accent-soft); border-color: var(--accent-soft); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding-top: 8px; }
.chart .col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.chart .bar { width: 100%; max-width: 36px; border-radius: 8px 8px 3px 3px; background: #c9d3e0; min-height: 3px; }
.chart .col.current .bar { background: var(--accent); }
.chart .num { font-size: 11px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chart .m { font-size: 12px; font-weight: 600; color: var(--text-3); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--success); background: var(--success-soft); }
.status-wait { color: #6b4a00; background: #fbf1d8; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.list th { text-align: left; color: var(--text-3); font-size: 13px; font-weight: 700; padding: 10px 8px; }
table.list td { padding: 14px 8px; border-top: 1px solid #eef1f5; font-variant-numeric: tabular-nums; }
table.list .r { text-align: right; }
.empty { font-size: 15px; color: var(--text-3); padding: 8px 0; }

/* Buy */
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.preset { position: relative; display: block; cursor: pointer; }
.preset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset span { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 2px solid var(--border); border-radius: 16px; background: #fff; }
.preset b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.preset small { font-size: 13px; font-weight: 600; color: var(--text-3); }
.preset input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.preset input:focus-visible + span { outline: 3px solid rgba(196, 80, 26, .45); outline-offset: 2px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty input { max-width: 180px; }
.note-box { display: flex; align-items: flex-start; gap: 10px; background: var(--bg); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: #3b4a5e; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-line span:first-child { color: var(--text-2); }
.summary-line span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-total { border-top: 1px solid var(--border); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-total b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Setup */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { font-size: 15px; font-weight: 700; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: #fff; color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; gap: 16px; }
.step > b { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step > div { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; min-width: 0; }
.step h3 { font-size: 16px; font-weight: 800; }
.step p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.step img { border: 1px solid var(--border); border-radius: 10px; margin-top: 4px; }
.creds { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.creds h2 { font-size: 17px; font-weight: 800; }
.cred { display: flex; flex-direction: column; gap: 6px; }
.cred > span { font-size: 13px; font-weight: 700; color: var(--on-dark-3); }
.cred div { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 6px 6px 6px 14px; }
.cred code { flex: 1 1 auto; min-width: 0; font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.cred button { flex: none; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); background: #fff; border: 0; border-radius: 8px; padding: 9px 12px; min-width: 76px; min-height: 36px; }
.cred button.done { background: #a8e6cf; }
.cred p { font-size: 13px; color: var(--on-dark-2); }

/* Login / register */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 16px; }
.auth .brand { color: var(--ink); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 40px -28px rgba(16, 33, 58, .35); }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { font-size: 15px; color: var(--text-2); margin-top: -8px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.origin-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.origin-choice legend { font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }

@media (max-width: 720px) {
	.hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
	.section { padding: 64px 0; }
	.main { padding: 20px 16px 32px; }
	.sidebar { padding: 16px; gap: 14px; }
	.side-nav { flex-direction: row; flex-wrap: wrap; }
	.side-nav a { padding: 10px 12px; }
	.side-user { display: none; }
	.auth-card { padding: 24px; }
	.chart { gap: 4px; }
	.chart .num { display: none; }
	.chart .m { font-size: 10px; letter-spacing: -.02em; }
}
