@font-face {
    font-family: 'SegoePrint-Regular';
    src: local('SegoePrint-Regular'),
        url('../fonts/SegoePrint-Regular.woff') format('woff'),
        url('../fonts/SegoePrint-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #8B5FBF;
    --secondary: #FFA987;
    --dark: #2A2A2A;
    --light: #FFF9F4;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SegoePrint-Regular";
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    text-align: center;
    font-weight: 700;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(45deg, rgba(139, 95, 191, 0.9), rgba(255, 169, 135, 0.8)),
        url('1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-top: 70px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.cta-button {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 95, 191, 0.4);
}

/* Стили для каталога тортов */
.cake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.cake-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.cake-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cake-info {
    padding: 1.5rem;
    text-align: center;
}

.cake-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.cake-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-menu a {
    font-size: 1.2rem;
    color: var(--dark);
    text-decoration: none;
    padding: 0.5rem 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {

    .nav-links,
    nav .cta-button {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        margin-top: 0;
        height: 100vh;
        clip-path: none;
    }

    .section {
        padding: 3rem 1rem;
    }
}

.no-scroll {
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0;
    margin-top: 5rem;
    text-align: center;
}

#contacts {
    padding: 4rem 0;
    background-color: #fff;
}

#contacts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.contact-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.contact-list li {
    margin-bottom: 1.2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #007bff;
}

.contact-link i {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    #contacts h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-link {
        font-size: 1rem;
    }
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;

}

.cake-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.cake-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



