/* SnapCal Complete Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main: #3DD9C9;
    --main-dark: #00BFAE;
    --main-grad: linear-gradient(120deg, #3DD9C9 0%, #00BFAE 100%);
    --main-grad2: linear-gradient(135deg, #3DD9C9 0%, #00BFAE 60%, #7EE8FA 100%);
    --gray: #222;
    --light: #f8f9fa;
    --white: #fff;
    --shadow: 0 8px 32px rgba(61, 217, 201, 0.10);
}

body {
    background: var(--light);
    color: var(--gray);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 1.4rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.4rem 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 1.0rem;
    padding: 0.3rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--main-dark);
    text-decoration: none;
}

.logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(61,217,201,0.13);
    background: var(--white);
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--main-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 1.2rem;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--main);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-select {
    background: var(--white);
    border: 2px solid var(--main-dark);
    color: var(--main-dark);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300BFAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
}

.lang-select:hover {
    background: var(--main-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.lang-select:focus {
    box-shadow: 0 4px 12px rgba(61, 217, 201, 0.3);
}

/* Гамбургер меню */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--main-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Плавные переходы для всех секций */
html {
    scroll-behavior: smooth;
}

/* Дополнительные плавные переходы для якорных ссылок */
.nav-links a[href^="#"] {
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a[href^="#"]:hover {
    transform: translateY(-2px);
}

/* Buttons */
.btn-download {
    background: #212121;
    color: #FFFFFF;
    border: 2px solid #212121;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    margin-top: 0;
    align-self: center;
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-download:hover {
    background: #2D2D2D;
    color: #FFFFFF;
    box-shadow: 0 12px 32px rgba(33, 33, 33, 0.5), 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #2D2D2D;
    transform: translateY(-4px) scale(1.02);
}

.btn-download:hover::before {
    left: 100%;
}

/* Темная кнопка для CTA */
.btn-download.cta-dark {
    background: #212121;
    color: #FFFFFF;
    border: 2px solid #212121;
    box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
}

.btn-download.cta-dark:hover {
    background: #2D2D2D;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(33, 33, 33, 0.4);
    transform: translateY(-2px);
}

/* Яркая акцентная кнопка */
.btn-download.accent-bright {
    background: #212121;
    color: #FFFFFF;
    border: 2px solid #212121;
    box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
}

.btn-download.accent-bright:hover {
    background: #2D2D2D;
    color: #FFFFFF;
    box-shadow: 0 12px 32px rgba(33, 33, 33, 0.5), 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px) scale(1.02);
    border-color: #2D2D2D;
}

.btn-primary {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.4rem;
}

.btn-logout:hover {
    transform: translateY(-1px);
}

.app-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.app-link:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-grad2);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    height: 95vh;
    z-index: 1;
    opacity: 0.13;
    background: url('App Store (marketing icon).png') center center/contain no-repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.7rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 32px rgba(61,217,201,0.13);
    animation: fadeInUp 1s 0.1s both;
}

.hero-logo-slide {
    margin: 0.5rem auto 1.2rem auto;
    width: 110px;
    height: 110px;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(61,217,201,0.13);
    background: var(--white);
    object-fit: cover;
    display: block;
    animation: fadeInUp 1.2s 0.2s both;
}

/* Hero Image Container - FIXED */
.hero-photo-placeholder {
    width: 504px;
    height: auto;
    min-height: 720px;
    background: transparent;
    border-radius: 20px;
    margin: 1.2rem auto;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: fadeInUp 1.5s 0.3s both;
}

.hero-screenshot {
    display: block;
    max-height: 720px;
    width: auto;
    max-width: 504px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(61, 217, 201, 0.15);
    object-fit: contain;
    margin: 0 auto;
    background: #fff;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
}

.hero-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(61, 217, 201, 0.2);
}

.hero-sub {
    font-size: 2.6rem;
    margin-bottom: 2.2rem;
    color: #eafffa;
    font-weight: 500;
    animation: fadeInUp 1.2s 0.4s both;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.store-btn {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(61,217,201,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    width: 210px;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: fadeInUp 1.2s 0.5s both;
}

.store-btn img {
    height: 48px;
    width: auto;
}

.store-btn:hover {
    box-shadow: 0 8px 32px rgba(61,217,201,0.18);
    transform: scale(1.04);
}

.hero-cta {
    margin-top: 2.5rem;
    animation: fadeInUp 1.2s 0.6s both;
}

/* Sections */
.section {
    padding: 4.5rem 0 3.5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--main-dark);
    margin-bottom: 1.2rem;
    text-align: center;
}

.section-title-small {
    font-size: 1.8rem;
    margin-top: 2.5rem;
}

.section-sub {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Problems Grid */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.problem-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--main-dark);
}

.problem-text {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.5;
}

/* AI Analyze Section */
.ai-analyze-section {
    background: var(--main-grad2);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem 0;
}

.ai-analyze-bg-parallax {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('iPhone Retina icon.png') center 30%/auto 500px no-repeat, var(--main-grad2);
    opacity: 0.10;
    z-index: 1;
    will-change: background-position;
}

.ai-analyze-block {
    margin: 0 auto;
    max-width: 720px;
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(61,217,201,0.13);
    padding: 2.5rem 2rem 2.5rem 2rem;
    position: relative;
    z-index: 3;
    text-align: center;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}

.ai-analyze-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--main-dark);
    margin-bottom: 1.2rem;
}

.ai-analyze-section .ai-analyze-desc {
    font-size: 1.6rem;
    color: #ffffff !important;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.ai-analyze-section .ai-analyze-footer {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 1.5rem;
}

/* МАКСИМАЛЬНО АГРЕССИВНОЕ ПЕРЕОПРЕДЕЛЕНИЕ ЦВЕТА В AI-АНАЛИЗЕ */
.ai-analyze-section .ai-analyze-desc,
.ai-analyze-section .ai-analyze-footer,
#ai-analyze .ai-analyze-desc,
#ai-analyze .ai-analyze-footer,
.ai-analyze-section #ai-analyze-block .ai-analyze-desc,
.ai-analyze-section #ai-analyze-block .ai-analyze-footer,
.ai-analyze-section .container .ai-analyze-block .ai-analyze-desc,
.ai-analyze-section .container .ai-analyze-block .ai-analyze-footer {
    color: white !important;
    color: #ffffff !important;
    color: #fff !important;
}

.highlight-text {
    color: #3DD9C9;
}

.highlight-text-white {
    color: #fff;
    text-shadow: 0 2px 12px #00BFAE;
}

/* AI Analyze Video Container - BIGGER */
.ai-analyze-video {
    width: 100%;
    max-width: 720px;
    height: auto;
    min-height: 840px;
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    margin: 0 auto 1.2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    animation: fadeIn 1.5s 0.3s both;
}

.ai-analyze-video video, .ai-analyze-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.ai-analyze-screenshot {
    display: block;
    max-height: 1080px;
    width: auto;
    max-width: 720px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(61, 217, 201, 0.15);
    object-fit: contain;
    margin: 0 auto;
    background: #fff;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
}

.ai-analyze-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(61, 217, 201, 0.2);
}

.ai-analyze-placeholder {
    color: #00BFAE;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* App Screenshots Section - FIXED SPACING */
.app-screenshots {
    display: flex;
    gap: 3.5rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 4.5rem 0;
    margin-top: 6rem;
}

.screenshot-placeholder {
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    border: none;
    min-width: 360px;
    max-width: 504px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 360px;
    padding: 0;
    transition: all 0.3s;
}

.screenshot-placeholder:hover {
    transform: translateY(-5px);
}

.app-screenshot {
    display: block;
    height: auto;
    max-height: 900px;
    width: 100%;
    max-width: 504px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(61, 217, 201, 0.1);
    object-fit: contain;
    margin: 0 auto;
    background: #fff;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
}

.app-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(61, 217, 201, 0.2);
}

/* Features */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 2.2rem 1.5rem;
    min-width: 260px;
    max-width: 320px;
    text-align: center;
    flex: 1 1 260px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--main);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.feature-desc {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.5;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: var(--main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1.4rem;
    color: #444;
    line-height: 1.6;
    margin: 1rem 0;
}

.review-footer {
    font-size: 1.4rem;
    color: #999;
    text-align: right;
}

/* CTA Section */
.cta-section {
    background: var(--main-grad2);
    color: var(--white);
    text-align: center;
    padding: 5rem 0 2rem 0;
    margin-bottom: 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section .btn-download {
    margin-left: auto;
    margin-right: auto;
    display: block;
    background: #212121;
    color: #FFFFFF;
    font-size: 1.3rem;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
    border: 2px solid #212121;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-section .btn-download:hover {
    background: #2D2D2D;
    color: #FFFFFF;
    box-shadow: 0 16px 40px rgba(33, 33, 33, 0.6), 0 12px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px) scale(1.05);
    border-color: #2D2D2D;
}

/* Footer */
.footer {
    background: var(--main-dark);
    color: var(--white);
    padding: 2.5rem 0 0.5rem 0;
    text-align: center;
    margin-top: 0;
}

.footer-links {
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: #eafffa;
    text-decoration: none;
    margin: 0 1.2rem;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

/* Auth Forms */
.auth-forms {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-container {
    padding: 2rem;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-container input {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-container input:focus {
    outline: none;
    border-color: #667eea;
}

.form-container button {
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.form-container button:hover {
    transform: translateY(-2px);
}

.form-container p {
    text-align: center;
    margin-top: 1rem;
}

.form-container a {
    color: #667eea;
    text-decoration: none;
}

.form-container a:hover {
    text-decoration: underline;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upload-section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.upload-area {
    border: 3px dashed #e1e5e9;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.upload-placeholder p {
    color: #666;
    font-size: 1.1rem;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: cover;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#commentInput {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

#commentInput:focus {
    outline: none;
    border-color: #667eea;
}

#languageSelect {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

#analyzeBtn {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

#analyzeBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#analyzeBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Analysis Result */
#analysis-result {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.result-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.result-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.result-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.nutrition-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.nutrition-item .label {
    font-weight: 600;
    color: #666;
}

.result-actions {
    display: flex;
    gap: 1rem;
}

/* Meals Section */
.meals-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #333;
}

.mobile-app-info {
    text-align: center;
    color: #666;
}

.mobile-app-info p {
    margin-bottom: 1rem;
}

.app-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Loading */
#loading {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Error */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slide-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

.slide-in.visible {
    opacity: 1;
    transform: none;
}

/* Fixed Image Styles */
.hero-screenshot, .ai-analyze-screenshot, .app-screenshot {
    border: none;
    outline: none;
}

.hero-photo-placeholder img,
.ai-analyze-video img,
.screenshot-placeholder img {
    border: none;
    outline: none;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container { 
        max-width: 98vw; 
    }
    
    .navbar {
        padding: 0.2rem 0;
    }
    
    .navbar-content {
        min-height: 40px;
        gap: 1rem;
        padding: 0.2rem 0.8rem;
    }
    
    .logo {
        font-size: 1.8rem;
        gap: 0.8rem;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: 0.04em;
    }
    
    .btn-download {
        padding: 0.6rem 1.5rem;
        font-size: 1.1rem;
        background: #212121;
        color: #FFFFFF;
        border: 2px solid #212121;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
    }
    
    .hero-title { 
        font-size: 2.2rem; 
    }
    
    .ai-analyze-block { 
        max-width: 600px; 
        min-height: 520px; 
    }
    
    /* Hero Image - Tablet */
    .hero-photo-placeholder {
        width: 432px;
        min-height: 630px;
    }
    
    .hero-screenshot {
        max-height: 630px;
        max-width: 432px;
    }
    
    /* AI Analyze - Tablet */
    .ai-analyze-video {
        max-width: 600px;
        min-height: 720px;
    }
    
    .ai-analyze-screenshot {
        max-height: 900px;
        max-width: 600px;
    }
    
/* App Screenshots - Tablet */
   .app-screenshots {
       gap: 2.5rem;
       margin-top: 5rem;
   }
   
   .screenshot-placeholder {
       min-width: 324px;
       max-width: 432px;
   }
   
   .app-screenshot {
       max-height: 720px;
       max-width: 432px;
   }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
   
   .nav-links {
       position: fixed;
       top: 0;
       right: -100%;
       width: 250px;
       height: 100vh;
       background: #ffffff !important;
       flex-direction: column;
       justify-content: flex-start;
       align-items: center;
       padding-top: 80px;
       gap: 2rem;
       transition: right 0.3s ease;
       box-shadow: -5px 0 15px rgba(0,0,0,0.1);
       z-index: 100;
   }
   
   .nav-links.active {
       right: 0;
       background: #ffffff !important;
   }
   
   /* Затемнение фона при открытом меню */
   .nav-links.active::before {
       display: none !important;
   }
   
   .nav-links a {
       font-size: 1.4rem;
       padding: 1rem 2rem;
       width: 100%;
       text-align: center;
       border-bottom: 1px solid #f0f0f0;
   }
   
   .nav-links a:last-child {
       border-bottom: none;
   }
   
   .btn-download {
       display: block;
       margin: 1rem 0;
       width: 100%;
       max-width: 200px;
       background: #212121;
       color: #FFFFFF;
       border: 2px solid #212121;
       border-radius: 10px;
       box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
   }
   
   .result-card {
       grid-template-columns: 1fr;
       gap: 1rem;
   }
   
   .nutrition-info {
       grid-template-columns: 1fr;
   }
   
   .result-actions {
       flex-direction: column;
   }
   
   .app-links {
       flex-direction: column;
       align-items: center;
   }
   
   .section-header {
       flex-direction: column;
       gap: 1rem;
       text-align: center;
   }
}

@media (max-width: 600px) {
   .container {
       padding: 0 6px;
   }
   
   .navbar {
       padding: 0.1rem 0;
   }
   
   .navbar-content { 
       flex-direction: row; 
       gap: 0.5rem; 
       min-height: 44px; 
       padding: 0.2rem 0.5rem; 
   }
   
   .logo {
       font-size: 1.3rem;
       gap: 0.4rem;
   }
   
   .logo img { 
       width: 28px; 
       height: 28px; 
       border-radius: 8px;
   }
   
   .nav-links {
       gap: 0.5rem;
   }
   
   .nav-links a { 
       font-size: 0.9rem; 
       padding: 0.2rem 0.4rem;
       letter-spacing: 0.01em;
   }
   
   .btn-download { 
       padding: 0.4rem 0.8rem; 
       font-size: 0.9rem; 
       min-height: 32px;
       background: #212121;
       color: #FFFFFF;
       border: 2px solid #212121;
       border-radius: 8px;
       box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
   }
   
   .btn-download:last-child, .cta-section .btn-download { 
       margin-bottom: 2.5rem !important; 
       margin-top: 1.2rem; 
   }
   
   .cta-section { 
       padding-bottom: 2.5rem !important; 
   }
   
   .cta-section .btn-download { 
       margin-bottom: 0.5rem !important; 
       margin-top: 1.2rem; 
   }
   
   .hero-content, .section, .ai-analyze-section, .features-grid, .reviews-grid { 
       margin-bottom: 0.7rem; 
       padding-bottom: 0.7rem; 
   }
   
   .hero-title { 
       font-size: 1.3rem; 
   }
   
   .ai-analyze-block { 
       max-width: 480px; 
       min-height: 480px;
       padding: 1.5rem 1rem;
   }
   
   /* Hero Image - Mobile */
   .hero-photo-placeholder { 
       width: 360px; 
       min-height: 540px;
       margin: 1rem auto;
   }
   
   .hero-screenshot { 
       max-height: 540px; 
       max-width: 360px;
   }
   
   /* AI Analyze - Mobile */
   .ai-analyze-video { 
       max-width: 480px; 
       min-height: 600px;
   }
   
   .ai-analyze-screenshot { 
       max-height: 720px; 
       max-width: 480px;
   }
   
   /* App Screenshots - Mobile */
   .app-screenshots { 
       flex-direction: column; 
       gap: 2rem; 
       align-items: center;
       margin-top: 4rem;
   }
   
   .screenshot-placeholder { 
       min-width: 288px; 
       max-width: 360px;
   }
   
   .app-screenshot { 
       max-height: 630px; 
       max-width: 360px;
   }
}

@media (max-width: 480px) {
   /* Hero Image - Small Mobile */
   .navbar {
       padding: 0.1rem 0;
   }
   
   .navbar-content { 
       min-height: 40px; 
       padding: 0.1rem 0.2rem; 
   }
   
   .logo {
       font-size: 1.2rem;
       gap: 0.3rem;
   }
   
   .logo img { 
       width: 24px; 
       height: 24px; 
       border-radius: 6px;
   }
   
   .nav-links {
       gap: 0.3rem;
   }
   
   .nav-links a { 
       font-size: 0.8rem; 
       padding: 0.1rem 0.3rem;
       letter-spacing: 0;
   }
   
       .btn-download { 
        padding: 0.3rem 0.6rem; 
        font-size: 0.8rem; 
        min-height: 28px;
        background: #212121;
        color: #FFFFFF;
        border: 2px solid #212121;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(33, 33, 33, 0.3);
    }
   
   /* Hero Image - Small Mobile */
   .hero-photo-placeholder {
       width: 324px;
       min-height: 450px;
   }
   
   .hero-screenshot {
       max-height: 450px;
       max-width: 324px;
   }
   
   /* AI Analyze - Small Mobile */
   .ai-analyze-video {
       max-width: 360px;
       min-height: 450px;
   }
   
   .ai-analyze-screenshot {
       max-height: 540px;
       max-width: 360px;
   }
   
   /* App Screenshots - Small Mobile */
   .app-screenshots {
       margin-top: 2.5rem;
   }
   
   .screenshot-placeholder {
       min-width: 252px;
       max-width: 324px;
   }
   
   .app-screenshot {
       max-height: 540px;
       max-width: 324px;
   }
}

/* Final overrides for button spacing */
.btn-primary:last-child, .btn-secondary:last-child, .app-link:last-child {
   margin-bottom: 2rem;
}

/* Modal for Image Zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s;
}

.close:hover {
    color: var(--main);
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* All Images Clickable */
.hero-screenshot, .ai-analyze-screenshot, .app-screenshot {
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hero-screenshot:hover, .ai-analyze-screenshot:hover, .app-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(61, 217, 201, 0.2);
}

/* ФИНАЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ - ПОСЛЕДНИЙ ШАНС ДЛЯ БЕЛОГО ЦВЕТА! */
.ai-analyze-desc, 
.ai-analyze-footer,
div.ai-analyze-desc, 
div.ai-analyze-footer {
    color: #fff !important;
    color: white !important;
    color: #ffffff !important;
}

/* Если и это не поможет, то это магия 🪄 */
[class*="ai-analyze-desc"], 
[class*="ai-analyze-footer"] {
    color: white !important;
}

/* Гарантированно белый фон для мобильного меню */
@media (max-width: 768px) {
    .nav-links,
    .nav-links.active {
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

/* ГАРАНТИЯ БЕЛОГО ФОНА ДЛЯ МОБИЛЬНОГО МЕНЮ */
@media (max-width: 900px) {
  .nav-links,
  .nav-links.active {
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
  .nav-links.active::before {
    display: none !important;
  }
}

.nav-links,
.nav-links.active {
  background: #fff !important;
  background-color: #fff !important;
}