* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: #F0EBE6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

.desktop {
    width: 100%;
    max-width: 1920px;
    flex-direction: column;
    align-items: center;
    display: flex;
    overflow-x: hidden;
    margin: 0 auto;
}

.section {
    align-self: stretch;
    padding-left: clamp(20px, 8vw, 370px);
    padding-right: clamp(20px, 8vw, 370px);
    padding-bottom: clamp(40px, 5vw, 60px);
    margin-bottom: clamp(40px, 5vw, 60px);
    background: #F0EBE6;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
}

.text-content {
    width: 100%;
    max-width: 504px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    display: flex;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: black;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.btn {
    padding: clamp(12px, 1.5vw, 14px) clamp(16px, 2.5vw, 20px);
    background: #60724F;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1.2vw, 10px);
    display: flex;
    color: white;
    font-size: clamp(14px, 2vw, 15px);
    font-weight: 700;
    line-height: clamp(16px, 2.2vw, 18px);
    text-align: center;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-large {
    padding: clamp(16px, 2vw, 20px) clamp(30px, 4vw, 40px);
    font-size: clamp(16px, 2.2vw, 18px);
    line-height: clamp(19px, 2.5vw, 21.6px);
}

.vector {
    width: 18px;
    height: 20px;
    left: 3px;
    top: 2px;
    position: absolute;
    outline: 2px #60724F solid;
    outline-offset: -1px;
}

.bullet-icon {
    padding: 4px;
    background: rgba(96, 114, 79, 0.20);
    border-radius: 100px;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    display: flex;
}

.card-img {
    align-self: stretch;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    object-fit: cover;
}

/* Дополнительные медиа-запросы для улучшения адаптивности */
@media (max-width: 480px) {
    .section {
        padding-left: clamp(12px, 4vw, 16px);
        padding-right: clamp(12px, 4vw, 16px);
        padding-top: clamp(24px, 6vw, 30px);
        padding-bottom: clamp(24px, 6vw, 30px);
        margin-bottom: clamp(24px, 6vw, 30px);
        gap: clamp(16px, 4vw, 20px);
    }
    
    .section-title {
        font-size: clamp(22px, 5.5vw, 24px);
    }
    
    .section-subtitle {
        font-size: clamp(13px, 3.5vw, 14px);
    }
    
    .btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(14px, 3.5vw, 16px);
        font-size: clamp(13px, 3.5vw, 14px);
    }
    
    .btn-large {
        padding: clamp(12px, 3vw, 14px) clamp(20px, 5vw, 24px);
        font-size: clamp(15px, 4vw, 16px);
    }
}

@media (min-width: 1921px) {
    .desktop {
        width: 1920px;
    }
}

/* ============================================
   АНИМАЦИИ ПОЯВЛЕНИЯ ТЕКСТА
   ============================================ */

/* Базовые классы для анимаций */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* Fade in + Slide up */
.fade-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Заголовки видимы по умолчанию, если не имеют класса анимации */
.section-title:not(.fade-slide-up),
.section-title.processed:not(.fade-slide-up) {
    opacity: 1 !important;
    transform: none !important;
}

/* Слова в заголовках без анимации тоже видимы */
.section-title:not(.fade-slide-up) .word-animate,
.section-title.processed:not(.fade-slide-up) .word-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Fade in + Slide down */
.fade-slide-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-slide-down.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in + Scale */
.fade-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Fade in + Slide left */
.fade-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in + Slide right */
.fade-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delay */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Typewriter effect для hero title */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    animation: typewriter 2s steps(40, end), blink 0.75s step-end infinite;
}

.typewriter.animated {
    white-space: normal;
    border-right: none;
    animation: none;
}

/* Word-by-word animation */
.word-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.word-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Letter-by-letter animation */
.letter-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) rotateX(90deg);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.letter-animate.animated {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Дополнительные улучшения для плавности */
.section-title span,
.hero-title span {
    display: inline-block;
}

/* Предотвращение мерцания при загрузке */
.hero-title,
.section-title,
.section-subtitle,
.step,
.approach-item,
.benefit {
    will-change: transform, opacity;
}

/* Анимация для изображений */
.steps-image,
.approach-image {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.steps-image.animated,
.approach-image.animated {
    opacity: 1;
    transform: scale(1);
}

/* Карточки featured listing - видимы по умолчанию, анимация применяется только при прокрутке */
.card-container .card,
.card-container .card-link .card {
    opacity: 1 !important; /* По умолчанию видимы - важный приоритет */
    transform: scale(1) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Анимация применяется только если карточка имеет класс fade-scale и еще не анимирована */
.card-container .card.fade-scale:not(.animated),
.card-container .card-link .card.fade-scale:not(.animated) {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}

.card-container .card.fade-scale.animated,
.card-container .card-link .card.fade-scale.animated {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Оптимизация производительности */
@media (prefers-reduced-motion: reduce) {
    .fade-slide-up,
    .fade-slide-down,
    .fade-slide-left,
    .fade-slide-right,
    .fade-scale,
    .word-animate,
    .letter-animate,
    .card-img,
    .steps-image,
    .approach-image {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .animate-on-scroll {
        opacity: 1;
    }
}

/* New content sections */
.content-section {
    width: 100%;
    padding: clamp(40px, 6vw, 80px) 20px;
    margin-bottom: clamp(40px, 5vw, 60px);
    background: #fff;
}

.content-section.muted {
    background: #f8f9f5;
}

.content-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-section.hero-surface {
    background: #F0EBE6;
}

.content-section.hero-surface.muted {
    background: #EAE3DB;
}

.content-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #e7ebdf;
}

.content-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #60724F;
}

.content-card ul,
.content-list {
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 8px;
}

.content-note {
    margin-top: 12px;
    padding: 12px;
    background: #f1f4ec;
    border-radius: 12px;
    border: 1px solid #e0e8d7;
    font-weight: 600;
}

.content-note.warning {
    background: #fff4ec;
    border-color: #ffd7ba;
}

.steps-list {
    padding-left: 20px;
    display: grid;
    gap: 10px;
    margin: 0;
}

.content-cta {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.content-cta .btn-primary {
    background: #60724F;
    color: #fff;
}

.content-cta-text {
    font-weight: 700;
    color: #333;
}

.content-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 48px);
    border-radius: clamp(20px, 3vw, 32px);
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 100%), url('/assets/img/wp14994042-valencia-4k-wallpapers.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 26px);
    color: #fff;
}

.content-hero-card h2,
.content-hero-card h3 {
    color: #fff;
}

.content-hero-card .content-lead {
    color: #f3f3f3;
    max-width: 900px;
}

.content-pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f3f3f3;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.content-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.content-hero-col {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: clamp(14px, 2vw, 20px);
    display: grid;
    gap: 12px;
}

.content-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.content-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
    color: #f7f7f7;
}

.content-checklist li::before {
    content: "•";
    color: #cfe0c1;
    font-size: 18px;
    line-height: 1.2;
}

.content-note.glass {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.content-note.warning.glass {
    background: rgba(255, 244, 236, 0.14);
    border-color: rgba(255, 215, 186, 0.5);
    color: #fff7ef;
}

.contact-card {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.75) 100%), url('/assets/img/wp14994042-valencia-4k-wallpapers.png');
    background-size: cover;
    background-position: center;
    border-radius: clamp(20px, 3vw, 32px);
    padding: clamp(24px, 4vw, 40px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(18px, 2vw, 24px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.contact-info h3,
.contact-info p {
    color: #fff;
    margin: 4px 0 8px;
}

.contact-meta {
    display: grid;
    gap: 8px;
}

.contact-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #e5e5e5;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    background: #60724F;
    border: none;
}

@media (max-width: 768px) {
    .content-section {
        padding: 30px 12px;
        margin-bottom: clamp(30px, 5vw, 40px);
    }
    
    .content-hero-card,
    .contact-card {
        padding: clamp(20px, 6vw, 28px);
    }
}

