/* inteligentnydom.net.pl — prosta strona firmowa, bez frameworków */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
    --ink:        #0f1720;
    --ink-muted:  #405061;
    --ink-faint:  #647488;
    --paper:      #edf2f7;
    --paper-2:    #e5ecf4;
    --white:      #ffffff;
    --line:       #cfd9e5;
    --brand:      #0b1117;
    --accent:     #9ad34a;
    --accent-dk:  #7db52f;
    --highlight:  #eef8df;

    --font-sans:  'Inter', system-ui, sans-serif;
    --font-serif: 'Manrope', 'Inter', system-ui, sans-serif;

    --max:        920px;
    --wide:       1080px;
    --radius:     3px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-dk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--brand); }

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand);
    margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; margin-bottom: .35em; }

p { margin: 0 0 1em; }
strong { font-weight: 600; }

button, input, select, textarea { font: inherit; }

.container {
    width: 100%;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container--narrow { max-width: var(--max); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: var(--white);
    padding: .6rem 1rem;
    z-index: 200;
}
.skip-link:focus { left: 0; }

/* --- Nav --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0d141c;
    border-bottom: 1px solid #1f2c3a;
}
.nav__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 56px;
}
.nav__brand {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #f5f8fb;
    text-decoration: none;
    margin-right: auto;
}
.nav__brand:hover { color: var(--accent); }
.nav__phone {
    font-weight: 600;
    font-size: .95rem;
    color: #dce7f3;
    text-decoration: none;
    white-space: nowrap;
}
.nav__phone:hover { color: var(--accent); }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav__menu a {
    color: #d2deeb;
    text-decoration: none;
    font-size: .95rem;
}
.nav__menu a:hover,
.nav__menu a.active { color: var(--accent); text-decoration: underline; }

.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.nav__burger span {
    display: block;
    height: 2px;
    background: #dce7f3;
    border-radius: 1px;
}

@media (max-width: 640px) {
    .nav__phone { display: none; }
    .nav__burger { display: flex; margin-left: auto; }
    .nav__inner { position: relative; }
    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #0d141c;
        border-bottom: 1px solid #1f2c3a;
        padding: .5rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,.06);
    }
    .nav__menu.is-open { display: flex; }
    .nav__menu a { padding: .75rem 1.25rem; border-top: 1px solid #1f2c3a; }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: .65rem 1.15rem;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
}
.btn--primary {
    background: var(--accent);
    color: #0f1608;
    border-color: var(--accent);
}
.btn--primary:hover {
    background: var(--accent-dk);
    border-color: var(--accent-dk);
    color: #0d1407;
}
.btn--secondary {
    background: rgba(255,255,255,.02);
    color: #dbe6f2;
    border-color: #2d3b49;
}
.btn--secondary:hover {
    border-color: var(--accent);
    color: #ffffff;
}
.btn--block { width: 100%; }
.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--brand);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(180deg, #0e161f 0%, #111d29 100%);
    border-bottom: 1px solid #1f2d3b;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 62%, rgba(154, 211, 74, .08) 62.5%, transparent 68%);
    pointer-events: none;
}
.hero__inner { max-width: 38rem; }
.hero__inner--split {
    max-width: var(--wide);
    display: grid;
    gap: 1.5rem;
}
.hero__content { max-width: 42rem; }
.hero__tag {
    display: inline-block;
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b8e978;
}
.hero__content h1 { color: #ffffff; }
.hero__subtitle {
    color: #d4e3f2;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 .85rem;
    line-height: 1.45;
}
.hero__lead {
    color: #b6c5d5;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}
.region-band {
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
}
.region-band__inner p {
    margin: 0;
    font-size: .95rem;
    color: var(--ink-muted);
    line-height: 1.6;
    max-width: 52rem;
}
.region-band__inner strong { color: var(--ink); }
.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0 0 1.4rem;
}
.hero__chips span {
    font-size: .8rem;
    font-weight: 600;
    color: #d7e8ff;
    background: rgba(117, 144, 171, .16);
    border: 1px solid #36506a;
    border-radius: 999px;
    padding: .25rem .7rem;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 0;
}
.hero__panel {
    background: #131f2c;
    color: #dce7f2;
    border-radius: 12px;
    padding: 1.2rem 1.2rem 1rem;
    border: 1px solid #263a4f;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.hero__panel h2 {
    font-size: 1.05rem;
    margin-bottom: .55rem;
    color: #fff;
}
.hero__panel ul {
    margin: 0 0 .65rem;
    padding-left: 1rem;
}
.hero__panel li { margin: .2rem 0; font-size: .9rem; }
.hero__panel p { margin: 0; font-size: .86rem; color: #a7bdd2; }

/* --- Sections --- */
.section {
    padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}
.section--tint { background: var(--paper-2); }
.section--contact {
    background: #0f1822;
    border-top: 1px solid #1e2d3a;
    padding-bottom: clamp(3rem, 7vw, 5rem);
}
.section--contact .section-title { color: #ffffff; border-bottom-color: var(--accent); }
.section--contact .contact-layout__info p,
.section--contact .contact-layout__info span { color: #c0cfe0; }
.section--contact .contact-layout__info a { color: #d8eaff; }
.section--contact .contact-lines--admin { color: #8aa5bf; border-top-color: #2a3d51; }

.section-title {
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.section-note {
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: .95rem;
    max-width: 42rem;
}

.prose { max-width: 38rem; }
.prose--wide { max-width: 46rem; }
.prose p:last-child { margin-bottom: 0; }

/* --- Service list --- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 0;
}
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.service-list__item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem 1.25rem;
    padding: 1.35rem 0;
    border-bottom: 0;
    align-items: start;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(17, 33, 52, .04);
}
.service-card h3 { color: #142233; }
.service-list__num {
    font-size: .8rem;
    font-weight: 600;
    color: #6d8499;
    padding-top: .2rem;
    font-variant-numeric: tabular-nums;
}
.service-list__body p {
    margin: 0;
    color: var(--ink-muted);
    font-size: .98rem;
}
.service-list__item--highlight {
    background: #eef8df;
    border-color: #d2ebb0;
    position: relative;
}
.service-list__item--highlight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent);
    border-radius: 10px 0 0 10px;
}

@media (min-width: 600px) {
    .service-list__item { grid-template-columns: 4rem 1fr; }
}
@media (min-width: 900px) {
    .hero__inner--split { grid-template-columns: 1.35fr .85fr; align-items: start; }
    .service-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Realizacje --- */
.cases {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.case {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 17, 23, .06);
}
.case__head {
    padding: 1.75rem 1.75rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.case__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}
.case__tag {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    background: var(--accent);
    color: #0e1a02;
    padding: .2rem .65rem;
    border-radius: 999px;
}
.case__type {
    font-size: .8rem;
    color: var(--ink-faint);
    font-weight: 500;
    padding: .2rem .65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.case__head h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    margin-bottom: .5rem;
    color: var(--brand);
}
.case__lead {
    margin: 0;
    color: var(--ink-muted);
    font-size: .98rem;
    max-width: 52rem;
}
.case__body {
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .case__body { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.case__col h4 {
    font-family: var(--font-sans);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-dk);
    margin: 0 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--highlight);
}
.case__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.case__list li {
    position: relative;
    padding: .3rem 0 .3rem 1.15rem;
    font-size: .93rem;
    color: var(--ink-muted);
    line-height: 1.5;
}
.case__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.case__list strong { color: var(--ink); font-weight: 600; }
.case__foot {
    padding: 1rem 1.75rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    color: var(--ink-faint);
}
.case__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.case__tags li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .15rem .55rem;
    font-size: .78rem;
    color: var(--ink-muted);
    font-weight: 500;
}

/* --- Q&A --- */
.qa { margin: 0; }
.qa__item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}
.qa__item:first-child { border-top: 1px solid var(--line); }
.qa dt {
    font-weight: 600;
    color: var(--brand);
    margin-bottom: .35rem;
}
.qa dd {
    margin: 0;
    color: var(--ink-muted);
    font-size: .98rem;
}
.qa--cards .qa__item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .9rem 1rem;
    background: var(--white);
    margin-bottom: .7rem;
}
.qa--cards .qa__item:first-child { border-top: 1px solid var(--line); }

/* --- Contact --- */
.contact-layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}
@media (min-width: 768px) {
    .contact-layout { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
}

.contact-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.contact-lines li {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: .5rem;
    padding: .35rem 0;
}
.contact-lines span { color: var(--ink-faint); font-size: .9rem; }
.contact-lines a { font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines--admin {
    font-size: .85rem;
    color: var(--ink-faint);
    line-height: 1.55;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--line);
}

.contact-form {
    background: #ffffff;
    border: 1px solid #d0dbe8;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.form__row { margin-bottom: 1rem; }
.form__row label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .3rem;
    color: var(--ink);
}
.form__row input,
.form__row select,
.form__row textarea {
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
}
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}
.form__row input[aria-invalid="true"],
.form__row textarea[aria-invalid="true"] {
    border-color: #b33;
    outline-color: #b33;
}
.form__row--two { display: grid; gap: 1rem; }
@media (min-width: 480px) { .form__row--two { grid-template-columns: 1fr 1fr; } }
.form__row--consent {
    margin-bottom: 1.25rem;
}
.form__row--consent label {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: .85rem;
    color: var(--ink-muted);
    cursor: pointer;
    line-height: 1.5;
}
.form__row--consent span { flex: 1; }
.form__row--consent input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: .18rem;
    flex-shrink: 0;
    accent-color: var(--accent-dk);
    cursor: pointer;
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
    display: none;
    padding: .65rem .85rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    border-radius: var(--radius);
}
.form__status.is-success { display: block; background: #e6f2e8; color: #1a5c2e; border: 1px solid #b8d9be; }
.form__status.is-error   { display: block; background: #fce8e8; color: #8b1a1a; border: 1px solid #e8b4b4; }
.form__status.is-info    { display: block; background: #e8f0f8; color: #1a4a6e; border: 1px solid #b8cfe8; }

#form-submit {
    margin-top: .25rem;
    font-size: 1rem;
    padding: .75rem 1.15rem;
    letter-spacing: .01em;
}
#form-submit[disabled] { opacity: .55; cursor: wait; }

/* --- Footer --- */
.footer {
    border-top: 1px solid #1f2e3b;
    background: #0d141c;
    padding: 1.75rem 0 2rem;
    font-size: .9rem;
    color: #b8c8d8;
}
.footer__inner { max-width: var(--max); }
.footer__main { margin: 0 0 1rem; line-height: 1.6; }
.footer__main strong { color: #ffffff; }
.footer__legal { margin: 0; font-size: .82rem; color: #9db1c4; }
.footer a { text-decoration: none; color: #c6d8ea; }
.footer a:hover { text-decoration: underline; }

/* --- Subpages (thanks, 404, doc) --- */
.page-center {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    max-width: 32rem;
    margin: 0 auto;
}
.page-center h1 { font-size: 1.65rem; }
.page-center p { color: var(--ink-muted); }

.doc {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}
.doc h1 { margin-bottom: .25rem; }
.doc__meta { color: var(--ink-faint); font-size: .85rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.2rem; margin-top: 2rem; font-family: var(--font-sans); }

.err__code {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--line);
    margin: 0 0 .5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
