@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary-color: #026E82;
    --secondary-color: #CDB181;
    --dark-color: #1a1a1a;
    --light-color: #fdfaf5;
    --font-accent: 'Playfair Display', serif;
    --font-heading: 'Funnel Display', sans-serif;
}

/* RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-heading);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY - The "Cursive Fix" */
h1,
h2,
.logo-text {
    font-family: var(--font-accent);
    color: var(--primary-color);
    font-style: italic;
    letter-spacing: 1px;
    text-transform: none;
    font-weight: 500;
    text-align: center;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

h3,
.price,
p,
li,
.btn-nav,
.cta-button {
    font-family: var(--font-heading);
    text-transform: none;
    letter-spacing: 0.5px;
}

/* NAVIGATION */
header {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo-text {
    font-size: 2.2rem;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
}

.btn-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
}

/* HERO */
#hero {
    padding: 40px 0 20px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-color: var(--light-color);
}

#hero h1,
#services h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1rem;
    max-width: 1000px;
    margin: 15px auto 25px;
    color: #555;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero-content {
    flex: 1.2;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 15px;
    white-space: pre-line;
    max-width: 1000px;
}

.hero-image {
    flex: 0.8;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    filter: grayscale(100%);
    /* box-shadow: 25px 25px 0px var(--secondary-color); */
}

@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        text-align: center !important;
    }
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 110, 130, 0.2);
}

/* SERVICES GRID*/
#services {
    padding: 20px 0 40px 0;
    scroll-margin-top: 80px;
}

.services-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: #fff;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card.featured {
    border: 2px solid var(--secondary-color);
    background: #fffcf8;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.card ul {
    list-style: none;
    text-align: left;
    margin-left: 8px;
}

.card ul li {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #666;
}

.card.custom-offer {
    border: 1px dashed var(--secondary-color);
}

.card p {
    line-height: 1.6;
}

/* RESULTS */
#portfolio {
    scroll-margin-top: 80px;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background-color: var(--primary-color);
    padding: 35px;
    border-radius: 20px;
    color: white;
    text-align: center;
    gap: 20px;
    margin: 0 20px;
}

.stat {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

/* CONTACT */
#contact {
    padding: 20px 0 40px 0;
    scroll-margin-top: 80px;
}

.contact-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(2, 110, 130, 0.08);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.contact-card h2 {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.contact-item {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.btn-telegram {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 110, 130, 0.2);
}

#results-video {
    padding: 20px 0 40px 0;
    scroll-margin-top: 80px;
}

#results-video h2 {
    margin-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-minipage {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.video-card {
    flex: 1;
    min-width: 220px;
    max-width: 250px;
    position: relative;
    text-decoration: none;
    color: var(--dark-color);
    text-align: center;
}

.video-card img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.video-card p {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.video-card:hover img {
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 110, 130, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    border-radius: 15px;
    transition: 0.3s;
}

.play-overlay span {
    color: white;
    font-weight: bold;
    background: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card:hover img {
    transform: scale(1.02);
}


@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    #hero {
        padding: 40px 0 20px 0;
    }

    #services,
    #portfolio,
    #results-video,
    #contact {
        padding: 20px 0;
    }

    /* HERO SECTION */
    .hero-flex {
        flex-direction: column;
        text-align: center !important;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 2.3rem !important;
        line-height: 1.2;
        max-width: 100%;
    }

    .hero-image img {
        max-width: 250px;
    }

    h2 {
        font-size: 2.5rem !important;
    }

    /* SERVICES GRID */
    .services-grid {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
    }

    .card {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
        max-width: none;
    }

    /* VIDEO MINIPAGE */
    .video-minipage {
        flex-direction: column;
        align-items: center;
    }

    .video-card {
        width: 100%;
        max-width: 280px;
    }

    /* RESULTS SECTION */
    .results-container {
        margin: 0 15px;
    }

    .contact-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    #hero {
        padding: 35px 0 20px 0;
    }

    /* NAVIGATION & LOGO */
    .logo {
        font-size: 1.1rem !important;
    }

    nav {
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        flex-direction: row;
        gap: 8px;
        width: auto;
        align-items: center;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    .btn-nav {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* SERVICES GRID */
    .services-grid {
        padding: 0 5px;
    }

    .card {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 70%;
        margin: 0 auto;
        padding: 25px 15px;
        text-align: center;
    }

    .card ul {
        margin-left: 0;
        text-align: center;
    }

    .card p {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    /* TYPOGRAPHY */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    header {
        padding: 12px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 0.9rem;
        max-width: 280px;
        margin: 20px auto 25px;
        line-height: 1.6;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* RESULTS SECTION */
    .results-container {
        grid-template-columns: 1fr;
        padding: 25px 15px;
        gap: 15px;
        margin: 0 10px;
    }

    .stat {
        font-size: 2.2rem;
    }

    /* CONTACT CARD */
    .contact-card {
        padding: 20px 15px;
    }

    .contact-card h2 {
        font-size: 1.8rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    #hero,
    #services,
    #portfolio,
    #results-video,
    #contact {
        padding: 15px 0;
    }
}