/* ============================================================
   ЗМІННІ
   ============================================================ */
:root {
    --c-red:      #DC143C;
    --c-coral:    #FF7F50;
    --c-dark:     #1a1a1a;
    --c-gray:     #696969;
    --c-darkgray: #2a2a2a;
    --c-light:    #f5f5f5;
    --c-white:    #fff;

    --font: 'Home_font', system-ui, sans-serif;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,.15);
    --tr: .25s ease;
    --header-h: 60px;
}

/* ============================================================
   ШРИФТ
   ============================================================ */
@font-face {
    font-family: Home_font;
    src: url('fonts/2.otf') format('opentype');
    font-display: swap;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); color: var(--c-dark); background: #fff; line-height: 1.6; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg   { fill: currentColor; flex-shrink: 0; }

.container {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0; z-index: 200;
    height: var(--header-h);
    background: rgba(20,20,20,.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-img  { height: 36px; width: auto; }
.logo-text {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--c-white);
    font-weight: 700;
    letter-spacing: .02em;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: clamp(.6rem,1.5vw,1.8rem); }
.nav-link  {
    color: rgba(255,255,255,.85);
    font-size: clamp(.8rem,1.3vw,.95rem);
    padding: .3em .4em;
    border-radius: 4px;
    transition: color var(--tr);
    white-space: nowrap;
}
.nav-link:hover { color: var(--c-coral); }

/* Burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 210;
}
.nav-toggle span {
    display: block; width: 26px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform var(--tr), opacity var(--tr);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Фото-слайдер на фоні */
.hero-slider { position: absolute; inset: 0; }
.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: rgba(0,0,0,.58);
}

.hero-content {
    position: relative; z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 700px;
}
.hero-logo {
    height: clamp(60px, 12vw, 120px);
    width: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.4rem);
    opacity: .85;
    margin-bottom: 2rem;
    letter-spacing: .05em;
}

.btn {
    display: inline-block;
    padding: .7em 2em;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background var(--tr), transform var(--tr);
}
.btn--hero {
    background: var(--c-red);
    color: #fff;
}
.btn--hero:hover { background: #b01030; transform: translateY(-2px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section         { padding-block: clamp(3rem, 8vw, 6rem); }
.section--dark   { background: var(--c-dark); color: #fff; }

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 56px; height: 3px;
    background: var(--c-red);
    margin: .6rem auto 0;
    border-radius: 2px;
}
.section-title--light::after { background: var(--c-coral); }

/* ============================================================
   FILTER
   ============================================================ */
.filter-bar, .subfilter-bar {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.subfilter-bar { margin-bottom: 2rem; }

.filter-btn {
    padding: .45em 1.4em;
    border: 2px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-family: var(--font);
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--tr);
    color: var(--c-dark);
}
.filter-btn:hover  { border-color: var(--c-coral); color: var(--c-coral); }
.filter-btn.active { background: var(--c-red); border-color: var(--c-red); color: #fff; }

.subfilter-btn {
    padding: .3em 1em;
    border: 1.5px solid #ccc;
    border-radius: 999px;
    background: #fff;
    font-family: var(--font);
    font-size: .82rem;
    cursor: pointer;
    transition: all var(--tr);
    color: var(--c-gray);
}
.subfilter-btn:hover  { border-color: var(--c-coral); color: var(--c-coral); }
.subfilter-btn.active { background: var(--c-gray); border-color: var(--c-gray); color: #fff; }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 1.2rem;
}

.gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    background: #fff;
    transition: transform var(--tr), box-shadow var(--tr);
    outline-offset: 3px;
}
.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,.2);
}
.gallery-card.hidden { display: none; }

.card-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.gallery-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-badge {
    position: absolute;
    bottom: .5rem; right: .5rem;
    background: var(--c-coral);
    color: #fff;
    font-size: .75rem;
    padding: .2em .6em;
    border-radius: 4px;
    font-weight: 600;
}

.card-body { padding: .8rem 1rem; }
.card-sub  {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-gray);
}
.card-title {
    font-size: .95rem;
    margin-top: .2rem;
    line-height: 1.3;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: center;
}
.about-photo img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.about-text p { margin-bottom: 1rem; opacity: .9; }

.partners { margin-top: 2rem; }
.partners-title {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-coral);
    margin-bottom: .8rem;
}
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
}
.partners-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.9);
    border-radius: 6px;
    padding: 6px 12px;
    opacity: .85;
    transition: opacity var(--tr);
}
.partners-logos a:hover { opacity: 1; }
.partners-logos img { height: 32px; width: auto; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px,100%), 1fr));
    gap: 1.2rem;
}
.review {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius);
    color: #fff;
    font-size: clamp(.85rem, 1.5vw, 1rem);
    line-height: 1.6;
}
.review p::before { content: '\201C'; font-size: 1.8em; line-height: 0; vertical-align: -.3em; margin-right: .15em; }
.review p::after  { content: '\201D'; font-size: 1.8em; line-height: 0; vertical-align: -.3em; margin-left:  .15em; }
.review--green  { background: #6a8a3a; }
.review--orange { background: #c06400; color: #fff; }
.review--red    { background: #8b1a1a; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}
.contacts-info { display: flex; flex-direction: column; gap: 1.4rem; }

.years-badge {
    font-size: clamp(1rem, 2vw, 1.2rem);
    border: 2px solid var(--c-coral);
    display: inline-block;
    padding: .5em 1em;
    border-radius: var(--radius);
    color: var(--c-coral);
    align-self: flex-start;
}
.years-badge span { font-size: 2em; font-weight: 700; line-height: 1; display: block; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; color: var(--c-coral); margin-top: .2em; }
.contact-item strong {
    display: block; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .05em;
    color: rgba(255,255,255,.5); margin-bottom: .2em;
}
.contact-item a, .contact-item span { display: block; opacity: .9; }
.contact-item a:hover { color: var(--c-coral); }

.specializations { opacity: .8; }
.specializations strong { display: block; margin-bottom: .4rem; }

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #111;
    color: rgba(255,255,255,.45);
    text-align: center;
    padding: 1.4rem 1rem;
    font-size: .85rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: min(920px, 96vw);
    width: 100%;
    max-height: 92svh;
    overflow: hidden;
    background: #111;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.lightbox::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }

.lightbox-close {
    position: absolute; top: .6rem; right: .6rem; z-index: 10;
    width: 34px; height: 34px;
    background: rgba(0,0,0,.55);
    border: none; border-radius: 50%;
    color: #fff; font-size: 1.4rem; line-height: 1;
    cursor: pointer;
    transition: background var(--tr);
}
.lightbox-close:hover { background: var(--c-red); }

.lightbox-inner {
    display: grid;
    grid-template-rows: 1fr auto auto;
    max-height: 92svh;
    overflow-y: auto;
}

/* Слайдер */
.lightbox-slider {
    background: #000;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}
.lightbox-slider img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.lightbox-slider img.active { opacity: 1; pointer-events: auto; }

/* Навігація */
.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: .5rem;
    background: #0a0a0a;
}
.lb-arr {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff; font-size: 1.1rem;
    width: 34px; height: 34px;
    border-radius: 50%; cursor: pointer;
    transition: all var(--tr);
}
.lb-arr:hover { background: var(--c-red); border-color: var(--c-red); }
.lb-arr:disabled { opacity: .25; cursor: default; }
.lb-counter { font-size: .8rem; opacity: .6; min-width: 44px; text-align: center; }

/* Інфо */
.lightbox-info { padding: 1.2rem 1.5rem; background: var(--c-gray); }
.lb-sub   { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.lb-title { font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--c-coral); margin-bottom: .5rem; }
.lb-desc  { opacity: .9; line-height: 1.7; margin-bottom: .5rem; }
.lb-price { color: var(--c-coral); font-size: 1.05rem; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .about-grid    { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .map-wrap      { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15,15,15,.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 200;
    }
    .site-nav.open { display: flex; }
    .nav-link { font-size: 1.3rem; }

    .lightbox-slider { aspect-ratio: 4/3; }
}

@media (max-width: 520px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .card-body    { padding: .6rem .7rem; }
    .card-title   { font-size: .85rem; }
}
