/* Donor design — https://liliaibragimova.ru/ (native CSS, Tilda palette) */
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuaabWmT.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWub2bWmT.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbWmT.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYjammT.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.body-home {
    --t-bg: #ebebeb;
    --t-bg-card: #f9f9f9;
    --t-bg-dark: #494949;
    --t-text: #494949;
    --t-text-light: #ebebeb;
    --t-text-muted: #757575;
    --t-border: #dadada;
    --t-btn-bg: #757575;
    --t-btn-text: #f9f9f9;
    --home-header-h: 60px;
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--t-bg);
    color: var(--t-text);
}

.body-home nav,
.body-home .footer {
    display: none !important;
}

.body-home main {
    padding-top: 0;
}

/* Header */
.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: var(--home-header-h);
}

.home-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--home-header-h);
    padding: 0 20px;
    background: var(--t-bg);
}

.home-burger {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 14px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2002;
}

.home-burger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    background: var(--t-text);
    transition: 0.25s ease-in-out;
}

.home-burger span:nth-child(1) { top: 0; }
.home-burger span:nth-child(2),
.home-burger span:nth-child(3) { top: 6px; }
.home-burger span:nth-child(4) { top: 12px; }

.home-burger.is-open span:nth-child(1),
.home-burger.is-open span:nth-child(4) {
    top: 6px;
    width: 0;
    left: 50%;
}

.home-burger.is-open span:nth-child(2) { transform: rotate(45deg); }
.home-burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

.home-header__social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 20px;
}

.home-header__social-link {
    display: flex;
    color: var(--t-text);
    transition: color 0.2s;
}

.home-header__social-link:hover {
    color: var(--t-text-muted);
}

.home-header__cta {
    flex-shrink: 0;
}

/* Burger overlay menu */
.home-menu {
    position: fixed;
    inset: 0;
    z-index: 2001;
    background: var(--t-bg-dark);
    color: var(--t-text-light);
    display: flex;
    flex-direction: column;
    padding: 80px 40px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.home-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.home-menu__close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 28px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.home-menu__close span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    top: 9px;
    background: var(--t-text-light);
}

.home-menu__close span:nth-child(1) { transform: rotate(45deg); }
.home-menu__close span:nth-child(2),
.home-menu__close span:nth-child(3) { opacity: 0; }
.home-menu__close span:nth-child(4) { transform: rotate(-45deg); }

.home-menu__nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.home-menu__nav a {
    display: block;
    padding: 12px 0;
    font-size: 26px;
    font-weight: 400;
    color: var(--t-text-light);
    text-decoration: none;
    transition: opacity 0.2s;
}

.home-menu__nav a:hover {
    opacity: 0.7;
}

.home-menu__social {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.home-menu__social a {
    color: var(--t-text-light);
}

.body-home.menu-open {
    overflow: hidden;
}

/* Blocks */
.site-home {
    scroll-behavior: smooth;
}

.body-home .site-home,
.body-home .site-home h1,
.body-home .site-home h2,
.body-home .site-home h3,
.body-home .site-home h4,
.body-home .site-home p,
.body-home .site-home li,
.body-home .site-home blockquote,
.body-home .site-home summary,
.body-home .site-home cite {
    font-family: 'Roboto', Arial, sans-serif;
    color: inherit;
}

.body-home .home-hero,
.body-home .home-hero h1,
.body-home .home-hero p,
.body-home .home-hero cite,
.body-home .home-hero a.btn {
    color: var(--t-text-light);
}

.home-block {
    position: relative;
    padding: 45px 20px 60px;
}

.home-block__wrap {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.home-block--light { background: var(--t-bg); }
.home-block--gray { background: var(--t-bg); padding-top: 45px; }
.home-block--card { background: var(--t-bg-card); }

.home-block__header {
    margin-bottom: 8px;
}

.home-block__header--right {
    text-align: right;
}

.home-block__num {
    display: block;
    font-size: 16px;
    color: var(--t-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.home-block__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.home-block p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Buttons */
.body-home .site-home .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    height: 55px;
    padding: 0 24px;
    background: var(--t-btn-bg);
    color: var(--t-btn-text);
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    border: none;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.body-home .site-home .btn:hover {
    background: #828282;
    color: var(--t-btn-text);
    transform: none;
}

.btn--outline {
    min-width: auto;
    height: 30px;
    padding: 0 16px;
    font-size: 14px;
    background: transparent;
    color: var(--t-text);
    border: 1px solid var(--t-text);
}

.btn--outline:hover {
    background: transparent;
    color: var(--t-text-muted);
    border-color: var(--t-text-muted);
}

.btn--outline-light {
    min-width: 200px;
    height: 55px;
    background: transparent;
    color: var(--t-text-light);
    border: 1px solid var(--t-text-light);
}

.btn--outline-light:hover {
    background: rgba(235, 235, 235, 0.1);
    color: var(--t-text-light);
}

/* Decorative quote marks — donor photo.svg is 29×26, not a portrait */
.home-deco {
    display: block;
    flex-shrink: 0;
}

.home-deco--quote-sm {
    margin-bottom: 8px;
}

/* Hero — full-bleed photo bg, text left (donor rec1107589261) */
.home-hero {
    min-height: 900px;
    padding: 0;
    padding-top: var(--home-header-h);
    color: var(--t-text-light);
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/home/Group_1610_2.jpg');
    background-size: cover;
    background-position: center;
}

.home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    min-height: calc(900px - var(--home-header-h));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 20px 80px;
}

.home-hero__label {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 12px;
    max-width: 366px;
}

.home-hero__rule {
    width: 337px;
    max-width: 100%;
    height: 1px;
    background: var(--t-text-light);
    margin-bottom: 12px;
}

.home-hero__assoc {
    font-size: 16px;
    color: var(--t-text-light);
    margin-bottom: 24px;
    max-width: 366px;
}

.home-hero__title {
    font-size: clamp(28px, 6vw, 60px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 20px;
    max-width: 603px;
}

.home-hero__quote {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 32px;
    max-width: 320px;
    color: var(--t-text-light);
}

.home-hero__quote em {
    font-style: italic;
}

/* Method */
.home-metod {
    min-height: 700px;
}

.home-metod__content {
    position: relative;
    max-width: 720px;
}

.home-metod__content .home-block__title {
    font-size: clamp(28px, 4vw, 40px);
}

.home-metod__lead {
    font-weight: 400;
    margin-top: 24px;
    margin-bottom: 24px;
}

.home-deco--metod {
    position: absolute;
    right: 0;
    bottom: 80px;
    opacity: 0.85;
}

.home-quote {
    margin: 24px 0;
    padding: 0;
    border: none;
    font-style: italic;
    font-weight: 300;
}

.home-quote cite {
    display: block;
    margin-top: 8px;
    font-style: italic;
    font-size: 16px;
}

/* Principles */
.home-principles__subtitle {
    text-align: right;
    font-size: 16px;
    color: var(--t-text-muted);
    margin-bottom: 32px;
}

.home-principles__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.home-principle {
    background: var(--t-bg-card);
    padding: 32px;
}

.home-principle--wide {
    grid-column: 2;
    grid-row: 1;
}

.home-principle:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.home-principle--narrow {
    grid-column: 2;
    grid-row: 2;
}

.home-principle h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

.home-principle p {
    margin-bottom: 0;
}

/* Requests — text left, Group_1622_1.jpg right (donor rec1109887056) */
.home-requests__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 40px;
    align-items: start;
}

.home-requests__main {
    position: relative;
    min-width: 0;
}

.home-requests__heading {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    margin-bottom: 32px;
}

.home-requests__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.home-request {
    padding: 24px 20px;
    border-bottom: 1px solid var(--t-border);
}

.home-request:nth-child(odd) {
    border-right: 1px solid var(--t-border);
}

.home-request h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.home-request p {
    margin-bottom: 0;
    font-size: 16px;
}

.home-request--wide {
    grid-column: 1 / -1;
    border-right: none;
}

.home-requests__divider {
    border: none;
    border-top: 1px solid var(--t-text-muted);
    max-width: 660px;
    margin: 32px 0 24px;
}

.home-requests__aside {
    position: sticky;
    top: calc(var(--home-header-h) + 20px);
}

.home-requests__photo {
    width: 100%;
    max-width: 460px;
    height: auto;
    object-fit: cover;
    display: block;
}

.home-quote--freud {
    position: relative;
    text-align: left;
    max-width: 660px;
    margin: 0 0 24px;
    padding-top: 8px;
}

.home-deco--freud {
    margin-bottom: 12px;
}

.home-quote--freud cite {
    margin-top: 12px;
}

.home-deco--requests {
    position: absolute;
    right: 20px;
    bottom: 120px;
    opacity: 0.85;
}

.home-requests__cta {
    margin-top: 8px;
}

/* Services — column art 300×220 / 298×220 (donor rec1109912076) */
.home-services__heading {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    text-align: right;
    margin-bottom: 40px;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.home-service {
    text-align: center;
    padding: 0 10px 20px;
    background: var(--t-bg-card);
}

.home-service__art {
    width: 100%;
    max-width: 300px;
    height: 220px;
    margin: 0 auto 24px;
    background-size: cover;
    background-position: center;
}

.home-service__art--lighthouse {
    background-image: url('/images/home/tall-lighthouse-nort.jpg');
    max-width: 300px;
}

.home-service__art--river {
    background-image: url('/images/home/krasivyi-vid-na-reku.jpg');
    max-width: 300px;
}

.home-service__art--seagull {
    background-image: url('/images/home/low-angle-view-seagu.jpg');
    max-width: 298px;
}

.home-service__price {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.home-service__time {
    font-size: 16px;
    color: var(--t-text-muted);
    margin-bottom: 16px;
}

.home-service h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    min-height: 48px;
    padding: 0 8px;
}

.home-service .btn {
    min-width: 240px;
}

.home-service__link {
    display: inline-block;
    margin-bottom: 16px;
    cursor: pointer;
    line-height: 0;
}

.home-service__link img {
    width: 20px;
    height: 24px;
}

.home-quote--ogden {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    padding-left: 48px;
}

.home-deco--ogden {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 32px;
}

/* FAQ */
.home-faq__heading {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    text-align: right;
    margin-bottom: 32px;
}

.home-faq__list {
    max-width: 900px;
}

.home-faq__item {
    border-bottom: 1px solid var(--t-btn-bg);
    padding: 20px 0;
}

.home-faq__item summary {
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    list-style: none;
    padding-right: 24px;
}

.home-faq__item summary::-webkit-details-marker {
    display: none;
}

.home-faq__item p {
    margin-top: 16px;
    font-weight: 300;
}

/* Contacts footer */
.home-contacts {
    min-height: 404px;
    padding: 0;
    color: var(--t-text);
}

.home-contacts__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-contacts__inner {
    position: relative;
    z-index: 1;
    padding: 60px 20px 40px;
    min-height: 404px;
}

.home-contacts__note {
    font-size: 12px;
    color: var(--t-text-muted);
    margin-bottom: 8px;
}

.home-contacts__copy {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 24px;
}

.home-contacts__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.home-contacts__icons a {
    transition: opacity 0.2s;
}

.home-contacts__icons a:hover {
    opacity: 0.75;
}

.home-contacts__icons img {
    width: 54px;
    height: 54px;
}

.home-contacts__phone,
.home-contacts__email {
    font-size: 16px;
    margin-bottom: 8px;
}

.home-contacts__phone a,
.home-contacts__email .email-reveal {
    color: var(--t-text);
    text-decoration: none;
    cursor: pointer;
}

.home-contacts__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--t-border);
}

.home-contacts__nav a {
    font-size: 14px;
    color: var(--t-text);
    text-decoration: none;
}

.home-contacts__nav a:hover {
    color: var(--t-text-muted);
}

/* Popups */
.home-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.home-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.home-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(73, 73, 73, 0.85);
}

.home-popup__panel {
    position: relative;
    z-index: 1;
    background: var(--t-bg-card);
    color: var(--t-text);
    max-width: 800px;
    width: calc(100% - 40px);
    max-height: 85vh;
    overflow-y: auto;
    padding: 48px 40px 40px;
}

.home-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--t-text);
    cursor: pointer;
}

.home-popup__panel h2 {
    font-size: 32px;
    font-weight: 400;
    text-transform: lowercase;
    margin-bottom: 24px;
}

.home-popup__panel h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.home-popup__panel ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.home-popup__panel li {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 8px;
}

/* Responsive — donor breakpoints: 1200, 960, 640, 480 */
@media (max-width: 1199px) {
    .home-hero {
        min-height: 600px;
    }

    .home-hero__content {
        min-height: calc(600px - var(--home-header-h));
    }
}

@media (max-width: 960px) {
    .home-hero {
        min-height: 490px;
    }

    .home-hero__content {
        min-height: calc(490px - var(--home-header-h));
        justify-content: flex-start;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .home-requests__layout {
        grid-template-columns: 1fr;
    }

    .home-requests__aside {
        position: static;
        order: 2;
        margin-top: 32px;
    }

    .home-requests__photo {
        max-width: 100%;
    }

    .home-deco--requests {
        display: none;
    }

    .home-deco--metod {
        display: none;
    }

    .home-principles__grid {
        grid-template-columns: 1fr;
    }

    .home-principle--wide,
    .home-principle:nth-child(2),
    .home-principle--narrow {
        grid-column: 1;
        grid-row: auto;
    }

    .home-principles__subtitle,
    .home-block__header--right,
    .home-services__heading,
    .home-faq__heading {
        text-align: left;
    }

    .home-requests__grid {
        grid-template-columns: 1fr;
    }

    .home-request:nth-child(odd) {
        border-right: none;
    }

    .home-services__grid {
        grid-template-columns: 1fr;
    }

    .home-service__art {
        max-width: 100%;
        height: 192px;
    }

    .home-header__social {
        display: none;
    }
}

@media (max-width: 639px) {
    .home-hero {
        min-height: 360px;
    }

    .home-hero__bg {
        background-image: url('/images/home/Frame_779.jpg');
    }

    .home-hero__content {
        min-height: calc(360px - var(--home-header-h));
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .home-hero__title {
        font-size: 28px;
    }
}

@media (max-width: 479px) {
    .home-hero {
        min-height: 760px;
    }

    .home-hero__bg {
        background-image: url('/images/home/Group_1630.jpg');
    }

    .home-hero__content {
        min-height: calc(760px - var(--home-header-h));
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .home-deco--freud {
        width: 25px;
        height: 23px;
    }

    .home-block {
        padding: 32px 16px 48px;
    }

    .body-home .site-home .btn {
        min-width: 100%;
        max-width: 280px;
    }

    .home-menu {
        padding: 70px 24px 32px;
    }

    .home-menu__nav a {
        font-size: 22px;
    }

    .home-header__cta {
        font-size: 12px;
        padding: 0 10px;
    }
}