* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: #111827;
    background: #f8fafc;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: auto;
}

.narrow {
    max-width: 780px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #e5e7eb;
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    font-size: 14px;
}

.nav nav {
    display: flex;
    gap: 24px;
    color: #4b5563;
    font-size: 14px;
}

.hero {
    padding: 90px 0 80px;
    background:
        radial-gradient(circle at top left, rgba(236,72,153,0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(139,92,246,0.18), transparent 32%),
        #f8fafc;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 54px;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 22px;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-text {
    max-width: 620px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.7;
    margin: 26px 0;
}

.search-box {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(15,23,42,0.08);
    max-width: 620px;
}

.search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 17px;
    padding: 0 18px;
    min-width: 0;
}

.search-box button {
    border: 0;
    padding: 17px 24px;
    border-radius: 17px;
    background: #111827;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.hint {
    color: #6b7280;
    font-size: 14px;
}

.example-user {
    border: 0;
    background: transparent;
    color: #ec4899;
    font-weight: 700;
    cursor: pointer;
}

.hero-card {
    min-height: 430px;
    border-radius: 38px;
    padding: 34px;
    background: linear-gradient(145deg, #111827, #312e81);
    color: white;
    box-shadow: 0 30px 90px rgba(17,24,39,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-preview {
    width: 100%;
    max-width: 330px;
    padding: 28px;
    border-radius: 32px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    text-align: center;
}

.avatar-ring {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.06)),
        #1f2937;
}

.profile-preview h3 {
    margin: 0;
    font-size: 26px;
}

.profile-preview p {
    color: #d1d5db;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.preview-stats span {
    padding: 12px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    font-size: 13px;
}

.section {
    padding: 80px 0;
}

.section.white {
    background: white;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.section-head h2,
.seo-text h2 {
    font-size: 38px;
    letter-spacing: -0.04em;
    margin: 0 0 14px;
}

.section-head p,
.seo-text p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 17px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 28px;
    border-radius: 28px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.card span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #111827;
    color: white;
    font-weight: 800;
}

.card h3 {
    font-size: 21px;
    margin: 22px 0 10px;
}

.card p {
    color: #4b5563;
    line-height: 1.7;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.feed-item {
    background: white;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.feed-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
}

.feed-item span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

.faq {
    display: grid;
    gap: 14px;
}

details {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

details p {
    color: #4b5563;
    line-height: 1.7;
}

.footer {
    padding: 34px 0;
    border-top: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer a {
    margin-left: 18px;
}

@media (max-width: 850px) {
    .hero-grid,
    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-card {
        min-height: 320px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        padding: 16px;
    }

    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav nav {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer a {
        margin-left: 0;
        margin-right: 16px;
    }
}

.profile-page {
    min-height: 80vh;
}

.profile-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: center;
}

.profile-image-card,
.profile-info-card,
.error-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 20px 70px rgba(15,23,42,0.08);
}

.big-avatar-wrap {
    width: min(100%, 360px);
    margin: auto;
    padding: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
}

.big-avatar {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #f3f4f6;
}

.zoom-button,
.main-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    border-radius: 18px;
    padding: 16px 22px;
    font-size: 15px;
}

.zoom-button {
    width: 100%;
    margin-top: 28px;
    background: #111827;
    color: white;
}

.main-button {
    background: #111827;
    color: white;
}

.secondary-button {
    background: #f3f4f6;
    color: #111827;
}

.profile-label {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fdf2f8;
    color: #db2777;
    font-size: 14px;
    font-weight: 800;
}

.profile-info-card h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -0.06em;
}

.profile-info-card h2 {
    margin: 12px 0 0;
    font-size: 24px;
    color: #4b5563;
}

.bio {
    margin: 24px 0;
    color: #374151;
    line-height: 1.8;
    font-size: 17px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.stats-grid div {
    padding: 18px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.stats-grid strong {
    display: block;
    font-size: 24px;
}

.stats-grid span {
    display: block;
    color: #6b7280;
    margin-top: 4px;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.86);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: min(92vw, 760px);
    max-height: 86vh;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}

.close-modal {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: white;
    color: #111827;
    font-size: 32px;
    cursor: pointer;
}

@media (max-width: 850px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

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