/* landing.css - Стили для нового лэндинга */

/* Hero-блок */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fff0 0%, #d5f1a9 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero-text {
    animation: fadeInUp 1s ease;
    padding: 4rem 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Мобильное изображение */
.hero-mobile-image {
    display: none;
    margin: 2rem 0;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-highlight {
    margin-bottom: 2.5rem;
    display: inline-block;
}

.hero-delivery {
    background: #00a31e;
    padding: 0.8rem 1.8rem;
    transform: skewX(-15deg);
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 163, 30, 0.2);
}

.hero-delivery span {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    transform: skewX(15deg);
}

.hero-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item i {
    color: #00a31e;
    margin-right: 1rem;
    font-size: 1.3rem;
    min-width: 1.3rem; /* Фиксированная ширина для выравнивания */
    text-align: center;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    height: 100%;
    overflow: hidden;
}

[dir="rtl"] .hero-visual {
    right: auto;
    left: 0;
}

[dir="rtl"] .hero-visual img {
    object-position: right;
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center; /* Не обрезается снизу для русского */
}

/* Пустая секция для скролла */
.scroll-spacer {
    height: 30vh;
    background: white;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: #00a31e;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 3;
    cursor: pointer;
}

/* Волна для десктопа */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-wave path {
    fill: #FFFFFF; /* Белый цвет для hero-wave */
}

.hero-wave-mobile path {
    fill: #FFFFFF; /* Белый цвет для hero-wave-mobile */
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    transform: rotateY(180deg) rotateX(180deg);
}

[dir="rtl"] .hero-wave svg {
    transform: rotateY(0deg) rotateX(180deg);
}

.hero-wave path {
    fill: #FFFFFF;
}

/* Волна для мобильных */
.hero-wave-mobile {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-wave-mobile svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    transform: rotateY(180deg) rotateX(180deg);
}

[dir="rtl"] .hero-wave-mobile svg {
    transform: rotateY(0deg) rotateX(180deg);
}

.hero-wave-mobile path {
    fill: #FFFFFF;
}

/* Блок преимуществ */
.benefits-section {
    padding: 0 0 6rem 0;
    background: white;
    position: relative;
    z-index: 2;
}

.benefits-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding-top: 4rem;
}

.benefits-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefits-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 163, 30, 0.1);
    border-color: #00a31e;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d5f1a9, #00a31e);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d5f1a9, #00a31e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
    
}

.benefit-card-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-description {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.benefit-detail {
    display: flex;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.benefit-detail i {
    color: #00a31e;
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.detail-content h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 1rem;
}

.detail-content p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Блок "О проекте" */
.about-project-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-project-image {
    position: relative;
}

.about-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid #00a31e;
    border-radius: 15px;
    z-index: -1;
}

.about-project-text {
    padding: 2rem 0;
}

.about-project-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-project-name {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-project-quote {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #2c3e50;
    font-style: italic;
    margin: 2rem 0 3rem;
    padding-left: 2rem;
    border-left: 4px solid #00a31e;
    position: relative;
}

.about-project-stat {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #00a31e;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    display: block;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-text {
        padding: 4rem 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    
    /* Скрываем десктопное изображение и волну на мобильных */
    .hero-visual {
        display: none;
    }
    
    .hero-wave {
        display: none;
    }
    
    /* Показываем мобильное изображение и волну */
    .hero-mobile-image {
        display: block;
    }
    
    .hero-wave-mobile {
        display: block;
    }
    
    .hero-text {
        order: 2;
        padding: 2rem 20px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        max-width: 300px;
        justify-content: flex-start;
    }
    
    .feature-item i {
        margin-right: 1rem;
        min-width: 1.3rem;
    }
    
    .about-project-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-photo {
        height: 400px;
    }
    
    .image-frame {
        display: none;
    }
    
    .about-project-quote {
        padding-left: 0;
        border-left: none;
        padding-top: 1rem;
        border-top: 4px solid #00a31e;
    }
}

@media (max-width: 768px) {
    .scroll-spacer {
        height: 10vh;
        background: white;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-mobile-image {
        max-height: 250px;
        margin: 1.5rem 0;
    }
    
    .hero-delivery span {
        font-size: 0.9rem;
    }
    
    .hero-features {
        margin-bottom: 60px;
        margin-top: 0px;
    }
    
    .benefits-title,
    .about-project-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefit-card {
        padding: 2rem;
    }
    
    .about-project-quote {
        font-size: 1.5rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-mobile-image {
        max-height: 200px;
    }
    
    .hero-delivery {
        padding: 0.6rem 1.2rem;
    }
    
    .hero-delivery span {
        font-size: 0.85rem;
    }
    
    .feature-item {
        font-size: 1rem;
        max-width: 280px;
    }
    
    .benefits-header {
        margin-bottom: 2rem;
    }
    
    .benefits-title {
        font-size: 1.8rem;
    }
    
    .about-project-section {
        padding: 4rem 0;
    }
    
    .about-project-stat {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* Дополнительные стили для RTL */
[dir="rtl"] .benefits-header {
    text-align: center;
}

[dir="rtl"] .benefits-title,
[dir="rtl"] .benefits-subtitle {
    text-align: center;
}

[dir="rtl"] .about-project-name {
    text-align: right;
}

/* Исправление для мобильной версии в RTL */
@media (max-width: 992px) {
    [dir="rtl"] .benefits-header {
        text-align: center;
    }
    
    [dir="rtl"] .about-project-name {
        text-align: center;
    }
}

/* Убедимся, что числа всегда отображаются правильно */
.stat-number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Исправление для иконок в feature-item */
.feature-item {
    display: flex;
    align-items: center;
}

.feature-item i {
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Исправление для benefit-detail */
.benefit-detail {
    display: flex;
    align-items: flex-start;
}

.benefit-detail i {
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Исправление для about-project-quote */
.about-project-quote {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #2c3e50;
    font-style: italic;
    margin: 2rem 0 3rem;
    padding-left: 2rem;
    border-left: 4px solid #00a31e;
    position: relative;
    text-align: left;
}


/* Волны для блока "О проекте" - исправленная версия */
.about-project-section {
    background: #f8f9fa;
    position: relative;
    padding: 120px 0 120px;
    overflow: hidden;
}

.about-wave {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.about-wave-mobile {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    display: none;
}

/* Волна в начале блока (сверху) */
.about-wave-top {
    top: 0;
}

.about-wave-mobile-top {
    top: 0;
}

/* Волна в конце блока (снизу) */
.about-wave-bottom {
    bottom: 0;
}

.about-wave-mobile-bottom {
    bottom: 0;
}

/* SVG для десктопной волны */
.about-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* SVG для мобильной волны */
.about-wave-mobile svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Цвет волн - #f8f9fa для фона блока "О проекте" */
.about-wave-top path,
.about-wave-mobile-top path {
fill: white;
}

.about-wave-bottom path,
.about-wave-mobile-bottom path {
fill: #f5f5f5;
}

/* Нижняя волна должна быть отразить по вертикали для правильного отображения */
.about-wave-bottom svg,
.about-wave-mobile-bottom svg {
    transform: rotate(180deg);
}

/* Для RTL версии */
[dir="rtl"] .about-wave svg,
[dir="rtl"] .about-wave-mobile svg {
    transform: rotateY(180deg);
}

[dir="rtl"] .about-wave-bottom svg,
[dir="rtl"] .about-wave-mobile-bottom svg {
    transform: rotateY(180deg) rotate(180deg);
}

/* Настройки для контейнера */
.about-project-content {
    position: relative;
    z-index: 2;
}

/* Отступы для корректного отображения контента */
.container {
    position: relative;
    z-index: 2;
}

/* Отступы для контента, чтобы волны не перекрывали его */
.about-project-content {
    margin: 40px 0;
}

/* Адаптивность для волн */
@media (max-width: 992px) {
    .about-project-section {
        padding: 80px 0 80px;
    }
    
    .about-wave {
        display: none;
    }
    
    .about-wave-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .about-project-section {
        padding: 60px 0 60px;
    }
}