/* Start custom CSS for html, class: .elementor-element-6dacc7e *//* ==================================================
   REGULAMIN I WARUNKI WSPÓŁPRACY
   STUDIO TERAPII MOWY
================================================== */

.stm-rules,
.stm-rules *,
.stm-rules *::before,
.stm-rules *::after {
    box-sizing: border-box;
}

.stm-rules {
    --stm-navy: #15356f;
    --stm-navy-soft: #294777;
    --stm-teal: #43c7bf;
    --stm-teal-dark: #1c8e8b;
    --stm-peach: #e99d91;
    --stm-peach-soft: #fae1da;
    --stm-cream: #fbf7f2;
    --stm-cream-deep: #f4ede5;
    --stm-white: #ffffff;
    --stm-text: #596477;
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--stm-text);
    background: var(--stm-cream);
    font-family: Arial, Helvetica, sans-serif;
}

.stm-rules__hero {
    position: relative;
    padding: 58px 22px 56px;
    background:
        radial-gradient(circle at 10% 15%, rgba(67, 199, 191, 0.10), transparent 20%),
        radial-gradient(circle at 92% 20%, rgba(233, 157, 145, 0.15), transparent 24%),
        linear-gradient(180deg, #fbf8f4 0%, #ffffff 100%);
}

.stm-rules__hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.stm-rules__hero-content {
    max-width: 730px;
}

.stm-rules__eyebrow {
    display: block;
    color: var(--stm-teal-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.stm-rules__title {
    margin: 13px 0 0;
    color: var(--stm-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 5vw, 67px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -1.15px;
}

.stm-rules__title span {
    display: block;
    margin-top: 8px;
    color: var(--stm-teal);
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 0.82em;
    font-weight: 500;
    letter-spacing: 0;
}

.stm-rules__edition {
    margin: 22px 0 0;
    color: #687286;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.stm-rules__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #63cec7, #42bdb6);
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(37, 151, 146, 0.20);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stm-rules__download:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(37, 151, 146, 0.26);
}

.stm-rules__download svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stm-rules__section {
    padding: 58px 22px 72px;
    background:
        radial-gradient(circle at 7% 9%, rgba(67, 199, 191, 0.07), transparent 20%),
        radial-gradient(circle at 95% 92%, rgba(233, 157, 145, 0.12), transparent 23%),
        var(--stm-cream);
}

.stm-rules__container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.stm-rules__paper {
    position: relative;
    padding: 47px 52px 50px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e9e1d9;
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(38, 49, 83, 0.07);
}

.stm-rules__paper-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8e0d8;
}

.stm-rules__paper-label {
    color: var(--stm-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.stm-rules__paper-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--stm-peach);
}

.stm-rules__paper-mark > span {
    width: 43px;
    height: 1px;
    background: currentColor;
}

.stm-rules__paper-mark svg {
    width: 32px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.stm-rules__clauses {
    position: relative;
    z-index: 2;
    counter-reset: stm-rule;
    display: grid;
    gap: 13px;
    margin-top: 30px;
}

.stm-rules__clause {
    position: relative;
    min-height: 48px;
    margin: 0;
    padding: 15px 18px 15px 57px;
    color: #4f5b6e;
    background: #fcfaf7;
    border: 1px solid #eee7e0;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.72;
}

.stm-rules__clause::before {
    counter-increment: stm-rule;
    content: counter(stm-rule, decimal-leading-zero);
    position: absolute;
    top: 14px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--stm-teal-dark);
    background: #e9f7f6;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

.stm-rules__clause--important {
    background: #fff7f4;
    border-color: #f1d8cf;
}

.stm-rules__clause--important::before {
    color: #a75e4f;
    background: #f8ddd5;
}

.stm-rules__clause--data {
    background: #f7fafc;
    border-color: #dfe8ed;
}

.stm-rules__signatures {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 34px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e8e0d8;
}

.stm-rules__signature {
    min-height: 55px;
    color: var(--stm-navy-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.stm-rules__signature--full {
    grid-column: 1 / -1;
}

.stm-rules__signature-line {
    display: block;
    margin-top: 12px;
    color: #7a8392;
    font-weight: 400;
    letter-spacing: 1px;
}

.stm-rules__leaf {
    position: absolute;
    right: -28px;
    bottom: -45px;
    z-index: 1;
    width: 170px;
    height: auto;
    fill: none;
    stroke: rgba(67, 199, 191, 0.18);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

@media (max-width: 800px) {
    .stm-rules__hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .stm-rules__paper {
        padding: 38px 30px 42px;
    }
}

@media (max-width: 560px) {
    .stm-rules__hero,
    .stm-rules__section {
        padding-right: 14px;
        padding-left: 14px;
    }

    .stm-rules__hero {
        padding-top: 40px;
        padding-bottom: 43px;
    }

    .stm-rules__title {
        font-size: 40px;
    }

    .stm-rules__download {
        width: 100%;
    }

    .stm-rules__section {
        padding-top: 35px;
        padding-bottom: 48px;
    }

    .stm-rules__paper {
        padding: 30px 17px 35px;
        border-radius: 19px;
    }

    .stm-rules__paper-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .stm-rules__paper-mark {
        display: none;
    }

    .stm-rules__clause {
        padding: 49px 15px 15px;
        font-size: 12px;
    }

    .stm-rules__clause::before {
        top: 13px;
        left: 14px;
    }

    .stm-rules__signatures {
        grid-template-columns: 1fr;
    }

    .stm-rules__signature--full {
        grid-column: auto;
    }

    .stm-rules__leaf {
        display: none;
    }
}

/* ==================================================
   WYDRUK / PDF
================================================== */

@page {
    size: A4;
    margin: 13mm 12mm 14mm;
}

@media print {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .stm-rules {
        overflow: visible;
        background: #ffffff;
    }

    .stm-rules__hero {
        padding: 7mm 4mm 8mm;
        background: #ffffff;
        border-bottom: 1px solid #e8e0d8;
    }

    .stm-rules__hero-inner {
        max-width: none;
    }

    .stm-rules__hero-actions {
        display: none !important;
    }

    .stm-rules__title {
        font-size: 31px;
        line-height: 1;
    }

    .stm-rules__edition {
        margin-top: 10px;
        font-size: 11px;
    }

    .stm-rules__section {
        padding: 8mm 0 0;
        background: #ffffff;
    }

    .stm-rules__container {
        max-width: none;
    }

    .stm-rules__paper {
        padding: 0;
        overflow: visible;
        background: #ffffff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .stm-rules__paper-head {
        padding-bottom: 4mm;
    }

    .stm-rules__paper-label {
        font-size: 21px;
    }

    .stm-rules__clauses {
        gap: 2.7mm;
        margin-top: 5mm;
    }

    .stm-rules__clause {
        break-inside: avoid;
        min-height: 0;
        padding: 3.4mm 4mm 3.4mm 12mm;
        border-radius: 3mm;
        font-size: 9.2px;
        line-height: 1.47;
    }

    .stm-rules__clause::before {
        top: 3.2mm;
        left: 3.6mm;
        width: 6.3mm;
        height: 6.3mm;
        font-size: 7px;
    }

    .stm-rules__signatures {
        break-inside: avoid;
        gap: 6mm 10mm;
        margin-top: 8mm;
        padding-top: 7mm;
    }

    .stm-rules__signature {
        min-height: 12mm;
        font-size: 10px;
    }

    .stm-rules__leaf {
        display: none;
    }
}/* End custom CSS */