:root {
    --bg-dark: #17332d;
    --bg-darker: #10231f;
    --bg-soft: #f6f1e8;
    --surface: #fffdf8;
    --surface-alt: #efe4d3;
    --text-main: #20302c;
    --text-muted: #5c6a64;
    --accent: #c98b43;
    --accent-dark: #aa6d28;
    --border-soft: rgba(23, 51, 45, 0.1);
    --shadow-soft: 0 24px 60px rgba(16, 35, 31, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background: var(--bg-soft);
}

.navbar {
    background: rgba(16, 35, 31, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.navbar-logo {
    height: 80px;
    width: auto;
    display: block;
}

.navbar-brand,
.nav-link {
    letter-spacing: 0.02em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.hero-section {
    position: relative;
    padding: 10rem 0 6rem;
    background:
        linear-gradient(125deg, rgba(16, 35, 31, 0.88), rgba(23, 51, 45, 0.7)),
        radial-gradient(circle at top right, rgba(201, 139, 67, 0.45), transparent 30%),
        linear-gradient(135deg, #1a4037, #0f2521);
    color: #fff;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto -10% -25% auto;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 139, 67, 0.2), transparent 68%);
}

.hero-kicker,
.section-tag,
.panel-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-kicker,
.panel-label {
    color: #f1cc9d;
}

.hero-panel,
.metric-card,
.story-card,
.service-card,
.benefits-box,
.contact-card,
.contact-form,
.accordion-item {
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.hero-panel,
.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-panel {
    padding: 2rem;
    border-radius: 1.75rem;
}

.feature-list {
    padding-left: 1.2rem;
    margin: 1rem 0 0;
}

.feature-list li + li {
    margin-top: 0.85rem;
}

.metric-card {
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
}

.metric-card strong,
.metric-card span {
    display: block;
}

.metric-card strong {
    font-size: 1.25rem;
}

.metric-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-light {
    background: var(--bg-soft);
}

.section-dark {
    background:
        linear-gradient(180deg, rgba(16, 35, 31, 0.98), rgba(23, 51, 45, 0.98)),
        linear-gradient(145deg, rgba(201, 139, 67, 0.1), transparent 40%);
    color: #fff;
}

.section-dark .section-title,
.section-dark .section-subtitle,
.section-dark .service-card p,
.section-dark .gallery-tile figcaption {
    color: #fff;
}

.section-tag {
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    max-width: 42rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
}

.story-card,
.benefits-box,
.contact-card,
.contact-form {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 2rem;
}

.story-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.story-step + .story-step {
    margin-top: 1.5rem;
}

.story-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.story-step h3,
.service-card h3,
.benefits-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.75rem;
}

.service-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.benefits-box ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.custom-accordion .accordion-item {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
}

.custom-accordion .accordion-item + .accordion-item {
    margin-top: 1rem;
}

.custom-accordion .accordion-button {
    background: var(--surface);
    color: var(--text-main);
    font-weight: 600;
    padding: 1.2rem 1.3rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: var(--surface-alt);
    color: var(--text-main);
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.gallery-tile {
    position: relative;
    min-height: 250px;
    margin: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
}

.gallery-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.58));
}

.gallery-tile figcaption {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1;
    font-weight: 600;
}

.tile-fit {
    grid-column: span 2;
    min-height: 360px;
    max-width: 182px;
}

.tile-medium {
    grid-column: span 3;
    min-height: 360px;
    max-width: 273px;
}

.tile-square {
    grid-column: span 4;
    min-height: 360px;
    max-width: 365px;
}

.tile-rect {
    grid-column: span 5;
    min-height: 360px;
    max-width: 455px;
}

.tile-half {
    grid-column: span 6;
    min-height: 360px;
    max-width: 555px;
}

.tile-large {
    grid-column: span 7;
    min-height: 360px;
    max-width: 636px;
}

.tile-wide {
    grid-column: span 8;
}

.tile-1 {
    /*background:*/
    /*    linear-gradient(135deg, rgba(201, 139, 67, 0.2), rgba(16, 35, 31, 0.1)),*/
    /*    linear-gradient(45deg, #a16b34, #e5b166);*/

    background-size: cover;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.35)),
                url("../images/sauna-klasyczna-g3.png") center;

}

.tile-2 {
    /* background:
        linear-gradient(145deg, rgba(12, 24, 22, 0.25), rgba(12, 24, 22, 0.15)),
        linear-gradient(45deg, #355f59, #8db1aa); */
    background-size: cover;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.35)),
                url("../images/sauna-panoramiczna-g5.png") center;
}

.tile-3 {
    /*background:*/
    /*    linear-gradient(135deg, rgba(201, 139, 67, 0.2), rgba(12, 24, 22, 0.15)),*/
    /*    linear-gradient(45deg, #7e4f2f, #c79254);*/
    background-size: cover;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.35)),
    url("../images/sauna-narozna-fiolet-g2.png") center;
}

.tile-4 {
    /* background:
        linear-gradient(135deg, rgba(12, 24, 22, 0.1), rgba(201, 139, 67, 0.15)),
        linear-gradient(45deg, #35514f, #789890); */
    background-size: cover;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.35)),
                url("../images/sauna-skosna-g2.png") center;
}

.tile-5 {
    /* background:
        linear-gradient(135deg, rgba(201, 139, 67, 0.22), rgba(16, 35, 31, 0.18)),
        linear-gradient(45deg, #5d3a23, #d39c58); */
    background-size: cover;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.35)),
                url("../images/starsze-realizacje.png") center;
}

.tile-6 {
    background:
        linear-gradient(135deg, rgba(12, 24, 22, 0.15), rgba(201, 139, 67, 0.15)),
        linear-gradient(45deg, #466964, #c98b43);
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.form-control {
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    border-color: rgba(32, 48, 44, 0.16);
}

.form-control:focus {
    border-color: rgba(201, 139, 67, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(201, 139, 67, 0.18);
}

.site-footer {
    padding: 1.3rem 0;
    background: var(--bg-darker);
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .tile-large,
    .tile-tall,
    .tile-wide,
    .gallery-tile {
        grid-column: auto;
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 4.5rem 0;
    }

    .hero-panel,
    .story-card,
    .benefits-box,
    .contact-card,
    .contact-form {
        padding: 1.4rem;
    }
}
