/* ==========================================================================
   MEDUSA WARSZAWA — wspólny arkusz stylów (redesign, wzorzec: cofoco.dk/delphine)
   ========================================================================== */

:root {
    --main-color: #0454c4;
    --main-dark: #033a8a;
    --bg: #ffffff;
    --bg-soft: #edf3fc;
    --ink: #12232f;
    --ink-soft: #4d6272;
    --line: #d5e2f5;
    --transition: 0.3s ease-in-out;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- placeholder media (bez plików od klienta) ---------- */
.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 12px, #e2eef6 12px, #e2eef6 24px);
    color: var(--main-dark);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px dashed var(--main-color);
}

/* ---------- header ---------- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: transparent;
    padding: 22px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
    background: rgba(255,255,255,0.96);
    padding: 14px 5%;
    box-shadow: 0 4px 20px rgba(18,35,47,0.08);
}
.header-left { display: flex; align-items: center; gap: 22px; }
.group-link {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.7);
    padding-left: 22px;
    line-height: 1.3;
    display: none;
}
header.scrolled .group-link,
.hero-light .group-link { color: var(--main-color); border-left-color: var(--main-color); }
.group-link span { display: block; opacity: 0.65; font-size: 10px; }
@media (min-width: 1300px) { .group-link { display: block; } nav ul li.nav-group-item { display: none; } }

.logo a { display: block; }
.logo img { width: auto; height: 46px; transition: filter 0.4s ease; filter: brightness(0) invert(1); }
header.scrolled .logo img { filter: none; }

nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; white-space: nowrap; }
nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
}
header.scrolled nav ul li a { color: var(--ink); }
nav ul li a:hover { color: var(--main-color); }

.nav-right-group { display: flex; align-items: center; gap: 20px; }
.header-socials { display: none; gap: 14px; }
.header-socials a { color: #fff; font-size: 16px; transition: var(--transition); }
header.scrolled .header-socials a { color: var(--ink); }
.header-socials a:hover { color: var(--main-color); }
@media (min-width: 1500px) { .header-socials { display: flex; } }

.btn-reserve {
    background: var(--main-color);
    color: #fff;
    padding: 11px 20px;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.5px;
    border: 1px solid var(--main-color);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-reserve:hover { background: transparent; color: var(--main-color); }
header.scrolled .btn-reserve { color: #fff; }
header.scrolled .btn-reserve:hover { color: var(--main-color); }

.mobile-toggle { display: none; color: #fff; font-size: 22px; cursor: pointer; }
header.scrolled .mobile-toggle { color: var(--ink); }
.mobile-close { display: none; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}
.hero video, .hero .hero-media-placeholder {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,35,47,0.15) 0%, rgba(18,35,47,0.05) 40%, rgba(18,35,47,0.55) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
}
.hero-heading {
    padding: 0 5% 40px;
    max-width: calc(640px + 10%);
}
.hero-heading .label { color: #fff; }
.hero-heading h1 {
    font-size: 3.4rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 10px 0 14px;
}
.hero-heading p { font-size: 1.05rem; opacity: 0.9; max-width: 520px; }
.hero-heading p.hero-address { margin-top: 14px; font-weight: 500; opacity: 1; }
.hero-heading p.hero-address i { margin-right: 6px; }
.hero-sound {
    position: absolute; right: 5%; bottom: 96px; z-index: 3;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(18,35,47,0.45); color: #fff; font-size: 17px;
    cursor: pointer; transition: var(--transition);
}
.hero-sound:hover { background: var(--main-color); border-color: var(--main-color); }
.hero-reserve-bar {
    background: var(--main-color);
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-reserve-bar a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 500;
}
.hero-reserve-bar .btn-more { background: #fff; color: var(--main-color); }
.hero-reserve-bar .btn-more:hover { background: var(--ink); color: #fff; }

/* ---------- page header (podstrony bez wideo) ---------- */
.page-header {
    height: 55vh;
    min-height: 340px;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: linear-gradient(rgba(18,35,47,0.35), rgba(18,35,47,0.55)), var(--main-color);
    background-size: cover;
    background-position: center;
}
.page-header-inner { padding: 0 5% 60px; }
.page-header .label { color: #fff; }
.page-header h1 { font-size: 2.8rem; text-transform: uppercase; letter-spacing: 4px; margin-top: 10px; }

/* ---------- content ---------- */
.label {
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 500;
    display: inline-block;
    position: relative;
    padding-left: 34px;
}
.label::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    width: 24px; height: 1px;
    background: var(--main-color);
}

/* tła sekcji na całą szerokość, treść w kolumnie 1200px */
section.container { padding: 72px max(5%, calc((100% - 1200px) / 2)); margin: 0; }
section.container.narrow { padding: 72px max(5%, calc((100% - 800px) / 2)); }
section.container.narrow { text-align: center; }
section.soft { background: var(--bg-soft); }

.content-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6%; }
.content-row.reverse { flex-direction: row-reverse; }

/* ---------- ilustracje (akcenty graficzne) ---------- */
.illustration-break { padding: 8px max(5%, calc((100% - 1200px) / 2)) 24px; }
.illustration-break.soft { background: var(--bg-soft); }
.illustration-break img { width: 320px; height: 320px; max-width: 65%; margin: 0 auto; }
.illustration-break.align-left img { margin-left: 0; }
.illustration-break.align-right img { margin-right: 0; }
.label-illustration { display: block; width: 190px; height: 190px; margin-bottom: 18px; }
.page-icon { display: block; width: 210px; height: 210px; margin: 0 auto 26px; }
.page-icon.page-icon-xl { width: 380px; height: 380px; max-width: 80%; margin-bottom: 10px; }
.voucher-row { display: flex; align-items: center; gap: 4%; }
.voucher-art { position: relative; flex: 0 0 42%; height: 500px; }
.voucher-illustration { position: absolute; left: 50%; top: 50%; width: 680px; height: 680px; max-width: none; transform: translate(-50%, -50%) rotate(42deg); }
.voucher-text { flex: 1; }
@media (max-width: 780px) {
    .voucher-row { flex-direction: column; text-align: center; }
    .voucher-art { flex-basis: auto; width: 100%; height: 340px; }
    .voucher-illustration { width: 440px; height: 440px; }
}
.lead { font-size: 1.2rem; line-height: 1.9; color: var(--ink-soft); }
.content-text { flex: 1; min-width: 300px; }
.content-image { flex: 1; min-width: 300px; }
.content-image img, .content-image .media-placeholder { width: 100%; height: 440px; object-fit: cover; }

/* komputer: zdjęcie/wideo wypełnia całą przestrzeń sekcji (od krawędzi ekranu, od góry do dołu),
   pozycjonowane absolutnie — nie wpływa na wysokość sekcji, więc nic się nie przesuwa */
@media (min-width: 781px) {
    section.container:has(> .content-row) { padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; }
    section.container > .content-row { gap: 0; flex-wrap: nowrap; align-items: stretch; }
    section.container > .content-row > .content-text {
        align-self: center;
        padding: 72px 5vw 72px max(5vw, calc((100vw - 1200px) / 2));
    }
    section.container > .content-row.reverse > .content-text {
        padding: 72px max(5vw, calc((100vw - 1200px) / 2)) 72px 5vw;
    }
    section.container > .content-row > .content-image { position: relative; min-height: 560px; }
    section.container > .content-row > .content-image > img,
    section.container > .content-row > .content-image > video,
    section.container > .content-row > .content-image .media-placeholder {
        position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    }
}
.content-image video { width: 100%; height: 440px; object-fit: cover; display: block; }
.content-text h2 { font-size: 2.4rem; margin: 14px 0 20px; }
.content-text p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 26px; line-height: 1.85; }

.btn-more {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 13px 28px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1.5px;
    transition: var(--transition);
    border: 1px solid var(--main-color);
}
.btn-more:hover { background: transparent; color: var(--main-color); }
.btn-outline { background: transparent; color: var(--main-color); }
.btn-outline:hover { background: var(--main-color); color: #fff; }

/* motyw graficzny — proste linearne ilustracje (fala/oliwka/kolumna) */
.motif { position: absolute; opacity: 0.12; pointer-events: none; }
.motif-wave { width: 220px; }
section { position: relative; }

/* ---------- info grid (kontakt/godziny) ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 50px;
}
.info-grid h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--main-color);
    margin-bottom: 18px;
}
.info-grid p { margin: 0 0 8px; color: var(--ink-soft); }

/* telefon: jedna kolumna, wyśrodkowana — symetrycznie */
@media (max-width: 780px) {
    .info-grid { grid-template-columns: 1fr; gap: 34px; text-align: center !important; }
    .info-grid h4 { margin-bottom: 12px; }
}

/* ---------- gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 6px;
}
.gallery-grid .media-placeholder, .gallery-grid img { height: 320px; width: 100%; object-fit: cover; cursor: pointer; }

/* ---------- footer ---------- */
footer { background: var(--bg-soft); color: var(--ink); padding: 90px 5% 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-col h4 { color: var(--main-color); text-transform: uppercase; margin-bottom: 22px; font-size: 0.95rem; letter-spacing: 2px; font-weight: 500; }
.footer-col p { color: var(--ink-soft); margin: 0 0 6px; }
.footer-col a.footer-link { color: var(--ink-soft); text-decoration: none; }
.footer-col a.footer-link:hover { color: var(--main-color); }
.social-icons a { color: var(--main-color); font-size: 22px; margin-right: 20px; transition: var(--transition); }
.social-icons a:hover { color: var(--ink); }
.copyright { text-align: center; padding-top: 30px; font-size: 12px; letter-spacing: 1px; color: var(--ink-soft); }
.mobile-contact-info { display: none; }

/* ---------- responsywność ---------- */
@media (max-width: 780px) {
    header { background: rgba(255,255,255,0.97); padding: 16px 5%; }
    .logo img { filter: none; }
    .group-link { display: none; }
    .nav-right-group { order: 2; gap: 14px; margin-left: auto; }
    .header-socials { display: flex !important; order: 1; }
    .header-socials a { color: var(--ink); }
    .btn-reserve { order: 2; padding: 8px 14px; font-size: 10px; color: #fff; }
    .mobile-toggle { display: block; color: var(--ink); order: 3; margin-left: 8px; }
    nav { position: fixed; top: 0; right: -100%; width: 82%; max-width: 360px; height: 100vh; background: #fff; transition: 0.4s; padding: 100px 40px; z-index: 999; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.1); }
    nav.active { right: 0; }
    nav.active .mobile-close { display: block; position: absolute; top: 22px; right: 22px; font-size: 28px; color: var(--ink); cursor: pointer; }
    nav ul { flex-direction: column; gap: 22px; align-items: flex-start; }
    nav ul li a { font-size: 17px; color: var(--ink); }
    .mobile-contact-info { display: block; margin-top: 40px; font-size: 14px; }
    .mobile-contact-info p { margin: 5px 0; color: var(--ink-soft); }
    .mobile-contact-info .socials { margin-top: 20px; display: flex; gap: 18px; }
    .mobile-contact-info .socials a { color: var(--main-color); font-size: 20px; }
    .hero-heading h1 { font-size: 2.4rem; letter-spacing: 2px; }
    section.container, section.container.narrow { padding: 52px 6%; }
    .content-image img, .content-image video, .content-image .media-placeholder { height: 320px; }
    .content-text h2 { font-size: 1.9rem; }
    .page-header h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
    .hero-heading h1 { font-size: 1.9rem; }
    .hero-reserve-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- poprawki klienta (2026-10): ilustracje obrócone/powiększone ---------- */
.hero-heading h1 { line-height: 1.15; }
.content-image video.video-yogurt { object-position: 50% 78%; }

/* kalmar/ośmiornica i homar leżą poziomo; marginesy ujemne wycinają puste pole z kwadratowego pliku SVG */
.label-illustration.illus-squid { width: 440px; height: 440px; margin: -135px 0 -115px -65px; transform: rotate(90deg); }
.label-illustration.illus-fish  { width: 380px; height: 380px; margin: -115px 0 -95px -50px; }
.label-illustration.illus-shell { width: 340px; height: 340px; margin: -50px 0 -30px -40px; }
.label-illustration.illus-lobster { width: 460px; height: 460px; margin: -135px auto -115px; transform: rotate(90deg); }
.squid-wide { text-align: center; }
.squid-wide img { width: 580px; height: 580px; max-width: none; margin: -190px auto -170px; transform: rotate(90deg); }
.header-shell { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 360px; height: 360px; filter: brightness(0) invert(1); opacity: 0.9; pointer-events: none; }

@media (min-width: 781px) {
    section.container.section-yamas > .content-row > .content-image { min-height: 780px; }
}
@media (max-width: 780px) {
    .label-illustration.illus-squid { width: 340px; height: 340px; margin: -100px 0 -90px -50px; }
    .label-illustration.illus-fish  { width: 300px; height: 300px; margin: -90px 0 -75px -40px; }
    .label-illustration.illus-shell { width: 260px; height: 260px; margin: -35px 0 -20px -30px; }
    .label-illustration.illus-lobster { width: 340px; height: 340px; margin: -100px auto -90px; }
    .squid-wide img { width: 400px; height: 400px; margin: -130px auto -120px; }
    .section-yamas .content-image img { height: 460px; }
    .header-shell { width: 220px; height: 220px; }
}

/* eventy: zdjęcie po lewej, więc tekst ma ten sam odstęp od zdjęcia co od prawej krawędzi strony */
@media (min-width: 781px) {
    section.container.section-eventy > .content-row > .content-text { padding-left: 5vw; }
}

/* eventy: galeria w jednym rzędzie (6 zdjęć) na komputerze */
@media (min-width: 981px) {
    .gallery-one-row { grid-template-columns: repeat(6, 1fr); }
}
