* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 67vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        url('https://mushroomid.ru/wp-content/uploads/2026/03/hero.jpg')
        center center / cover no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero:hover .hero__bg {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 30, 10, 0.72) 0%,
        rgba(20, 50, 15, 0.55) 60%,
        rgba(5, 20, 5, 0.80) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 700px;
}

.hero__emoji {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.hero__title {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    margin-bottom: 1rem;
}

.hero__title span {
    color: #7ee87e;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin: 0 auto 2.5rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero__tagline {
    font-size: clamp(1.2rem, 3.5vw, 1.9rem);
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ===== UPLOAD BUTTON ===== */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: min(480px, 90vw);
    padding: 2.8rem 2rem;
    border: 2px dashed rgba(126, 232, 126, 0.45);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    margin: 0 auto;
}

.upload-area:hover {
    border-color: rgba(76, 219, 76, 0.75);
    background: rgba(76, 219, 76, 0.06);
}

.upload-area.drag-over {
    border-color: #4cdb4c;
    background: rgba(76, 219, 76, 0.12);
    box-shadow: 0 0 0 4px rgba(76, 219, 76, 0.15);
}

.upload-area__icon {
    font-size: 3rem;
    line-height: 1;
    pointer-events: none;
}

.upload-area__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    pointer-events: none;
}

.upload-area__or {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    pointer-events: none;
}

.upload-area__prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1f0a;
    background: linear-gradient(135deg, #7ee87e 0%, #4cdb4c 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(76, 219, 76, 0.45),
        0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-upload:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 8px 28px rgba(76, 219, 76, 0.55),
        0 4px 10px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #90f090 0%, #5ee85e 100%);
}

.btn-upload:active {
    transform: translateY(0) scale(0.98);
}

.btn-upload svg {
    flex-shrink: 0;
}

.upload-hint {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

#photo-input {
    display: none;
}

/* ===== PREVIEW ===== */
#preview-wrap {
    display: none;
    position: relative;
    width: 100%;
}

#preview-wrap img {
    width: 100%;
    max-height: 320px;
    border-radius: 12px;
    border: 3px solid rgba(126, 232, 126, 0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    object-fit: cover;
}

#preview-wrap .btn-clear {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff4444;
    color: #fff;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ===== RECENT POSTS GALLERY ===== */
.recent-posts {
    background: #0d1a0d;
    padding: 4rem 1.5rem 5rem;
}

.recent-posts__title {
    text-align: center;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.recent-posts__title span {
    color: #7ee87e;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.post-card {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    background: #172217;
    border: 1px solid rgba(126, 232, 126, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.post-card__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #0a140a;
}

.post-card__no-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0a140a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    opacity: 0.35;
}

.post-card__body {
    padding: 0.8rem 1rem 1rem;
}

.post-card__title {
    color: #e8e8e8;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__date {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 680px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .posts-grid { grid-template-columns: 1fr; }
}

/* ===== TAG LINKS ===== */
.tag-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 1100px;
    margin: 2.5rem auto 0;
}

.tag-link {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(126, 232, 126, 0.25);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tag-link:hover {
    background: rgba(126, 232, 126, 0.12);
    border-color: rgba(126, 232, 126, 0.55);
    color: #7ee87e;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #080f08;
    border-top: 1px solid rgba(126, 232, 126, 0.1);
    padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

/* колонка 1 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.footer-brand__logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-brand__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand__desc {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.55;
}

.footer-warning {
    font-size: 0.8rem;
    color: #f5c842;
    background: rgba(245,200,66,0.1);
    border: 1px solid rgba(245,200,66,0.3);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    line-height: 1.5;
    margin-top: 0.9rem;
}

/* колонка 2 */
.footer-col__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7ee87e;
    margin-bottom: 0.9rem;
}

.footer-col__text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #7ee87e;
}

/* колонка 3 */
.footer-app__text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.footer-stores {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.btn-store:hover {
    background: rgba(126, 232, 126, 0.1);
    border-color: rgba(126, 232, 126, 0.35);
}

.btn-store svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* нижняя строка */
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== HERO STORE BADGES ===== */
.hero-stores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}

.hero-store-badge {
    display: block;
    transition: transform 0.2s, opacity 0.2s;
}

.hero-store-badge:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.hero-store-badge img {
    height: 88px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 4rem 1.5rem;
    background: #f8f9f5;
}

.how-it-works__title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a2e1a;
    margin: 0 0 2.5rem;
}

.how-it-works__title span {
    color: #4a7c59;
}

.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.how-it-works__step {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: relative;
}

.how-it-works__num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a7c59;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works__icon {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
}

.how-it-works__step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2e1a;
    margin: 0 0 0.75rem;
}

.how-it-works__step-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 700px) {
    .how-it-works__steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ===== TAG ARTICLES STRIP ===== */
.tag-articles {
    padding: 2.5rem 0;
    background: #fff;
    overflow: hidden;
}

.tag-articles__track-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1.5rem;
}

.tag-articles__track-wrap::-webkit-scrollbar {
    display: none;
}

.tag-articles__track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.tag-article-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 140px;
    flex-shrink: 0;
    text-decoration: none;
    color: #1a2e1a;
    transition: transform 0.2s;
}

.tag-article-card:hover {
    transform: translateY(-3px);
}

.tag-article-card__img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.tag-article-card__no-img {
    width: 140px;
    height: 100px;
    border-radius: 10px;
    background: #f0f4ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.tag-article-card__title {
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
