@font-face {
    font-family: "Lora";
    src: url("./assets/fonts/lora-latin-ext-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("./assets/fonts/lora-latin-ext-400-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("./assets/fonts/lora-latin-ext-500-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("./assets/fonts/lora-latin-ext-600-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --color-bg: #fdfcfb;
    --color-brand: #a16f40;
    --color-brand-muted: rgba(150, 103, 60, 0.86);
    --color-border: #e0d3c7;
    --color-btn-label: #fcfcfc;
    --color-surface: #faf5ef;
    --color-overlay: rgba(30, 18, 8, 0.55);
    --font-serif: "Lora", Georgia, "Times New Roman", serif;
    --text-sm: 0.9375rem;
    --text-base: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 28px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-18: 72px;
    --radius-btn: 8px;
    --radius-modal: 16px;
    --radius-input: 8px;
    --transition-fast: 0.15s ease;
    --transition-mid: 0.25s ease;
}

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

html {
    font-size: 16px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg);
    color: var(--color-brand-muted);
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: 1.45;
    min-height: 100dvh;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    height: auto;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

address {
    font-style: normal;
}

.page {
    position: relative;
    min-height: 100dvh;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 12px;
}

.sygnet {
    position: fixed;
    top: 20%;
    left: 41%;
    width: 622px;
    height: 607px;
    pointer-events: none;
    user-select: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    opacity: 0.035;
}

.blur-top,
.blur-bottom {
    position: fixed;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 10;
}

.blur-top::before,
.blur-top::after,
.blur-bottom::before,
.blur-bottom::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blur-top {
    top: 0;
    background: linear-gradient(
        to bottom,
        var(--color-bg) 0%,
        rgba(253, 252, 251, 0.6) 60%,
        rgba(253, 252, 251, 0) 100%
    );

    /* Prefiksy dla rozmycia */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    /* Prefiksy i ujednolicone kolory dla maski */
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

.blur-bottom {
    bottom: 0;
    background: linear-gradient(
        to top,
        var(--color-bg) 0%,
        rgba(253, 252, 251, 0.6) 60%,
        rgba(253, 252, 251, 0) 100%
    );

    /* 1. Prefiks dla Safari/iOS Safari */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    /* 2. Prefiks maski dla Safari/iOS Safari */
    -webkit-mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

.blur-top::before {
    backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 78%);
}

.blur-top::after {
    backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 56%);
}

.blur-bottom::before {
    backdrop-filter: blur(5px);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 78%);
}

.blur-bottom::after {
    backdrop-filter: blur(2px);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 56%);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 24px 8px var(--sp-6);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    width: auto;
    height: 36px;
    max-width: 160px;
    object-fit: contain;
}

.site-main {
    padding-top: 120px;
    padding-bottom: 320px;
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: 180px;
    max-width: 480px;
}

.section {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.section-title {
    color: var(--color-brand);
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.section-subtitle {
    max-width: 420px;
    color: var(--color-brand-muted);
    opacity: 0.9;
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.1px;
}

.hero {
    max-width: 420px;
    align-self: center;
    margin-bottom: -60px;
    margin-right: auto;
}

.hero-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #efebda;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #8ea2d2;
    padding: 16px 16px 22px;
    overflow: hidden;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    background: #405da1;
    opacity: 0.025;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-mask-mode: luminance;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-mode: luminance;
}

.hero-banner-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.hero-banner-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    color: #113b89;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.1px;
    padding-top: 16px;
}

.h1-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-12);
}

.location-item {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-bottom: var(--sp-8);
    /*border-bottom: 1px solid var(--color-border);*/
    max-width: 348px;
}

.location-details {
    display: flex;
    flex-direction: column;
}

.location-photo {
    max-width: 320px;
    height: auto;
    margin-bottom: 11px;
    border-radius: var(--radius-md, 8px);
}

.section-photo {
    max-width: 232px;
    border-radius: var(--radius-md, 8px);
}

.catering-photo {
    max-width: 256px;
    height: auto;
    border-radius: var(--radius-md, 8px);
}

.social-photo {
    max-width: 232px;
    border-radius: var(--radius-md, 8px);
}

.wspolpraca-photo {
    max-width: 320px;
    border-radius: var(--radius-md, 8px);
}

.section > .location-photo,
.section > .section-photo,
.section > .catering-photo,
.section > .social-photo,
.section > .wspolpraca-photo {
    margin-bottom: calc(11px - var(--sp-8));
}

.location-name {
    color: var(--color-brand);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.1px;
}

.location-address,
.location-menu {
    color: var(--color-brand-muted);
    opacity: 0.7;
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.1px;
}

.location-menu__title {
    margin-bottom: 2px;
}

.location-menu__list {
    list-style: none;
}

.location-menu__list li {
    position: relative;
    padding-left: 18px;
}

.location-menu__list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    flex-shrink: 0;
    gap: 3px;
    height: 36px;
    padding: 8px var(--sp-3) 9px;
    border-radius: var(--radius-btn);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-btn-label);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01px;
    opacity: 0.95;
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

.btn:hover {
    opacity: 1;
    scale: 1.01;
}

.btn:active {
    opacity: 1;
}

.btn--primary {
    background-color: var(--color-brand);
}

.btn__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    list-style: none;
    padding-inline-start: 0px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--color-brand);
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.1px;
    opacity: 0.95;
    transition:
        opacity var(--transition-fast),
        color var(--transition-fast);
}

.social-link:hover {
    opacity: 1;
    scale: 1.01;
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.contact-item__title {
    color: var(--color-brand);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.1px;
}

.contact-item__subtitle {
    color: var(--color-brand-muted);
    opacity: 0.7;
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.1px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-6);
    background: var(--color-overlay);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-mid),
        visibility var(--transition-mid);
}

.modal-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90dvh;
    overflow-y: auto;
    padding: var(--sp-8) var(--sp-5);
    background: var(--color-bg);
    border-radius: var(--radius-modal);
    box-shadow: 0 8px 48px rgba(100, 55, 10, 0.16);
    transform: translateY(14px) scale(0.98);
    transition: transform var(--transition-mid);
}

.modal-overlay[aria-hidden="false"] .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--color-brand-muted);
    opacity: 0.55;
    border-radius: 50%;
    transition: opacity var(--transition-fast);
}

.modal__close:hover {
    opacity: 1;
}

.modal__close svg {
    width: 18px;
    height: 18px;
}

.modal__title {
    margin-bottom: 5px;
    padding-right: var(--sp-8);
    color: var(--color-brand);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.modal__subtitle {
    margin-bottom: var(--sp-6);
    color: var(--color-brand-muted);
    opacity: 0.8;
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.1px;
}

.contact-status {
    display: none;
    margin-bottom: var(--sp-5);
    padding: var(--sp-4);
    border-radius: var(--radius-input);
    background: rgba(161, 111, 64, 0.08);
    color: var(--color-brand);
    font-size: var(--text-sm);
    line-height: 1.45;
}

.contact-status.is-visible {
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.contact-form[hidden] {
    display: none;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row--two {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}

.form-label {
    color: var(--color-brand);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.05px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    appearance: none;
    outline: none;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-input);
    background: var(--color-surface);
    color: var(--color-brand);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    transition: border-color var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-brand-muted);
    opacity: 0.45;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-brand);
}

.form-textarea {
    min-height: 96px;
    resize: vertical;
}

.form-select {
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a16f40' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-help {
    margin-top: 3px;
    color: var(--color-brand-muted);
    opacity: 0.8;
    font-size: 13px;
    line-height: 1.45;
}

.form-error,
.field-error {
    color: #c0392b;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
}

.form-submit {
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 6px;
    font-size: var(--text-base);
}

.form-success {
    display: none;
    padding: var(--sp-8) 0 var(--sp-6);
    text-align: center;
}

.form-success.is-visible {
    display: block;
}

.form-success__icon {
    margin-bottom: var(--sp-3);
    font-size: 40px;
}

.form-success__title {
    margin-bottom: var(--sp-2);
    color: var(--color-brand);
    font-size: var(--text-lg);
    font-weight: 500;
}

.form-success__text {
    color: var(--color-brand-muted);
    opacity: 0.8;
    font-size: var(--text-sm);
    line-height: 1.5;
}

@media (min-width: 499px) {
    .site-header {
        padding: var(--sp-10) 0 var(--sp-6);
    }

    .site-header .container {
        justify-content: space-between;
        padding-left: 40px;
        padding-right: 40px;
    }

    .site-main {
        padding-top: 80px;
    }

    .site-main .container {
        padding-left: clamp(40px, 65.52vw - 287px, 384px);
    }

    .content-stack {
        max-width: 560px;
    }

    .hero-banner-text {
        font-size: 15px;
    }

    .modal {
        padding: var(--sp-8) var(--sp-7);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
