/* ============================================
   FrogTraveler — дизайн-система (mobile-first)
   Базовые стили — для мобильных устройств,
   адаптация под большие экраны — через min-width.
   ============================================ */

:root {
    /* Палитра: сочная «лягушачья» зелень + тёплые акценты */
    --ft-green: #22b573;
    --ft-green-dark: #0e8a54;
    --ft-green-deep: #0b3d2e;
    --ft-teal: #12b5a5;
    --ft-lime: #a8e063;
    --ft-yellow: #ffd23f;
    --ft-orange: #ff8a3d;
    --ft-ink: #14352a;
    --ft-muted: #5c7a6d;
    --ft-bg: #f3faf5;
    --ft-card: #ffffff;
    --ft-radius: 1.25rem;
    --ft-radius-sm: 0.85rem;
    --ft-shadow: 0 6px 24px rgba(11, 61, 46, 0.10);
    --ft-shadow-hover: 0 14px 34px rgba(11, 61, 46, 0.18);
    --ft-gradient: linear-gradient(120deg, var(--ft-green-dark), var(--ft-green) 55%, var(--ft-teal));
    --ft-gradient-warm: linear-gradient(120deg, var(--ft-orange), var(--ft-yellow));
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 7rem;
}

body {
    font-family: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ft-ink);
    background-color: var(--ft-bg);
    font-size: 1.02rem;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.blog-header-logo {
    font-family: "Montserrat", "Nunito", sans-serif;
    font-weight: 800;
    color: var(--ft-ink);
    letter-spacing: -0.01em;
}

a {
    color: var(--ft-green-dark);
    transition: color 0.15s ease;
}

    a:hover {
        color: var(--ft-green);
    }

::selection {
    background: var(--ft-yellow);
    color: var(--ft-ink);
}

/* ---------- Кнопки ---------- */

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.55rem 1.35rem;
}

.btn-ft {
    background: var(--ft-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 6px 18px rgba(34, 181, 115, 0.35);
}

    .btn-ft:hover,
    .btn-ft:focus {
        color: #fff;
        filter: brightness(1.06);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(34, 181, 115, 0.45);
    }

.btn-ft-outline {
    background: transparent;
    border: 2px solid var(--ft-green);
    color: var(--ft-green-dark);
}

    .btn-ft-outline:hover,
    .btn-ft-outline:focus {
        background: var(--ft-green);
        border-color: var(--ft-green);
        color: #fff;
    }

/* ---------- Бейджи, чипы, заголовки разделов ---------- */

.ft-chip {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: rgba(34, 181, 115, 0.12);
    color: var(--ft-green-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ft-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.45rem;
}

    .ft-section-title::before {
        content: "";
        width: 0.45rem;
        height: 1.6rem;
        border-radius: 999px;
        background: var(--ft-gradient-warm);
        flex-shrink: 0;
    }

.ft-date {
    color: var(--ft-green-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---------- Карточки постов ---------- */

.post-card {
    border: none;
    border-radius: var(--ft-radius);
    background: var(--ft-card);
    box-shadow: var(--ft-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .post-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--ft-shadow-hover);
    }

    .post-card .card-img-top {
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center;
    }

    .post-card .card-body {
        padding: 1.1rem 1.15rem 1.25rem;
    }

    .post-card .card-title a {
        color: var(--ft-ink);
    }

        .post-card .card-title a:hover {
            color: var(--ft-green-dark);
        }

/* Горизонтальная карточка (списки постов) */

.post-card-row {
    border: none;
    border-radius: var(--ft-radius);
    background: var(--ft-card);
    box-shadow: var(--ft-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .post-card-row:hover {
        transform: translateY(-4px);
        box-shadow: var(--ft-shadow-hover);
    }

    .post-card-row .post-card-row__img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
    }

@media (min-width: 768px) {
    .post-card-row .post-card-row__img {
        height: 100%;
        min-height: 200px;
        border-radius: 0;
    }
}

/* ---------- Hero (главная) ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--ft-gradient);
    color: #fff;
    border-radius: 0 0 2rem 2rem;
    padding: 2.5rem 0 3rem;
}

    .hero::before,
    .hero::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .hero::before {
        width: 22rem;
        height: 22rem;
        right: -8rem;
        top: -8rem;
        background: radial-gradient(circle, rgba(255, 210, 63, 0.35), transparent 65%);
    }

    .hero::after {
        width: 18rem;
        height: 18rem;
        left: -7rem;
        bottom: -9rem;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
    }

    .hero .container {
        position: relative;
        z-index: 1;
    }

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__title {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 1rem 0 0.9rem;
}

.hero__lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__btn-primary {
    background: var(--ft-yellow);
    color: var(--ft-ink);
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

    .hero__btn-primary:hover,
    .hero__btn-primary:focus {
        background: #ffdc66;
        color: var(--ft-ink);
        transform: translateY(-1px);
    }

.hero__btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

    .hero__btn-ghost:hover,
    .hero__btn-ghost:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: #fff;
        color: #fff;
    }

.hero__img-wrap {
    position: relative;
    max-width: 21rem;
    margin: 2rem auto 0;
}

    .hero__img-wrap::before {
        content: "";
        position: absolute;
        inset: -0.6rem;
        border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%;
        background: rgba(255, 255, 255, 0.16);
        animation: hero-blob 9s ease-in-out infinite alternate;
    }

.hero__img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%;
    border: 5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    animation: hero-blob 9s ease-in-out infinite alternate, hero-float 6s ease-in-out infinite;
}

.hero__sticker {
    position: absolute;
    right: -0.4rem;
    bottom: 12%;
    background: var(--ft-yellow);
    color: var(--ft-ink);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transform: rotate(6deg);
    z-index: 2;
}

@keyframes hero-blob {
    0% { border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%; }
    50% { border-radius: 55% 45% 42% 58% / 52% 58% 42% 48%; }
    100% { border-radius: 45% 55% 60% 40% / 42% 55% 45% 58%; }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (min-width: 992px) {
    .hero {
        padding: 4rem 0 4.5rem;
    }

    .hero__title {
        font-size: 2.9rem;
    }

    .hero__lead {
        font-size: 1.2rem;
    }

    .hero__img-wrap {
        margin-top: 0;
        max-width: 26rem;
    }
}

/* ---------- Блок «О себе» / инфо-блоки ---------- */

.about-block {
    position: relative;
    border: none;
    border-radius: var(--ft-radius);
    background: var(--ft-card);
    box-shadow: var(--ft-shadow);
    padding: 1.5rem;
    overflow: hidden;
}

    .about-block::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0.45rem;
        background: var(--ft-gradient);
    }

    .about-block h4 {
        margin-bottom: 0.75rem;
    }

    .about-block a {
        font-weight: 800;
    }

@media (min-width: 768px) {
    .about-block {
        padding: 2rem 2.25rem;
    }
}

/* ---------- Статья блога ---------- */

.blog-post {
    margin-bottom: 2.5rem;
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    margin-bottom: 1.25rem;
    color: var(--ft-green-dark);
    font-weight: 700;
}

.blog-post h2 {
    font-size: 1.45rem;
    margin: 2rem 0 0.9rem;
    padding-left: 0.9rem;
    border-left: 0.35rem solid var(--ft-yellow);
    border-radius: 2px;
}

.blog-post h3 {
    font-size: 1.2rem;
    margin: 1.6rem 0 0.75rem;
    color: var(--ft-green-dark);
}

.blog-post p {
    margin-bottom: 1.1rem;
}

.blog-post img {
    border-radius: var(--ft-radius-sm);
    box-shadow: var(--ft-shadow);
    margin: 0.5rem 0 0.25rem;
}

.blog-post figcaption,
.blog-post .img-caption {
    color: var(--ft-muted);
    font-size: 0.9rem;
}

.blog-post ul {
    padding-left: 1.2rem;
}

.blog-post li {
    margin-bottom: 0.4rem;
}

    .blog-post li::marker {
        color: var(--ft-green);
    }

blockquote {
    font-style: italic;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--ft-green);
    border-radius: 0 var(--ft-radius-sm) var(--ft-radius-sm) 0;
    background: rgba(34, 181, 115, 0.07);
    margin: 1.25rem 0;
    line-height: 1.6;
    font-size: 1rem !important;
}

.post-link-card {
    display: flex;
    justify-content: center;
    padding: 0.9rem;
    margin: 1.25rem 0;
    border-radius: var(--ft-radius-sm);
    background: rgba(34, 181, 115, 0.08);
    border: 1.5px dashed rgba(34, 181, 115, 0.45);
}

@media (min-width: 768px) {
    .blog-post-title {
        font-size: 2.4rem;
    }

    .blog-post h2 {
        font-size: 1.7rem;
    }
}

/* ---------- Пагинация ---------- */

.ft-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 2rem 0 1rem;
    padding: 0;
    list-style: none;
}

    .ft-pagination a,
    .ft-pagination span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 2.6rem;
        height: 2.6rem;
        padding: 0 0.7rem;
        border-radius: 999px;
        background: var(--ft-card);
        color: var(--ft-ink);
        font-weight: 800;
        text-decoration: none;
        box-shadow: var(--ft-shadow);
        transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

        .ft-pagination a:hover {
            background: rgba(34, 181, 115, 0.12);
            color: var(--ft-green-dark);
            transform: translateY(-2px);
        }

    .ft-pagination .active {
        background: var(--ft-gradient);
        color: #fff;
        pointer-events: none;
    }

    .ft-pagination .disabled {
        opacity: 0.45;
        pointer-events: none;
    }

/* ---------- Комментарии ---------- */

.comments-section {
    border: none;
    border-radius: var(--ft-radius);
    background: var(--ft-card);
    box-shadow: var(--ft-shadow);
    padding: 1.25rem;
    margin-top: 2.5rem;
}

.comments-section__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

    .comments-section__header h3 {
        margin: 0;
    }

.comments-section__count {
    background: var(--ft-gradient);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.15rem 0.65rem;
}

.comment-form .form-control {
    border-radius: var(--ft-radius-sm);
    border: 1.5px solid rgba(20, 53, 42, 0.14);
    padding: 0.7rem 1rem;
}

    .comment-form .form-control:focus {
        border-color: var(--ft-green);
        box-shadow: 0 0 0 0.2rem rgba(34, 181, 115, 0.18);
    }

.comment {
    display: flex;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(20, 53, 42, 0.08);
}

.comment__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.comment__body {
    min-width: 0;
    flex: 1 1 auto;
}

.comment__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.comment__name {
    font-weight: 800;
    font-size: 1rem;
}

.comment__date {
    color: var(--ft-muted);
    font-size: 0.8rem;
}

.comment__text {
    margin: 0.35rem 0 0.4rem;
    overflow-wrap: anywhere;
}

.comment__actions {
    display: flex;
    gap: 0.25rem;
}

    .comment__actions .btn {
        padding: 0.15rem 0.7rem;
        font-size: 0.85rem;
    }

.comment-replies {
    margin-left: 1.1rem;
    padding-left: 0.9rem;
    border-left: 3px solid rgba(34, 181, 115, 0.25);
}

    .comment-replies .comment__avatar {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.9rem;
    }

@media (min-width: 768px) {
    .comments-section {
        padding: 2rem;
    }

    .comment-replies {
        margin-left: 2.2rem;
        padding-left: 1.4rem;
    }
}

/* ---------- Боковая панель ---------- */

.side-panel .about-block {
    padding: 1.35rem;
}

.side-recent__link {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(20, 53, 42, 0.08);
    text-decoration: none;
    color: var(--ft-ink);
}

    .side-recent__link:hover h6 {
        color: var(--ft-green-dark);
    }

.side-recent__thumb {
    width: 5rem;
    height: 5rem;
    border-radius: var(--ft-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--ft-shadow);
}

.side-recent__link h6 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.15s ease;
}

.vk-card {
    border: none;
    border-radius: var(--ft-radius);
    overflow: hidden;
    background: var(--ft-gradient);
    color: #fff;
    box-shadow: var(--ft-shadow);
}

    .vk-card .card-title {
        color: #fff;
    }

    .vk-card .card-text,
    .vk-card a {
        color: rgba(255, 255, 255, 0.9);
    }

    .vk-card img {
        object-fit: cover;
        height: 100%;
    }

/* ---------- Разное ---------- */

.flex-auto {
    flex: 0 0 auto;
}

.notfound {
    font-family: "Montserrat", sans-serif;
    font-size: 4em;
    font-weight: 900;
    text-align: center;
    margin: 0.6em 0 0.8em;
    background: var(--ft-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-signin {
    max-width: 330px;
    padding: 6em 0 7em 0;
}

    .form-signin .form-floating:focus-within {
        z-index: 2;
    }

    .form-signin input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
