/* Landing page: Maľovanie interiérov (všetky triedy majú prefix mal-) */

:root {
    --mal-blue: #232b3d;
    --mal-orange: #F7C59F;
    --mal-orange-dark: #f3b685;
    --mal-bg: #F1F4FF;
    --mal-white: #fff;
    --mal-text: #3b4358;
}

html { scroll-behavior: smooth; }
#formular { scroll-margin-top: 24px; }

.mal-hero, .mal-reviews, .mal-steps, .mal-method, .mal-gal, .mal-faq, .mal-final {
    width: 100%;
    display: block;
}

.mal-h2 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2em;
    color: var(--mal-blue);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 14px auto;
}
.mal-lead {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6em;
    color: var(--mal-text);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 44px auto;
}
.mal-lead--wide { max-width: 900px; }
.mal-lead b { font-weight: 700; color: var(--mal-blue); }

/* Tlacidla */
.mal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2em;
    text-decoration: none !important;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    text-align: center;
}
.mal-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.mal-btn--cta {
    background: var(--mal-orange);
    color: var(--mal-blue);
    box-shadow: 0 4px 14px rgba(247, 197, 159, 0.35);
}
.mal-btn--cta:hover {
    background: var(--mal-orange-dark);
    color: var(--mal-blue);
    transform: translateY(-1px);
}
.mal-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}
.mal-btn--ghost b { font-weight: 900; }
.mal-btn--ghost:hover { border-color: var(--mal-orange); color: var(--mal-orange); }

/* HERO */
.mal-hero {
    background: url(../images/malovanie/hero--bg--pc-2.png) no-repeat center center;
    background-color: var(--mal-blue);
    background-size: cover !important;
    padding: 64px 0 72px 0;
}
.mal-hero--container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: start;
}
.mal-hero--loc {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.mal-hero--badge {
    margin-bottom: 14px;
    min-height: 40px;
}
.mal-hero--title {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.12em;
    color: #fff;
    margin-bottom: 22px;
}
.mal-hero--desc {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.6em;
    color: #d6dbea;
    margin-bottom: 26px;
    max-width: 640px;
}
.mal-hero--desc b { color: #fff; font-weight: 700; }
.mal-hero--benefits {
    list-style: none;
    margin: 0 0 34px 0;
    display: grid;
    gap: 14px;
}
.mal-hero--benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35em;
}
.mal-hero--benefits svg {
    width: 26px;
    height: 26px;
    flex: none;
    padding: 4px;
    border-radius: 50%;
    background: var(--mal-orange);
    fill: none;
    stroke: var(--mal-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mal-hero--btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Formular */
.mal-form {
    background: #fff;
    border-radius: 18px;
    padding: 34px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.mal-form--title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2em;
    color: var(--mal-blue);
    margin-bottom: 8px;
}
.mal-hero--rating {
    display: block;
  width: 230px;
  margin-top: 14px;
}
.mal-form--sub {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5em;
    color: var(--mal-text);
    margin-bottom: 22px;
}
.mal-form--done { display: none; padding: 30px 0; }
.mal-form--success .mal-form--main { display: none; }
.mal-form--success .mal-form--done { display: block; }

.mal-field { margin-bottom: 11px; }
.mal-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--mal-blue);
    margin-bottom: 5px;
}
.mal-field label span { color: #d9534f; }
.mal-field input,
.mal-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--mal-blue);
    background: var(--mal-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.mal-field textarea { resize: vertical; min-height: 84px; }
.mal-field input::placeholder,
.mal-field textarea::placeholder { color: #8a93aa; font-weight: 400; }
.mal-field input:focus,
.mal-field textarea:focus { border-color: var(--mal-blue); background: #fff; }
.mal-field .is-invalid { border-color: #d9534f; background: #fff5f5; }

.mal-form--btn { width: 100%; margin-top: 6px; }
.mal-form--trust {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--mal-blue);
    margin-top: 14px;
}
.mal-form--gdpr {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5em;
    color: #7b849b;
    margin-top: 8px;
}
.mal-form--gdpr a { color: inherit; text-decoration: underline; }

/* Recenzie */
.mal-reviews {
    background: #fff;
    padding: 72px 0;
}
.mal-reviews .mal-h2 { margin-bottom: 36px; }
.mal-reviews--widget { max-width: 900px; margin: 0 auto; }

/* Proces */
.mal-steps {
    background: var(--mal-bg);
    padding: 80px 0;
}
.mal-steps--items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.mal-step {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 18px rgba(35, 43, 61, 0.06);
}
.mal-step--icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--mal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.mal-step--icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--mal-orange);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mal-step h3 {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25em;
    color: var(--mal-blue);
    margin-bottom: 10px;
}
.mal-step h3 span { color: #e0955a; }
.mal-step p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6em;
    color: var(--mal-text);
}

/* Airless vs valcek */
.mal-method {
    background: #fff;
    padding: 80px 0;
}
.mal-method--cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.mal-card {
    background: var(--mal-blue);
    color: #fff;
    border-radius: 16px;
    padding: 32px 30px;
}
.mal-card--alt { background: var(--mal-bg); color: var(--mal-blue); }
.mal-card h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
}
.mal-card ul { list-style: none; display: grid; gap: 10px; }
.mal-card li {
    position: relative;
    padding-left: 28px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4em;
}
.mal-card li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mal-orange);
}
.mal-card li:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 4px;
    height: 8px;
    border: solid var(--mal-blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Galeria */
.mal-gal {
    background: var(--mal-bg);
    padding: 80px 0;
}
.mal-gal--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.mal-gal--item {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #dfe5f6;
    position: relative;
}
.mal-gal--item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.mal-gal--item:hover img { transform: scale(1.05); }
.mal-gal--cta {
    margin-top: 44px;
    text-align: center;
}
.mal-gal--cta p {
    font-size: 22px;
    font-weight: 900;
    color: var(--mal-blue);
    margin-bottom: 18px;
}

/* FAQ */
.mal-faq {
    background: #fff;
    padding: 80px 0;
}
.mal-faq .mal-h2 { margin-bottom: 36px; }
.mal-faq--list { max-width: 860px; margin: 0 auto; }
.mal-faq .accordion-item {
    margin-bottom: 10px;
    border: 2px solid #e4e9f7 !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
}
.mal-faq .accordion-header { margin: 0; }
.mal-faq .accordion-button {
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    color: var(--mal-blue) !important;
    background: #fff;
    padding: 20px 22px;
    box-shadow: none !important;
}
.mal-faq .accordion-button:not(.collapsed) { background: var(--mal-bg); }
.mal-faq .accordion-body { background: var(--mal-bg); padding: 4px 22px 22px 22px; }
.mal-faq .accordion-body p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6em;
    color: var(--mal-text);
}

/* Zaverecne CTA */
.mal-final {
    background: var(--mal-blue);
    padding: 80px 0;
    text-align: center;
}
.mal-final h2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.2em;
    color: #fff;
    margin-bottom: 14px;
}
.mal-final p {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6em;
    color: #d6dbea;
    max-width: 620px;
    margin: 0 auto 32px auto;
}
.mal-final--btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Tablet */
@media (max-width: 1100px) {
    .mal-hero--container { grid-template-columns: 1fr; gap: 40px; }
    .mal-hero--title { font-size: 42px; }
    .mal-steps--items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mal-form { max-width: 620px; }
}

/* Mobil */
@media (max-width: 700px) {
    .mal-hero {
            background: url(../images/malovanie/hero--bg--mobile-3.png) no-repeat center center;
            background-color: var(--mal-blue);
            background-size: cover !important;
            padding: 64px 0 72px 0;
        }
    .mal-hero { padding: 40px 0 48px 0; }
    .mal-hero--title { font-size: 33px; }
    .mal-hero--desc { font-size: 17px; }
    .mal-hero--benefits li { font-size: 16px; }
    .mal-hero--btns { flex-direction: column; }
    .mal-hero--btns .mal-btn,
    .mal-final--btns .mal-btn { width: 100%; }
    .mal-form { padding: 26px 20px; }
    .mal-form--title { font-size: 24px; }

    .mal-reviews, .mal-steps, .mal-method, .mal-gal, .mal-faq, .mal-final { padding: 52px 0; }
    .mal-h2 { font-size: 28px; }
    .mal-lead { font-size: 16px; margin-bottom: 30px; }
    .mal-steps--items { grid-template-columns: 1fr; }
    .mal-method--cards { grid-template-columns: 1fr; }
    .mal-gal--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mal-gal--cta p { font-size: 19px; }
    .mal-faq .accordion-button { font-size: 17px; padding: 16px 18px; }
    .mal-final h2 { font-size: 30px; }
    .mal-final p { font-size: 17px; }
    .mal-hero--rating {
        width: 100%;
    }
}

/* Stav odosielania formulára */
.mal-btn--loading,
.mal-btn--loading:hover {
    opacity: 0.85;
    cursor: wait;
    transform: none;
    pointer-events: none;
}
.mal-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(35, 43, 61, 0.25);
    border-top-color: var(--mal-blue);
    border-radius: 50%;
    display: inline-block;
    animation: mal-spin 0.7s linear infinite;
}
@keyframes mal-spin { to { transform: rotate(360deg); } }
