@font-face {
    font-family: 'Playfair Display';
    src: url('./fonts/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./fonts/PlayfairDisplay-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./fonts/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #2475BC;
    --primary-light: #34495e;
    --accent: #DBDBDB;
    --accent-light: #F2F2F2;
    --background: #F5F5F5;
    --surface: #ffffff;
    --primary-text: #000000;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border: #e1e8ed;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --holiday-color: #e74c3c;
    --weekend-color: #e67e22;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 0.4rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --header-height: 120px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

.header {
    background: var(--primary);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    position: relative;
    z-index: 3;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 300;
}

.main-content {
    flex: 1;
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 360px 1fr;
    }
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 400px 1fr;
    }
}

.calendar-section {
    border-radius: 20px;
    padding: 0.4rem;
    height: fit-content;
    position: sticky;
    top: 0.4rem;
}

.calendar-wrapper {
    width: 100%;
    background: var(--surface);
    border-radius: 16px;
    padding: var(--spacing-md);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-light);
}

.calendar-month-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary);
    text-align: center;
    flex: 1;
    font-weight: 600;
}

.cal-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cal-nav-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cal-nav-btn:active {
    transform: scale(0.95);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.calendar-header span {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: var(--spacing-xs);
}

.calendar-header span.weekend {
    color: var(--weekend-color);
    font-weight: 700;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-xs);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    background: transparent;
    color: var(--text-primary);
}

.calendar-day.empty {
    visibility: hidden;
    pointer-events: none;
}

.calendar-day.weekend {
    color: var(--weekend-color);
    font-weight: 600;
}

.calendar-day.holiday {
    color: var(--holiday-color);
    font-weight: 700;
}

.calendar-day.active {
    background: var(--primary);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.calendar-day:not(.empty):not(.active):hover {
    background: var(--accent-light);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.cocktail-section {
    animation: fadeInUp 0.6s ease;
}

.cocktail-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cocktail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-hover);
}

.cocktail-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 500px;
    overflow: hidden;
    background: var(--primary);
}

.cocktail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.cocktail-card:hover .cocktail-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.cocktail-content {
    padding: var(--spacing-xl);
}

.cocktail-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--primary-text);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.2;
}

.cocktail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
    align-items: flex-start;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-text);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

.meta-item span {
    white-space: nowrap;
}

.meta-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.cocktail-description {
    background: var(--accent-light);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border-left: 6px solid var(--accent);
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--primary-text);
    margin-bottom: var(--spacing-lg);
}

.cocktail-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.detail-section h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary-text);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    list-style: none;
}

.ingredients-list li {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
    background: var(--accent-light);
    border-radius: 12px;
    position: relative;
    color: var(--primary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all var(--transition-fast);
    border-left: 4px solid var(--accent);
}

.ingredients-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ingredients-list li::before {
    content: "•";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--accent);
    font-weight: bold;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    counter-reset: step-counter;
    list-style: none;
}

.steps-list li {
    padding-left: 3.5rem;
    position: relative;
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--primary-text);
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.serving-info {
    background: var(--accent-light);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border-left: 6px solid var(--accent);
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--primary-text);
}

.footer {
    background: var(--primary);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: var(--spacing-xl);
    font-size: 0.9rem;
    position: relative;
    z-index: 3;
    box-shadow: 0 -4px 12px var(--shadow);
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.footer .container img {
    max-height: 90px;
    width: auto;
}

.contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    font-size: 0.9rem;
    white-space: nowrap;
}

.contact-block a {
    color: #ffffff;
    text-decoration: none;
}

.contact-block a:hover {
    text-decoration: underline;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1023px) {
    .cocktail-image-wrapper {
        max-height: 450px;
    }
}

@media (max-width: 767px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --header-height: 100px;
    }

    .header {
        padding: var(--spacing-md) 0;
    }

    .logo {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .main-content {
        padding: var(--spacing-md) 0;
    }

    .content-grid {
        gap: var(--spacing-md);
    }

    .calendar-section {
        position: static;
        padding: 0.4rem;
    }

    .calendar-wrapper {
        padding: var(--spacing-sm);
    }

    .calendar-month-title {
        font-size: 1.2rem;
    }

    .cal-nav-btn {
        width: 36px;
        height: 36px;
    }

    .calendar-header span {
        font-size: 0.75rem;
    }

    .calendar-day {
        font-size: 0.85rem;
    }

    .cocktail-image-wrapper {
        max-height: 400px;
    }

    .cocktail-content {
        padding: var(--spacing-lg);
    }

    .cocktail-name {
        font-size: 1.8rem;
    }

    .cocktail-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .meta-item {
        font-size: 0.85rem;
        width: 100%;
    }

    .detail-section h4 {
        font-size: 1.2rem;
    }

    .ingredients-list li {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

    .ingredients-list li::before {
        left: 1rem;
        font-size: 1.5rem;
    }

    .steps-list li {
        padding-left: 3rem;
        font-size: 0.9rem;
    }

    .steps-list li::before {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .serving-info {
        font-size: 0.9rem;
        padding: var(--spacing-md);
    }

    .footer .container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
    }
    
    .footer .container img {
        max-height: 60px;
    }
    
    .contact-block {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 90px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .calendar-month-title {
        font-size: 1.1rem;
    }

    .cal-nav-btn {
        width: 32px;
        height: 32px;
    }

    .cocktail-image-wrapper {
        max-height: 350px;
    }

    .cocktail-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .calendar-section {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cocktail-image-wrapper {
        max-height: 300px;
        aspect-ratio: 4 / 3;
    }
}

@media print {
    .header, .footer, .calendar-section {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .cocktail-section {
        box-shadow: none;
    }
    
    .cocktail-image-wrapper {
        max-height: 300px;
        page-break-inside: avoid;
    }
}