/* ===== Особый дизайн — landing ===== */
:root {
    --cream: #f6f1e6;
    --cream-2: #efe6d4;
    --card: #ffffff;
    --ink: #2b2723;
    --muted: #8a7f6d;
    --gold: #b0894f;
    --gold-dark: #8c6b39;
    --line: #e3d8c2;
    --green: #3aaa35;
    --shadow: 0 6px 22px rgba(80, 60, 30, 0.10);
    --serif: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --sans: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__img { height: 46px; width: auto; max-width: 100%; display: block; }
.brand__logo {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 30%, #d9b87a, var(--gold));
    color: #fff; font-family: var(--serif); font-weight: 600;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
    overflow: hidden;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1; }
.brand__sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }

.header-contacts {
    display: inline-flex; align-items: center; gap: 10px;
}
.contact-icon {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; flex: 0 0 auto;
    transition: transform .15s ease, box-shadow .15s ease;
}
.contact-icon svg { width: 17px; height: 17px; }
.contact-icon:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.contact-icon--wa { background: #25d366; }
.contact-icon--call { background: #1c1c1c; }
.header-phone {
    font-weight: 600; font-size: 15px; color: var(--ink);
    white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
    background:
        linear-gradient(180deg, rgba(246,241,230,0) 60%, var(--cream) 100%),
        var(--cream-2);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
/* Image hero: a block that takes the picture's own height — no cropping. */
.hero--image { background: none; border-bottom: 1px solid var(--line); }
.hero__img { display: block; width: 100%; height: auto; }

/* Visually hidden but available to screen readers / search engines. */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
}
.hero__inner {
    min-height: 320px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 56px 20px;
    position: relative;
}
.hero__sub {
    font-size: 13px; letter-spacing: .35em; text-transform: lowercase;
    color: var(--gold-dark); margin-bottom: 10px;
}
.hero__title {
    font-family: var(--serif);
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 600;
    letter-spacing: .08em;
    color: #4a3c28;
    margin: 0;
    text-shadow: 0 2px 0 rgba(255,255,255,.4);
}
.hero__columns {
    display: flex; gap: 26px; margin-top: 28px; opacity: .55;
}
.hero__columns span {
    width: 10px; height: 70px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 5px);
    border-top: 3px solid var(--gold-dark);
    border-bottom: 3px solid var(--gold-dark);
}

/* ===== Portfolio ===== */
.section { padding: 40px 0 8px; }
.section__title {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--ink);
}
.cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}
.cards > * {
    flex: 0 0 auto;
    width: calc((100% - 4 * 16px) / 5); /* 5 cards visible on desktop */
    scroll-snap-align: start;
}
.cards::-webkit-scrollbar { height: 6px; }
.cards::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; }
.cards::-webkit-scrollbar-track { background: transparent; }
.card {
    aspect-ratio: 1 / 1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(80,60,30,.16); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card--empty { color: var(--line); }
.card__open {
    display: block; width: 100%; height: 100%;
    padding: 0; margin: 0; border: 0; background: none;
    cursor: zoom-in; position: relative;
}
.card__caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
    color: #fff; font-size: 12px; padding: 16px 8px 6px; text-align: center;
    font-family: var(--sans);
}

/* Slider with circular arrow navigation */
.slider { position: relative; }
.slider__nav {
    display: flex;
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    align-items: center; justify-content: center;
    background: rgba(43,39,35,.55); color: #fff;
    border: 0; cursor: pointer; z-index: 6;
    font-size: 26px; line-height: 1; padding-bottom: 3px;
    transition: background .15s ease;
}
.slider__nav:hover { background: rgba(43,39,35,.85); }
.slider__nav--prev { left: 6px; }
.slider__nav--next { right: 6px; }
/* Hidden when everything already fits (JS toggles this). */
.slider--static .slider__nav { display: none; }
.card-wrap { position: relative; }

/* ===== Partners ===== */
.partners {
    background: var(--cream-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 36px;
    padding: 26px 0;
}
.partners__title {
    font-size: 13px; color: var(--muted); font-weight: 600;
    margin: 0 0 14px;
}
.partners__list { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.partner {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 22px; height: 100px; min-width: 150px;
    display: flex; align-items: center; justify-content: center;
}
.partner img { max-height: 68px; max-width: 200px; width: auto; }

/* ===== Help / services ===== */
.help {
    position: relative;
    padding: 46px 0 60px;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid var(--line);
}
.help__title {
    font-family: var(--serif);
    font-size: 26px; font-weight: 600; letter-spacing: .02em;
    margin: 0 0 26px;
}
.help__list { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.help__item { display: flex; gap: 16px; align-items: flex-start; }
.help__icon {
    flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 10px;
    background: #fff; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dark);
}
.help__icon img { width: 30px; height: 30px; object-fit: contain; }
.help__icon svg { width: 26px; height: 26px; }
.help__text { font-size: 15px; color: #3c352b; padding-top: 4px; }
/* Decorative bust lives inside the content container (not at the screen edge).
   isolation keeps the z-index:-1 bust above the white block background. */
.help .container { position: relative; isolation: isolate; }
.help__bust {
    position: absolute; right: 0; bottom: 0; width: 320px; max-width: 40%;
    opacity: .12; pointer-events: none; color: var(--gold-dark); z-index: -1;
}
/* Uploaded illustration is already pale — show it at near-full opacity, no tint.
   Scale to the block's height so the whole figure (head included) always fits. */
.help__bust--img {
    top: 0; right: 0; bottom: auto;
    width: auto; height: 100%; max-width: 48%;
    object-fit: contain; object-position: right top;
    opacity: .6; color: initial; z-index: -1;
}

/* ===== Footer ===== */
.site-footer {
    background: #2b2723; color: #cbbfa9;
    text-align: center; padding: 22px 0; font-size: 13px;
}

/* ===== Responsive ===== */

/* Tablets and phones: fewer cards per view + bleed to the screen edges */
@media (max-width: 900px) {
    .cards {
        gap: 14px;
        scroll-padding-left: 20px;
        margin: 0 -20px;
        padding: 4px 20px 14px;
    }
    .cards > * { width: 42%; }
}

@media (max-width: 560px) {
    .cards > * { width: 62%; }
    .brand__name { font-size: 17px; }
    .brand__img { height: 46px; }
    .contact-icon { width: 40px; height: 40px; }
    .contact-icon svg { width: 22px; height: 22px; }
    .header-phone { display: none; } /* keep just the call/WhatsApp icons on phones */
    .help__bust { display: none; }
}

/* ===== Lightbox gallery ===== */
body.lightbox-open { overflow: hidden; }
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 17, 14, .93);
    opacity: 0; visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
    max-width: 92vw; max-height: 84vh;
    width: auto; height: auto; object-fit: contain;
    border-radius: 6px; box-shadow: 0 12px 50px rgba(0,0,0,.55);
}
.lightbox__btn {
    position: absolute; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14); color: #fff;
    border: 0; cursor: pointer; border-radius: 50%;
    transition: background .15s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 34px; padding-bottom: 4px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter {
    position: absolute; top: 22px; left: 22px;
    color: #fff; font-size: 14px; font-family: var(--sans); opacity: .85;
}
.lightbox__caption {
    position: absolute; bottom: 22px; left: 0; right: 0;
    text-align: center; color: #fff; font-size: 15px;
    font-family: var(--sans); padding: 0 24px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
@media (max-width: 560px) {
    .lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
    .lightbox__img { max-width: 96vw; }
}
