:root {
    --ink: #17211d;
    --muted: #647068;
    --paper: #f7f6f1;
    --white: #fff;
    --accent: #b53b2d;
    --accent-dark: #922d22;
    --line: #dce0d9;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    font: 400 16px/1.65 var(--sans);
    background: var(--white)
}

a {
    color: inherit
}

button,
input {
    font: inherit
}

button {
    cursor: pointer
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: auto
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.header {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .22)
}

.header--solid {
    position: relative;
    background: #17211d
}

.header__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 34px
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0
}

.brand img {
    width: 154px;
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1)
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto
}

.navigation a,
.footer a {
    text-decoration: none
}

.navigation a {
    font-size: 14px;
    font-weight: 700;
    transition: opacity .2s
}

.navigation a:hover {
    opacity: .7
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px
}

.phones {
    display: grid;
    gap: 1px
}

.phone-link {
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    padding: 15px 24px;
    min-height: 52px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s, transform .2s
}

.button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px)
}

/* More expressive Yandex-form open button */
/* data-ya-open uses default .button styles */

.button--small {
    min-height: 44px;
    padding: 11px 17px
}

.hero {
    position: relative;
    min-height: 740px;
    display: flex;
    align-items: center;
    color: #fff;
    background: url("../img/hero.jpg") center/cover
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 25, 19, .84), rgba(13, 25, 19, .58) 47%, rgba(13, 25, 19, .22))
}

.hero__content {
    position: relative;
    padding: 175px 0 62px
}

.eyebrow {
    margin: 0 0 18px;
    color: #f3cec6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase
}

.eyebrow--dark {
    color: var(--accent)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    font-family: var(--serif);
    line-height: 1.15
}

h1 {
    max-width: 800px;
    margin-bottom: 24px;
    font-size: clamp(44px, 6vw, 78px);
    letter-spacing: -.035em
}

h1 em {
    color: #f0c8b8;
    font-style: normal
}

.hero__lead {
    max-width: 580px;
    margin-bottom: 34px;
    font-size: 18px;
    color: rgba(255, 255, 255, .88)
}

.hero__buttons {
    display: flex;
    align-items: center;
    gap: 28px
}

.hero__phone {
    display: grid;
    gap: 2px;
    font-size: 13px;
    font-weight: 700
}

.hero__phone span {
    margin-bottom: 3px;
    font-size: 13px
}

.hero__phone a {
    font-size: 16px;
    color: #fff;
    text-decoration: none
}

.hero__facts {
    display: flex;
    gap: 38px;
    list-style: none;
    margin: 96px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .32)
}

.hero__facts li {
    display: grid;
    gap: 2px
}

.hero__facts strong {
    font-size: 15px
}

.hero__facts span {
    font-size: 12px;
    color: rgba(255, 255, 255, .68)
}

.section {
    padding: 118px 0
}

.intro__grid,
.section-heading,
.cta__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px
}

.intro h2,
.section-heading h2,
.process h2,
.cta h2 {
    margin-bottom: 0;
    font-size: clamp(35px, 4vw, 55px);
    letter-spacing: -.035em
}

.intro__text {
    padding-top: 42px;
    color: var(--muted);
    font-size: 17px
}

.text-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none
}

.section--muted {
    background: var(--paper)
}

.section-heading {
    align-items: end;
    margin-bottom: 46px
}

.section-heading>p {
    max-width: 370px;
    margin: 0;
    color: var(--muted);
    font-size: 15px
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.service-card {
    overflow: hidden;
    background: var(--white);
    outline: 1px solid transparent;
    transition: transform .25s, box-shadow .25s, outline-color .25s
}

.service-card:hover,
.service-card:focus,
.service-card.is-active {
    outline-color: var(--accent);
    box-shadow: 0 18px 40px rgba(29, 41, 34, .12);
    transform: translateY(-5px)
}

.service-card img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover
}

.service-card__body {
    padding: 25px 26px 27px
}

.service-card__number {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800
}

.service-card h3 {
    margin: 11px 0 10px;
    font-size: 28px
}

.service-card p {
    min-height: 52px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px
}

.service-card button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800
}

.process {
    padding-bottom: 132px
}

.process h2 {
    max-width: 620px
}

.process__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    list-style: none;
    margin: 58px 0 0;
    padding: 0
}

.process__list li {
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.process__list span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800
}

.process__list h3 {
    margin: 18px 0 9px;
    font-size: 24px
}

.process__list p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.cta {
    background: var(--accent);
    color: #fff;
    padding: 78px 0
}

.cta .eyebrow {
    color: #f7d7d0
}

.cta h2 {
    font-size: clamp(35px, 4vw, 52px)
}

.cta p:not(.eyebrow) {
    max-width: 580px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .82)
}

.cta__actions {
    display: flex;
    align-self: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
}

.button--light {
    background: #fff;
    border-color: #fff;
    color: var(--accent)
}

.button--light:hover {
    background: #f8e7e2
}

.button--cta {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
    box-shadow: 0 14px 30px rgba(23, 33, 29, 0.14);
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.button--cta:hover {
    background: #f8e7e2;
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.button--cta:focus {
    outline: 3px solid rgba(181, 59, 45, 0.16);
}

.cta__phone {
    font-weight: 800;
    text-decoration: none
}

.cta__actions>a:not(.button) {
    font-weight: 700
}

/* Premium minimalist footer */
.footer {
    position: relative;
    overflow: hidden;
    padding: 72px 0 28px;
    background: linear-gradient(180deg, #111714 0%, #0d120f 100%);
    color: #f5f2eb;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(181,59,45,.45), transparent);
}

.footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr .7fr .7fr 1fr;
    gap: 36px 48px;
    align-items: start;
    margin-bottom: 40px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__col--brand {
    gap: 18px;
}

.brand--footer img {
    width: 110px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .95;
}

.footer__tagline {
    margin: 0;
    max-width: 340px;
    color: rgba(245,242,235,.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer__title {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .02em;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    color: rgba(245,242,235,.68);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .25s ease;
}

.footer__nav a:hover {
    color: #f2b6a8;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__address {
    font-style: normal;
    color: rgba(245,242,235,.68);
    font-size: 14px;
    line-height: 1.6;
}

.footer__phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__phones a {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: color .25s ease;
}

.footer__phones a:hover {
    color: #f2b6a8;
}

.footer__email {
    color: #f2b6a8;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    color: #f5f2eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all .25s ease;
}

.social-link:hover {
    background: rgba(181,59,45,.12);
    border-color: rgba(181,59,45,.24);
    color: #fff;
}

.social-link img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(245,242,235,.45);
    font-size: 12px;
}

.footer__up {
    color: rgba(245,242,235,.6);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    transition: color .25s ease;
}

.footer__up:hover {
    color: #fff;
}

.modal {
    position: fixed;
    z-index: 20;
    inset: 0;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 20, 15, .7)
}

.modal__backdrop {
    opacity: 0;
    transition: opacity .22s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
    position: relative;
    width: min(100%, 480px);
    padding: 42px;
    background: #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .28s cubic-bezier(.2,.9,.3,1);
}

/* enable smooth native scrolling inside modal on iOS */
.modal__dialog {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.modal.is-open .modal__dialog {
    transform: none;
    opacity: 1;
}

.modal__dialog h2 {
    margin-bottom: 10px;
    font-size: 37px
}

.modal__dialog>p {
    color: var(--muted);
    font-size: 14px
}

.modal__close {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 30px
}

.callback-form {
    display: grid;
    gap: 16px;
    margin-top: 25px
}

.callback-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 800
}

.callback-form input {
    width: 100%;
    border: 1px solid var(--line);
    padding: 13px;
    outline-color: var(--accent)
}

.form-message {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700
}

.service-modal {
    padding: 28px
}

.service-modal__dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, .92fr) 1.08fr;
    width: min(100%, 1020px);
    max-height: min(760px, calc(100vh - 56px));
    overflow: auto;
    background: #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3)
}

.service-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--paper)
}

.service-modal__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 62px 55px 48px
}

.service-modal__content h2 {
    margin-bottom: 20px;
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -.035em
}

.service-modal__text {
    max-width: 470px;
    margin-bottom: 31px;
    color: var(--muted);
    font-size: 16px
}

.service-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.messenger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 1px solid var(--line);
    padding: 12px 16px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none
}

.messenger-link:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.service-modal__phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 26px;
    font-size: 13px;
    font-weight: 800
}

.service-modal__phones a {
    text-decoration: none
}

.portfolio-hero {
    padding: 105px 0 75px;
    background: var(--paper)
}

/* Animation utilities */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s cubic-bezier(.2,.9,.3,1), transform .6s cubic-bezier(.2,.9,.3,1);
    will-change: opacity, transform;
}

/* Visible state applied by JS */
.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Variants */
[data-animate="fade-in"] { transform: none; }
[data-animate="fade-up"] { transform: translateY(20px); }
[data-animate="slide-left"] { transform: translateX(-18px); }
[data-animate="slide-right"] { transform: translateX(18px); }

/* Slight stagger helpers (can be set inline via data-delay) */
.reveal { will-change: opacity, transform; }

@media (prefers-reduced-motion: reduce) {
    [data-animate] { transition: none; transform: none; opacity: 1; }
}

/* Yandex form embed styling */
.ya-form-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0 0;
}
.ya-form-wrapper iframe {
    width: 100%;
    max-width: 650px;
    height: 680px;
    border: 0;
    box-shadow: 0 10px 30px rgba(23,33,29,0.12);
}

@media (max-width: 720px) {
    .ya-form-wrapper iframe {
        height: 820px;
    }
}

@media (max-width: 420px) {
    .ya-form-wrapper {
        padding: 20px 12px 0;
    }
    .ya-form-wrapper iframe {
        height: 1000px;
    }
}

/* Modal form dialog styling */
.ya-form-dialog {
    width: min(100%, 820px);
    max-width: 95vw;
    padding: 12px; /* уменьшили отступ, чтобы iframe занимал больше места */
    background: transparent;
}
.ya-form-container {
    width: 100%;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(23,33,29,0.08);
    /* ensure container can grow but stay within viewport */
    max-height: calc(100vh - 120px);
}
.ya-form-container {
    -webkit-overflow-scrolling: touch;
    overflow: auto; /* allow scrolling inside container if iframe needs it */
}

.modal__dialog {
    /* allow modal content to scroll if iframe is tall */
    max-height: calc(100vh - 56px);
    overflow: auto;
}

.ya-form-container iframe {
    display: block;
    width: 100%;
    height: 100%; /* JS will set exact pixel height on insertion */
    border: 0;
}
.ya-form-container iframe {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@media (max-width: 720px) {
    .ya-form-container { max-height: calc(100vh - 80px); }
    .ya-form-container iframe { height: 100%; }
}

/* Handle short viewports (phones in landscape / small screens) */
@media (max-height: 900px) {
    .modal__dialog {
        width: calc(100% - 20px);
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        padding: 10px;
        border-radius: 0;
    }
    .ya-form-dialog { padding: 8px; }
    .ya-form-container {
        max-height: calc(100vh - 56px);
        border-radius: 6px;
    }
    .ya-form-container iframe { height: 100%; }
    .modal__close { top: 8px; right: 10px; }
}

.portfolio-hero h1 {
    margin-bottom: 14px;
    color: var(--ink)
}

.portfolio-hero h1 em {
    color: var(--accent)
}

.portfolio-hero>div>p:last-child {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 18px
}

.portfolio {
    padding-top: 72px
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.portfolio-card {
    position: relative;
    min-height: 310px;
    margin: 0;
    overflow: hidden;
    background: var(--ink)
}

.portfolio-card--large {
    grid-column: span 2;
    min-height: 460px
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .5s
}

.portfolio-card:hover img {
    transform: scale(1.06)
}

.portfolio-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 18, 13, .8), rgba(10, 18, 13, 0) 60%)
}

.portfolio-card figcaption {
    position: absolute;
    z-index: 1;
    right: 26px;
    bottom: 22px;
    left: 26px;
    color: #fff
}

.portfolio-card figcaption span {
    color: #f3cec6;
    font-size: 12px;
    font-weight: 800
}

.portfolio-card h2 {
    margin: 5px 0;
    font-size: 27px
}

.portfolio-card p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px
}

@media(max-width:900px) {
    .header__actions .phones {
        display: none
    }

    .header__inner {
        gap: 20px
    }

    .navigation {
        gap: 20px
    }

    .hero {
        min-height: 650px
    }

    .intro__grid,
    .section-heading,
    .cta__inner {
        gap: 42px
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
        gap: 40px;
    }

    .footer__col:nth-child(3) {
        display: none;
    }
}

@media(max-width:680px) {
    .container {
        width: min(100% - 36px, 1180px)
    }

    .header {
        background: rgba(16, 28, 21, .88);
        backdrop-filter: blur(10px)
    }

    .header--solid {
        background: #17211d
    }

    .header__inner {
        min-height: 70px
    }

    .brand img {
        width: 125px;
        height: 47px
    }

    .menu-toggle {
        display: grid;
        gap: 5px;
        margin-left: auto;
        padding: 9px;
        border: 0;
        background: transparent
    }

    .menu-toggle span:not(.sr-only) {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff
    }

    .navigation {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 18px 20px;
        background: #17211d
    }

    .navigation.is-open {
        display: flex
    }

    .navigation a {
        padding: 12px 0
    }

    .header__actions {
        display: none
    }

    .hero {
        min-height: 700px
    }

    .hero__content {
        padding-top: 145px
    }

    .hero__lead {
        font-size: 16px
    }

    .hero__buttons {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px
    }

    .hero__facts {
        gap: 15px;
        margin-top: 55px
    }

    .hero__facts li {
        flex: 1
    }

    .hero__facts strong {
        font-size: 12px
    }

    .hero__facts span {
        font-size: 10px
    }

    .section {
        padding: 76px 0
    }

    .intro__grid,
    .section-heading,
    .cta__inner {
        grid-template-columns: 1fr;
        gap: 23px
    }

    .intro__text {
        padding-top: 0;
        font-size: 16px
    }

    .section-heading {
        margin-bottom: 32px
    }

    .service-grid,
    .portfolio-grid {
        grid-template-columns: 1fr
    }

    .service-card img {
        height: 230px
    }

    .process {
        padding-bottom: 78px
    }

    .process__list {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
        margin-top: 42px
    }

    .cta {
        padding: 65px 0
    }

    .footer {
        padding: 60px 0 30px;
    }

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

    .footer__col--brand,
    .footer__nav,
    .footer__info,
    .footer__social {
        align-items: center;
    }

    .footer__nav a:hover {
        transform: none;
    }

    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .modal__dialog {
        padding: 36px 25px
    }

    .service-modal {
        padding: 14px
    }

    .service-modal__dialog {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 28px)
    }

    .service-modal__image {
        height: 230px;
        min-height: 0;
        object-fit: cover
    }

    .service-modal__content {
        padding: 36px 25px
    }

    .service-modal__content h2 {
        font-size: 38px
    }

    .service-modal__actions {
        width: 100%
    }

    .service-modal__actions .button {
        width: 100%
    }

    .portfolio-hero {
        padding: 120px 0 55px
    }

    .portfolio-card--large {
        grid-column: auto;
        min-height: 310px
    }
}

.trust-strip {
    position: relative;
    z-index: 2;
    margin-top: -48px
}

.trust-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    box-shadow: 0 18px 45px rgba(23, 33, 29, .14)
}

.trust-strip__item {
    padding: 27px 30px;
    border-right: 1px solid var(--line)
}

.trust-strip__item:last-child {
    border: 0
}

.trust-strip__item strong {
    display: block;
    color: var(--accent);
    font: 700 32px/1 var(--serif)
}

.trust-strip__item span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700
}

.portfolio-preview {
    background: #17211d;
    color: #fff
}

.portfolio-preview .eyebrow {
    color: #f3cec6
}

.portfolio-preview h2 {
    max-width: 650px;
    margin-bottom: 38px;
    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -.035em
}

.portfolio-preview__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px
}

.portfolio-preview .text-link {
    color: #f3cec6;
    white-space: nowrap
}

.portfolio-preview__grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 16px
}

.portfolio-preview__card {
    position: relative;
    min-height: 260px;
    overflow: hidden
}

.portfolio-preview__card:first-child {
    min-height: 400px
}

.portfolio-preview__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s
}

.portfolio-preview__card:hover img {
    transform: scale(1.06)
}

.portfolio-preview__card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 12, 8, .8), transparent 65%)
}

.portfolio-preview__card span {
    position: absolute;
    z-index: 1;
    bottom: 22px;
    left: 22px;
    font-family: var(--serif);
    font-size: 25px
}

.why {
    padding: 0;
    background: var(--paper)
}

.why__inner {
    display: grid;
    grid-template-columns: .9fr 1.1fr
}

.why__image {
    min-height: 570px;
    background: url("../img/hero_1.jpg") center/cover
}

.why__content {
    padding: 95px 8vw
}

.why__content h2 {
    margin-bottom: 30px;
    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -.035em
}

.why__list {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none
}

.why__list li {
    padding: 0 0 20px;
    border-bottom: 1px solid var(--line)
}

.why__list strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--serif);
    font-size: 23px
}

.why__list span {
    color: var(--muted);
    font-size: 14px
}

@media(max-width:680px) {
    .trust-strip {
        margin-top: 0
    }

    .trust-strip__inner {
        grid-template-columns: 1fr 1fr;
        box-shadow: none
    }

    .trust-strip__item {
        padding: 20px;
        border-bottom: 1px solid var(--line)
    }

    .trust-strip__item:nth-child(2) {
        border-right: 0
    }

    .portfolio-preview__heading {
        align-items: flex-start;
        flex-direction: column
    }

    .portfolio-preview__grid {
        grid-template-columns: 1fr
    }

    .portfolio-preview__card,
    .portfolio-preview__card:first-child {
        min-height: 240px
    }

    .why__inner {
        grid-template-columns: 1fr
    }

    .why__image {
        min-height: 280px
    }

    .why__content {
        padding: 70px 18px
    }
}

.gallery-lightbox {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: none;
    place-items: center;
    padding: 40px;
    background: rgba(7, 13, 9, .92)
}

.gallery-lightbox.is-open {
    display: grid
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent
}

.gallery-lightbox figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1100px, 82vw);
    max-height: 88vh;
    margin: 0
}

.gallery-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(88vh - 32px);
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5)
}

.gallery-lightbox__count {
    padding-top: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 800
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    z-index: 2;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font: 400 34px/1 var(--sans);
    transition: background .2s
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
    background: var(--accent)
}

.gallery-lightbox__close {
    top: 23px;
    right: 28px;
    width: 44px;
    height: 44px
}

.gallery-lightbox__nav {
    top: 50%;
    width: 54px;
    height: 58px;
    transform: translateY(-50%)
}

.gallery-lightbox__nav--prev {
    left: 28px
}

.gallery-lightbox__nav--next {
    right: 28px
}

@media(max-width:680px) {
    .gallery-lightbox {
        padding: 18px
    }

    .gallery-lightbox figure {
        max-width: calc(100vw - 36px)
    }

    .gallery-lightbox__close {
        top: 15px;
        right: 16px
    }

    .gallery-lightbox__nav {
        top: auto;
        bottom: 22px;
        transform: none;
        width: 48px;
        height: 48px;
        font-size: 28px
    }

    .gallery-lightbox__nav--prev {
        left: calc(50% - 58px)
    }

    .gallery-lightbox__nav--next {
        right: calc(50% - 58px)
    }
}