@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --accent-color: #FADB74;
    --dark-bg: #363636;
    --text-main: #000000;
    --text-secondary: #353535;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

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

/* --- HEADER --- */
header {
    border-bottom: 4px solid var(--accent-color);
    padding: 15px 0;
}

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

.logo { font-size: 32px; font-weight: 800; }
.logo span { color: var(--accent-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
}

/* --- HERO --- */
.hero {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 65%), 
        url('img/teavibe-machine.png');
    
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain; 
    
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 50%; 
    z-index: 2;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.hero-bold {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.yellow-divider {
    width: 150px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 25px 0;
}

.hero-content p:last-child {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    color: white;
}

/* --- FEATURES --- */
.features {
    background-color: var(--dark-bg);
    padding: 80px 0 100px;
    text-align: center;
}

.features h2 {
    color: var(--white);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 25px;
    width: 360px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
}


.card-icon {
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.features-grid .feature-card:nth-child(2) .card-icon,
.features-grid .feature-card:nth-child(3) .card-icon,
.features-grid .feature-card:nth-child(5) .card-icon  {
    height: 100px;
}

.feature-card p {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.big-text {
    font-size: 72px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* --- BUSINESS --- */
.business { padding: 100px 0; }

.business h2 {
    font-size: 40px;
    font-weight: 800; 
    line-height: normal;
    color: #000000;
}

.subtitle {
    font-size: 20px;
    font-weight: 800;
    color: #353535;
    margin-top: -10px;
    margin-bottom: 50px;
}

.business-item { margin-bottom: 35px; max-width: 800px; }

.business-item p {
    font-size: 16px; 
    line-height: 1.2;
    color: #000000;
    font-weight: 800;
}

.business-item strong {
    font-weight: 800;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-bg);
    padding: 40px 0;
    color: #ffffff;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
}

/* Блок контактов */
.footer-contacts {
    text-align: left;
}

.footer-title {
    font-size: 20px; /* Размер "Контакты" */
    font-weight: 800;
    margin: 0;
    margin-bottom: 8px; /* Отступ до почты */
}

.footer-contacts p:not(.footer-title) {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
    margin: 0;
}

/* Блок логотипов */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


.footer-right-group {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    max-width: 800px;
}

.footer-legal {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    color: #ABABAB;
    text-align: right;
    max-width: 480px;
    margin: 0; 
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.fond-img {
    height: 35px;
}

.social-placeholder {
    width: 60px;
    height: 35px;
    border-radius: 4px;
}

/* =============================================
   HAMBURGER BUTTON (скрыт на десктопе)
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =============================================
   TABLET  (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .nav-links { gap: 20px; }

    .hero {
        background-image:
            linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.80) 40%, rgba(0,0,0,0.15) 100%),
            url('img/teavibe-machine.png');
        background-size: cover;
    }

    .hero-content { max-width: 65%; }

    .hero-content h1 { font-size: 36px; }

    .features h2 { font-size: 30px; }

    .business h2 { font-size: 32px; }

    .feature-card {
        width: calc(50% - 15px);
        height: auto;
        min-height: 220px;
    }
}

/* =============================================
   MOBILE  (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
    /* --- Header & Nav --- */
    header { position: relative; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px 0;
        background-color: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 1000;
        list-style: none;
    }

    .nav-links.open { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .nav-links li:last-child a { border-bottom: none; }

    /* --- Hero --- */
    .hero {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)),
            url('img/teavibe-machine.png');
        background-size: cover;
        background-position: center;
        min-height: 100vh;
    }

    .hero-content {
        max-width: 100%;
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero-bold { font-size: 16px; }

    .hero-content p:last-child { font-size: 15px; }

    /* --- Features --- */
    .features { padding: 55px 0 65px; }

    .features h2 {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .feature-card {
        width: calc(50% - 15px);
        height: auto;
        min-height: 180px;
    }

    .big-text { font-size: 54px; }

    /* --- Business --- */
    .business { padding: 60px 0; }

    .business h2 { font-size: 26px; }

    .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* --- Footer --- */
    .footer-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-right-group {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        gap: 15px;
    }

    .footer-legal {
        text-align: left;
        max-width: 100%;
    }
}

/* =============================================
   SMALL MOBILE  (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
    .logo { font-size: 26px; }

    .hero-content h1 { font-size: 22px; }

    .hero-bold { font-size: 14px; }

    .hero-content p:last-child { font-size: 14px; }

    .yellow-divider { margin: 16px 0; }

    .feature-card {
        width: 100%;
        max-width: 320px;
    }

    .features h2 { font-size: 20px; }

    .features-grid .feature-card:nth-child(2) .card-icon,
    .features-grid .feature-card:nth-child(3) .card-icon,
    .features-grid .feature-card:nth-child(5) .card-icon {
        height: 70px;
    }

    .business h2 { font-size: 21px; }

    .subtitle { font-size: 14px; }

    .business-item p { font-size: 14px; }
}