:root {
    --bg-color: #ffffff;
    --secondary-bg: #f5f5f7;
    --text-color: #1d1d1f;
    --sub-text: #333333;
    --accent: #0071e3;
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo { height: 22px; }

.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    letter-spacing: -0.01em;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.nav-list a:hover { opacity: 1; }

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sub-text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #000;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.7;
}

.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-content { position: relative; }
.hero-content h1 { font-size: 80px; font-weight: 700; letter-spacing: -0.02em; }
.hero-content .subtitle { font-size: 24px; color: #a1a1a6; }

.philosophy { padding: 120px 0; }
.philosophy h2 { font-size: 48px; max-width: 700px; margin-bottom: 60px; line-height: 1.1; }

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.phil-item img { width: 48px; margin-bottom: 20px; }
.phil-item h3 { font-size: 21px; margin-bottom: 15px; }
.phil-item p { color: var(--sub-text); line-height: 1.5; }

.menu-section { background: var(--secondary-bg); padding: 120px 0; }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.menu-category h3 { font-size: 24px; border-bottom: 1px solid #d2d2d7; padding-bottom: 15px; margin-bottom: 25px; }
.menu-category ul { list-style: none; }
.menu-category li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 17px;
}

.process-section { padding: 120px 20px; border-top: 1px solid #f5f5f7; }
.process-content { display: flex; align-items: center; gap: 60px; }
.process-text h2 { font-size: 48px; margin-bottom: 24px; line-height: 1.1; }
.svg-illustration { width: 100%; max-width: 400px; opacity: 0.8; }

.subscribe-section { padding: 60px 20px; }
.subscribe-card {
    background: #f5f5f7;
    border-radius: 28px;
    padding: 60px;
    text-align: center;
}
.subscribe-card h3 { font-size: 32px; margin-bottom: 16px; }
.subscribe-card p { color: var(--sub-text); margin-bottom: 32px; font-size: 19px; }

.cta-button {
    display: inline-block;
    background: var(--text-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}
.cta-button:hover { transform: scale(1.05); }

.contacts-section { padding: 100px 20px; border-top: 1px solid #d2d2d7; }
.contacts-grid { display: flex; gap: 100px; }
.contact-item .label { font-size: 12px; color: var(--sub-text); text-transform: uppercase; display: block; margin-bottom: 8px; }
.contact-item p { font-size: 21px; font-weight: 500; }

.history-section {
    padding: 120px 20px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.history-content { flex: 1; }
.history-content h2 { font-size: 48px; margin-bottom: 30px; }
.history-content p { font-size: 19px; color: var(--sub-text); margin-bottom: 20px; line-height: 1.6; }

.history-visual { flex: 1; }
.history-img { width: 100%; border-radius: var(--radius); }

.gallery { padding-bottom: 120px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item img:hover { transform: scale(0.98); }

.footer {
    padding: 60px 20px;
    border-top: 1px solid #d2d2d7;
    text-align: center;
}

.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--accent); font-size: 14px; }
.footer p { font-size: 12px; color: var(--sub-text); }
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(29, 29, 31, 0.9); /* Фирменный темный Apple */
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
    opacity: 0;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .philosophy-grid, .menu-grid, .history-section { grid-template-columns: 1fr; flex-direction: column; gap: 40px; }
    .hero-content h1 { font-size: 48px; }
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-toggle:checked ~ .nav-list {
        right: 0;
    }

    .nav-list a {
        font-size: 24px; 
        font-weight: 500;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        transform: translateY(-0px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 42px; 
    }

    .hero-content .subtitle {
        font-size: 18px;
    }

    .philosophy {
        padding: 120px 20px;
    }
    .philosophy h2 {
        font-size: 32px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .history-section {
        flex-direction: column-reverse; 
        text-align: center;
        padding: 60px 20px;
    }

    .history-content h2 {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); 
    }

    .process-content {
        flex-direction: column;
        text-align: center;
    }

    .subscribe-card {
        padding: 40px 20px;
    }

    .subscribe-card h3 {
        font-size: 24px;
    }

    .contacts-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}


@media (max-width: 375px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}