:root {
    --green: #0f2f2a;
    --green-2: #163e37;
    --paper: #f7f9f8;
    --accent: #c89b6d;
    --text: #1a1a1a;
    --muted: #65736f;
    --line: rgba(15, 47, 42, 0.14);
    --white: #fff;
    --shadow: 0 24px 70px rgba(15, 47, 42, 0.12);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
button,
input {
    font: inherit;
}

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

.section-pad {
    padding: 68px 0;
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Manrope, Inter, sans-serif;
    line-height: 1.08;
}

h1 {
    max-width: 900px;
    font-size: clamp(42px, 6vw, 82px);
    color: var(--white);
}
h2 {
    font-size: clamp(34px, 4vw, 56px);
    color: var(--green);
}
h3 {
    font-size: 22px;
}

.html-text p {
    text-align: justify;
    hyphens: auto;
    text-justify: inter-word;
}

.html-text p,
.html-text ul,
.html-text ol {
    margin: 0;
}
.html-text p + p,
.html-text p + ul,
.html-text p + ol,
.html-text ul + p,
.html-text ol + p {
    margin-top: 14px;
}
.html-text ul,
.html-text ol {
    padding-left: 22px;
}
.html-text a {
    color: var(--accent);
    font-weight: 800;
}
.html-text strong {
    color: var(--green);
}

p {
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    font-size: 20px;
    max-width: 300px;
    width: 100%;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}
.button--accent {
    background: var(--accent);
    color: var(--green);
    box-shadow: 0 18px 40px rgba(200, 155, 109, 0.28);
}
.button--ghost {
    border-color: rgba(255, 255, 255, 0.42);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px max(24px, calc((100vw - 1180px) / 2));
    color: var(--white);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        padding 0.25s ease;
}

.header.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(15, 47, 42, 0.94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    color: var(--green);
}
.brand__text {
    font-size: 18px;
    max-width: 260px;
    font-family: Manrope, Inter, sans-serif;
    line-height: 1.1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav__link {
    font-size: 15px;
    font-weight: 700;
    opacity: 0.86;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}
.nav__link:hover,
.nav__link.is-active {
    color: var(--accent);
    opacity: 1;
}

.header__toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}
.header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: center;
    padding: 120px 0 72px;
    overflow: hidden;
    background: var(--green);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    filter: saturate(0.92);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 47, 42, 0.92),
            rgba(15, 47, 42, 0.72) 42%,
            rgba(15, 47, 42, 0.3)
        ),
        linear-gradient(0deg, rgba(15, 47, 42, 0.86), rgba(15, 47, 42, 0) 55%);
}

.hero__content {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero__subtitle {
    max-width: 640px;
    margin: 18px 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 24px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stats {
    padding-top: 24px;
    padding-bottom: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.stats__item {
    padding: 26px;
    border-left: 1px solid var(--line);
}
.stats__item:first-child {
    border-left: 0;
}
.stats__item strong {
    display: block;
    color: var(--green);
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}
.stats__item span {
    color: var(--muted);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.split__text p:not(.eyebrow),
.split__text .html-text {
    margin-top: 22px;
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}
.split__media {
    margin: 0;
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.split__media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.section-head {
    max-width: 760px;
    margin-bottom: 28px;
}
.section-head p:not(.eyebrow),
.section-head .html-text {
    margin-top: 18px;
    color: var(--muted);
    font-size: 18px;
}
.section-head--row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.services {
    background: var(--white);
}
.services__title {
    margin: 0 0 28px;
    color: var(--accent);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.service-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    min-height: 220px;
    padding: 28px 0 0 28px;
    border-radius: 4px;
    overflow: hidden;
}
.service-card--wide {
    grid-column: span 2;
}
.service-card--narrow {
    grid-column: span 1;
}
.service-card--peach {
    background: #fdf0e6;
}
.service-card--grey {
    background: #e9e9e9;
}
.service-card__body {
    flex: 1;
    min-width: 0;
    padding-bottom: 28px;
}
.service-card h3 {
    margin: 0;
    color: #1a332f;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}
.service-card__text,
.service-card__text p {
    margin: 14px 0 0;
    color: #1a332f;
    font-size: 14px;
    line-height: 1.5;
}
.service-card__text ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #1a332f;
    font-size: 14px;
    line-height: 1.55;
}
.service-card__text li + li {
    margin-top: 4px;
}
.service-card__img {
    flex-shrink: 0;
    align-self: flex-end;
    width: auto;
    max-width: 42%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom right;
}

.cases {
    background: var(--paper);
}
.slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 38%);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
}
.slider::-webkit-scrollbar {
    display: none;
}
.slider-controls {
    display: flex;
    gap: 10px;
}
.slider-controls button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--green);
    font-size: 28px;
    cursor: pointer;
}

.case-card {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--green);
    cursor: zoom-in;
    box-shadow: var(--shadow);
}
.case-card img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.35s ease;
}
.case-card:hover img {
    transform: scale(1.05);
}
.case-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 90px 26px 26px;
    color: var(--white);
    background: linear-gradient(
        0deg,
        rgba(15, 47, 42, 0.94),
        rgba(15, 47, 42, 0)
    );
}
.case-card span,
.letter-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.letters {
    background: var(--green);
}
.letters h2 {
    color: var(--white);
}
.slider--letters {
    grid-auto-columns: minmax(240px, 25%);
}
.letter-card {
    display: grid;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    text-align: left;
    scroll-snap-align: start;
    cursor: zoom-in;
}
.letter-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
    filter: grayscale(1) sepia(0.55) saturate(1.35) hue-rotate(8deg)
        brightness(0.92) contrast(1.08);
    transition:
        filter 0.35s ease,
        transform 0.35s ease;
}
.letter-card:hover img,
.letter-card:focus-visible img {
    filter: none;
    transform: scale(1.02);
}

.careers__panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.careers p,
.careers__text {
    max-width: 620px;
    margin: 20px 0 30px;
    color: var(--muted);
    font-size: 18px;
}
.benefits {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    list-style: none;
    counter-reset: benefits;
}
.benefits__item {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(15, 47, 42, 0.1);
    font-weight: 800;
    line-height: 1.25;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}
.benefits__item:last-child {
    border-bottom: 0;
}
.benefits__item::before {
    counter-increment: benefits;
    content: counter(benefits, decimal-leading-zero);
    color: var(--accent);
    font-family: Manrope, Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
}
.benefits__item::after {
    content: "";
    position: absolute;
    left: 54px;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0.45;
    transform: scaleY(0.55);
    transform-origin: center;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}
.benefits__item:hover {
    padding-left: 8px;
    color: var(--green);
}
.benefits__item:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

.about {
    background: var(--white);
}
.about__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}
.about__gallery-head {
    margin-bottom: 16px;
}
.about__block {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.about__block p,
.about__block .html-text {
    margin-top: 14px;
    color: var(--muted);
}
.about-gallery {
    grid-auto-columns: minmax(240px, 25%);
}
.about-gallery__item {
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
    scroll-snap-align: start;
    cursor: zoom-in;
}
.about-gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.contacts {
    background: var(--paper);
}
.contacts__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: stretch;
}
.contacts__info {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--green);
    color: var(--white);
}
.contacts__info h2 {
    color: var(--white);
    margin-bottom: 22px;
}
.contacts__info a {
    display: flex;
    gap: 12px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}
.contacts__map {
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contacts iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.footer {
    padding: 32px 0;
    background: #0b2420;
    color: rgba(255, 255, 255, 0.76);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}
.brand--footer .brand__mark {
    width: 40px;
    height: 40px;
}
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
}
.footer__nav a.is-active {
    color: var(--accent);
}
.footer p {
    text-align: right;
    font-size: 14px;
}

.lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    place-items: center;
    padding: 70px 24px 32px;
    background: rgba(6, 20, 18, 0.92);
}
.lightbox.is-open {
    display: grid;
}
.lightbox img {
    max-width: min(1120px, 100%);
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}
.lightbox p {
    margin-top: 16px;
    color: var(--white);
    font-weight: 800;
}
.lightbox__close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1020px) {
    .section-pad {
        padding: 56px 0;
    }
    .stats__grid,
    .about__content {
        grid-template-columns: repeat(2, 1fr);
    }
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card--wide {
        grid-column: span 2;
    }
    .service-card--narrow {
        grid-column: span 1;
    }
    .split,
    .careers__panel,
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .footer p {
        text-align: left;
    }
    .slider {
        grid-auto-columns: minmax(310px, 58%);
    }
    .slider--letters,
    .about-gallery {
        grid-auto-columns: minmax(220px, 36%);
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 28px, 1180px);
    }
    .header {
        padding: 10px 14px;
    }
    .brand__text {
        max-width: 190px;
        font-size: 13px;
    }
    .brand__mark {
        width: 40px;
        height: 40px;
    }
    .header__toggle {
        display: block;
    }
    .nav {
        position: fixed;
        inset: 66px 12px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: var(--radius);
        background: rgba(15, 47, 42, 0.98);
        box-shadow: var(--shadow);
    }
    .nav.is-open {
        display: flex;
    }
    .nav__link {
        padding: 12px;
    }
    .hero {
        min-height: 72vh;
        padding: 108px 0 56px;
    }
    h1 {
        font-size: 38px;
    }
    h2 {
        font-size: 32px;
    }
    .hero__actions .button {
        width: 100%;
    }
    .stats__grid,
    .services__grid,
    .about__content,
    .benefits {
        grid-template-columns: 1fr;
    }
    .service-card--wide,
    .service-card--narrow {
        grid-column: span 1;
    }
    .service-card {
        min-height: 180px;
        padding: 22px 0 0 22px;
    }
    .service-card__img {
        max-width: 38%;
    }
    .stats__item {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 22px 0;
    }
    .stats__item:first-child {
        border-top: 0;
    }
    .split__media,
    .split__media img {
        min-height: 320px;
    }
    .section-head--row {
        align-items: start;
        flex-direction: column;
    }
    .slider,
    .slider--letters,
    .about-gallery {
        grid-auto-columns: 86%;
    }
    .case-card,
    .case-card img {
        min-height: 360px;
    }
    .careers__panel,
    .contacts__info {
        padding: 26px;
    }
    .footer__nav {
        flex-wrap: wrap;
    }
}
