/* Rose restyle of the photographer template (2026-11): glass header, gradient buttons,
   film ribbons, polaroid price cards, solid soft cards. Colors come from the photographer's
   color1/color2 palette, so every client keeps their own colors. Loaded last.
   Rule against visible seams: sections keep their original light/band split, the page itself
   has a plain background, and every band uses a vertical gradient that starts with exactly
   the colour of the film strip above it. */

:root {
    --t-accent: var(--primary-color-1);
    --t-accent-2: var(--primary-color-2);
    --t-deep: var(--primary-color-1-dark);
    --t-ink: var(--dark-color-1);
    --t-bg: var(--light-color);
    --t-card: color-mix(in srgb, var(--light-color) 35%, #fff);
    --t-paper: color-mix(in srgb, var(--light-color) 18%, #fff);
    --t-glow: color-mix(in srgb, var(--primary-color-2) 50%, var(--light-color));
    --t-muted: color-mix(in srgb, var(--dark-color-1) 72%, var(--primary-color-1));
    --t-line: color-mix(in srgb, var(--primary-color-2) 40%, #fff);
    --t-shadow: color-mix(in srgb, var(--primary-color-1-dark) 24%, transparent);
    --t-film: var(--dark-color-1);
    --t-grad: linear-gradient(135deg, var(--primary-color-1) 0%, var(--primary-color-1-dark) 100%);
    --t-band: linear-gradient(to bottom, var(--primary-color-1) 0%, var(--primary-color-1-dark) 100%);
}

body { background: var(--t-bg); }

/* ---------- small helpers ---------- */
.eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    color: var(--t-muted);
}
.eyebrow--lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.eyebrow--lines::before,
.eyebrow--lines::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--t-accent);
}
.title,
.price__title,
.filters__title,
.photopack__title,
.examples__title,
.details__title,
.main-info__title {
    color: var(--t-ink);
    font-family: 'Faberge';
    font-weight: normal;
}
.title { font-size: 48px; line-height: 1.1; }

/* ---------- buttons ---------- */
.btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    padding: 15px 28px;
    border: 1px solid var(--t-line);
    border-radius: 999px;
    background: var(--t-card);
    box-shadow: 0 10px 24px var(--t-shadow);
    font-size: 19px;
    line-height: 1.2;
    color: var(--t-ink);
}
.btn-arrow {
    width: 40px;
    height: auto;
    margin-left: 0;
    flex-shrink: 0;
}
.btn-arrow path,
.btn .btn-arrow path { fill: currentColor; }
.btn--accent,
.main-info__book {
    border-color: transparent;
    background: var(--t-grad);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary-color-1-dark) 35%, transparent);
    color: #fff;
    font-weight: 600;
}

/* ---------- header: same size as the original, so page offsets still match ---------- */
.header { background: transparent; position: relative; z-index: 20; }
.menu {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.8);
    background-image: none;
    box-shadow: 0 10px 40px var(--t-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.logo-name-drop { align-items: center; }
.logo-frame {
    width: 76px;
    height: 76px;
    padding: 3px;
    background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2));
}
.logo-img { border-radius: 50%; background: var(--t-card); }
.name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 14px;
    text-align: left;
    color: var(--t-ink);
}
.name__main { font-family: 'Faberge'; font-size: 26px; line-height: 1.05; }
.name__role {
    margin-top: 3px;
    font-family: 'Winston';
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--t-deep);
}
.nav { gap: 4px; padding-right: 6px; }
.nav-link {
    padding: 13px 22px;
    font-size: 18px;
    color: var(--t-ink);
}
.nav-link.is-active { background: var(--t-grad); color: #fff; }
.burger-img path { stroke: var(--t-ink); }

/* ---------- home: first screen ---------- */
.page-home {
    background:
        radial-gradient(520px circle at 0 380px, var(--t-glow), transparent) no-repeat,
        radial-gradient(460px circle at 100% 0, var(--t-glow), transparent) no-repeat,
        var(--t-bg);
}
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.about__img-wrap {
    order: 0;
    align-self: end;
    width: auto;
    height: 560px;
    padding-top: 0;
    align-items: center;
}
.about__img-wrap picture {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}
.about__img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
.about__title-desc {
    order: 1;
    align-items: center;
    align-self: center;
    margin-top: 0;
    padding-bottom: 40px;
    text-align: center;
}
.about__town { margin: 0 0 14px; font-size: 13px; opacity: 1; }
.about__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.about__name { font-size: 66px; color: var(--t-ink); }
.about__role { margin-top: 8px; font-size: 40px; color: var(--t-deep); }
.about__desc-wrapper { max-width: 460px; }
.about__description {
    margin: 22px 0 0;
    font-size: 19px;
    line-height: 1.6;
    text-align: center;
    white-space: normal;
    color: var(--t-muted);
}
.about__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}
.about__buttons .btn { margin: 0; padding: 15px 24px; font-size: 18px; }

/* no main photo: text exactly in the middle */
.about--no-photo .about__container {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 70px 90px;
}
.about--no-photo .about__title-desc { padding-bottom: 0; }
.about--no-photo .about__name { font-size: 96px; }
.about--no-photo .about__role { font-size: 48px; }
.about--no-photo .about__desc-wrapper { max-width: 580px; }

/* ---------- film ribbons (home) ---------- */
.portfolio__container {
    padding-block: 56px 64px;
    background: var(--t-band);
}
.portfolio .eyebrow,
.questions--home .eyebrow { color: color-mix(in srgb, var(--light-color) 80%, transparent); }
.portfolio__title { color: var(--t-bg); }
.portfolio__carousel-wrapper { overflow: hidden; padding-block: 10px; }
.portfolio__carousel,
.portfolio__carousel-2 { transform: none; }
.portfolio__track {
    /* one even film colour: the old light-dark stripes looked like glued sheets */
    background-image: none;
    background-color: var(--t-film);
}
/* soft shadow under the film, not a dark block */
.portfolio__track-wrapper {
    box-shadow:
        0 2px 3px color-mix(in srgb, var(--primary-color-1-dark) 25%, transparent),
        0 14px 24px -10px color-mix(in srgb, var(--primary-color-1-dark) 55%, transparent);
}
.portfolio__button { margin-top: 44px; }

/* ---------- price: polaroid cards with straight corners ---------- */
.price__container { padding-block: 56px 70px; }
.price__list { gap: 38px; }
.price__item {
    padding: 14px 14px 22px;
    border: 0;
    border-radius: 2px;
    background: var(--t-paper);
    background-image: none;
    /* a photo lying on paper: close soft shadow, no big grey halo */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 18px -8px color-mix(in srgb, var(--primary-color-1-dark) 45%, transparent);
    transform: none;
}
.price__item:hover { transform: translateY(-4px); }
.price__item-img { border-radius: 0; }
.price__item-title { font-size: 26px; color: var(--t-ink); }
.price__item-desc {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    color: var(--t-muted);
}
.price__item-price { font-size: 32px; color: var(--t-deep); }
.price__button {
    padding: 8px 22px;
    border-color: var(--t-accent-2);
    background: transparent;
    box-shadow: none;
    font-size: 17px;
}
/* «все услуги»: a film frame in the accent colour, also straight corners */
.price__more-item,
.price__more-item:nth-child(2n) {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--t-band);
    transform: none;
}
.price__more-item:hover { transform: translateY(-4px); }
.price__more-item::before,
.price__more-item::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    width: 9px;
    /* whole holes only: 'round' stretches the step a little instead of cutting the last one */
    background: linear-gradient(to bottom, var(--t-bg) 0 12px, transparent 12px 100%) 0 0 / 9px 24px round;
    border-radius: 2px;
    opacity: 0.9;
}
.price__more-item::before { left: 12px; }
.price__more-item::after { right: 12px; }
.price__item-more-link { gap: 40px; }
.price__item-more-text {
    font-family: 'Faberge';
    font-size: 42px;
    line-height: 1.1;
    color: #fff;
}
.price__item-more-arrow {
    box-sizing: content-box;
    width: 40px;
    height: 14px;
    padding: 31px 18px;
    border-radius: 50%;
    background: var(--t-paper);
}
.price__item-more-arrow path { fill: var(--t-deep); }

/* ---------- questions: solid cards ---------- */
.questions--home {
    background: linear-gradient(to bottom, transparent 40px, var(--t-accent) 40px, var(--t-deep) 100%);
}
.questions--home .questions__container { padding-block: 30px 64px; }
.questions--home .questions__title { color: var(--t-bg); }
.questions__list-item {
    padding: 12px 14px 12px 28px;
    border: 1px solid var(--t-line);
    border-radius: 34px;
    background: var(--t-paper);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    color: var(--t-ink);
}
.questions__question-img { align-items: center; color: var(--t-ink); }
.questions__list-item-plus {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 12px;
    border-radius: 50%;
    background: var(--t-grad);
}
.questions__list-item-plus line { stroke: #fff; stroke-width: 2.5; }
.questions__list-item-answer {
    padding-right: 20px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--t-muted);
}
.questions__list-item-answer--active { margin-top: 8px; padding-bottom: 8px; }

/* ---------- contacts ---------- */
.contacts__container { padding-block: 56px 80px; }
.contacts__card {
    margin-top: 32px;
    padding: 36px 44px;
    border: 1px solid var(--t-line);
    border-radius: 30px;
    background: var(--t-paper);
    box-shadow: 0 20px 50px var(--t-shadow);
}
.contacts__card .contacts__img-name { margin-top: 0; }
.contacts__photo {
    width: 72px;
    height: 72px;
    padding: 3px;
    background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2));
    object-fit: cover;
}
.contacts__name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 14px;
    text-align: left;
    color: var(--t-ink);
}
.contacts__lists { align-items: center; }
.contacts__info { font-size: 19px; gap: 14px; }
.contacts__info-item-icon,
.contacts__info-item-icon-mail {
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    padding: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color-2) 22%, #fff);
}
.contacts__info-item-icon path { stroke: var(--t-deep); }
.contacts__info-item-text { margin-left: 14px; }
.contacts__social_btns-item-link {
    width: 110px;
    height: 52px;
    border: 0;
    background: var(--t-grad);
    box-shadow: 0 10px 22px var(--t-shadow);
    color: #fff;
}
.contacts__social_btns-item-link .soc-svg,
.contacts__social_btns-item-link svg { color: #fff; }
.contacts__social_btns-item-link path { fill: #fff; stroke: #fff; }

/* ---------- inner pages ---------- */
/* film strips on price/questions pages: measured from their own section, not from the page top */
.page-price_list .price,
.page-questions .questions { position: relative; }
.page-price_list .price::before,
.page-questions .questions::before { top: 250px; }

/* portfolio filters */
.filters__filters-list-btn {
    border: 1px solid var(--t-line);
    background: var(--t-paper);
    box-shadow: 0 6px 16px var(--t-shadow);
    font-size: 18px;
    color: var(--t-ink);
}
.filters__filters-list-btn:hover { background: var(--t-card); }
.filters__filters-list-btn--active,
.filters__filters-list-btn--active:hover {
    border-color: transparent;
    background: var(--t-grad);
    color: #fff;
}

/* filter pills: keep their shadows above the photo section (it used to cut them) */
.filters { position: relative; z-index: 3; }
.photosessions {
    background: linear-gradient(to bottom, transparent 0, transparent 190px, var(--primary-color-2) 190px);
}
@media (max-width: 1196px) {
    .photosessions {
        background: linear-gradient(to bottom, transparent 0, transparent 140px, var(--primary-color-2) 140px);
    }
}

/* one photoshoot */
.photopack__categories-list-item {
    border: 1px solid var(--t-line);
    background: var(--t-paper);
    font-size: 17px;
    color: var(--t-ink);
}
/* full width as in the original; the same 4px gap across and down */
.photopack__gallery { column-gap: 4px; row-gap: 0; }
.photopack__gallery-item {
    display: block;
    margin: 0 0 4px;
    break-inside: avoid;
}
.photopack-gallery-item-link { display: block; }

/* one package */
.main-info__img,
.main-info__img--phone {
    border-radius: 2px;
    box-shadow: 0 18px 40px var(--t-shadow);
    border: 12px solid var(--t-paper);
}
.main-info__price { color: var(--t-deep); font-family: 'Faberge'; }
.details__wrapper {
    border: 1px solid var(--t-line);
    border-radius: 30px;
    background: var(--t-paper);
    box-shadow: 0 20px 50px var(--t-shadow);
}
.details__list-item-icon path { stroke: var(--t-deep); }
.main-info__info { justify-content: center; }
.main-info__price { padding-bottom: 0; }
.main-info__book { align-self: center; }

/* 404 */
.error { background: transparent; }

/* ---------- footer ---------- */
.foot-wrapper { background: var(--t-band); }
.foot-container { background: transparent; }
.footer .name,
.footer .name__role { color: var(--t-bg); }
.footer .logo-frame { background: rgba(255, 255, 255, 0.6); }
.foot-info-main-item-text,
.foot-nav { font-size: 19px; }


/* film strips: plain repeat (as in the original), centred so both edges cut the same way */
.footer::before,
.questions::before,
.examples-true::before,
.photosessions::before,
.price::before {
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-position: center top;
    mask-position: center top;
}

/* ---------- phones and tablets ---------- */
@media (max-width: 1196px) {
    .title { font-size: 32px; }
    .menu { border-radius: 35px; }
    .logo-frame { width: 56px; height: 56px; }
    .name__main { font-size: 19px; }
    .name__role { font-size: 10px; }
    .nav.open { padding: 6px 4px 10px; }
    .nav-link { padding: 14px 22px; font-size: 19px; }

    .btn {
        justify-content: center;
        width: max-content;
        padding: 12px 22px;
        font-size: 17px;
    }
    .btn-arrow { width: 34px; }

    .page-home {
        background:
            radial-gradient(300px circle at 50% 420px, var(--t-glow), transparent) no-repeat,
            var(--t-bg);
    }
    .about { overflow-x: clip; }
    .about__container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 6% 10px;
        overflow: visible;
    }
    .about__img-wrap { width: 100%; height: 420px; }
    /* the original glow behind the photo, but soft to the edges (no visible box) */
    .about__img-wrap::before {
        inset: 0;
        width: auto;
        height: auto;
        background: radial-gradient(closest-side at 50% 62%, var(--primary-color-2), color-mix(in srgb, var(--primary-color-2) 0%, transparent));
    }
    /* as in the original: the photo melts into the background and the text rises over its end */
    .about__img {
        -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
        mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
    }
    .about__title-desc {
        position: relative;
        z-index: 3;
        margin-top: -70px;
        padding: 0 0 30px;
    }
    .about--no-photo .about__title-desc { margin-top: 0; }
    .about__title {
        padding: 0;
        margin: 0;
        font-size: inherit;
        background: none;
    }
    .about__name { font-size: 44px; }
    .about__role { font-size: 28px; }
    .about__description { padding: 0; font-size: 16px; background: none; }
    .about__buttons .btn { padding: 12px 20px; font-size: 16px; }
    .about--no-photo .about__container { padding-block: 50px 60px; }
    .about--no-photo .about__name { font-size: 54px; }
    .about--no-photo .about__role { font-size: 32px; }

    .portfolio__container { padding-block: 40px 48px; }
    .portfolio__carousel { margin-inline: -20px; }

    .price__list { padding-block: 26px 34px; }
    .price__item { padding: 10px 10px 18px; }
    /* home carousel on phones: wider cards so the text has room */
    .page-home .price__item,
    .page-home .price__more-item { width: min(80vw, 320px); flex-shrink: 0; }
    .page-home .price__item-img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
    .page-home .price__item-desc { font-size: 15px; }
    .price__button { width: 100%; }
    .price__item-more-text { font-size: 30px; }

    .questions__list-item {
        padding: 10px 10px 10px 20px;
        border-radius: 26px;
        font-size: 16px;
    }
    .questions__list-item-plus { width: 12px; height: 12px; padding: 10px; }

    /* the home strip is 30px tall on phones: start the band right under it */
    .questions--home {
        background: linear-gradient(to bottom, transparent 30px, var(--t-accent) 30px, var(--t-deep) 100%);
    }
    .page-price_list .price::before { top: 260px; }
    .page-questions .questions::before { top: 155px; }

    .contacts__card { padding: 26px 20px; border-radius: 24px; }
    .contacts__card .contacts__img-name { justify-content: center; }
    .contacts__info { font-size: 17px; }

    .details__wrapper { padding: 26px 20px 30px; border-radius: 24px; }
    .details__list { margin-top: 24px; }

    .foot-nav-item { padding: 10px; font-size: 19px; }
    .foot-nav { margin-top: 20px; }
}


/* =====================================================================
   Правки Яны от 04.11: отступы, обводки, плёнка, объём блоков, подвал.
   ===================================================================== */
:root {
    --t-band2: linear-gradient(to bottom, var(--primary-color-2), color-mix(in srgb, var(--primary-color-2) 72%, var(--primary-color-1-dark)));
    --t-band2-end: color-mix(in srgb, var(--primary-color-2) 72%, var(--primary-color-1-dark));
}

/* page height: short pages keep the footer at the bottom of the screen */
body { display: flex; flex-direction: column; min-height: 100vh; }
.content { flex: 1 0 auto; min-height: 0; }

/* 1. space between the header and the photo on the first screen */
.about__container { padding-top: 34px; }
.about__img-wrap { height: 540px; }

/* 2. little or a lot of text both look tidy */
.about__description { overflow-wrap: anywhere; }
.about--short .about__desc-wrapper { max-width: 380px; }
.about--short .about__description { font-size: 21px; }
.about--long .about__desc-wrapper { max-width: 540px; }
.about--long .about__description {
    font-size: 16px;
    line-height: 1.55;
    max-height: 13.5em;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
}
.about--long .about__img-wrap { height: 600px; }
.about--long-name .about__name { font-size: clamp(40px, 4.4vw, 56px); overflow-wrap: anywhere; }
.about__title { max-width: 100%; }

/* 3 + 7 + 18. film right under the first screen, on the same background (no band, no title):
   the holes show that background, the stripes give the film its gloss, the ribbon never ends */
.portfolio--ribbons { background: transparent; }
.portfolio--ribbons .portfolio__container {
    padding: 0 0 56px;
    background: transparent;
}
.portfolio--ribbons .portfolio__carousel-wrapper { padding: 0; background: transparent; }
.portfolio--ribbons .portfolio__carousel { padding-top: 0; }
.portfolio--ribbons .portfolio__track-wrapper { background: transparent; }
.portfolio__track {
    background-image: repeating-linear-gradient(
        to right,
        var(--t-film) 0,
        color-mix(in srgb, var(--t-film) 78%, #fff) 273px,
        var(--t-film) 546px);
}
.portfolio__track-wrapper::after {
    /* soft highlight across the film, like light on glossy plastic */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.08));
}

/* 4. unknown link: a letter in place of an icon */
.soc-letter {
    font-family: 'Faberge';
    font-size: 26px;
    line-height: 1;
    color: #fff;
}

/* 6 + 9. logo always a clean circle, no ring around it */
.logo-frame,
.footer .logo-frame {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
}
.logo-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: none; }
.contacts__photo { padding: 0; background: none; border-radius: 50%; object-fit: cover; }

/* 8. volume on the coloured blocks of inner pages (same idea as the bands on the home page) */
.photosessions { --band-top: 190px; }
.page-price_list .price { --band-top: 290px; }
.page-questions .questions { --band-top: 290px; }
.examples-true { --band-top: 290px; }
.examples-false { --band-top: 95px; }
.photosessions,
.page-price_list .price,
.page-questions .questions,
.examples-true,
.examples-false {
    background: linear-gradient(to bottom, transparent 0, transparent var(--band-top), var(--primary-color-2) var(--band-top), var(--t-band2-end) 100%);
}

/* the «что входит» block continues the band of the examples, no empty tall area under it */
.details { min-height: 0; padding: 10px 0 70px; background: var(--t-band2-end); }
.examples-false + .details,
.main-info + .details { background: transparent; padding-top: 40px; }

/* 10. polaroid: the photo in the middle */
.price__title-img-p { align-items: center; }
.price__title-img-p picture { display: block; width: 100%; }
.price__item-img { display: block; margin-inline: auto; }

/* 11 + 15 + 17. no outlines on pills, plates and cards */
.btn,
.price__button,
.filters__filters-list-btn,
.photopack__categories-list-item,
.questions__list-item,
.contacts__card,
.details__wrapper,
.main-info__img,
.main-info__img--phone { border: 0; }
.price__button { background: color-mix(in srgb, var(--primary-color-2) 18%, #fff); }
.main-info__img,
.main-info__img--phone { outline: 10px solid var(--t-paper); outline-offset: -1px; }

/* 12. «что входит»: a compact list */
.details__container { width: min(760px, 100%); }
.details__wrapper { padding: 30px 40px; }
.details__title { font-size: 32px; }
.details__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 28px;
    margin-top: 22px;
}
.details__list-item { align-items: center; }
.details__list-item-icon { width: 26px; height: 26px; align-self: center; }
.details__list-item-text { margin-left: 12px; font-size: 18px; line-height: 1.35; }

/* 16. footer: three tidy columns on a computer, one centred column on a phone */
.footer .foot-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 40px 70px;
    max-width: 960px;
    padding: 40px 20px 0;
}
.footer .foot-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px 60px;
    margin-top: 6px;
}
.foot-info-main { gap: 12px; }
.foot-info-main-item-img { width: 22px; height: 22px; flex-shrink: 0; }
.foot-info-main-item-text,
.foot-nav {
    font-family: 'Winston';
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.foot-info-main-item-text { margin-left: 10px; }
.foot-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 40px;
    height: auto;
    margin: 0;
}
.foot-nav-item { padding: 0; }
.foot-nav-link { color: var(--light-color); opacity: 0.92; white-space: nowrap; }
.about__description, .main-info__description, .price__item-desc, .details__list-item-text { text-align: left; text-align: start; }
.about__description { text-align: center; }
.main-info__description { text-align: left; }
.foot-nav-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer .name__main { font-size: 24px; }
.footer .name__role { font-size: 11px; opacity: 0.85; }
.foot-legal { margin-top: 34px; font-size: 13px; letter-spacing: 0.02em; }
.tim3la-img { margin-top: 26px; width: 150px; height: auto; opacity: 0.9; }

/* ---------- phones and tablets ---------- */
@media (max-width: 1196px) {
    /* phone: the photo starts right under the header, no empty band above it */
    .about__container { padding-top: 8px; }
    .about__img-wrap, .about--long .about__img-wrap { height: auto; }
    .about__img-wrap picture { height: auto; }
    .about__img { width: auto; height: auto; max-width: 100%; max-height: 420px; }
    .about--long .about__description { max-height: none; overflow: visible; }
    .about--short .about__description { font-size: 18px; }
    .about--long-name .about__name { font-size: 36px; }

    .portfolio--ribbons .portfolio__container { padding-bottom: 36px; }

    .photosessions { --band-top: 140px; }
    .page-questions .questions { --band-top: 185px; }
    /* the film edge no longer reserves 40px of empty space above «Примеры» */
    .examples-true { --band-top: 153px; position: relative; padding-top: 0; }
    .examples-true::before { position: absolute; top: 137px; }

    .details__wrapper { padding: 22px 18px 24px; }
    .details__title { font-size: 26px; }
    .details__list { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
    .details__list-item-text { font-size: 16px; }

    .details { background: transparent; padding: 20px 0 50px; }
    .examples-true + .details { background: var(--t-band2-end); padding-top: 10px; }

    /* 14. phone: the booking button keeps away from the examples block */
    .main-info__phone .main-info__book { margin: 18px auto 0; }
    .main-info__phone { padding-bottom: 0; }
    .main-info { padding-bottom: 0; margin-bottom: 0; }
    .examples-true .examples__title { margin-top: 30px; }

    .footer .foot-container { grid-template-columns: 1fr; justify-items: center; gap: 24px; padding-top: 30px; }
    .footer .foot-info { grid-template-columns: 1fr; justify-items: center; gap: 22px; margin-top: 0; }
    .foot-info-main { align-items: center; }
    .foot-nav { grid-template-columns: repeat(2, auto); justify-content: center; gap: 12px 34px; text-align: center; }
    .foot-nav-item { padding: 0; font-size: 17px; }
    .foot-nav-link, .footer .name__main { white-space: nowrap; }
    .main-info__description, .about__description, .photopack__description { text-align: center; }
}

/* ---------- 04.11 (2): empty fields, very long texts ---------- */
/* long names and addresses wrap at spaces and hyphens, never in the middle of a word or past the edge */
.about__name, .about__role, .main-info__title, .photopack__title, .price__item-title,
.photosessions__list-item-title, .questions__list-item-question, .details__list-item-text,
.contacts__name, .footer .name__main { overflow-wrap: break-word; hyphens: manual; }
.about--long-name .about__name { overflow-wrap: break-word; }
.contacts__info-item-text, .foot-info-main-item-text, .price__item-desc,
.main-info__description, .photopack__description, .questions__list-item-answer { overflow-wrap: anywhere; min-width: 0; }
.contacts__info, .contacts__info-item, .foot-info-main, .foot-info-main-item { min-width: 0; max-width: 100%; }
.contacts__lists { flex-wrap: wrap; gap: 24px; }

/* header: the logo stays a circle, a long name takes two lines at most, the role one line */
.logo-frame { flex-shrink: 0; }
.logo-name-link { min-width: 0; }
.header .name { min-width: 0; }
.header .name__main {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    overflow-wrap: break-word;
}
.header .name__role { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* town above the name: lines shrink away when the text is long */
.about__town { max-width: 100%; text-wrap: balance; }
.eyebrow--lines::before, .eyebrow--lines::after { flex: 0 1 40px; min-width: 12px; }

/* very long «about me»: first lines and a «читать полностью» button */
.about--long .about__description.is-clamped {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8;
    overflow: hidden; max-height: none;
}
.about__more {
    margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 16px; color: var(--t-deep); text-decoration: underline; text-underline-offset: 4px;
}

/* footer: long names and e-mails wrap instead of running off the screen */
.footer .logo-name, .footer .logo-name-link { min-width: 0; max-width: 100%; }
.footer .name { min-width: 0; }
.footer .name__main, .footer .name__role { white-space: normal; overflow-wrap: break-word; }
.foot-info-main-item { align-items: flex-start; }
.foot-info-main-item-img { margin-top: 1px; }

/* almost empty site: no gaps where nothing is filled */
.about--no-text .about__title-desc { padding-bottom: 0; }
.contacts__card:not(:has(.contacts__info-item)):not(:has(.contacts__social-btns)) .contacts__lists { display: none; }

@media (max-width: 1196px) {
    .header .name__main { font-size: 17px; }
    .about--long-name .about__name { font-size: 32px; }
    .about--long .about__description { max-height: none; overflow: hidden; }
    .footer .logo-name-link { justify-content: center; }
    .footer .name__main, .foot-info-main-item-text { text-align: left; }
    .foot-info-main { align-items: flex-start; max-width: 100%; padding-inline: 16px; }
}
.menu, .logo-name-drop, .logo-button, .logo-name { min-width: 0; }
.logo-button { max-width: 100%; }
.logo-name { flex: 1 1 auto; overflow: hidden; }
.footer .name__main { overflow-wrap: anywhere; }
@media (max-width: 1196px) {
    .logo-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
    .burger-button { flex-shrink: 0; }
    .footer .foot-info, .foot-info-main { width: 100%; max-width: 360px; }
    .footer .foot-container > .logo-name { max-width: 360px; width: 100%; display: flex; justify-content: center; }
}

@media (max-width: 1196px) { .footer .foot-container { width: 100%; max-width: 420px; box-sizing: border-box; padding-inline: 20px; margin-inline: auto; } }
/* hero with no photo and no text: just the name, without a tall empty screen */
.about--no-photo.about--no-text .about__container { padding-block: 70px 50px; }
.foot-info-main:empty { display: none; }
@media (max-width: 1196px) { .about--no-photo.about--no-text .about__container { padding-block: 40px 30px; } }
.nav-link { white-space: nowrap; }
.price__item-price--note, .main-info__price--note { font-family: 'Winston'; font-size: 18px; line-height: 1.35; text-align: center; }
@media (min-width: 1197px) {
    .footer .foot-container { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); }
    .footer .foot-info { grid-template-columns: minmax(220px, 1fr) auto; }
    .foot-info-main { min-width: 220px; }
}
.contacts__info-item-icon, .contacts__info-item-icon-mail { flex-shrink: 0; }
.contacts__info-item { align-items: center; }

/* footer perforation is see-through: the strip lies over the end of the section above,
   so its holes show exactly what is behind them (no coloured plate under the footer) */
.footer-wrapper { background: transparent !important; }
.footer::before { margin-top: -40px; }
.footer { position: relative; z-index: 2; }
@media (max-width: 1196px) { .footer::before { margin-top: -30px; } }

/* long texts on cards: a few lines and «…», the full text is on the page itself */
.photosessions__list-item-title .clamp,
.price__item-title {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.examples .photosessions__list-item-title .clamp { -webkit-line-clamp: 2; }
.price__item-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.filters__filters-list-btn { max-width: 100%; white-space: normal; text-align: center; }
/* long descriptions: a comfortable line length, no stretched gaps between words */
.photopack__description, .main-info__description { max-width: 68ch; text-align: left; text-justify: none; }
.photopack__description { margin-inline: auto; }
.questions__list-item-answer { max-width: 75ch; }
.about__description { max-width: 62ch; margin-inline: auto; }
.footer .foot-wrapper { margin-top: -1px; }

/* «что входит»: always one column, any text (even one endless word) stays inside the card */
.details__list { display: flex; flex-direction: column; gap: 12px; }
.details__list-item { min-width: 0; align-items: flex-start; }
.details__list-item-icon { align-self: flex-start; margin-top: 1px; }
.details__list-item-text { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.details__wrapper { overflow: hidden; }

/* one photoshoot: photos go right down to the footer perforation */
.photopack__gallery { margin-bottom: 0; }
.photopack { padding-bottom: 40px; }
@media (max-width: 1196px) { .photopack { padding-bottom: 30px; } }

/* header: the whole name is always visible (no «…»); long names get a smaller font and wrap */
.header .name__main {
    display: block; -webkit-line-clamp: unset; overflow: visible;
    font-size: clamp(17px, 1.7vw, 26px); line-height: 1.1;
}
.header .name__role { white-space: normal; overflow: visible; text-overflow: clip; }
.header--long-name .name__main { font-size: clamp(15px, 1.25vw, 20px); }
.header--long-name .name__role { font-size: 10px; letter-spacing: 0.14em; }
@media (min-width: 1197px) and (max-width: 1500px) {
    .nav { gap: 0; }
    .nav-link { padding: 11px 14px; font-size: 16px; }
}
@media (max-width: 1196px) {
    .header .name__main { font-size: 17px; }
    .header--long-name .name__main { font-size: 14px; }
    .header--long-name .name__role { font-size: 9px; }
}
@media (max-width: 1196px) { .about--long-name .about__name { font-size: clamp(24px, 8vw, 34px); } .about__name { overflow-wrap: anywhere; } }

/* header: the name never shrinks or gets cut; when there is not enough room
   (big zoom), the menu moves under the name instead of squeezing it */
.logo-name { flex: 0 1 auto; overflow: visible; }
.logo-name-link { min-width: 0; }
.header .name__main { overflow-wrap: normal; word-break: normal; }
@media (min-width: 1197px) {
    .menu { height: auto; min-height: 0; }
    .logo-name-drop { flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
    .logo-button { flex: 0 0 auto; max-width: 100%; }
    .nav { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
}

/* one photoshoot: a clear gap between the last photos and the footer perforation */
.photopack { padding-bottom: 96px; }
@media (max-width: 1196px) { .photopack { padding-bottom: 66px; } }

/* contact icons sit inside an even circle, whatever the shape of the icon */
.contacts__ico {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--primary-color-2) 22%, #fff);
}
.contacts__ico-svg { width: 18px; height: 18px; display: block; }
.contacts__ico-svg path { stroke: var(--t-deep); }

/* cards of photoshoots (portfolio, examples): a soft lifted shadow instead of a dark halo */
.photosessions__list-item {
    -webkit-box-shadow: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 28px -10px color-mix(in srgb, var(--primary-color-1-dark) 55%, transparent);
    transition: transform .25s, box-shadow .25s;
}
.photosessions__list-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 20px 40px -12px color-mix(in srgb, var(--primary-color-1-dark) 65%, transparent);
}

/* the whole question plate opens the answer */
.questions__list-item { cursor: pointer; }

/* privacy page and the policy link in the footer */
.legal-page__container { max-width: 760px; padding-block: 40px 70px; }
.legal-page h2 { margin: 28px 0 8px; font-family: 'Faberge'; font-weight: normal; font-size: 26px; color: var(--t-ink); }
.legal-page p { margin: 0 0 12px; font-size: 18px; line-height: 1.6; color: var(--t-muted); }
.foot-legal--links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   Правки Яны от 07.11
   ===================================================================== */
/* 2. avatar and logo always sit on a light circle (a transparent PNG logo stays readable on dark bands) */
.logo-img,
.footer .logo-img,
.contacts__photo { background: var(--t-paper); }

/* 3. one photoshoot: justified rows, every row is the full width, no empty column on the right.
   site.js sets exact sizes; without JS these flex rows still look tidy. */
.photopack__gallery {
    columns: auto;
    column-count: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
.photopack__gallery-item {
    flex: calc(var(--ar, 1500) / 1000) 1 calc(var(--ar, 1500) / 1000 * 240px);
    height: 240px;
    margin: 0;
    overflow: hidden;
    break-inside: auto;
}
.photopack__gallery::after { content: ""; flex: 999 1 0; }
.photopack__gallery.is-justified::after { display: none; }
.photopack-gallery-item-link { display: block; height: 100%; }
.photopack__gallery-item-img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
    .photopack__gallery-item { flex-basis: calc(var(--ar, 1500) / 1000 * 150px); height: 150px; }
}

/* 4. one photoshoot on a computer: title, text and tags as wide as the header */
@media (min-width: 1197px) {
    .photopack .container { width: min(1196px, 100% - 40px); }
    .photopack__description { max-width: none; }
}

/* 7. package without examples: the film band lies under «что входит» and ends a little above the card (as in the original) */
.details.details--film {
    position: relative;
    padding: 100px 0 70px;
    background: linear-gradient(to bottom, transparent 0, transparent 60px, var(--primary-color-2) 60px, var(--t-band2-end) 100%);
}
.details--film::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    height: 40px;
    background-color: var(--primary-color-2);
    -webkit-mask: url("../img/photosession-plenka.svg") repeat-x center top / auto 40px;
    mask: url("../img/photosession-plenka.svg") repeat-x center top / auto 40px;
    pointer-events: none;
}
.details--film .details__container { position: relative; z-index: 1; }
@media (max-width: 1196px) {
    .details.details--film {
        padding: 80px 0 50px;
        background: linear-gradient(to bottom, transparent 0, transparent 50px, var(--primary-color-2) 50px, var(--t-band2-end) 100%);
    }
    .details--film::before {
        top: 20px;
        height: 30px;
        -webkit-mask: url("../img/photosession-plenka-phone.svg") repeat-x center top / auto 30px;
        mask: url("../img/photosession-plenka-phone.svg") repeat-x center top / auto 30px;
    }
}

/* 10. dark film bands of inner pages get depth: a smooth fall into a deeper shade, like «Вопросы» on the home page */
:root {
    --t-band2-end: color-mix(in srgb, var(--primary-color-2) 55%, var(--dark-color-1));
}
.photosessions,
.page-price_list .price,
.page-questions .questions,
.examples-true,
.examples-false {
    background: linear-gradient(to bottom,
        transparent 0, transparent var(--band-top),
        var(--primary-color-2) var(--band-top),
        var(--t-band2-end) calc(var(--band-top) + 900px),
        var(--t-band2-end) 100%);
}

/* 07.11 (2): package with examples — the band of «Примеры» and «Что входит» is one colour:
   the examples section darkens to a middle shade, «что входит» goes on from exactly that shade */
:root { --t-band2-mid: color-mix(in srgb, var(--primary-color-2) 78%, var(--dark-color-1)); }
.examples-true {
    background: linear-gradient(to bottom,
        transparent 0, transparent var(--band-top),
        var(--primary-color-2) var(--band-top),
        var(--t-band2-mid) 100%);
}
.examples-true + .details,
.examples-true + .details:not(.details--film) {
    background: linear-gradient(to bottom, var(--t-band2-mid), var(--t-band2-end));
}
