@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600;700;800&display=swap');
/* Дизайн-токени зняті з поточного ollmath.com (Elementor global colors + Urbanist). */
:root {
	--brand: #eb8d00;
	--brand-soft: #ffb340;
	--ink: #1c1c1b;
	--text: #555555;
	--line: #e2e0db;
	--surface: #ffffff;
	--surface-alt: #f1f2f8;
	--ok: #3ab500;
	--radius: 14px;
	--shell: 1180px;
	--font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--surface);
	font-size: 17px;
	line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
.eyebrow {
	color: var(--brand);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .85rem;
	margin-bottom: .75rem;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(48px, 7vw, 96px) 0; }
section.alt { background: var(--surface-alt); }

.btn {
	display: inline-block;
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	padding: 14px 30px;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	font-size: 1rem;
	transition: background .15s ease;
}
.btn:hover { background: #d17f00; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--surface-alt); }

/* ---------------------------------------------------------------- шапка */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header .shell { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-header img { height: 38px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; flex-wrap: wrap; }
.nav a:hover { color: var(--brand); }

/* бургер: без JS, на details/summary */
.nav-mobile { display: none; margin-left: auto; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 10px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span,
.nav-mobile summary span::before,
.nav-mobile summary span::after {
	display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-mobile summary span::before, .nav-mobile summary span::after { content: ""; position: relative; }
.nav-mobile summary span::before { top: -7px; }
.nav-mobile summary span::after { top: 5px; }
.nav-mobile[open] nav {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
	padding: 16px; display: grid; gap: 14px; min-width: 220px; font-weight: 600;
}
.nav-mobile .btn { text-align: center; padding: 10px 20px; }

@media (max-width: 860px) {
	.nav { display: none; }
	.nav-mobile { display: block; }
}

/* ---------------------------------------------------------------- герой */
.hero { padding-top: clamp(32px, 5vw, 72px); }
.hero .shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); max-height: 560px; width: 100%; object-fit: cover; object-position: top center; }
.rating-badge {
	position: absolute; left: -12px; bottom: 24px;
	background: #fff; border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
	padding: 14px 20px; text-align: center;
}
.rating-badge b { display: block; font-size: 1.9rem; color: var(--ink); line-height: 1; }
.rating-badge span { font-size: .85rem; }
.stars { color: var(--brand-soft); letter-spacing: 2px; }
@media (max-width: 860px) { .hero .shell { grid-template-columns: 1fr; } .rating-badge { left: 12px; } }

/* ---------------------------------------------------------------- сітки */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
}
.card.accent { border-top: 4px solid var(--brand); }

/* картка курсу */
.course { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-cover { aspect-ratio: 3 / 2; background: var(--surface-alt); object-fit: cover; width: 100%; }
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-meta { display: flex; gap: 16px; font-size: .85rem; color: var(--text); }
.course h3 { font-size: 1.05rem; margin: 0; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price b { font-size: 1.35rem; color: var(--ink); }
.price s { color: #9a9a9a; }
.price .until { font-size: .8rem; color: var(--brand); font-weight: 700; }
.tag {
	align-self: flex-start;
	background: var(--surface-alt);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: .78rem;
	font-weight: 600;
}

/* ---------------------------------------------------- переваги з фото */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); max-height: 480px; width: 100%; object-fit: cover; }
.feature { display: flex; gap: 16px; margin-bottom: 26px; }
.feature .num {
	flex: 0 0 40px; height: 40px; border-radius: 50%;
	background: var(--brand); color: #fff;
	display: grid; place-items: center; font-weight: 800;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------------------------------------------------------- лічильники */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.counters b { display: block; font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); font-weight: 800; }

/* ---------------------------------------------------------------- відгуки */
.reviews {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
	gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
	padding-bottom: 12px; scrollbar-width: thin;
}
.review { scroll-snap-align: start; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-head img { width: 48px; height: 48px; border-radius: 50%; }
.review-head b { color: var(--ink); }
.review p { margin: 0; font-size: .95rem; }
.trust {
	margin-top: 32px; text-align: center; font-weight: 700; color: var(--ink);
	font-size: clamp(1.05rem, 2.2vw, 1.4rem);
}
.trust span { color: var(--brand); }

/* ---------------------------------------------------------------- CTA і підписка */
.cta { text-align: center; }
.cta h2 { margin-bottom: 24px; }
.subscribe { display: flex; gap: 12px; max-width: 520px; margin: 20px auto 0; flex-wrap: wrap; }
.subscribe input[type="email"] {
	flex: 1 1 240px; padding: 14px 18px; border-radius: 999px;
	border: 1px solid var(--line); font: inherit; color: var(--ink);
}
.subscribe .hp { position: absolute; left: -9999px; }
.subscribe-msg { margin-top: 12px; font-weight: 600; color: var(--ok); min-height: 1.4em; }

/* ---------------------------------------------------------------- футер */
.site-footer { background: var(--ink); color: #cfcdc9; padding: 36px 0 20px; font-size: .85rem; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.site-footer a:hover { color: var(--brand-soft); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom {
	margin-top: 24px; padding-top: 14px; border-top: 1px solid #333;
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .8rem;
}
.footer-bottom img { height: 26px; filter: brightness(0) invert(1); }

/* ---------------------------------------------------------------- статичні сторінки */
.page-hero { padding: clamp(36px, 4vw, 64px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { text-transform: none; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.page-hero .split { align-items: center; gap: 40px; }
.page-hero img { max-height: 340px; }
.lead { font-size: 1.12rem; color: var(--ink); margin: 0; }

.page { padding-top: clamp(16px, 2vw, 28px); }
.prose { max-width: 780px; }
.prose h2 { text-transform: none; font-size: 1.5rem; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose ul li::marker { color: var(--brand); }
.prose a:not(.btn) { color: var(--brand); font-weight: 600; }
.prose a:not(.btn):hover { text-decoration: underline; }
.muted { color: var(--text); font-size: .95rem; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; margin-bottom: 8px; }
.faq details {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 0 20px;
	transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--brand-soft); }
.faq summary {
	list-style: none;
	cursor: pointer;
	font-weight: 700;
	color: var(--ink);
	padding: 16px 32px 16px 0;
	position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	color: var(--brand); font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; }

/* ------------------------------------------- сторінки Frappe: блог, вхід, помилки
   Наша типографіка поверх дефолтної теми, але без лендінгових капсів у статтях. */
.page-content-wrapper h1,
.page-content-wrapper h2,
.page-content-wrapper h3,
.blog-container h1,
.blog-container h2,
.blog-card h5 { text-transform: none; }
.page-content-wrapper .hero { padding: 0; }
.blog-card .card { border-radius: var(--radius); border-color: var(--line); }
.blog-card .default-cover { display: none; }          /* дублює заголовок картки */
.blog-card .card-img-top:empty { display: none; }
.blog-content a, .page-content-wrapper .page_content a { color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 999px; }
.btn-primary:hover { background: #d17f00; border-color: #d17f00; color: #fff; }

/* ---------------------------------------------------------------- контакти */
.contact-cards a { color: var(--brand); font-weight: 700; }
.contact-cards a:hover { text-decoration: underline; }
.contact-cards ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- розклад */
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.week-head .btn { padding: 8px 18px; font-size: .9rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; }
.day { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 140px; background: var(--surface); }
.day.today { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(235, 141, 0, .15); }
.day-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text); margin-bottom: 10px; }
.day-head b { color: var(--ink); }
.event { border-left: 3px solid var(--brand); padding: 8px 10px; margin-bottom: 10px; background: var(--surface-alt); border-radius: 8px; font-size: .85rem; display: grid; gap: 2px; }
.event.assignment { border-left-color: #e02200; }
.event-time { font-weight: 700; color: var(--ink); }
.event-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); font-weight: 700; }
.event-batch { color: var(--text); font-size: .78rem; }
.event .btn { padding: 6px 14px; font-size: .78rem; margin-top: 6px; justify-self: start; }
.day .empty { color: #bbb; text-align: center; margin: 0; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } }
.wide { max-width: var(--shell); }

/* ---------------------------------------------------------------- сторінка збірників */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 0; }
.quote p { margin: 0 0 14px; }
.quote b { color: var(--ink); }
.quote::before { content: "”"; display: block; color: var(--brand); font-size: 2.4rem; line-height: .6; margin-bottom: 10px; }

/* ---------------------------------------------------------------- каталог */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
	border: 1px solid var(--line); border-radius: 999px;
	padding: 8px 18px; font-weight: 600; font-size: .92rem; color: var(--ink);
	transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--brand-soft); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- сторінка курсу */
.buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 24px 0 8px; }
.buy .price { margin: 0; }
.buy .price b { font-size: 1.8rem; }
.outline { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; }
.outline li::marker { color: var(--brand); }
.outline .tag { font-size: .7rem; padding: 2px 8px; }
.course-description img { border-radius: var(--radius); margin: 16px 0; }
.teacher { display: flex; gap: 18px; align-items: flex-start; }
.teacher img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.teacher h3 { margin-bottom: 6px; }
