/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #fafafa;
    color: #222;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   BASE: Header
   ========================= */
.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: background-color 240ms ease, box-shadow 240ms ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-bottom: 2px solid #e0e0e0;
    will-change: transform;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;

    /* entrance animation (respect prefers-reduced-motion) */
    opacity: 0;
    transform: translateY(-8px);
    animation: glassFade 0.9s ease-out forwards;
    animation-delay: 0.3s;
    will-change: opacity, transform;
    position: relative;
}

@keyframes glassFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   LOGO
   ========================= */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #111111;
    font-family: "Libre Baskerville", serif;
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 400;
    line-height: 0.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    transform: translateZ(0);
    z-index: 1010;
    opacity: 0.92;
}

.logo-main,
.logo-sub {
    opacity: 0;
    transform: translateY(-12px);
    color: #111111;
    font-weight: 400;
    letter-spacing: 0.04em;
    will-change: auto;
}

.logo-main {
    margin-right: 10px;
    animation: logoSlideIn 0.7s ease-out forwards;
    animation-delay: 0.2s;
    text-shadow: 0 0.8px 1.2px rgba(0, 0, 0, 0.05);
}

.logo-sub {
    animation: logoSlideIn 1.9s ease-out forwards;
    animation-delay: 0.3s;
    letter-spacing: 0.05em;
    text-shadow: none;
}

@keyframes logoSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Accessibility helpers
   ========================= */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    z-index: 2000;
    border-radius: 6px;
    text-decoration: none;
}

/* Respect reduced motion / low GPU */
@media (prefers-reduced-data: reduce),
(max-device-pixel-ratio: 1.5) {
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }
}

@media (prefers-reduced-motion: reduce) {

    .header__inner,
    .logo-main,
    .logo-sub {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}

/* =========================
   BURGER BUTTON (desktop hidden)
   ========================= */
.burger {
    display: none;
    /* shown on mobile via media queries */
    width: 48px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1300;
    /* above panel and header lines */
    -webkit-tap-highlight-color: transparent;
}

/* enlarge touch target */
.burger::before {
    content: "";
    position: absolute;
    inset: -6px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #111;
    transition: transform .28s ease, opacity .22s ease;
    transform-origin: center;
}

/* open state -> cross */
.burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================
   NAV Desktop
   ========================= */
.nav {
    display: flex;
    gap: 24px;
    align-items: center;
    z-index: 1205;
}

/* link style */
.nav__link {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #2B2B2B;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color .25s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0%;
    height: 0.5px;
    background: #000;
    transition: width .24s ease;
}

.nav__link:hover {
    color: #000;
}

.nav__link:hover::after {
    width: 100%;
}

/* primary CTA link */
.nav__link--primary {
    padding: 8px 26px;
    border-radius: 4px;
    background: #111111;
    color: #FFFFFF;
    border: 1px solid #111111;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all .25s ease;
}

.nav__link--primary:hover {
    background: #fff;
    color: #111111;
    border-color: #111111;
}

.nav__link--primary::after {
    display: none !important;
}

/* =========================
   RESPONSIVE / MOBILE
   ========================= */

/* Tablets and below adjustments */
@media (max-width: 1024px) {
    .header {
        padding: 14px 0;
    }

    .logo {
        font-size: 34px;
    }

    .nav {
        gap: 16px;
    }

    .nav__link {
        font-size: 14px;
        letter-spacing: 0.10em;
    }

    .nav__link--primary {
        padding: 6px 20px;
        font-size: 12px;
        letter-spacing: 0.10em;
    }
}

/* Mobile behaviour: show burger, hide inline nav into off-canvas panel */
@media (max-width: 768px) {

    .logo {
        font-size: 24px;
    }

    /* show burger — compact and higher */
/* show burger — compact and centered vertically */
.burger {
    display: inline-flex;
    width: 28px;
    /* уже */
    height: 22px;
    /* компактнее */
    padding: 0;
    position: absolute;
    /* вместо fixed */
    top: 50%;
    /* центр по высоте шапки */
    right: 16px;
    transform: translateY(-50%);
    /* корректируем центрирование */

    z-index: 1300;
}

    .burger span {
        width: 100%;
        height: 2px;
    }

    /* Off-canvas panel (right side) */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        max-width: 86%;
        background: #fff;
        padding: 80px 22px 22px;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .2, 1), opacity .22s ease;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1250;
    }

    /* visible state */
    .nav.nav--open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav[aria-hidden="true"] {
        pointer-events: none;
    }

    /* Mobile link styles */
    .nav a {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        color: #222;
        text-decoration: none;
    }

    .nav a.nav__link--primary {
        margin-top: 12px;
        background: #111;
        color: #fff;
        padding: 12px 18px;
        border-radius: 8px;
        text-align: center;
    }

    /* ensure header inner doesn't overlap visually with burger line */
    .header__inner {
        padding: 10px 18px;
    }
}

/* Alternate mobile variant for small centered panel (max-width: 720px)
   Uses a floating rounded panel centered below header. */
@media (max-width: 720px) {
    .header {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    }

    .header__inner {
        align-items: center;
        gap: 0;
    }

    .nav {
        left: 16px;
        right: 16px;
        top: 64px;
        height: auto;
        width: auto;
        max-width: calc(100% - 32px);
        border-radius: 18px;
        padding: 16px 18px 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        display: none;
        transform: none;
        opacity: 1;
        z-index: 1250;
    }

    .nav.nav--open {
        display: flex;
    }

    .nav[aria-hidden="true"] {
        display: none;
    }

    .nav a {
        font-size: 14px;
        letter-spacing: 0.10em;
        padding: 6px 0;
    }

    .nav__link--primary {
        width: 100%;
        text-align: center;
        margin-top: 6px;
        padding: 8px 0;
    }

    .burger {
        position: absolute;
        right: 16px;
        top: 12px;
    }
}

/* Very small screens tweaks */
@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .nav {
        justify-content: flex-start;
    }

    .nav__link--primary {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 6px;
    }
}

/* Utility */
.no-scroll {
    overflow: hidden;
}

/* ===== HERO ===== */
.hero {
    background: #F2F1EF;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.03);
    border-radius: 32px;
    margin-top: 2px;
    padding: 17px 72px 80px;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

/* Левая колонка */
.hero__content {
    max-width: 560px;
}

/* Заголовок */
.hero__title {
    font-family: "Libre Baskerville", serif;
    font-size: 52px;
    font-weight: 380;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: #111111;
    margin-bottom: 16px;
    max-width: 620px;
    opacity: 0;
    transform: translateY(22px);
    animation: heroTitleFade 1.2s ease-out forwards;
    animation-delay: 0.25s;
}

@keyframes heroTitleFade {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Подзаголовок — лёгкий, редакционный */
.hero__subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #444444;
    letter-spacing: 0.02em;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(18px);
    animation: heroSubtitleFade 1.3s ease-out forwards;
    animation-delay: 0.45s;
}

@keyframes heroSubtitleFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .btn--primary {
    padding: 14px 36px;
    border-radius: 6px;
    background: #111111;
    border: 1px solid #111111;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
    font-weight: 500;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.hero .btn--primary:hover {
    background: transparent;
        color: #111111;
        border-color: #111111;
}

.hero__actions {
    opacity: 0;
    transform: translateY(18px);
    animation: heroFadeButton 1.25s ease-out forwards;
    animation-delay: 0.55s;
}

@keyframes heroFadeButton {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__note {
    margin-top: 28px;
    font-size: 18px;
    color: #666666;
    letter-spacing: 0.03em;
        opacity: 0;
            transform: translateY(14px);
            animation: heroFadeNote 1.3s ease-out forwards;
            animation-delay: 0.75s;
}

.hero__note span {
    font-weight: 600;
    color: #B6A99A;
        opacity: 0;
            transform: translateY(14px);
            animation: heroFadeNote 1.3s ease-out forwards;
            animation-delay: 0.75s;
    /* аккуратный taupe-акцент вместо ярко-розового */
}

@keyframes heroFadeNote {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Фото справа */
.hero__photo {
    flex: 0 0 400px;
}

.hero__photo img {
    width: 100%;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    box-shadow:
        0 50px 80px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(0, 0, 0, 0.06),
        0 5px 15px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(26px) scale(1.02);
    animation: heroFadePhoto 1.4s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes heroFadePhoto {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптив */
@media (max-width: 900px) {
    .hero {
        padding: 48px 24px 56px;
        border-radius: 24px;
    }

    .hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__photo {
        width: 100%;
        flex: none;
    }
}

/* Ещё более узкие экраны — планшеты / большие телефоны */
@media (max-width: 720px) {
    .hero {
        margin-top: 24px;
        padding: 36px 20px 44px;
        border-radius: 20px;
    }

    .hero__inner {
        gap: 28px;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.1;
    }

    .hero__subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .hero .btn--primary {
        padding: 9px 24px;
        font-size: 13px;
        letter-spacing: 0.10em;
    }

    .hero__note {
        font-size: 13px;
    }
}

/* Телефоны */
@media (max-width: 480px) {
    .hero {
        padding: 28px 16px 36px;
        border-radius: 16px;
    }

    .hero__inner {
        align-items: stretch;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    /* Кнопка — по центру и чуть шире */
    .hero__actions {
        display: flex;
        justify-content: flex-start;
    }

    .hero .btn--primary {
        padding: 9px 22px;
        font-size: 12px;
    }

    .hero__photo {
        width: 100%;
        flex: none;
    }
}

/* ===== BUTTON SYSTEM (premium) ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 26px;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;

    border: 1px solid transparent;
    background: transparent;
    color: #111111;

    cursor: pointer;
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .18s ease;
}

/* PRIMARY — стиль Dior / Chanel (как hero + Kontakt) */
.btn--primary {
    background: #111111;
    border-color: #111111;
    color: #FFFFFF;
    box-shadow: none;
}

.btn--primary:hover {
    background: #FFFFFF;
    color: #111111;
    border-color: #111111;
}

/* SECONDARY — тёмная заполненная (для важных акцентов) */
.btn--secondary {
    background: #111111;
    border-color: #111111;
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn--secondary:hover {
    background: #2B2B2B;
    border-color: #2B2B2B;
}

/* GHOST — только текст, максимально лёгкая */
.btn--ghost {
    border-color: transparent;
    background: transparent;
    color: #111111;
    box-shadow: none;
}

.btn--ghost:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* ===== SECTIONS ===== */
.section {
    padding: 20px 0;
    scroll-margin-top: 40px;

}

.section__header {
    max-width: 720px;
    margin: 0 auto 20px;
    text-align: center;

    opacity: 0;
    transform: translateY(20px);
    animation: section_header_fade 3.7s ease-out 0.1s forwards;
}

.section__header h2 {
    font-size: 42px;
    line-height: 1.12;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    padding-top: 10px;
    padding-bottom: -20x;
}

.section__header h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 120px;
    height: 1.5px;
    transform: translateX(-50%);
    border-radius: 2.3px;
}

.section__header p {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.65);
    letter-spacing: 0.04em;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes section_header_fade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== PORTFOLIO ===== */

/* Маленькие круглые фильтры */
.portfolio__filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.portfolio__filter {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    background: #f2f2f2;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 0.05em;
    color: #111;
    transition: all .25s ease;
}

/* hover / active — премиальный стиль */
.portfolio__filter:hover,
.portfolio__filter--active {
    background: #111;
    color: #fff;
}

/* ===== Категории-карточки ===== */

.portfolio__filters--cards {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.portfolio__filter--card {
    width: 300px;
    padding: 24px;
    background: #fff;
    border-radius: 22px;
    text-align: center;
    text-decoration: none;
    color: #222;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .30s ease;
}

/* Hover — только фон/тени, текст НЕ меняем */
.portfolio__filter--card:hover {
    transform: translateY(-6px);
    background: #f3f2f0;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* Иконки */
.portfolio__filter-icon {
    width: 52px;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* Заголовок */
.portfolio__filter-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

/* Описание */
.portfolio__filter-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 14px;
}

/* CTA-ссылка */
.portfolio__filter-link {
    font-weight: 600;
    font-size: 16px;
    color: #111;
}

/* ===== Сетка фотографий ===== */

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 44px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.portfolio__item {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 350px;
}

.portfolio__item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
        backface-visibility: hidden;
        will-change: transform;
    }

.portfolio__item:hover img {
    transform: scale(1.02);
}

.portfolio__item figcaption {
    padding: 10px;
    font-size: 14px;
    color: #333;
}

/* ===== PORTFOLIO ===== */

.portfolio__filters--cards {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Карточка */
.portfolio__filter--card {
    width: 300px;
    background: #fff;
    border-radius: 22px;
    text-align: center;
    text-decoration: none;
    color: #222;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .30s ease;

    display: flex;
    flex-direction: column;
}

/* Hover карточки */
.portfolio__filter--card:hover {
    transform: translateY(-6px);
    background: #f3f2f0;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* Фото */
.portfolio__item {
    height: 320px;
    overflow: hidden;
}

.portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

/* Zoom фото при hover */
.portfolio__filter--card:hover img {
    transform: scale(1.05);
}

/* Заголовок */
.portfolio__filter-title {
    font-size: 20px;
    font-weight: 700;
    margin: 18px 0 8px;
    color: #111;
}

/* Описание */
.portfolio__filter-desc {
    font-size: 15px;
    color: #666;
    margin: 0 18px 14px;
}

/* CTA */
.portfolio__filter-link {
    font-weight: 600;
    font-size: 16px;
    color: #111;
    margin-bottom: 20px;
}

/* ============================
   ADAPTIVE FOR PORTFOLIO
============================ */

/* Планшеты (< 1024px) */
@media (max-width: 1024px) {

    .portfolio__filters--cards {
        gap: 40px;
        margin-bottom: 40px;
    }

    .portfolio__filter--card {
        width: 260px;
    }

    .portfolio__item {
        height: 280px;
    }
}


/* Планшеты и большие телефоны (< 768px) */
@media (max-width: 768px) {

    .portfolio__filters--cards {
        gap: 24px;
        margin-bottom: 30px;
    }

    .portfolio__filter--card {
        width: 45%;
        max-width: 260px;
    }

    .portfolio__item {
        height: 240px;
    }

    .portfolio__filter-title {
        font-size: 18px;
    }

    .portfolio__filter-desc {
        font-size: 14px;
    }

    .portfolio__filter-link {
        font-size: 15px;
    }
}


/* Телефоны (< 480px) */
@media (max-width: 480px) {

    .portfolio__filters--cards {
        gap: 20px;
    }

    .portfolio__filter--card {
        width: 100%;
        max-width: 100%;
    }

    .portfolio__item {
        height: 220px;
    }

    .portfolio__filter-title {
        font-size: 17px;
    }

    .portfolio__filter-desc {
        font-size: 14px;
    }

    .portfolio__filter-link {
        font-size: 15px;
    }

    /* убрать zoom на мобилке */
    .portfolio__filter--card:hover img {
        transform: none;
    }
}
/* =========== OFFER ========== */

.offer__grid {
    max-width: 760px;
    /* ширина блока по центру */
    margin: 0 auto 80px;
    display: flex;
    flex-direction: column;
    /* по одной карточке в ряд */
    gap: 24px;
}

/* Карточка предложения */
/* ===== offer card — cleaned & premium ===== */
.offer__card {
    position: relative;
    background: #ffffff;
    padding: 26px 30px 24px;
    border-radius: 20px;
    overflow: hidden;

    /* видимая рамка, мягкая и нейтральная */
    border: 1px solid rgba(0, 0, 0, 0.04);

    /* аккуратная тень по умолчанию */
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.06);

    /* начальная анимация входа (если используешь) */
    opacity: 0;
    transform: translateY(0);
    animation: offer_card_in 0.7s ease-out forwards;

    transition: transform .35s ease, box-shadow .35s ease, background .25s ease;
    will-change: transform, box-shadow, opacity;
}

/* hover: лёгкий подъём и чуть более выраженная тень (монохромно) */
.offer__card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.16),
        0 8px 26px rgba(0, 0, 0, 0.06);
    background: #f3f2f0;
}

.offer__card+.offer__card {
    margin-top: 26px;
}

/* тонкая линия сверху карточки (премиально, нейтрально) */
.offer__card::before {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    top: 2px;
    height: 1px;
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(220, 220, 220, 0) 0%,
            rgba(200, 200, 200, 0.9) 20%,
            rgba(200, 200, 200, 0.9) 80%,
            rgba(220, 220, 220, 0) 100%);
    opacity: 1;
}

/* animation keyframes (если у тебя нет — оставь или убери animation в .offer__card) */
@keyframes offer_card_in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Лёгкое поочерёдное появление карточек */
.offer__card:nth-child(1) {
    animation-delay: 0.05s;
}

.offer__card:nth-child(2) {
    animation-delay: 0.15s;
}

.offer__card:nth-child(3) {
    animation-delay: 0.25s;
}

/* Премиальная тонкая полоса сверху карточки */
.offer__card::before {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    top: 0;
    height: 1px;

    background: linear-gradient(90deg,
            rgba(220, 220, 220, 0) 0%,
            /* невидимое начало */
            rgba(200, 200, 200, 0.9) 20%,
            /* мягкий серый акцент */
            rgba(200, 200, 200, 0.9) 80%,
            /* центр линии */
            rgba(220, 220, 220, 0) 100%
            /* невидимый конец */
        );

    border-radius: 999px;
    opacity: 1;
}

/* Заголовок пакета */
.offer__card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    color: #111;
}

/* Описание внутри карточки (обычные p) */
.offer__card p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: 0.01em;
}

/* Цена — премиальный стиль */
.offer__price {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);

    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    /* вместо opacity */
}

/* Анимация появления карточек */
@keyframes offer_card_in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voucher__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;

}

.voucher__gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.voucher__gallery img:hover {
    transform: scale(1.03);
}

/* контейнер кнопки */
.voucher__cta {
    text-align: center;
    margin: 20px 0;
}

/* сама кнопка */
.voucher__cta .btn {
    display: inline-block;
    padding: 10px 32px;

    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 4px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition: all .25s ease;
}

/* hover */
.voucher__cta .btn:hover {
    background: #fff;
    color: #111;
}

/* ========================= 
   OFFER ADAPTIVE 
   ========================= */

/* --------- Tablets (<=1024px) --------- */
@media (max-width: 1024px) {
    .offer__grid {
        max-width: 700px;
        margin-bottom: 64px;
        gap: 20px;
    }

    .offer__card {
        padding: 22px 26px 20px;
        border-radius: 18px;
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.10),
            0 3px 12px rgba(0, 0, 0, 0.05);
    }

    .offer__card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 14px 40px rgba(0, 0, 0, 0.14),
            0 6px 20px rgba(0, 0, 0, 0.06);
        background: #f3f2f0;
    }

    .offer__card::before {
        left: 20px;
        right: 20px;
        top: 2px;
    }

    .offer__card h3 {
        font-size: 20px;
    }

    .offer__card p {
        font-size: 14px;
        line-height: 1.7;
    }

    .offer__price {
        font-size: 14px;
        padding-top: 10px;
        margin-top: 14px;
    }
}

@media (max-width: 900px) {

    .voucher__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* --------- Mobile / large phones (<=768px) --------- */
@media (max-width: 768px) {
    .offer__grid {
        max-width: 640px;
        margin: 0 auto 48px;
        gap: 18px;
        padding: 0 18px;
    }

    .offer__card {
        padding: 18px 18px 16px;
        border-radius: 14px;
        box-shadow:
            0 8px 22px rgba(0, 0, 0, 0.10),
            0 3px 10px rgba(0, 0, 0, 0.05);
        animation: offer_card_in 0.6s ease-out forwards;
    }

    .offer__card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.12),
            0 5px 18px rgba(0, 0, 0, 0.06);
        background: #ffffff;
        /* на мобилке оставляем белее фон, чтобы не занимать зрительную площадь */
    }

    .offer__card::before {
        left: 18px;
        right: 18px;
        top: 2px;
        background: linear-gradient(90deg,
                rgba(220, 220, 220, 0) 0%,
                rgba(210, 210, 210, 0.85) 20%,
                rgba(210, 210, 210, 0.85) 80%,
                rgba(220, 220, 220, 0) 100%);
    }

    .offer__card h3 {
        font-size: 18px;
    }

    .offer__card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .offer__price {
        font-size: 13px;
        padding-top: 8px;
        margin-top: 12px;
    }

    /* немного уменьшить интервалы между карточками */
    .offer__card+.offer__card {
        margin-top: 18px;
    }
}

@media (max-width: 600px) {

    .voucher__gallery {
        grid-template-columns: 1fr;
    }

}

    .offer__card {
        padding: 20px;
    }

          .voucher__gallery img {
              height: 320px;
          }

/* --------- Small phones (<=480px) --------- */
@media (max-width: 480px) {
    .offer__grid {
        max-width: 100%;
        margin: 0 auto 40px;
        gap: 14px;
        padding: 0 14px;
    }

    .offer__card {
        padding: 14px 14px 12px;
        border-radius: 12px;
        box-shadow:
            0 6px 14px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04);
        animation: none;
        /* на очень мелких экранах отключаем входную анимацию для плавности */
        opacity: 1;
        transform: none;
    }

    .offer__card:hover {
        transform: none;
        /* на телефоне не поднимаем карточку при ховере */
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.09);
        background: #ffffff;
    }

    .offer__card::before {
        left: 14px;
        right: 14px;
        top: 2px;
        height: 1px;
    }

    .offer__card h3 {
        font-size: 17px;
    }

    .offer__card p {
        font-size: 13px;
        line-height: 1.6;
        color: rgba(0, 0, 0, 0.6);
    }

    .offer__price {
        font-size: 13px;
        padding-top: 8px;
        margin-top: 10px;
    }

    .offer__card+.offer__card {
        margin-top: 14px;
    }
}

/* ===== ABOUT SECTION  ===== */

.about {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 40px;
    margin-bottom: 80px;
    background: #f3f2f0
}

.omnie_title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 22px;
    text-align: center;
    color: #111;
}

/* inner wrapper */
.about__inner {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    padding-top: 8px;
    position: relative;
    /* нужно для absolute-позиционирования внутренних элементов */
    z-index: 1;
}

/* photo column */
.about__photo {
    position: relative;
    flex: 0 0 420px;
    /* фиксированная ширина на десктопе */
    max-width: 40%;
    min-width: 240px;
}

.about__photo img {
    width: 100%;
    height: auto;
    /* безопасно для адаптива */
    display: block;
    border-radius: 26px;
    object-fit: cover;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.16),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

/* subtle backdrop under photo */
.about__photo::before {
    content: "";
    position: absolute;
    inset: -15px;
    border-radius: 30px;
    background: radial-gradient(circle,
            rgba(0, 0, 0, 0.07) 0%,
            rgba(0, 0, 0, 0.03) 35%,
            rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

/* content column */
.about__content {
    flex: 1;
    max-width: 520px;
    padding-right: 30px;
    color: #111;
}

/* заголовок */
.about__content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* параграфы */
.about__content p {
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.72);
    letter-spacing: 0.01em;
}

/* кнопка/cta */
.about__content .btn {
    margin-top: 26px;
    display: inline-block;
}

/* ===== TESTIMONIALS SECTION ===== */

.testimonials {
    padding: 60px 0;
    background: #fff;
}

.section__header {
    text-align: center;
    margin-bottom: 40px;
}

.section__header h2 {
    font-size: 42px;
    font-weight: 600;
}

/* ===== SWIPER ===== */

.testimonials-swiper {
    padding: 0 16px 72px;
    /* запас под точки */
}

.testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}

.swiper {
    width: 100%;
}

.swiper-slide {
    height: auto;
}

/* ===== CARD ===== */

.testimonial {
    background: transparent;
    box-shadow: none;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== IMAGE ===== */

.testimonial__image {
    width: 100%;
    max-height: 240px;
    object-fit: contain;

    background: #fff;
    border-radius: 20px;
    padding: 14px;

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 100px;
}

/* ===== AUTHOR ===== */

.testimonial__author {
    font-size: 13px;
    opacity: 0.55;
    text-align: center;
}

/* ===== PAGINATION ===== */

.testimonials-swiper .swiper-pagination {
    bottom: 12px;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: #000;
    opacity: 0.25;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 0.7;
}

/* ===== ARROWS ===== */

.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    color: #000;
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    opacity: 0.8;
}

/* ===== HOVER ZOOM ===== */

.testimonial__image {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
    .testimonial:hover .testimonial__image {
        transform: scale(1.025);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    }
}

/* ===== TABLET ===== */
@media (min-width: 600px) {
    .testimonial__image {
        max-height: 260px;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .testimonial__image {
        max-height: 300px;
    }

        /* ===== HIDE PAGINATION ON DESKTOP ===== */
    
        @media (min-width: 1024px) {
            .testimonials-swiper .swiper-pagination {
                display: none;
            }
        }
}
/* =========================
   ADAPTIVE
   ========================= */

/* Tablets */
@media (max-width: 1024px) {
    .about__inner {
        gap: 36px;
        padding-top: 6px;
    }

    .about__photo {
        flex: 0 0 360px;
        max-width: 38%;
    }

    .about__content h2 {
        font-size: 30px;
    }

    .about__content p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* Mobile / small tablets */
@media (max-width: 768px) {
    .about__inner {
        flex-direction: column-reverse;
        /* фото выше или ниже по желанию — я поставил фото под текст */
        align-items: center;
        gap: 22px;
        padding-top: 0;
    }

    .about__photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 520px;
    }

    .about__photo img {
        border-radius: 18px;
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.10),
            0 3px 12px rgba(0, 0, 0, 0.06);
    }

    .about__content {
        max-width: 100%;
        padding-right: 0;
        text-align: left;
        padding-left: 18px;
        padding-right: 18px;
    }

    .about__content h2 {
        font-size: 26px;
        text-align: center;
    }

    .about__content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .about__content .btn {
        display: block;
        margin: 18px auto 0;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .about {
        padding: 24px 0;
        margin-bottom: 40px;
    }

    .omnie_title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .about__photo {
        width: 100%;
        padding: 0 12px;
    }

    .about__photo img {
        border-radius: 12px;
    }

    .about__content {
        padding: 0 12px;
    }

    .about__content h2 {
        font-size: 20px;
    }

    .about__content p {
        font-size: 14px;
        line-height: 1.6;
        color: rgba(0, 0, 0, 0.7);
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .about__photo img,
    .about__content,
    .about__inner {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== CONTACT SECTION ===== */

.contact {
    padding: 20px 0;

}

#contact {
    scroll-margin-top: 53px;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* нейтральная вертикальная линия-разделитель (монохромный градиент) */
.contact__inner::before {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
            rgba(200, 200, 200, 0),
            rgba(200, 200, 200, 0.45),
            rgba(200, 200, 200, 0));
}

/* ЛЕВЫЙ БЛОК — КОНТАКТЫ */

.contact__info {
    max-width: 480px;
    margin: 0 auto 40px;
    text-align: center;
}

.contact__info h2 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
}

/* тонкая нейтральная акцентная линия под заголовком */
.contact__info h2::after {
    content: "";
    display: block;
    margin: 12px auto 0;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.14));
    border-radius: 50px;
}

.contact__info p {
    font-size: 20px;
    line-height: 1.45;
    color: #555;
    margin-bottom: 25px;
}

.contact__list {
    list-style: none;
    padding: 0;
    margin: 30px auto 0;
    max-width: 520px;

    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: 8px;
    align-items: center;
}

.contact__list strong {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
    padding-right: 8px;
}

.contact__list li {
    display: contents;
}

.contact__list a {
    font-size: 20px;
    color: #111111;
    /* тёмный первичный цвет вместо розового */
    text-decoration: none;
}

.contact__list a:hover {
    color: #333333;
    /* чуть темнее при ховере */
}

/* ПРАВЫЙ БЛОК — ФОРМА-КАРТОЧКА */

.contact__form {
    background: #ffffff;
    padding: 36px 40px 30px;
    border-radius: 24px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 36px;

    opacity: 0;
    transform: translateY(24px);
    animation: contactFormIn 0.75s ease-out 0.1s forwards;
}

/* Подписи к полям */
.contact__field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

/* "капсула" вокруг инпута + иконки */
.contact__field-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #e6e6e6;
    transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* инпуты и textarea внутри */
.contact__field-inner input,
.contact__field-inner textarea {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    outline: none;
    resize: vertical;
    color: #111;
}

/* иконки */
.contact__field-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact__field-icon svg {
    width: 100%;
    height: 100%;
    stroke: #9b9b9b;
    /* нейтральный цвет для иконок */
    fill: none;
    stroke-width: 1.7;
}

/* textarea выравниваем по верху */
.contact__field-inner--textarea {
    align-items: flex-start;
}

/* фокус — аккуратное нейтральное свечение вокруг поля */
.contact__field-inner:focus-within {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.contact__field-inner:hover {
    border-color: rgba(0, 0, 0, 0.08);
}

/* кнопка отправки на всю ширину */
.contact__form .btn--primary {
    margin-top: 6px;
    width: 100%;
    background: #111111;
    color: #ffffff;
    border: none;
}

.contact__form .btn--primary:hover {
    background: #000000;
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ ФОРМЫ */
@keyframes contactFormIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .contact__form {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* =========================
   ADAPTIVE — CONTACT SECTION
========================= */

/* --- Tablets / Medium screens --- */
@media (max-width: 900px) {

    .contact {
        padding: 80px 0;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .contact__inner::before {
        width: 100%;
        height: 1px;
        top: auto;
        bottom: auto;
        left: 0;
        right: 0;
        transform: none;
        background: linear-gradient(90deg,
                rgba(200, 200, 200, 0),
                rgba(200, 200, 200, 0.45),
                rgba(200, 200, 200, 0));
    }

    .contact__info {
        margin-bottom: 20px;
        text-align: center;
    }

    .contact__form {
        margin-top: 10px;
        padding: 26px 24px;
        border-radius: 18px;
    }

    .contact__list {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact__list strong {
        text-align: center;
        padding-right: 0;
    }
}

/* --- Mobile phones --- */
@media (max-width: 600px) {

    .contact {
        padding: 70px 0;
    }

    .contact__info h2 {
        font-size: 32px;
    }

    .contact__info p {
        font-size: 18px;
    }

    .contact__list a {
        font-size: 18px;
    }

    .contact__form {
        padding: 22px 20px;
    }

    .contact__field-inner {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .contact__field-label {
        font-size: 15px;
    }

    .contact__field-inner input,
    .contact__field-inner textarea {
        font-size: 15px;
    }
}

/* --- Small phones (<420px) --- */
@media (max-width: 420px) {

    .contact {
        padding: 60px 0;
    }

    .contact__info h2 {
        font-size: 28px;
    }

    .contact__info p {
        font-size: 17px;
    }

    .contact__form {
        padding: 20px 18px;
    }

    .contact__list {
        gap: 6px;
    }

    .contact__list strong {
        font-size: 18px;
    }

    .contact__list a {
        font-size: 17px;
    }

    .contact__field-inner {
        padding: 8px 10px;
    }

    .contact__form .btn--primary {
        font-size: 15px;
        padding: 12px 0;
    }
}


/* ===== FOOTER ===== */
.footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #777;
}


/*====== Page portfolio-rodzinne.html ===================================================================================*/
/* ===== HERO ===== */

.header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-hero {
    padding: 40px 0 20px;
    position: relative;

    background: linear-gradient(120deg,
            #f6f5f3,
            #fdfcfa,
            #f1efec);

    background-size: 400% 400%;
    animation: heroGlow 12s ease-in-out infinite;
}

@keyframes heroGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Back button ===== */

.back-btn {
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.55);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all .25s ease;
}

.back-btn:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.06);
}

/* ===== HERO TITLE ===== */

.portfolio__hero-title {
    font-size: clamp(42px, 5vw, 42px);
    /* ← исправлено */
    line-height: 1.03;
    font-weight: 400;
    letter-spacing: -0.035em;
    margin-bottom: 4px;
    color: #0a0a0a;

    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);

    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1.1s ease forwards;
    animation-delay: 0.2s;

    text-align: center;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO SUBTITLE ===== */

.portfolio__hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.55);

    margin: 8px auto 0;
    max-width: 38rem;

    opacity: 0;
    transform: translateY(22px);
    animation: heroFadeUp 1.1s ease forwards;
    animation-delay: .4s;

    text-align: center;
}

/* ===== GALLERY ===== */

.portfolio-gallery {
    padding: 70px 0 90px;
}

.portfolio-gallery__grid {
    column-count: 3;
    column-gap: 26px;
}

.portfolio-item {
    display: inline-block;
    margin-bottom: 26px;
    width: 100%;
    break-inside: avoid;
}

/* ← исправлено: убран конфликт transform */

.portfolio-item:nth-child(2n) {
    margin-top: 20px;
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    /* ← мягче */

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.portfolio-item:hover img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    /* ← мягче */
}

/* ===== ADAPTIVE ===== */

@media (max-width: 1024px) {
    .portfolio-gallery__grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .portfolio-gallery__grid {
        column-count: 1;
    }
}

/* ===== REVEAL ANIMATION ===== */

/* ===== Reveal animation ===== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

/* fallback: если JS не загрузился — показываем всё */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}
/* ========================== SCROLL TO TOP ========================= */

:root {
    /* можешь подправить под свои цвета */
    --pink-main: #e38faa;
    --pink-soft: rgba(227, 143, 170, 0.18);
}

/* сама кнопка */
/* сама кнопка "наверх" в стиле сайта */
.scroll-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;

    /* кольцо прогресса — монохромное */
    background:
        conic-gradient(#111111 var(--scroll-progress, 0%),
            rgba(17, 17, 17, 0.08) 0);

    display: flex;
    align-items: center;
    justify-content: center;

    /* базовая тень */
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.10);

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* белый круг внутри кольца */
.scroll-top::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: #ffffff;
}

/* стрелка внутри */
.scroll-top__icon {
    position: relative;
    font-size: 20px;
    line-height: 1;
    color: #111111;
    /* как текст и кнопки на сайте */
}

/* когда кнопка активна/видна */
.scroll-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* hover – чуть сильнее тень и лёгкий подъём */
.scroll-top--visible:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.22),
        0 4px 10px rgba(0, 0, 0, 0.14);
}

/* ================= LIGHTBOX ================= */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.lightbox--active {
    display: flex;
}

/* затемнение фона */

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

/* фото */

.lightbox__image {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* кнопка закрытия */

.lightbox__close {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 3;

    font-size: 36px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* стрелки */

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    font-size: 32px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background .2s ease, transform .2s ease;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.08);
}

.lightbox__prev {
    left: 40px;
}

.lightbox__next {
    right: 40px;
}

/* адаптив для телефонов */

@media (max-width: 768px) {

    .lightbox__prev,
    .lightbox__next {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }

    .lightbox__prev {
        left: 16px;
    }

    .lightbox__next {
        right: 16px;
    }

    .lightbox__close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}


/* ФИНАЛЬНОЕ ПРАВИЛО — перебивает всё старое */
@media (max-width: 768px) {
    .nav {
        display: none !important;
    }

    .nav.nav--open {
        display: block !important;
    }
}