* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

:root {
    --primary-color: #1a73e8;
    --primary-hover: #0d5bcd;
    --accent-color: #ff40ff;
    --accent-hover: #e030e0;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --bg-dark: #000;
    --white: #fff;
    --border-light: #e0e0e0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --container-width: 100%;
    --content-max-width: 1400px;
    --content-padding: 5%;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-weight: 400;
    margin: 0;
    padding: 0;
    font-size: 18px;
}

.container {
    width: var(--container-width);
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Для внутренних блоков добавляю отступы */
.main-content, .how-it-works-content, .accuracy-content, .why-count-content, .footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--content-padding);
    box-sizing: border-box;
}

/* Шапка сайта */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--content-padding);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    header {
        padding: 20px 30px;
    }
}

@media (min-width: 1200px) {
    header {
        padding: 20px 50px;
    }
}

.logo {
    width: 75px;
    height: 75px;
    transition: var(--transition);
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-section {
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    gap: 30px;
    margin-right: 50px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.title-section {
    display: flex;
    align-items: center;
}

.title-text {
    font-size: 28px;
    font-weight: 600;
    margin-right: 20px;
    max-width: 350px;
}

.try-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.try-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Первый экран */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px var(--content-padding);
    box-sizing: border-box;
}

.text-content {
    width: 50%;
    animation: fadeInLeft 1s ease-out;
    padding-right: 5%;
    text-align: center;
}

.main-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.description {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-dark);
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.feature::before {
    content: '✨';
    display: inline-block;
    margin-right: 15px;
    font-size: 24px;
}

.image-content {
    width: 45%;
    position: relative;
    animation: fadeInRight 1s ease-out;
    max-width: 500px;
}

.main-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    max-height: 562px;
    object-fit: cover;
}

.main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pink-button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 35px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pink-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.pink-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pink-button:hover::before {
    left: 100%;
}

/* Стили для второго экрана "Как работает Nutri AI?" */
.how-it-works {
    padding: 90px 0;
    position: relative;
    background-color: var(--bg-light);
    background-image: url('../images/pattern-light.svg');
    background-repeat: repeat;
    background-size: 300px;
    background-position: center;
    width: 100%;
    margin: 0;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: var(--border-light);
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title::before {
    content: '🔍';
    display: block;
    font-size: 36px;
    margin-bottom: 15px;
}

.how-it-works-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.how-it-works-text {
    width: 50%;
    padding-right: 60px;
    animation: fadeInLeft 1s ease-out;
}

.how-it-works-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.how-it-works-image {
    width: 45%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInRight 1s ease-out;
    max-width: 500px;
}

.analysis-image {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: var(--transition);
    max-height: none;
    object-fit: contain;
}

.analysis-image:hover {
    transform: scale(1.02);
}

.calorie-badge, .protein-badge, .fat-badge {
    position: absolute;
    background-color: var(--white);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    font-size: 16px;
    transition: var(--transition);
}

.calorie-badge {
    top: 30px;
    left: 30px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: var(--white);
}

.protein-badge {
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: var(--text-dark);
}

.fat-badge {
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: var(--text-dark);
}

.calorie-badge:hover, .protein-badge:hover, .fat-badge:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Стили для третьего экрана "На сколько точен Nutri AI?" */
.accuracy-section {
    padding: 90px 0;
    position: relative;
    width: 100%;
    margin: 0;
}

.accuracy-section .section-title::before {
    content: '📊';
}

.accuracy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: var(--border-light);
}

.accuracy-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accuracy-text {
    width: 50%;
    padding-right: 60px;
    animation: fadeInLeft 1s ease-out;
}

.accuracy-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.accuracy-image {
    width: 45%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInRight 1s ease-out;
    max-width: 500px;
}

.food-layers-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: block;
    transition: var(--transition);
    max-height: none;
    object-fit: contain;
}

.food-layers-image:hover {
    transform: scale(1.02);
}

/* Стили для четвертого экрана "Цифры не врут" */
.why-count-section {
    padding: 90px 0;
    position: relative;
    background-color: var(--bg-light);
    background-image: url('../images/pattern-light.svg');
    background-repeat: repeat;
    background-size: 300px;
    background-position: center;
    width: 100%;
    margin: 0;
}

.why-count-section .section-title::before {
    content: '📈';
}

.why-count-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: var(--border-light);
}

.why-count-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.why-count-text {
    width: 50%;
    padding-left: 60px;
    animation: fadeInRight 1s ease-out;
}

.why-count-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.why-count-image {
    width: 45%;
    position: relative;
    animation: fadeInLeft 1s ease-out;
    max-width: 500px;
}

.tracking-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    max-height: none;
    object-fit: contain;
}

.tracking-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.why-count-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 50px;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для пятого экрана "Попробуйте подсчет калорий по фото сегодня" */
.try-now-section {
    padding: 110px 0;
    position: relative;
    background-color: var(--bg-dark);
    background-image: url('../images/pattern-dark.svg');
    background-repeat: repeat;
    background-size: 300px;
    background-position: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.try-now-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.try-now-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,64,255,0.1) 0%, rgba(0,0,0,0) 70%);
    animation: pulse 15s infinite linear;
    z-index: 0;
}

.try-now-title {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
    letter-spacing: -0.5px;
}

.try-now-title::before {
    content: '🚀';
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
}

.try-now-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.try-now-description {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0.9;
}

.try-now-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    position: relative;
}

.arrow-image {
    position: absolute;
    left: 0;
    transform: translateX(-120%) rotate(-30deg);
    width: 75px;
    animation: bounce 2s infinite;
    z-index: 2;
}

.white-button {
    background-color: var(--white);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    padding: 20px 45px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 2;
    text-align: center;
}

.white-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
    z-index: -1;
}

.white-button:hover {
    background-color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.white-button:hover::before {
    left: 100%;
}

/* Стили для подвала */
.footer {
    background-color: var(--bg-light);
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: var(--border-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-tagline {
    font-size: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 45px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    width: fit-content;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    font-size: 18px;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-hover);
}

.contact-item a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.copyright {
    font-size: 16px;
    color: var(--text-light);
}

.privacy-link {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.privacy-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.privacy-link:hover {
    color: var(--primary-hover);
}

.privacy-link:hover::after {
    width: 100%;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-120%) rotate(-30deg);
    }
    40% {
        transform: translateX(-120%) translateY(-20px) rotate(-25deg);
    }
    60% {
        transform: translateX(-120%) translateY(-10px) rotate(-35deg);
    }
}

@keyframes pulse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1400px) {
    .main-title {
        font-size: 36px;
        max-width: 550px;
    }
    
    .try-now-title {
        font-size: 42px;
    }
    
    .title-text {
        font-size: 26px;
        max-width: 320px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .main-title {
        font-size: 34px;
        max-width: 500px;
    }
    
    .try-now-title {
        font-size: 38px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .title-text {
        font-size: 24px;
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .main-content, .how-it-works-content, .accuracy-content, .why-count-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .text-content, .how-it-works-text, .accuracy-text, .why-count-text,
    .image-content, .how-it-works-image, .accuracy-image, .why-count-image {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
        max-width: 100%;
    }
    
    .why-count-content {
        flex-direction: column;
    }
    
    .analysis-image, .food-layers-image, .tracking-image {
        max-height: none;
        object-fit: contain;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-title {
        font-size: 34px;
    }
    
    .section-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    
    .nav-section {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    nav {
        margin-right: 0;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    
    .title-section {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .title-text {
        margin-right: 0;
        text-align: center;
        max-width: 100%;
        font-size: 22px;
    }
    
    .main-title {
        font-size: 32px;
        text-align: center;
        max-width: 100%;
    }
    
    .description, .feature {
        text-align: center;
        max-width: 100%;
    }
    
    .feature {
        justify-content: center;
    }
    
    .pink-button {
        display: block;
        margin: 20px auto;
    }
    
    .section-title {
        font-size: 30px;
        padding: 0 10px;
    }
    
    .try-now-title {
        font-size: 32px;
    }
    
    .try-now-description {
        font-size: 18px;
    }
    
    .arrow-image {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .white-button {
        padding: 15px 30px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .description, .feature, .how-it-works-description, 
    .accuracy-description, .why-count-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .try-now-title {
        font-size: 28px;
    }
    
    .try-now-description {
        font-size: 16px;
    }
    
    .pink-button, .try-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .white-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .calorie-badge, .protein-badge, .fat-badge {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .calorie-badge {
        top: 10px;
        left: 10px;
    }
    
    .protein-badge {
        bottom: 10px;
        left: 10px;
    }
    
    .fat-badge {
        top: 10px;
        right: 10px;
    }
} 