:root {
    /* Brand colors */
    --brand-blue: #4796ad;
    --brand-pink: #cc8a70;
    --brand-green: #799666;

    /* Main colors */
    --white: #ffffff;
    --cream: #fffaf4;
    --warm-surface: #fffefc;
    --warm-border: #e3e1d5;

    /* Text colors */
    --dark-text: #243238;
    --dark-blue: #183d48;
    --dark-pink: #713d31;
    --muted-text: #596568;

    /* Shared UI colors */
    --social-background: var(--brand-blue);
    --social-hover: var(--brand-blue);
    --social-foreground: var(--white);
    --focus-color: var(--brand-pink);

    /* Typography and layout */
    --font-title: "Trebuchet MS", Arial, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;

    --content-width: 1120px;
}

/* Reset */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

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

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 4px;
}

/* Header */

.site-header {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 18px 5%;
    background: var(--warm-surface);
    border-bottom: 1px solid var(--warm-border);
}

.logo-link {
    display: inline-flex;
    flex-shrink: 0;
}

.logo-link img {
    width: auto;
    height: 58px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--dark-text);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--dark-pink);
    transform: translateY(-2px);
}

/* Social icons */

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.social-links-header {
    justify-content: flex-end;
}

.social-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--social-foreground);
    background: var(--social-background);
    border: 1px solid transparent;
    border-radius: 50%;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.social-icon:hover {
    color: var(--social-foreground);
    background: var(--social-hover);
    box-shadow: 0 4px 10px rgb(36 50 56 / 18%);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon svg path {
    fill: currentColor;
    stroke: none;
}

.social-icon svg circle:last-child {
    fill: currentColor;
    stroke: none;
}

/* General sections */

.content-section {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 50px 5%;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--dark-pink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
    color: var(--dark-blue);
    font-family: var(--font-title);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.08;
}

/* Home */

.about-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 36px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.home-logo-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.big-logo {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.about-text {
    padding-left: 24px;
    border-left: 4px solid var(--brand-pink);
    color: var(--muted-text);
    font-size: 1.02rem;
}

.about-text p + p {
    margin-top: 12px;
}

/* Brand dividers */

.brand-divider {
    display: flex;
    width: 100%;
    height: 10px;
}

.brand-divider span {
    flex: 1;
}

.divider-blue {
    background: var(--brand-blue);
}

.divider-pink {
    background: var(--brand-pink);
}

.divider-green {
    background: var(--brand-green);
}

/* Menu section */

.menu-section {
    max-width: none;
    padding: 50px 0;
}

.menu-section .section-heading,
.menu-carousel-toolbar {
    max-width: var(--content-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 5%;
    padding-left: 5%;
}

.menu-section .section-heading {
    margin-bottom: 30px;
}

.menu-carousel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.menu-carousel-intro {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-caption-line {
    flex: 0 0 26px;
    height: 2px;
    background: var(--brand-pink);
    border-radius: 2px;
}

.menu-carousel-intro p {
    color: var(--muted-text);
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
}

.menu-carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#menu-page-status {
    margin-right: 4px;
    color: var(--muted-text);
    font-size: 0.82rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* Carousel controls */

.menu-carousel-controls button {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--dark-blue);
    background: var(--warm-surface);
    border: 1px solid rgb(24 61 72 / 18%);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgb(24 61 72 / 8%);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-carousel-controls button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-carousel-controls button:hover:not(:disabled) {
    color: var(--white);
    background: var(--brand-blue);
    transform: translateY(-2px);
}

.menu-carousel-controls button:active:not(:disabled) {
    transform: scale(0.94);
}

.menu-carousel-controls button:disabled {
    color: var(--muted-text);
    background: var(--warm-border);
    box-shadow: none;
    cursor: default;
    opacity: 0.65;
}

/* Carousel track */

.menu-carousel {
    display: flex;
    gap: 4px;
    height: min(78svh, 900px);
    min-height: 360px;
    overflow-x: auto;
    background: var(--cream);
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-color: var(--brand-blue) #e9e3dc;
    scrollbar-width: auto;
    -webkit-overflow-scrolling: touch;
}

.menu-carousel::-webkit-scrollbar {
    height: 10px;
}

.menu-carousel::-webkit-scrollbar-track {
    background: #e9e3dc;
}

.menu-carousel::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border: 2px solid #e9e3dc;
    border-radius: 10px;
}

.menu-slide {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    background: var(--cream);
    border: 0;
    cursor: zoom-in;
    scroll-snap-align: start;
}

.menu-slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.menu-slide:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: -5px;
}

/* Fullscreen menu viewer */

.menu-viewer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--dark-blue);
    background: var(--cream);
    border: 0;
    overscroll-behavior: contain;
}

.menu-viewer[open] {
    display: flex;
}

.menu-viewer::backdrop {
    background: var(--cream);
}

.menu-viewer-image {
    display: block;
    flex: 0 1 auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: zoom-out;
    touch-action: pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
}

/* Contacts */

.contact-section .section-heading {
    margin-right: auto;
    margin-left: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 50px;
    padding-top: 32px;
    border-top: 2px solid var(--brand-green);
}

.contact-item {
    color: var(--muted-text);
    font-size: 0.95rem;
}

.contact-item p + p {
    margin-top: 16px;
}

.contact-item a {
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--dark-pink);
}

.contact-label {
    display: block;
    margin-bottom: 14px;
    color: var(--dark-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    padding-bottom: 3px;
    color: var(--dark-pink);
    font-size: 0.88rem;
    font-weight: 700;
    border-bottom: 2px solid var(--brand-pink);
}

/* Footer */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 24px 5%;
    color: var(--dark-text);
    background: var(--warm-surface);
    border-top: 1px solid var(--warm-border);
    font-size: 0.78rem;
}

.footer-company-data {
    flex: 1;
    color: var(--muted-text);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
}

.footer-company-data .footer-brand-name {
    margin-bottom: 3px;
    color: var(--dark-blue);
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 800;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-social-label {
    color: var(--muted-text);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-links-footer {
    gap: 10px;
}

.social-links-footer .social-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
}

.social-links-footer .social-icon svg {
    width: 18px;
    height: 18px;
}

/* Tablet */

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: auto 1fr;
    }

    .main-nav {
        justify-content: flex-end;
        gap: 20px;
    }

    .social-links-header {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .about-section {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 28px;
    }

    .big-logo {
        max-height: 250px;
    }

    .site-footer {
        flex-wrap: wrap;
    }

    .footer-company-data {
        flex-basis: 100%;
        order: 3;
    }

    .footer-social {
        margin-left: auto;
    }
}

/* Smartphone */

@media (max-width: 650px) {
    .site-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 18px 6%;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 20px;
        width: 100%;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .social-links-header {
        justify-content: center;
    }

    .content-section {
        padding: 65px 8%;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    /* Home block */
    .about-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .home-logo-heading {
        width: 100%;
    }

    .big-logo {
        width: 100%;
        max-width: 320px;
        max-height: 220px;
        margin: 0 auto;
    }

    .about-text {
        margin-top: 0;
        padding-left: 18px;
        font-size: 0.95rem;
    }

    .about-text p + p {
        margin-top: 10px;
    }

    .menu-section {
        padding: 65px 0;
    }

    .menu-section .section-heading,
    .menu-carousel-toolbar {
        padding-right: 8%;
        padding-left: 8%;
    }

    .menu-section .section-heading {
        margin-bottom: 26px;
    }

    .menu-carousel-toolbar {
        gap: 10px;
        margin-bottom: 16px;
    }

    .menu-carousel-intro {
        gap: 8px;
        min-width: 0;
    }

    .menu-caption-line {
        flex-basis: 16px;
    }

    .menu-carousel-intro p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .menu-carousel-controls {
        flex-shrink: 0;
        gap: 6px;
    }

    #menu-page-status {
        margin-right: 0;
        font-size: 0.72rem;
    }

    .menu-carousel-controls button {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .menu-carousel-controls button svg {
        width: 18px;
        height: 18px;
    }

    .menu-carousel {
        height: 70svh;
        min-height: 300px;
    }

    .menu-slide {
        padding: 8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 35px;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 26px 8%;
    }

    .footer-company-data {
        flex-basis: auto;
        order: initial;
        text-align: center;
    }

    .footer-social {
        margin-left: 0;
    }

    .social-links-footer {
        justify-content: center;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    html,
    .menu-carousel {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}