/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Анимированный фон */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.maxlogo-bg {
    position: absolute;
    top: 50%;
    left: -120px;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    background-image: url('maxlogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.22;
    filter: blur(2.5px);
    pointer-events: none;
    animation: maxLogoFloat 8s ease-in-out infinite;
}

@keyframes maxLogoFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0) rotate(-2deg);
    }
    50% {
        transform: translateY(calc(-50% - 18px)) translateX(14px) rotate(2deg);
    }
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 26, 0.95);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.logo-icon-img {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(102, 126, 234, 0.35));
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #b0b0c0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    border-radius: 25px;
    color: #ffffff !important;
}

.nav-link-download::after {
    display: none;
}

.nav-link-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.profile-fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(14px);
}

.profile-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.45);
}

.profile-fab-icon {
    font-size: 1.15rem;
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b0b0c0;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0c0;
}

/* Макет телефона */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

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

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1e3f 0%, #2d2d5a 100%);
    border-radius: 28px;
    overflow: hidden;
}

.max-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.max-illustration-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    filter: saturate(1.05) contrast(1.05);
}

.max-illustration-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.chat-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.2);
}

.chat-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.85rem;
}

.message.received {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.sent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Секции */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #b0b0c0;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* Характеристики */
.features {
    background: rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #b0b0c0;
    font-size: 0.95rem;
}

/* Требования */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.requirement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.requirement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
}

.requirement-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.requirement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.requirement-list {
    list-style: none;
}

.requirement-list li {
    padding: 8px 0;
    color: #b0b0c0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-list li::before {
    content: '✓';
    color: #667eea;
}

.requirement-list li:last-child {
    border-bottom: none;
}

/* Скриншоты */
.screenshots {
    background: rgba(255, 255, 255, 0.02);
}

.screenshots-slider {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.screenshots-container {
    display: flex;
    gap: 30px;
    overflow: hidden;
    max-width: 900px;
}

.screenshot-item {
    flex: 0 0 280px;
    text-align: center;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.5s ease;
    display: none;
}

.screenshot-item.active {
    opacity: 1;
    transform: scale(1);
    display: block;
}

.screenshot-mockup {
    width: 250px;
    height: 450px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 35px;
    padding: 12px;
    margin: 0 auto 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.screenshot-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1e3f 0%, #2d2d5a 100%);
    border-radius: 25px;
    overflow: hidden;
    padding: 10px;
}

.screenshot-caption {
    color: #b0b0c0;
    font-size: 1rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

/* Стили для скриншотов */
.ss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 15px 15px 0 0;
}

.ss-back, .ss-call {
    font-size: 1.2rem;
}

.ss-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.ss-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.ss-avatar.blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.ss-avatar.green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.ss-avatar.purple { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.ss-messages {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ss-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.ss-msg.received {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.ss-msg.sent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    align-self: flex-end;
}

.ss-input {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #888;
    margin-top: auto;
}

.ss-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
}

.ss-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.ss-search {
    font-size: 1.2rem;
}

.ss-chat-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ss-chat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.ss-chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ss-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.ss-preview {
    font-size: 0.7rem;
    color: #888;
}

.ss-time {
    font-size: 0.65rem;
    color: #666;
}

.video-call {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1a3e 0%, #0f0f2a 100%) !important;
}

.ss-video-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ss-video-avatar {
    font-size: 4rem;
    margin-bottom: 10px;
}

.ss-video-name {
    font-size: 0.9rem;
}

.ss-video-self {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.ss-video-controls {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.ss-control {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ss-control.end {
    background: #e74c3c;
}

.ss-settings-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ss-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.8rem;
}

.ss-toggle {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    position: relative;
}

.ss-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.ss-toggle.on {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ss-toggle.on::after {
    left: 20px;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.review-stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.review-text {
    color: #b0b0c0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-date {
    color: #666;
    font-size: 0.85rem;
}

/* Скачать */
.download {
    background: rgba(255, 255, 255, 0.02);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.download-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;

    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    width: 100%;
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(10px);
}

.download-icon {
    font-size: 2rem;
}

.download-info {
    display: flex;
    flex-direction: column;
}

.download-banner {
    width: 100%;
    margin-top: 10px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.download-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

.download-platform {
    font-size: 1.1rem;
    font-weight: 600;
}

.download-size {
    font-size: 0.85rem;
    color: #888;
}

.download-note {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
}

.download-note p {
    font-size: 1.1rem;
    color: #b0b0c0;
}

/* О мессенджере */
.about-max {
    background: rgba(255, 255, 255, 0.02);
    padding: 80px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0c0;
    margin-bottom: 20px;
}

/* Аккаунт + Комментарии */
.account,
.community {
    background: rgba(255, 255, 255, 0.02);
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: rgba(102, 126, 234, 0.45);
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    color: #b0b0c0;
    font-size: 0.95rem;
}

.checkbox-field {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
}

.checkbox {
    margin-top: 2px;
    min-width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.checkbox-label {
    color: #b0b0c0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label a {
    color: #6366f1;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.input,
.textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
    transition: all 0.25s ease;
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

.input:focus,
.textarea:focus {
    border-color: rgba(102, 126, 234, 0.65);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-btn {
    width: 100%;
    justify-content: center;
}

.form-hint {
    min-height: 20px;
    font-size: 0.92rem;
    color: #b0b0c0;
}

.form-hint.ok {
    color: #38f9d7;
}

.form-hint.err {
    color: #f5576c;
}

.profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.profile-label {
    color: #b0b0c0;
}

.profile-value {
    font-weight: 600;
    text-align: right;
}

 .profile-fab-icon {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     line-height: 1;
 }

 .profile-fab-icon svg {
     display: block;
 }

.admin {
    margin-top: 30px;
}

 .comment-actions {
     margin-top: 12px;
     display: flex;
     justify-content: flex-end;
 }

.admin-head {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-btn {
    padding: 12px 18px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-item {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #b0b0c0;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 600;
}

.btn-danger {
    background: rgba(245, 87, 108, 0.15);
    border: 1px solid rgba(245, 87, 108, 0.35);
    color: #ffffff;
}

.btn-danger:hover {
    background: rgba(245, 87, 108, 0.25);
}

.comments {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}

.comment {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.comment-title {
    font-weight: 700;
}

.comment-meta {
    color: #888;
    font-size: 0.85rem;
}

.comment-text {
    color: #b0b0c0;
    line-height: 1.7;
}

/* Модальное окно профиля */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal.open {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
}

.modal-dialog {
    position: relative;
    width: min(1100px, calc(100% - 28px));
    margin: 90px auto 30px;
    border-radius: 22px;
    background: rgba(10, 10, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
    overflow: visible;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-close:hover {
    border-color: rgba(102, 126, 234, 0.55);
}

.modal-body {
    padding: 20px;
}

.modal-install .modal-overlay {
    background: rgba(5, 8, 20, 0.8);
    backdrop-filter: blur(6px);
}

.install-dialog {
    width: min(640px, calc(100% - 32px));
    margin: 80px auto 40px;
    background: #0f1324;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.install-head {
    background: rgba(255, 255, 255, 0.04);
}

.install-head .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.install-body {
    padding: 28px;
    color: #d6dbff;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.install-step {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #edf0ff;
    line-height: 1.6;
}

.install-step span {
    font-weight: 600;
    color: #8ef4ff;
}

.install-step strong {
    color: #7ca5ff;
    margin-right: 4px;
}

.install-step-success {
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.18), rgba(16, 185, 129, 0.2));
    border-color: rgba(16, 185, 129, 0.35);
}

.install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}

.install-action {
    min-width: 220px;
    text-align: center;
    font-size: 16px;
    padding: 14px 26px;
    border-radius: 12px;
}

.install-action.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 12px 40px rgba(118, 75, 162, 0.35);
}

.install-action.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d6dbff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.install-note {
    text-align: center;
    color: #9aa4d6;
    font-size: 0.92rem;
}

@media (max-width: 600px) {
    .install-body {
        padding: 22px 18px;
    }
    .install-step {
        font-size: 0.95rem;
    }
    .install-action {
        width: 100%;
    }
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

/* FAQ */
.faq-page {
    padding-top: 90px;
}

.faq-hero {
    padding: 120px 0 40px;
}

.faq-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.faq-subtitle {
    text-align: center;
    color: #b0b0c0;
    font-size: 1.1rem;
}

.faq-section {
    padding: 40px 0 100px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.12);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 18px;
    color: #b0b0c0;
    line-height: 1.7;
}

.faq-back {
    max-width: 900px;
    margin: 30px auto 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Футер */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand .logo-icon {
    font-size: 2.5rem;
}

.footer-brand .logo-icon-img {
    width: 44px;
    height: 44px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
}

.footer-brand p {
    color: #888;
    max-width: 250px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* Инструкция скачивания */
.dl-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dl-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.dl-step-num {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.dl-step-content {
    flex: 1;
}

.dl-step-content h4 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.dl-step-content p {
    color: #b0b0c0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dl-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.dl-yandex-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #fc3f1d 0%, #ff6b4a 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.dl-yandex-badge:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(252, 63, 29, 0.4);
}

.dl-success {
    padding: 18px;
    background: rgba(56, 249, 215, 0.08);
    border: 1px solid rgba(56, 249, 215, 0.3);
    border-radius: 16px;
    text-align: center;
}

.dl-success h4 {
    color: #38f9d7;
    margin-bottom: 8px;
}

.dl-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.dl-file-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.dl-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dl-notice-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dl-site-url {
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #667eea;
    cursor: pointer;
    word-break: break-all;
    transition: all 0.25s ease;
    user-select: all;
}

.dl-site-url:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.dl-copy-hint {
    display: block;
    margin-top: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    color: #888;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .profile-fab {
        width: 42px;
        height: 42px;
    }

    .modal-dialog {
        margin: 60px 8px 16px;
        width: auto;
        max-height: none;
    }

    .modal-body {
        padding: 14px;
        overflow-y: visible;
    }

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

    .comments {
        max-height: 350px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-banner {
        max-width: 420px;
        margin: 10px auto 0;
    }

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

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

    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .faq-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .screenshot-mockup {
        width: 200px;
        height: 380px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}
