* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient-start: #A91F49;
    --primary-gradient-end: #7E0046;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #460000;
    opacity: 0.9;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.95;
    }
    100% {
        opacity: 0.9;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    color: white;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

/* New Hero Design */
.hero-new-design {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-background-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #460000;
    opacity: 1;
}

.hero-images-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5%;
}

.hero-image {
    position: relative;
    width: 30%;
    height: 80%;
    overflow: hidden;
    filter: grayscale(100%) contrast(1.1) brightness(0.6);
    opacity: 0.75;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(70, 0, 0, 0.3);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-1 {
    align-self: flex-start;
    margin-top: 10%;
}

.hero-image-2 {
    align-self: center;
}

.hero-image-3 {
    align-self: flex-end;
    margin-bottom: 10%;
}

.hero-content-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-title-new {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.95;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.hero-subtitle-new {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    margin-top: 20px;
    pointer-events: none;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.hero-subtitle-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    animation: underlineMove 3s ease-in-out infinite;
}

@keyframes underlineMove {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

.hero-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #460000;
    padding: 20px 0;
    z-index: 3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-banner-btn {
    cursor: pointer;
}

.hero-banner-btn:hover {
    background: #5a0000;
}

.hero-banner-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #f5f5dc;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    letter-spacing: 0.05em;
    margin: 0;
    transition: color 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-banner-btn:hover .hero-banner-text {
    color: #ffffff;
    animation: none;
}

/* Subtitle Section */
.subtitle-section {
    position: relative;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-light);
    padding-bottom: 15px;
    margin-bottom: 0;
}

.subtitle-content {
    position: relative;
    max-width: 1000px;
    padding: 30px 40px;
}

.subtitle-text {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

#start-data {
    padding-top: 50px;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: white;
    background-color: #B40A1B;
    padding: 20px 40px;
    display: block;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    position: relative;
    transform: none;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.section-title::after {
    display: none;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.highlight-card {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

.card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: inherit;
    opacity: 0.9;
}

/* Content Blocks */
.content-block {
    margin-bottom: 50px;
}

.block-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.block-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 30px;
    color: var(--text-primary);
}

.block-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Steps */
.steps-list {
    margin: 40px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Result Box */
.result-box {
    background: linear-gradient(135deg, rgba(169, 31, 73, 0.1), rgba(126, 0, 70, 0.1));
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-gradient-start);
    margin: 40px 0;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Tip Box */
.tip-box {
    background: #fff3cd;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #ffc107;
    margin: 40px 0;
}

.tip-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tip-conclusion {
    margin-top: 20px;
    font-weight: 600;
}

/* Features List */
.features-list {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Lists */
.campaign-list,
.creative-list,
.optimization-list {
    list-style: none;
    margin: 20px 0;
}

.campaign-list li,
.creative-list li,
.optimization-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.campaign-list li::before,
.creative-list li::before,
.optimization-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-gradient-start);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Gallery */
.stats-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stats-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.stats-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image Full */
.image-full {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.image-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* Methodology Box */
.methodology-box {
    background: linear-gradient(135deg, rgba(169, 31, 73, 0.05), rgba(126, 0, 70, 0.05));
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
}

.methodology-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.methodology-list {
    list-style: none;
}

.methodology-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.methodology-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gradient-start);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Author Section */
.author-section {
    background: linear-gradient(135deg, rgba(169, 31, 73, 0.03), rgba(126, 0, 70, 0.03));
}

.author-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin: 40px 0;
}

.author-photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-gradient-start);
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.author-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* CTA Block */
.cta-block {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin: 40px 0;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.cta-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 18px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contact-btn-telegram {
    background: #2AABEE;
}

.contact-btn-max {
    background: linear-gradient(90deg, #0066FF 0%, #9933FF 100%);
}

.contact-btn-vk {
    background: #0077FF;
}

.contact-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: white;
}

/* Full Image Section */
.full-image-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.full-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-copyright {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.6rem, 3.2vw, 2.4rem);
        padding: 18px 25px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .stats-gallery {
        grid-template-columns: 1fr;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .step-item {
        flex-direction: column;
    }

    .step-number {
        align-self: flex-start;
    }

    .contact-buttons {
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .card,
    .result-box,
    .tip-box,
    .methodology-box,
    .author-card,
    .cta-block {
        padding: 25px;
    }

    .contact-btn {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .contact-icon {
        width: 24px;
        height: 24px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-images-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 2%;
        height: 100%;
    }

    .hero-image {
        width: 32%;
        height: 100%;
        margin: 0;
    }

    .hero-image-1,
    .hero-image-2,
    .hero-image-3 {
        align-self: center;
        margin: 0;
    }

    .hero-title-new {
        font-size: clamp(1.5rem, 7.5vw, 3rem);
    }

    .subtitle-section {
        min-height: 50vh;
    }

    .subtitle-content {
        padding: 20px 20px;
    }
    
    .subtitle-section {
        padding-bottom: 15px;
    }

    .section-title {
        font-size: 1.44rem;
        padding: 15px 20px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .subtitle-text {
        padding: 20px 25px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.44rem;
        padding: 15px 20px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .block-title {
        font-size: 1.3rem;
    }
}
