/* ============================================
   NEKROLOG & CIĄGŁO — MODERN WEBSITE STYLES
   ============================================ */

:root {
    --color-primary: #1a1a2e;
    --color-primary-light: #2d2d44;
    --color-accent: #bf9e58;
    --color-accent-light: #d4b872;
    --color-accent-dark: #a68940;
    --color-text: #2e394e;
    --color-text-light: #5a6577;
    --color-white: #ffffff;
    --color-off-white: #f8f6f3;
    --color-beige: #f0ebe3;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.15);

    --font-heading: 'Cormorant Infant', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --header-height: 80px;
    --section-padding: 100px;
    --container-width: 1200px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    text-transform: uppercase;
}
.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}
.btn--primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}
.btn--outline-light:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.header--hidden { transform: translateY(-100%); }
.header--scrolled { box-shadow: var(--shadow-md); }

.header__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header__logo img { height: 70px; width: auto; }

.header__nav { display: flex; align-items: center; }

.header__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__link {
    position: relative;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.3px;
    transition: color var(--transition);
}
.header__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.header__link:hover,
.header__link.active {
    color: var(--color-accent);
}
.header__link:hover::after,
.header__link.active::after {
    width: 60%;
}

.header__phones {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50px;
    margin-left: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.header__phones-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}
.header__phones-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.header__phones-list a {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-white);
    transition: opacity var(--transition);
}
.header__phones-list a:hover {
    opacity: 0.8;
}

.header__burger {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}
.header__burger span {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 9px; }
.header__burger span:nth-child(3) { top: 18px; }
.header__burger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
    .header__burger { display: block; }
    .header__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
    }
    .header__menu.open { right: 0; }
    .header__link {
        font-size: 18px;
        padding: 12px 0;
        width: 100%;
    }
    .header__link::after { display: none; }
    .header__phones-list { display: none; }
    .header__phones {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        margin-left: 16px;
    }
}

@media (max-width: 480px) {
    .header__logo img { height: 34px; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero__slider { position: relative; width: 100%; height: 100%; }

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero__slide--active { opacity: 1; }

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.6) 0%,
        rgba(26, 26, 46, 0.4) 50%,
        rgba(26, 26, 46, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 24px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 56px);
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    max-width: 800px;
}
.hero__brand {
    display: block;
    color: var(--color-accent-light);
    font-style: italic;
    font-weight: bold;
    font-size: clamp(18px, 9vw, 83px);
}
.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 26px);
    color: var(--color-accent-light);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
}
.hero__tagline {
    font-size: clamp(14px, 2.4vw, 28px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.6;
}

.hero__phones {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn--phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    transition: all var(--transition);
    cursor: pointer;
}
.btn--phone:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--phone svg {
    flex-shrink: 0;
}

.hero__dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.hero__dot--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.2);
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== EMERGENCY BAR ===== */
.emergency-bar {
    background: var(--color-primary);
    padding: 14px 0;
    position: relative;
    z-index: 10;
}
.emergency-bar__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 400;
    flex-wrap: wrap;
}
.emergency-bar__content svg { color: var(--color-accent); flex-shrink: 0; }
.emergency-bar__content a {
    color: var(--color-accent-light);
    font-weight: 700;
    font-size: 17px;
}
.emergency-bar__content a:hover { color: var(--color-white); }
.emergency-bar__sep { color: rgba(255,255,255,0.3); }

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding) 0;
}
.section--light { background: var(--color-white); }
.section--dark { background: var(--color-primary); }
.section--beige { background: var(--color-beige); }

.section__header {
    text-align: center;
    margin-bottom: 50px;
}
.section__title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--color-text);
    margin-bottom: 16px;
}
.section__title--light { color: var(--color-white); }
.section__line {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto;
    border-radius: 2px;
}
.section__intro {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: -20px auto 50px;
    line-height: 1.7;
}
.section__intro--light { color: rgba(255, 255, 255, 0.8); }

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ABOUT ===== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about__heading {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
}
.about__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
}
.about__text p {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--color-text-light);
}
.about__text strong { color: var(--color-text); }
.about__highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
}
.about__highlight svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.about__highlight p { font-size: 15px; margin: 0; color: var(--color-text); }
.about__image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about__image img {
    width: 100%;
    height: 545px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.about__image:hover img { transform: scale(1.03); }

@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about__image img { height: 280px; }
}

/* ===== CEMETERIES ===== */
.cemeteries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.cemetery-card {
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
}
.cemetery-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.cemetery-card__icon {
    color: var(--color-accent);
    margin-bottom: 24px;
}
.cemetery-card__title {
    font-size: 20px;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.4;
}
.cemetery-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border-bottom: 1px dashed var(--color-accent);
    padding-bottom: 2px;
    transition: all var(--transition);
}
.cemetery-card__link .cemetery-card__title {
    color: var(--color-accent);
    margin-bottom: 0;
}
.cemetery-card__link-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    opacity: 0.7;
    transition: opacity var(--transition);
}
.cemetery-card__link:hover .cemetery-card__title {
    color: var(--color-white);
}
.cemetery-card__link:hover {
    border-bottom-color: var(--color-white);
    border-bottom-style: solid;
}
.cemetery-card__link:hover .cemetery-card__link-icon {
    opacity: 1;
    color: var(--color-white);
}
.cemetery-card__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}
.cemeteries__cta {
    text-align: center;
    padding: 40px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}
.cemeteries__cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .cemeteries { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

/* ===== SERVICES ===== */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    padding: 32px 28px;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}
.service-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}
.service-card__icon img { width: 100%; height: auto; }
.service-card__title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .services { grid-template-columns: 1fr; }
}

/* ===== PARALLAX SECTIONS ===== */
.parallax-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    .parallax-section { background-attachment: scroll; min-height: 300px; }
}
.parallax-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.55);
}
.parallax-section__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
}
.parallax-section__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 48px);
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 700px;
}

/* ===== OBITUARIES ===== */
.obituaries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}
.obituary-card--image {
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.obituary-card--image:hover,
.obituary-card--image:focus-visible {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}
.obituary-card--image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.obituary-card--image:hover img {
    transform: scale(1.03);
}
.obituaries__empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    color: var(--color-text-light);
    padding: 40px 0;
}
.obituaries__note {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
    font-style: italic;
}

@media (max-width: 480px) {
    .obituaries { grid-template-columns: 1fr; }
}

/* ===== GUIDE / PORADNIK ===== */
.guide__cta {
    text-align: center;
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 32px;
    line-height: 1.8;
}
.guide__phone {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-accent-dark);
    text-decoration: none;
    white-space: nowrap;
}
.guide__phone:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.guide__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--color-border);
    flex-wrap: wrap;
}
.guide__tab {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    white-space: nowrap;
}
.guide__tab:hover { color: var(--color-text); }
.guide__tab--active {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

.guide__panel {
    padding: 40px 0;
    display: none;
}
.guide__panel--active { display: block; }

.guide__steps { counter-reset: step; }
.guide__step {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}
.guide__step:last-child { border-bottom: none; }
.guide__step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide__step h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.4;
}
.guide__step p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.guide__docs { padding: 0; }

.guide__step-group {
    margin-bottom: 0px;
}
.guide__step-group h1 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
}
.guide__step-group ul {
    list-style: none;
    padding: 0;
}
.guide__step-group li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 15px;
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.guide__step-group li:last-child{
    border-bottom: 0;
}
.guide__step-group li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.guide__doc-group {
    margin-bottom: 32px;
}
.guide__doc-group h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.4;
}
.guide__doc-group ul {
    list-style: none;
    padding: 0;
}
.guide__doc-group li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 15px;
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.guide__doc-group li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}
.guide__note {
    padding: 20px 24px;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
    font-size: 15px;
    color: var(--color-text);
}

.guide__faq { padding: 0; }
.guide__question {
    border-bottom: 1px solid var(--color-border);
}
.guide__question summary {
    padding: 20px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
}
.guide__question summary h3 {
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    line-height: inherit;
    display: inline;
}
.guide__question summary::-webkit-details-marker { display: none; }
.guide__question summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--color-accent);
    font-weight: 300;
    transition: transform var(--transition);
}
.guide__question[open] summary::after {
    content: '−';
}
.guide__question p {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .guide__tab { padding: 10px 16px; font-size: 13px; }
    .guide__step { gap: 16px; }
    .guide__step-number { width: 40px; height: 40px; font-size: 16px; }
}

/* ===== GALLERY ===== */
.gallery-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.gallery-category-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: none;
    padding: 0;
    background: var(--color-primary);
    transition: all var(--transition);
}
.gallery-category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.gallery-category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-category-tile:hover img {
    transform: scale(1.08);
}
.gallery-category-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 20px;
}
.gallery-category-tile__overlay h3 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 22px;
    text-align: center;
    margin-bottom: 4px;
}
.gallery-category-tile__count {
    color: var(--color-accent-light);
    font-size: 14px;
    font-weight: 500;
}

.gallery-view__title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 30px;
}
.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 24px;
}
.gallery-back:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery__item[hidden] {
    display: none;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery__item:hover img,
.gallery__item:focus img { transform: scale(1.08); }
.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery__item:hover .gallery__overlay,
.gallery__item:focus .gallery__overlay { opacity: 1; }
.gallery__overlay h3 {
    color: var(--color-white);
    font-size: 18px;
}
.gallery__empty {
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery-categories { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .gallery-category-tile__overlay h3 { font-size: 18px; }
}
@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery-categories { grid-template-columns: 1fr; }
    .gallery-view__title { font-size: 22px; }
}

/* ===== CONTACT ===== */
.contact__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.contact-card {
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    border: 1px solid var(--color-border-light);
}
.contact-card__icon {
    color: var(--color-accent);
    margin-bottom: 16px;
}
.contact-card__title {
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 20px;
}
.contact-card__label {
    font-size: 14px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}
.contact-card__phones {
    margin-bottom: 20px;
}
.contact-card__phones a {
    display: inline-block;
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    margin-right: 20px;
    transition: color var(--transition);
}
.contact-card__phones a:hover { color: var(--color-accent-light); }
.contact-card__hours { margin-bottom: 20px; }
.contact-card__hours dl { margin: 0; }
.contact-card__hours dt {
    display: inline-block;
    width: 55%;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 2;
}
.contact-card__hours dd {
    display: inline-block;
    width: 44%;
    font-size: 15px;
    color: var(--color-white);
    font-weight: 600;
    line-height: 2;
    margin: 0;
}
.contact-card__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--color-accent);
}
#mapContainer {
    height: 400px;
    width: 100%;
}

@media (max-width: 768px) {
    .contact__cards { grid-template-columns: 1fr; }
    #mapContainer { height: 300px; }
}

/* ===== FOOTER ===== */
.footer {
    background: #111122;
    padding: 60px 0 0;
}
.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { margin-bottom: 16px; opacity: 0.8; }
.footer__brand p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.6;
}
.footer__links h4,
.footer__contact h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 20px;
}
.footer__links ul { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-white); }
.footer__contact a {
    display: block;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.footer__contact a:hover { color: var(--color-accent-light); }
.footer__address {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
}
.footer__bottom {
    padding: 24px 0;
    text-align: center;
}
.footer__bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__brand img { margin-left: auto; margin-right: auto; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--color-white);
    transition: color var(--transition);
    line-height: 1;
}
.lightbox__close:hover { color: var(--color-accent); }
.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    padding: 10px;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--color-white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --header-height: 64px;
    }
}

@media (max-width: 480px) {
    :root { --section-padding: 48px; }
    .emergency-bar__content { font-size: 13px; }
    .emergency-bar__sep { display: none; }
    .hero__phones { flex-direction: column; align-items: center; gap: 12px; }
    .btn--phone { width: 100%; max-width: 280px; justify-content: center; padding: 12px 20px; font-size: 15px; }
}

/* ===== PRINT ===== */
@media print {
    .header, .hero, .emergency-bar, .parallax-section,
    .hero__scroll, .hero__dots, .lightbox { display: none; }
    .section { padding: 24px 0; break-inside: avoid; }
    body { color: #000; font-size: 12pt; }
}
