/* === kasvulava.php === */

.rb-page {
    padding: 0 0 4rem;
    margin: 0;
}

.rb-hero {
    margin-top: 110px;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(140deg, #f7fbf2 0%, #edf5e4 100%);
}

.has-top-breadcrumbs .rb-hero {
    margin-top: 0;
}

.rb-shell {
    width: min(760px, calc(100% - 2rem));
    margin: 0 auto;
}

.rb-intro {
    max-width: 620px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.rb-intro h1 {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-dark-brown);
}

.rb-intro p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.75;
}

/* Cards */
.rb-card {
    background: #fff;
    border: 1px solid rgba(31, 61, 15, 0.12);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: 0 14px 32px rgba(31, 61, 15, 0.08);
}

.rb-card + .rb-card {
    margin-top: 1rem;
}

/* Section label */
.rb-section-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark-brown);
    margin: 0 0 0.5rem;
}

/* Preset buttons */
.rb-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rb-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.75rem 0.85rem;
    border: 2px solid #dfe4d8;
    border-radius: 16px;
    background: #fbfdf8;
    color: #4a5a3c;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.15s;
}

.rb-preset:hover {
    border-color: #8daf55;
    background: #f2f8e9;
    box-shadow: 0 4px 14px rgba(59, 109, 17, 0.1);
    transform: translateY(-1px);
}

.rb-preset.is-active {
    border-color: #3B6D11;
    background: linear-gradient(145deg, #4a8a1a 0%, #3B6D11 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 109, 17, 0.22);
    transform: translateY(-1px);
}

.rb-preset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 34px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rb-preset.is-active .rb-preset-icon {
    opacity: 1;
}

.rb-preset-size {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.rb-preset-unit {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.65;
    margin-top: -0.2rem;
}

.rb-preset.is-active .rb-preset-unit {
    opacity: 0.85;
}

/* Form */
.rb-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rb-form-2col {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0.75rem;
}

.rb-form-depth {
    grid-template-columns: 1fr;
    max-width: 240px;
    margin-bottom: 0.75rem;
}

.rb-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rb-field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark-brown);
}

.rb-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9ddd3;
    border-radius: 12px;
    padding: 0 0.85rem;
    font-size: 1.05rem;
    background: #fff;
    color: #2d3426;
    box-sizing: border-box;
}

.rb-field input:focus {
    outline: none;
    border-color: #8daf55;
    box-shadow: 0 0 0 4px rgba(141, 175, 85, 0.14);
}

.rb-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rb-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rb-actions .btn {
    flex: 1;
    text-align: center;
    min-width: 140px;
}

/* Bed list */
.rb-beds {
    margin-top: 1rem;
}

.rb-beds-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-brown);
    margin: 0 0 0.5rem;
}

.rb-bed-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rb-bed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: #fbfdf8;
    border: 1px solid rgba(31, 61, 15, 0.1);
    border-radius: 12px;
}

.rb-bed-info {
    font-size: 0.95rem;
    color: #2d3426;
}

.rb-bed-info strong {
    color: var(--color-dark-brown);
}

.rb-bed-vol {
    font-weight: 600;
    font-size: 0.95rem;
    color: #3B6D11;
    white-space: nowrap;
    margin: 0 0.75rem;
}

.rb-bed-remove {
    background: none;
    border: 1px solid rgba(180, 60, 60, 0.2);
    border-radius: 8px;
    color: #a04040;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.rb-bed-remove:hover {
    background: #fbeaea;
    color: #802020;
}

/* Result summary */
.rb-result {
    display: none;
    margin-top: 1rem;
}

.rb-result.is-visible {
    display: block;
}

.rb-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.rb-stat {
    border: 1px solid rgba(31, 61, 15, 0.1);
    border-radius: 14px;
    padding: 0.9rem;
    background: #fbfdf8;
    text-align: center;
}

.rb-stat-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #3B6D11;
    margin: 0;
}

.rb-stat-label {
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin: 0.15rem 0 0;
}

/* Info section */
.rb-info h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    color: var(--color-dark-brown);
}

.rb-info h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1.05rem;
    color: #2f4b12;
}

.rb-info p,
.rb-info li {
    color: var(--color-text-light);
    line-height: 1.7;
}

.rb-info ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.rb-info ul li + li {
    margin-top: 0.25rem;
}

/* Depth guide table */
.rb-depth-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.rb-depth-table th,
.rb-depth-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(31, 61, 15, 0.1);
}

.rb-depth-table th {
    background: #f3f8ec;
    color: var(--color-dark-brown);
    font-weight: 600;
    font-size: 0.9rem;
}

.rb-depth-table td {
    color: var(--color-text-light);
}

.rb-note {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid #89ac51;
    background: #f6faef;
    border-radius: 8px;
    color: #405236;
    line-height: 1.7;
}

.rb-back {
    margin-top: 1rem;
}

.rb-back .btn {
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .rb-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rb-shell {
        width: calc(100% - 1rem);
    }

    .rb-form {
        grid-template-columns: 1fr;
    }

    .rb-price-row {
        grid-template-columns: 1fr;
    }

    .rb-summary {
        grid-template-columns: 1fr;
    }

    .rb-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .rb-presets {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .rb-preset {
        padding: 0.75rem 0.4rem 0.65rem;
    }

    .rb-preset-size {
        font-size: 0.9rem;
    }

    .rb-preset-icon svg {
        width: 26px;
        height: auto;
    }

    .rb-intro h1 {
        font-size: 1.6rem;
    }

    .rb-bed-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .rb-bed-vol {
        margin: 0;
    }
}
