:root {
	--bg: #ffffff;
	--text: #111111;
	--muted: #6b7280;
	--accent: #0ea5e9; /* blue */
	--border: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
.subtitle, .section-intro { color: var(--muted); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { filter: brightness(0.95); }

.hero {
	background: radial-gradient(80% 120% at 20% 0%, #e0f2fe 0%, #ffffff 60%);
	padding: 72px 0 56px;
	border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 8px; }
.hero .subtitle { font-size: 18px; margin-bottom: 18px; }

.shops { padding: 48px 0; }
.shops__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.shop-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.shop-card h3 { font-size: 20px; margin: 12px 12px 6px; }
.shop-card .address { color: var(--muted); margin: 0 12px 6px; font-size: 14px; }
.shop-card p { margin: 0 12px 16px; }

.how { padding: 48px 0; background: #fafafa; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.step__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; min-width: 40px; }

.register { padding: 48px 0; }
.form { max-width: 560px; }
.form__row { margin-bottom: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input { padding: 12px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
.form__msg { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 1.2em; }

.contacts { padding: 48px 0; }
.contacts__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contacts__list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contacts__list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	transition: transform .06s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.contacts__list a:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.06); border-color: var(--accent); color: var(--accent); background: #f8feff; }
.contacts__list a:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14,165,233,.15); }

.footer { border-top: 1px solid var(--border); padding: 18px 0; color: var(--muted); }

.modal { position: fixed; inset: 0; display: none; }
.modal[open] { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.modal__dialog { position: relative; z-index: 1; background: #fff; width: min(560px, calc(100% - 24px)); margin: 6vh auto; padding: 18px; border-radius: 12px; border: 1px solid var(--border); }
.modal__close { position: absolute; top: 8px; right: 8px; background: transparent; border: none; font-size: 26px; line-height: 1; cursor: pointer; }
.modal__actions { margin-top: 12px; }
.guide-id { font-weight: 700; }
#qrImage { width: 256px; height: 256px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; }
.lightbox[open] { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); }
.lightbox__dialog { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; box-shadow: 0 20px 60px rgba(0,0,0,.5); border-radius: 12px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 10px; font-size: 28px; width: 44px; height: 44px; cursor: pointer; }
.lightbox__nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; z-index: 1; }
.lightbox__btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__btn:disabled { opacity: .35; cursor: default; }

@media (max-width: 900px) {
	.shops__grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.hero h1 { font-size: 32px; }
	.shops__grid, .steps { grid-template-columns: 1fr; }
} 