/*
Theme Name: RestFor Child
Theme URI: https://restfor.ru/
Description: Дочерняя тема RestFor для Reboot.
Author: RestFor
Template: reboot
Version: 1.0.1
Text Domain: restfor
*/

:root {
    --rf-ink: #17332d;
    --rf-muted: #5e716c;
    --rf-green: #176b5b;
    --rf-green-dark: #0d4f44;
    --rf-mint: #e9f5f1;
    --rf-sand: #f7f1e6;
    --rf-line: #d9e5e1;
    --rf-white: #fff;
    --rf-shadow: 0 16px 40px rgba(23, 51, 45, .09);
}

body {
    color: var(--rf-ink);
}

.home .site-content {
    padding-top: 0;
}

.home .site-content-inner {
    display: block;
}

.rf-home {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.rf-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 44px;
    padding: clamp(38px, 7vw, 82px) clamp(22px, 6vw, 76px);
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 86% 18%, rgba(255,255,255,.35) 0 7%, transparent 7.3%),
        linear-gradient(125deg, #dff4ec 0%, #f8f2e5 62%, #f4d9b9 100%);
}

.rf-hero::after {
    position: absolute;
    right: -75px;
    bottom: -100px;
    width: 310px;
    height: 310px;
    border: 55px solid rgba(23, 107, 91, .08);
    border-radius: 50%;
    content: "";
}

.rf-eyebrow {
    margin: 0 0 14px;
    color: var(--rf-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rf-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--rf-ink);
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.rf-hero__lead {
    max-width: 670px;
    margin: 0 0 28px;
    color: #35534c;
    font-size: clamp(17px, 2.2vw, 21px);
    line-height: 1.55;
}

.rf-actions,
.rf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rf-button,
.rf-chip {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    border-radius: 999px;
    text-decoration: none;
}

.rf-button {
    padding: 11px 22px;
    background: var(--rf-green);
    color: var(--rf-white);
    font-weight: 700;
    box-shadow: 0 9px 22px rgba(23, 107, 91, .2);
}

.rf-button:hover,
.rf-button:focus {
    background: var(--rf-green-dark);
    color: var(--rf-white);
}

.rf-button--ghost {
    border: 1px solid rgba(23, 107, 91, .25);
    background: rgba(255,255,255,.65);
    color: var(--rf-green-dark);
    box-shadow: none;
}

.rf-section {
    margin: 0 0 54px;
}

.rf-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.rf-section h2 {
    margin: 0;
    color: var(--rf-ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.rf-section__intro {
    max-width: 700px;
    margin: 9px 0 0;
    color: var(--rf-muted);
    font-size: 16px;
}

.rf-section__link {
    flex: 0 0 auto;
    color: var(--rf-green);
    font-weight: 700;
}

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

.rf-destination,
.rf-guide,
.rf-step {
    border: 1px solid var(--rf-line);
    border-radius: 18px;
    background: var(--rf-white);
    box-shadow: 0 8px 26px rgba(23, 51, 45, .05);
}

.rf-destination {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 25px;
    color: var(--rf-ink);
    text-decoration: none;
}

.rf-destination::after {
    position: absolute;
    right: -34px;
    bottom: -45px;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: var(--rf-card-accent, var(--rf-mint));
    content: "";
    transition: transform .25s ease;
}

.rf-destination:hover::after {
    transform: scale(1.15);
}

.rf-destination__name {
    display: block;
    margin-bottom: 8px;
    font-size: 25px;
    font-weight: 800;
}

.rf-destination__count,
.rf-destination__hint {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--rf-muted);
}

.rf-destination__hint {
    margin-top: 31px;
    color: var(--rf-green);
    font-weight: 700;
}

.rf-tasks {
    padding: clamp(26px, 4vw, 46px);
    border-radius: 24px;
    background: var(--rf-sand);
}

.rf-chip {
    padding: 10px 17px;
    border: 1px solid rgba(23, 107, 91, .18);
    background: var(--rf-white);
    color: var(--rf-green-dark);
    font-weight: 650;
}

.rf-chip:hover,
.rf-chip:focus {
    border-color: var(--rf-green);
    color: var(--rf-green);
}

.rf-guide {
    overflow: hidden;
}

.rf-guide__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--rf-mint);
}

.rf-guide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.rf-guide:hover .rf-guide__image img {
    transform: scale(1.035);
}

.rf-guide__body {
    padding: 21px;
}

.rf-guide__meta {
    margin-bottom: 9px;
    color: var(--rf-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rf-guide h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.25;
}

.rf-guide h3 a {
    color: var(--rf-ink);
    text-decoration: none;
}

.rf-guide p {
    margin: 0;
    color: var(--rf-muted);
    line-height: 1.55;
}

.rf-method {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 34px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 24px;
    background: var(--rf-ink);
    color: #dce9e5;
}

.rf-method h2 {
    color: var(--rf-white);
}

.rf-method p {
    margin: 12px 0 0;
    color: #c6d8d3;
    font-size: 17px;
    line-height: 1.6;
}

.rf-steps {
    display: grid;
    gap: 10px;
}

.rf-step {
    padding: 16px 18px;
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: var(--rf-white);
}

.rf-trust-note {
    margin: 26px 0 10px;
    padding: 18px 20px;
    border-left: 4px solid var(--rf-green);
    border-radius: 8px;
    background: var(--rf-mint);
    color: #35534c;
    font-size: 14px;
    line-height: 1.55;
}

.rf-trust-note strong {
    color: var(--rf-ink);
}

.post-card__comments {
    display: none;
}

@media (max-width: 900px) {
    .rf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rf-method {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .rf-hero {
        margin-right: -15px;
        margin-left: -15px;
        border-radius: 0 0 22px 22px;
    }

    .rf-grid {
        grid-template-columns: 1fr;
    }

    .rf-section__head {
        display: block;
    }

    .rf-section__link {
        display: inline-block;
        margin-top: 12px;
    }
}
