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

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --secondary: #10b981;
    --accent: #059669;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    --gradient-soft: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

/* Улучшенные стили для иконок в профилях */
.fas {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Эффект для иконок в социальных ссылках */
.social-link .fas {
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.social-link:hover .fas {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Эффект для иконок в кнопках поделиться */
.share-icon .fas {
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.share-icon:hover .fas {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Эффект для иконки ссылки */
.share-link-icon .fas {
    color: var(--primary);
    transition: all 0.3s ease;
}

.share-link-icon:hover .fas {
    filter: drop-shadow(0 0 6px var(--primary));
}

/* Эффект для иконки телефона */
.fas.fa-phone {
    color: var(--success);
    transition: all 0.3s ease;
}

.fas.fa-phone:hover {
    filter: drop-shadow(0 0 6px var(--success));
}

/* Эффект для иконок в полях профиля */
.field .fas {
    color: var(--gray);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.field:hover .fas {
    color: var(--primary);
}

/* Специальные цвета для иконок в профилях */
.fas.fa-user {
    color: var(--primary);
}

.fas.fa-heart {
    color: #ef4444;
    animation: heartbeat 2s ease-in-out infinite;
}

.fas.fa-star {
    color: #f59e0b;
}

.fas.fa-map-marker-alt {
    color: var(--warning);
}

.fas.fa-calendar {
    color: var(--secondary);
}

.fas.fa-venus {
    color: #ec4899;
}

.fas.fa-mars {
    color: #3b82f6;
}

.fas.fa-check {
    color: var(--success);
}

.fas.fa-times {
    color: var(--danger);
}

.fas.fa-info-circle {
    color: var(--primary);
}

.fas.fa-exclamation-triangle {
    color: var(--warning);
}

/* Анимация сердцебиения - отключена */

/* Эффект для иконок в заголовках секций */
.section-title .fas {
    margin-right: 0.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.section:hover .section-title .fas {
    /* Убрано увеличение при наведении */
    filter: drop-shadow(0 0 6px var(--primary));
}

/* Эффект для иконок в кнопках */
.btn .fas {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.btn:hover .fas {
    transform: translateY(-1px);
    /* Убрано увеличение при наведении */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Эффект для иконок в кнопке прокрутки вверх */
#scrollTopBtn .fas {
    transition: all 0.3s ease;
}

#scrollTopBtn:hover .fas {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Адаптивность для иконок в профилях */
@media (max-width: 768px) {
    .fas {
        font-size: 0.9em;
    }

    .social-link .fas {
        font-size: 1.1em;
    }

    .share-icon .fas {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .fas {
        font-size: 0.85em;
    }

    .social-link .fas {
        font-size: 1em;
    }

    .share-icon .fas {
        font-size: 0.95em;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-soft);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(20px) rotate(-1deg);
    }
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    animation: fadeInUp 0.8s ease-out;
    transform: none !important;
    /* Принудительно отключаем любые трансформации контейнера */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 40px -20px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.05);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
    /* Убран transition для transform чтобы предотвратить увеличение */
    transform: none !important;
    /* Принудительно отключаем любые трансформации */
}

.profile-card:hover {
    transform: none;
    /* Явно отключаем любые эффекты увеличения */
    box-shadow:
        0 30px 60px -30px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.header {
    background: var(--gradient);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.3;
    }
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    /* Убрано увеличение и поворот при наведении */
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-username {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.profile-id {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

.content {
    padding: 2rem;
}

.section {
    background: var(--light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.section:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient);
    border-radius: 2px;
}

.field {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.2s ease;
}

.field:last-child {
    border-bottom: none;
}

.field:hover {
    background: rgba(99, 102, 241, 0.03);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.field-label {
    font-weight: 600;
    color: var(--gray);
    min-width: 150px;
    font-size: 0.9rem;
}

.field-value {
    color: var(--dark);
    font-weight: 500;
}

/* Override form.css to fix my-profile page layout */
.profile-card .field {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.profile-card .field .field-value {
    width: auto !important; /* Override width: 100% from form.css */
    flex-grow: 1 !important;
}




.about-text {
    background: linear-gradient(135deg, #f3e7e9 0%, #e3eeff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.partner-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.partner-section::before {
    content: '💝';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.partner-section h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-section p {
    color: var(--dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-info {
    background: var(--gradient);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.social-link i {
    font-size: 1.5rem;
}

.share-block {
    background: var(--light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid var(--border);
}

.share-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.share-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--gray);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    cursor: pointer;
    text-decoration: none;
}

.share-icon:hover {
    border-color: currentColor;
}

.share-icon.vk:hover {
    color: #4c75a3;
    background: rgba(76, 117, 163, 0.1);
}

.share-icon.instagram:hover {
    color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.share-icon.facebook:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.share-icon.telegram:hover {
    color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

.share-icon.whatsapp:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.share-link-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0 auto 1.5rem;
    max-width: 500px;
}

.share-link-icon {
    color: var(--gray);
    font-size: 1.25rem;
}

.share-link-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--dark);
    font-size: 0.95rem;
    outline: none;
}

.btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.profile-created {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

#scrollTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

#scrollTopBtn.show {
    display: flex;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#scrollTopBtn:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

@media (max-width: 640px) {
    .container {
        margin: 0;
        padding: 0;
    }

    .profile-card {
        border-radius: 0;
        padding: 0.5rem;
    }

    .header {
        padding: 2rem 1rem 1rem 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .content {
        padding: 1rem 0.5rem;
    }

    .section {
        padding: 1rem 0.5rem;
        margin-bottom: 1.2rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 0.7rem;
    }

    .field-label {
        min-width: auto;
        font-size: 1rem;
    }

    .field-value {
        font-size: 1rem;
    }

    .contact-info {
        padding: 1rem 0.5rem;
        margin-bottom: 1.2rem;
    }

    .social-links {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .social-link {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        border-radius: 10px;
    }

    .share-block {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        border-radius: 16px 16px 0 0;
        z-index: 1001;
        margin: 0;
    }

    .share-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .share-link-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .share-link-input {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }

    .btn {
        width: 100%;
        height: 48px;
        font-size: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
    }

    .profile-created {
        font-size: 0.9rem;
        margin: 1.5rem 0 0.5rem 0;
        padding-top: 1rem;
    }
}

@media (max-width: 400px) {
    .header {
        padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .btn {
        height: 40px;
        font-size: 0.95rem;
    }

    .share-block {
        padding: 0.7rem 0.5rem 1rem 0.5rem;
        border-radius: 12px 12px 0 0;
    }
}