:root {
    --bg: #3e4b68;
    --bg-deep: #324059;
    --panel: #495979;
    --panel-soft: #596a8c;
    --accent: #ff8e72;
    --accent-2: #7fe6d6;
    --accent-3: #b7d2ff;
    --text: #f7fbff;
    --muted: #dde7fb;
    --soft: #c8d5ef;
    --line: rgba(247, 251, 255, 0.14);
    --shadow: 0 24px 56px rgba(20, 28, 48, 0.28);
    --wrap: 1160px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 142, 114, 0.16), rgba(255, 142, 114, 0) 28%),
        radial-gradient(circle at 84% 16%, rgba(127, 230, 214, 0.14), rgba(127, 230, 214, 0) 26%),
        linear-gradient(180deg, #465473 0%, #37455f 100%);
    line-height: 1.68;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 19px;
    line-height: 1.3;
}

p {
    font-size: 16px;
    color: var(--muted);
}

.site-head {
    padding: 22px 0 18px;
}

.head-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.brand-plate {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(183, 210, 255, 0.18), rgba(127, 230, 214, 0.12)), var(--bg-deep);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.brand-plate::before,
.brand-plate::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.brand-plate::before {
    top: 17px;
    left: 14px;
    width: 42px;
    height: 42px;
    border: 3px solid rgba(127, 230, 214, 0.88);
}

.brand-plate::after {
    right: 12px;
    bottom: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 142, 114, 0.92);
}

.brand-copy strong {
    display: block;
    font-size: 19px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-copy small {
    display: block;
    margin-top: 4px;
    color: var(--soft);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.head-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.head-btn {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.head-btn.phone {
    background: linear-gradient(135deg, rgba(255, 142, 114, 0.96), rgba(255, 177, 103, 0.92));
    color: #29364d;
    box-shadow: 0 14px 30px rgba(255, 142, 114, 0.24);
}

.head-btn.online {
    background: rgba(247, 251, 255, 0.08);
    border-color: var(--line);
}

.hero {
    padding: 22px 0;
}

.hero-shell {
    position: relative;
    padding: 34px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(50, 64, 89, 0.92), rgba(74, 89, 121, 0.9));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-shell::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 24px;
    width: 160px;
    height: 160px;
    border-radius: 30px;
    border: 1px dashed rgba(183, 210, 255, 0.4);
    transform: rotate(8deg);
}

.hero-shell::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 22px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    opacity: 0.95;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
}

.hero-copy,
.hero-side,
.rack,
.rack-panel,
.flow-area,
.flow-side,
.duo-card,
.footer-box {
    min-width: 0;
}

.prelude {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--soft);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.prelude::before {
    content: "";
    width: 54px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), rgba(127, 230, 214, 0));
}

.hero-copy {
    display: grid;
    gap: 18px;
}

.hero-side {
    display: grid;
    gap: 16px;
}

.side-box,
.rack-panel,
.flow-area,
.flow-side,
.duo-card,
.footer-box {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(90, 106, 140, 0.2), rgba(43, 55, 79, 0.28)), rgba(57, 71, 98, 0.9);
    border: 1px solid var(--line);
}

.side-box h2,
.duo-card h2,
.rack-panel h2,
.flow-area h2,
.flow-side h2 {
    margin-bottom: 12px;
}

.band {
    padding: 22px 0;
}

.rack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rack-panel p + p,
.flow-area p + p,
.flow-side p + p,
.duo-card p + p,
.footer-note p + p {
    margin-top: 12px;
}

.flow {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 20px;
}

.step-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.step-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(247, 251, 255, 0.1);
}

.step-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.step-item strong {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(127, 230, 214, 0.16);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.placeholder-zone {
    padding: 12px 0 28px;
}

.placeholder-zone .wrap {
    padding: 0 2px;
}

.placeholder-zone p {
    font-size: 14px;
    color: var(--soft);
}

.site-foot {
    padding: 0 0 42px;
}

.footer-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(247, 251, 255, 0.08);
    border: 1px solid var(--line);
}

@media (max-width: 1040px) {
    .hero-grid,
    .rack,
    .flow,
    .duo,
    .footer-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .head-row {
        grid-template-columns: 1fr;
    }

    .head-actions {
        justify-content: flex-start;
    }

    .hero-shell,
    .side-box,
    .rack-panel,
    .flow-area,
    .flow-side,
    .duo-card,
    .footer-box {
        padding: 22px;
    }

    .hero-shell::before {
        width: 96px;
        height: 96px;
    }

    .step-item {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }
}


/* Rozszerzenia dla poznan.agdwielkopolska.pl */
.head-btn.local {
    background: rgba(183, 210, 255, 0.12);
    border-color: var(--line);
}
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.text-link {
    display: inline;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(127, 230, 214, 0.62);
    text-underline-offset: 4px;
}
.text-link:hover, .text-link:focus-visible {
    text-decoration-color: var(--accent);
}
.head-btn:hover, .head-btn:focus-visible, .footer-links a:hover, .footer-links a:focus-visible, .district-index a:hover, .district-index a:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(247, 251, 255, 0.32);
}
.district-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.district-index a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(247, 251, 255, 0.07);
    border: 1px solid var(--line);
    font-size: 13px;
}
.district-list {
    display: grid;
    gap: 14px;
}
.district-row {
    scroll-margin-top: 20px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(90, 106, 140, 0.2), rgba(43, 55, 79, 0.28)), rgba(57, 71, 98, 0.9);
    border: 1px solid var(--line);
}
.district-row > span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(127, 230, 214, 0.14);
    font-size: 12px;
    letter-spacing: .12em;
}
.district-row h2 { margin-bottom: 10px; }
.district-row p + p { margin-top: 9px; }
@media (max-width: 760px) {
    .district-row { grid-template-columns: 1fr; padding: 20px; }
    .head-actions { gap: 9px; }
    .head-btn { width: 100%; }
}
