/* szkoly.dlaciebieirodziny.pl */

/* ---- Czcionka ------------------------------------------------------------------ */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/lato-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/lato-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Tokeny ------------------------------------------------------------------ */
:root {
    --bg: #ffffff; --surface: #f4f7f8; --surface2: #ffffff;
    --text: #3a4a52; --head: #2f4048; --muted: #7b8b94; --muted2: #5a6b74; --muted3: #6b8794;
    --line: #dce7ec; --line2: #eef2f5; --input-line: #ccd9e0; --dash: #c9d7de;
    --blue: #2e9ad3; --blue-deep: #1a6b96; --blue-text: #2e9ad3; --head-blue: #1a6b96;
    --green: #64b445; --green-text: #57a83c; --brand-deep: #1f86c4;
    --h1: #38a7dd; --h2: #2e9ad3; --h3: #1f86c4;
    --ok-bg: #f1f8ec; --info-bg: #eef7fc; --info-line: #b9dcef;
    --warn-bg: #fff6e0; --warn-line: #f0c96a; --warn-text: #7a5a00;
    --err-bg: #fdf1f0; --err-line: #e4b3ad; --err-text: #c0392b;
    --step-next: #8fa2ab; --note: #9aa9b1;
    color-scheme: light;
}
html[data-theme="dark"] {
    --bg: #10171c; --surface: #18222a; --surface2: #1e2a33;
    --text: #ccd8e0; --head: #e8f1f6; --muted: #8fa3ae; --muted2: #aebdc6; --muted3: #8fa3ae;
    --line: #2c3b45; --line2: #26333c; --input-line: #35464f; --dash: #33444e;
    --blue: #2680b0; --blue-deep: #7ec7ee; --blue-text: #5cbcee; --head-blue: #7ec7ee;
    --green-text: #83cf63; --brand-deep: #14496b;
    --h1: #1d5e85; --h2: #17547a; --h3: #103f5d;
    --ok-bg: #1b2c20; --info-bg: #14293a; --info-line: #2c5875;
    --warn-bg: #3a2f12; --warn-line: #8a6b1e; --warn-text: #f3d78a;
    --err-bg: #33201f; --err-line: #6d413c; --err-text: #ff9d92;
    --step-next: #6f8590; --note: #7f909a;
    color-scheme: dark;
}

/* ---- Bazowe ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; line-height: 1.5; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { color: var(--head-blue); text-decoration: underline; }
input, select, button, textarea { font-family: inherit; }
input:focus, select:focus { outline: none; border-color: var(--blue-text) !important; box-shadow: 0 0 0 3px rgba(46, 154, 211, 0.15); }
[hidden] { display: none !important; }
html[data-theme="dark"] img.theme-plate { background: #fff; padding: 6px 10px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; }

/* ---- Pasek górny --------------------------------------------------------------- */
.topbar { background: var(--surface2); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; align-items: center; padding: 10px 20px; font-size: 14px; font-weight: 700; }
.topbar__link { display: flex; align-items: center; gap: 8px; }
.topbar__link--phone { color: var(--green-text); }
.topbar__link--mail { color: var(--blue-text); }
.ico { display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ico--phone { width: 18px; height: 18px; border-radius: 50%; background: var(--green); font-size: 10px; }
.ico--mail { width: 18px; height: 13px; border-radius: 2px; background: var(--blue); font-size: 9px; }
.theme-toggle { appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface2); color: var(--muted2); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; padding: 8px 14px; border-radius: 999px; min-height: 36px; display: flex; align-items: center; }
.theme-toggle:hover { border-color: #2e9ad3; color: #2e9ad3; }
.theme-toggle__icon::before { content: "\263E  Ciemny"; }
html[data-theme="dark"] .theme-toggle__icon::before { content: "\2600  Jasny"; }

/* ---- Nagłówek ------------------------------------------------------------------ */
.header { background: var(--surface2); }
.header__in { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 12px 20px 18px; }
.header__logo { flex-shrink: 0; }
.header__logo img { display: block; width: 90px; max-width: 100%; height: auto; border-radius: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 13px; font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase; }
.nav a { color: var(--text); padding: 6px 0; }
.nav a:hover { color: var(--blue-text); text-decoration: none; }
.nav a.nav__accent { color: var(--green-text); }
.nav a.nav__accent:hover { color: var(--head-blue); }

/* ---- Hero ----------------------------------------------------------------------- */
.hero { background: linear-gradient(135deg, var(--h1) 0%, var(--h2) 50%, var(--h3) 100%); padding: clamp(28px, 4vw, 48px) 20px; color: #fff; text-align: center; }
.hero__in { max-width: 1000px; margin: 0 auto; }
.hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; opacity: 0.9; }
.hero h1 { margin: 10px 0 0; font-weight: 400; line-height: 1.15; font-size: clamp(22px, 3.6vw, 40px); text-wrap: balance; }
.hero h1 strong { font-weight: 700; }
.hero p { margin: 16px auto 0; max-width: 640px; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.5; opacity: 0.95; }

/* ---- Komunikaty ------------------------------------------------------------------ */
.banners { max-width: 900px; margin: 0 auto; padding: 18px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.banner { border-radius: 10px; padding: 14px 18px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.banner strong { font-weight: 900; }
.banner--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.banner--err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }
.banner--ok { background: var(--ok-bg); border-color: var(--green); color: var(--green-text); }

/* ---- Formularz ------------------------------------------------------------------- */
.form-area { background: var(--surface2); padding: clamp(28px, 4vw, 44px) 20px clamp(40px, 6vw, 70px); }
.form-stack { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.card { border-top: 3px solid var(--green); background: var(--surface); border-radius: 0 0 10px 10px; padding: 22px; }
.card--blue { border-top-color: #2e9ad3; }
.card h2 { margin: 0 0 4px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: var(--head-blue); }
.card__lead { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.card__inner { background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.code-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted2); }
.field--code { flex: 0 1 240px; }
.field input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--input-line); border-radius: 6px; font-size: 15px; font-weight: 400; color: var(--head); background: var(--surface2); }
.field input.is-invalid { border-color: var(--err-text); }
.field--code input { text-transform: uppercase; letter-spacing: 0.06em; }
.field__error { font-size: 12px; font-weight: 700; color: var(--err-text); }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.grid-fields--parent { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hint { flex: 1 1 220px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.school-info { margin-top: 16px; background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 8px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; font-size: 14px; line-height: 1.5; }
.school-info__name { color: var(--head-blue); font-size: 15px; font-weight: 700; }
.school-info span { color: var(--muted2); }
.school-info strong { color: var(--text); }

.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 6px; min-height: 46px; padding: 13px 22px; font-size: 13px; text-decoration: none; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); color: #fff; }
.btn--green { background: var(--green); color: #fff; font-size: 14px; padding: 15px 24px; }
.btn--green:hover { background: #57a83c; color: #fff; }
.btn--outline-green { border: 2px solid var(--green); background: var(--surface2); color: var(--green-text); font-size: 14px; padding: 12px 22px; }
.btn--outline-green:hover { background: var(--green); color: #fff; }
.btn--submit { flex: 1 1 260px; font-size: 15px; letter-spacing: 0.05em; padding: 17px 26px; border-radius: 8px; min-height: 54px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.consents { display: flex; flex-direction: column; gap: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; cursor: pointer; font-weight: 400; color: var(--text); }
.consent input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--green); }
.consent__error { margin-top: -8px; padding-left: 34px; font-size: 13px; font-weight: 700; color: var(--err-text); }

.summary { background: var(--surface2); border: 2px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.summary__text { flex: 1 1 220px; font-size: 14px; line-height: 1.6; }
.summary__line { font-weight: 700; color: var(--muted2); }
.summary__total { margin-top: 4px; font-size: 24px; font-weight: 900; color: var(--green-text); }
.error-summary { background: var(--err-bg); border: 1px solid var(--err-line); border-radius: 8px; padding: 16px 18px; font-size: 13.5px; font-weight: 700; color: var(--err-text); line-height: 1.5; }
.form-note { margin: 0; font-size: 12px; color: var(--note); text-align: center; }

/* ---- Panel płatności ----------------------------------------------------------------- */
.panel-ok { background: var(--ok-bg); border: 2px solid var(--green); border-radius: 10px; padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 20px; }
.panel-ok__content { display: flex; flex-direction: column; gap: 16px; }
.panel-ok h2 { margin: 0; font-size: 21px; color: var(--green-text); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; }
.panel-ok p { margin: 0; font-size: 15px; line-height: 1.65; }
.panel-ok .banner { margin: 0; }
.panel-ok__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 6px; }
.panel-ok__actions .btn { flex: 1 1 260px; }
.pay-form { display: contents; }
.panel-ok .form-note { text-align: left; font-size: 12.5px; color: var(--muted2); padding-top: 4px; }
.panel-ok__footer { margin-top: 0; padding-top: 18px; border-top: 1px solid rgba(100, 180, 69, 0.4); }
.panel-ok__footer .btn { flex: 0 1 auto; }

/* ---- Kontakt ---------------------------------------------------------------------- */
.contact { background: var(--surface); }
.contact__in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; }
.contact__col { flex: 1 1 380px; min-width: 280px; padding: clamp(32px, 4vw, 54px) 24px; display: flex; flex-direction: column; gap: 18px; font-size: 14px; line-height: 1.6; }
.contact__col img { display: block; align-self: flex-start; width: 110px; max-width: 100%; height: auto; border-radius: 12px; }
.contact__col strong.contact__name { font-size: 15px; }
.contact__col--offices { background: linear-gradient(135deg, var(--h1) 0%, var(--h2) 55%, var(--h3) 100%); color: #fff; padding: clamp(32px, 4vw, 54px) 26px; gap: 30px; }
.contact__col--offices a { color: #fff; }
.office { display: flex; gap: 14px; }
.office__pin { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: rgba(255, 255, 255, 0.9); transform: rotate(-45deg); }
.office__body { font-size: 14px; line-height: 1.55; }
.office__name { display: block; font-size: 16px; text-transform: uppercase; }
.office__hours { display: block; margin-top: 10px; opacity: 0.92; }

/* ---- Przelewy24 + regulamin ------------------------------------------------------- */
.p24 { background: var(--surface2); padding: clamp(26px, 4vw, 42px) 20px; }
.p24__in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; align-items: center; }
.p24__in img { display: block; max-width: 100%; height: auto; }
.p24__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted3); }
.linkbtn { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--blue-text); text-decoration: underline; text-align: left; }
.rules { max-width: 1100px; margin: 26px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); font-size: 13.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 14px; }
.rules h2 { margin: 0; font-size: 18px; font-weight: 900; color: var(--head-blue); }
.rules h3 { margin: 6px 0 0; font-size: 14px; font-weight: 900; text-transform: uppercase; color: var(--head); }
.rules p { margin: 0; }
.rules p.muted { color: var(--muted2); }

.footbar { background: var(--brand-deep); color: rgba(255, 255, 255, 0.9); font-size: 12px; padding: 16px 20px; text-align: center; }

/* ---- Strona przerwy technicznej ------------------------------------------------------ */
.maint { max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) 20px; display: flex; flex-direction: column; gap: 22px; }
.maint__box { background: var(--surface); border-top: 3px solid var(--green); border-radius: 0 0 10px 10px; padding: 26px; text-align: center; }
.maint__box h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); color: var(--head-blue); font-weight: 900; }
.maint__box p { font-size: 15px; line-height: 1.6; }
.maint__contact { background: var(--surface); border-radius: 10px; padding: 20px; font-size: 14px; line-height: 1.6; }
