/* ==========================================================================
   Крепкий Контур — стили сайта.
   Палитра, типографика и пропорции сняты с эталонного макета
   (Тихий Контур — каркасные дома Камчатки.png, десктоп 1440).
   ========================================================================== */

:root {
    --cream: #F5F0E5;
    --cream-deep: #EFEADC;
    --ink: #123A30;
    --ink-deep: #092F24;
    --sage: #45604B;
    --olive: #716C4A;
    --muted: #625F50;
    --gold: #B89A70;
    --gold-soft: #C9AE85;
    --line: #D4CEBA;
    --white: #FFFDF7;

    --container: 1264px;
    --gutter: 40px;
    --radius: 10px;
    --radius-lg: 18px;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --shadow-card: 0 24px 60px rgba(9, 47, 36, .12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure {
    margin: 0;
}

button {
    font: inherit;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.icon {
    width: 24px;
    height: 24px;
    flex: none;
}


.h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.6vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.h2 {
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--ink);
}

.h2--light {
    color: var(--cream);
}

.label {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--olive);
}

.section {
    position: relative;
    padding: 104px 0;
}

.section--tight {
    padding: 64px 0 96px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn__icon {
    width: 22px;
    height: 22px;
    transition: transform .25s ease;
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

.btn--gold {
    background: var(--gold);
    color: var(--ink-deep);
}

.btn--gold:hover {
    background: var(--gold-soft);
}

.btn--cream {
    background: var(--cream);
    color: var(--ink-deep);
}

.btn--cream:hover {
    background: var(--white);
}

.btn--dark {
    background: var(--ink);
    color: var(--cream);
}

.btn--dark:hover {
    background: var(--ink-deep);
}

.btn--sm {
    padding: 14px 26px;
    font-size: 14px;
}

.btn--lg {
    padding: 21px 42px;
    font-size: 16px;
}

.btn--full {
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12.5px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid rgba(18, 58, 48, .25);
    padding-bottom: 4px;
    transition: border-color .25s ease, color .25s ease;
}

.link-arrow:hover {
    border-color: var(--ink);
}

.link-arrow__icon {
    width: 20px;
    height: 20px;
    transition: transform .25s ease;
}

.link-arrow:hover .link-arrow__icon {
    transform: translateX(4px);
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--cream);
    border-bottom: 1px solid rgba(18, 58, 48, .08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 96px;
    max-width: 1360px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex: none;
}

.brand__mark {
    width: 62px;
    height: auto;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand__name {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1;
    color: var(--ink);
}

.brand__tagline {
    font-size: 9px;
    letter-spacing: .17em;
    color: var(--olive);
}

.nav {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-left: auto;
    min-width: 0;
}

.nav__link {
    font-size: 15px;
    color: var(--ink);
    opacity: .86;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.nav__link:hover,
.nav__link.is-active {
    opacity: 1;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 8px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    white-space: nowrap;
}

.header-phone__icon {
    width: 19px;
    height: 19px;
    color: var(--sage);
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(18, 58, 48, .2);
    border-radius: 50%;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.burger span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
}

.mobile-menu {
    display: none;
}


.hero {
    position: relative;
    min-height: 716px;
    display: flex;
    align-items: flex-end;
    padding: 150px 0 92px;
    overflow: hidden;
    color: var(--cream);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--ink-deep);
}

.hero__bg img {
    width: 100%;
    height: 100%;
    filter: saturate(1.04) brightness(1.03);
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(9, 47, 36, .44) 0%, rgba(12, 50, 38, .28) 26%, rgba(16, 52, 40, .10) 48%, rgba(16, 52, 40, 0) 66%);
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__inner::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -80px;
    top: -40px;
    bottom: -40px;
    width: min(760px, 68%);
    background: radial-gradient(120% 100% at 0% 50%,
        rgba(9, 47, 36, .34) 0%,
        rgba(9, 47, 36, .16) 45%,
        rgba(9, 47, 36, 0) 82%);
    filter: blur(14px);
    pointer-events: none;
}

.hero__title,
.hero__lead,
.hero__text,
.hero__label,
.hero__note {
    text-shadow: 0 1px 16px rgba(6, 32, 25, .35);
}

.hero__title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(48px, 6.6vw, 96px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.01em;
}

.hero__label {
    margin: 0 0 54px;
    font-size: 13px;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(245, 240, 229, .82);
}

.hero__lead {
    max-width: 620px;
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.9vw, 40px);
    line-height: 1.28;
    color: var(--cream);
}

.hero__text {
    max-width: 430px;
    margin: 0 0 40px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(245, 240, 229, .84);
}

.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 42px 0 0;
    font-size: 15px;
    color: rgba(245, 240, 229, .82);
}

.hero__note-icon {
    width: 19px;
    height: 19px;
    color: var(--gold);
}


.about {
    background: var(--cream);
}

.about {
    position: relative;
    overflow: hidden;
}

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 64px;
    align-items: center;
    padding-left: 72px;
}

.about__body {
    max-width: 470px;
}

.botanical {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.botanical--branch {
    top: -20px;
    left: 6px;
    width: 150px;
    height: 430px;
    background-image: url('../img/branch-spruce.jpg');
    background-position: left top;
    background-size: contain;
    mix-blend-mode: multiply;
    opacity: .4;
}

.about__photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about__body .h2 {
    margin-bottom: 18px;
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.24;
}

.about__text {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.58;
}

.about__body .link-arrow {
    margin-top: 10px;
}

.about__interior {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    border-radius: 0;
}

.about__interior > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.about-card {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54%;
    padding: 26px 28px 28px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 0 12px 0 0;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -14px;
    width: 132px;
    height: 168px;
    background: url('../img/branch-spruce.jpg') no-repeat center / contain;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: .2;
    pointer-events: none;
}

.about-card__title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 400;
    line-height: 1.24;
}

.about-card__list {
    display: grid;
    gap: 10px;
}

.about-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(245, 240, 229, .84);
}

.about-card__icon {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--gold);
}


.services {
    padding: 64px 0 70px;
    background: var(--ink);
    color: var(--cream);
}

.services__head {
    margin-bottom: 44px;
}

.services__head .h2 {
    margin-bottom: 8px;
}

.services__subtitle {
    margin: 0;
    font-size: 16px;
    color: rgba(245, 240, 229, .72);
}

.services__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.services__item {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 6px 26px;
    border-left: 1px solid rgba(245, 240, 229, .16);
}

.services__item:first-child {
    border-left: 0;
    padding-left: 0;
}

.services__icon {
    width: 32px;
    height: 32px;
    color: var(--gold);
}

.services__title {
    font-size: 15.5px;
    line-height: 1.45;
    color: rgba(245, 240, 229, .92);
}


.calc {
    padding: 0;
    overflow: hidden;
}

.calc__grid {
    display: grid;
    grid-template-columns: 38.5% 1fr;
    align-items: stretch;
}

.calc__photo {
    position: relative;
    min-height: 420px;
}

.calc__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* вулкан не обрезаем сверху: показываем верхнюю часть кадра */
    object-position: 50% 14%;
}

/* мягкий переход фото в кремовое поле справа */
.calc__photo::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to right, rgba(245, 240, 229, 0) 0%, rgba(245, 240, 229, .55) 55%, var(--cream) 100%);
    pointer-events: none;
}

.calc__body {
    position: relative;
    display: flex;
    align-items: center;
    padding: 96px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 22%, rgba(18, 58, 48, .06) 0, rgba(18, 58, 48, 0) 46%),
        var(--cream);
}

.calc__body::after {
    content: '';
    position: absolute;
    right: 34px;
    bottom: 0;
    width: 180px;
    height: 206px;
    background: url('../img/calc-decor.png') no-repeat right bottom / contain;
    opacity: .85;
    pointer-events: none;
}

.calc__inner {
    width: 100%;
    max-width: 560px;
    margin-left: clamp(40px, 6vw, 88px);
    padding-right: var(--gutter);
}

.calc__text {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16.5px;
}

.calc__text--lead {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.55;
}

.calc .btn {
    margin-top: 22px;
}


.why {
    overflow: hidden;
}

.botanical--firs {
    right: -90px;
    bottom: -110px;
    width: 520px;
    height: 620px;
    background-image: url('../img/trees-spruce.jpg');
    background-position: right bottom;
    mix-blend-mode: multiply;
    opacity: .3;
    z-index: 0;
}

.why .container {
    position: relative;
    z-index: 1;
}

.why__head {
    margin-bottom: 56px;
}

.why__head .h2 {
    margin-bottom: 10px;
}

.why__subtitle {
    margin: 0;
    font-size: 17px;
    color: var(--muted);
}

.why__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}

.why__item {
    padding: 0 22px;
    border-left: 1px solid rgba(18, 58, 48, .16);
}

.why__item:first-child {
    border-left: 0;
    padding-left: 0;
}

.why__item:last-child {
    padding-right: 0;
}

.why__icon {
    width: 30px;
    height: 30px;
    color: var(--sage);
    margin-bottom: 16px;
}

.why__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.28;
}

.why__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}


.steps {
    padding: 88px 0 96px;
    background: var(--ink);
    color: var(--cream);
}

.steps__head {
    margin-bottom: 48px;
}

.steps__head .h2 {
    margin-bottom: 8px;
}

.steps__subtitle {
    margin: 0;
    font-size: 16px;
    color: rgba(245, 240, 229, .72);
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.steps__item {
    position: relative;
    padding: 46px 26px 0 0;
    border-top: 1px solid rgba(245, 240, 229, .18);
}

.steps__item:last-child {
    padding-right: 0;
}

.steps__num {
    position: absolute;
    top: -18px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: var(--gold);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--ink-deep);
}

.steps__title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
    color: var(--cream);
}

.steps__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(245, 240, 229, .72);
}


.portfolio__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 44px;
}

.portfolio__head .h2 {
    margin-bottom: 8px;
}

.portfolio__subtitle {
    margin: 0;
    font-size: 16.5px;
    color: var(--muted);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.project-card {
    background: #FBF7EC;
    border: 1px solid rgba(18, 58, 48, .09);
    border-radius: var(--radius);
    overflow: hidden;
    padding-bottom: 18px;
    transition: border-color .25s ease, transform .25s ease;
}

.project-card:hover {
    border-color: rgba(18, 58, 48, .22);
    transform: translateY(-2px);
}

.project-card__media {
    overflow: hidden;
    background: var(--cream-deep);
}

.project-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.project-card__link:hover .project-card__media img {
    transform: scale(1.04);
}

.project-card__title {
    margin: 18px 18px 6px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.project-card__text {
    margin: 0 18px;
    font-size: 15px;
    color: var(--muted);
}


.cta {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
    color: var(--cream);
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--ink);
}

.cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(9, 47, 36, .74) 0%, rgba(9, 47, 36, .58) 45%, rgba(9, 47, 36, .26) 100%);
}

.cta__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: center;
}

.cta__text {
    max-width: 470px;
    margin: 0;
    font-size: 16.5px;
    color: rgba(245, 240, 229, .78);
}

.lead-form {
    display: grid;
    gap: 14px;
}

.lead-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field__input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 253, 247, .95);
    font: 400 13px/1.35 var(--font-body);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field__input::placeholder {
    color: rgba(98, 95, 80, .7);
}

.field__input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 154, 112, .25);
}

.field__input--area {
    resize: vertical;
    min-height: 40px;
}

.field--error .field__input {
    border-color: #C25B4A;
}

.field__error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #F0B7AC;
}

.lead-form__message {
    margin: 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14.5px;
}

.lead-form__message--ok {
    background: rgba(184, 154, 112, .18);
    color: var(--white);
}

.lead-form__message--error {
    background: rgba(194, 91, 74, .22);
    color: #F6D5CE;
}

.lead-form__note {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(245, 240, 229, .55);
}


.site-footer {
    position: relative;
    padding: 72px 0 28px;
    background: var(--ink-deep);
    color: var(--cream);
    overflow: hidden;
}

.site-footer__bg {
    position: absolute;
    inset: 0;
    background: url('../img/trees-spruce.jpg') no-repeat right -70px bottom -30px;
    background-size: 620px;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: .12;
    pointer-events: none;
}

.site-footer__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr auto 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 240, 229, .14);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding-top: 10px;
    font-size: 14.5px;
    color: rgba(245, 240, 229, .78);
}

.site-footer__nav a:hover {
    color: var(--cream);
}

.brand--footer .brand__name {
    color: var(--cream);
    font-size: 18.5px;
    font-weight: 700;
    letter-spacing: .07em;
}

.brand--footer .brand__tagline {
    color: rgba(245, 240, 229, .6);
}

.site-footer__text {
    max-width: 380px;
    margin: 22px 0 0;
    font-size: 15px;
    color: rgba(245, 240, 229, .62);
}

.site-footer__contacts {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.site-footer__phone {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--cream);
}

.site-footer__link {
    font-size: 15px;
    color: rgba(245, 240, 229, .74);
}

.site-footer__note {
    font-size: 14px;
    color: rgba(245, 240, 229, .5);
}

.site-footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(245, 240, 229, .24);
    border-radius: 50%;
    color: var(--cream);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.social:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-deep);
}

.site-footer__bottom {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    justify-content: space-between;
    padding-top: 26px;
    font-size: 13.5px;
    color: rgba(245, 240, 229, .5);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.site-footer__legal a:hover {
    color: var(--cream);
}


.page-hero {
    padding: 96px 0 44px;
    background: var(--cream);
    border-bottom: 1px solid rgba(18, 58, 48, .08);
}

.page-hero__subtitle {
    max-width: 640px;
    margin: 20px 0 0;
    font-size: 17px;
    color: var(--muted);
}

.page-content {
    max-width: 820px;
}

.page-content p {
    margin: 0 0 20px;
    color: var(--muted);
}

.project-page {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: start;
}

.project-page__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-page__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-page__body p {
    margin: 0 0 18px;
    color: var(--muted);
}

.portfolio__grid--four {
    grid-template-columns: repeat(4, 1fr);
}

/* --------------------------------------------------------------------------
   -------------------------------------------------------------------------- */

body {
    font-size: 14px;
    line-height: 1.55;
}

.section {
    padding: 44px 0;
}

.section--tight {
    padding: 28px 0 44px;
}

.h1 {
    font-size: clamp(32px, 4.2vw, 60px);
}

.h2 {
    margin-bottom: 14px;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.22;
}

.label {
    margin-bottom: 12px;
    font-size: 10.5px;
    letter-spacing: .22em;
}

.btn {
    gap: 10px;
    padding: 13px 26px;
    font-size: 13.5px;
}

.btn__icon {
    width: 18px;
    height: 18px;
}

.btn--sm {
    padding: 11px 20px;
    font-size: 12.5px;
}

.btn--lg {
    padding: 15px 30px;
    font-size: 14px;
}

.link-arrow {
    font-size: 13.5px;
    gap: 9px;
}

.link-arrow__icon {
    width: 17px;
    height: 17px;
}


.site-header__inner {
    min-height: 84px;
    gap: 24px;
    padding-left: 67px;
}

.site-header .nav {
    margin-left: 56px;
}

.site-header__actions {
    margin-left: auto;
}

.brand {
    gap: 14px;
}

.brand__mark {
    width: 46px;
    height: auto;
}

.brand__name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .19em;
}

.brand__tagline {
    font-size: 8.5px;
    letter-spacing: .16em;
}

.nav {
    gap: 26px;
}

.nav__link {
    font-size: 13.5px;
}

.header-phone {
    font-size: 13.5px;
}

.header-phone__icon {
    width: 14px;
    height: 14px;
}

.site-header .btn {
    padding: 12px 15px;
    font-size: 12.5px;
}


.hero {
    aspect-ratio: 1920 / 602;
    min-height: 430px;
    padding: 64px 0 52px;
}

.hero__title {
    margin-bottom: 9px;
    font-size: clamp(38px, 4.6vw, 56px);
    font-weight: 500;
}

.hero__label {
    margin-bottom: 26px;
    font-size: 11px;
    letter-spacing: .28em;
}

.hero__lead {
    max-width: 480px;
    margin-bottom: 19px;
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1.08;
}

.hero__text {
    max-width: 360px;
    margin-bottom: 18px;
    font-size: 15px;
}

.hero__note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 22px 0 0;
    font-size: 13px;
    color: rgba(245, 240, 229, .9);
}


.about__grid {
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
    gap: 44px;
    padding-left: max(calc(var(--gutter) + 64px), calc((100vw - var(--container)) / 2 + var(--gutter) + 64px));
    padding-right: 0;
}

.about__body .h2 {
    margin-bottom: 12px;
    font-size: clamp(19px, 1.7vw, 24px);
}

.about__text {
    margin-bottom: 9px;
    font-size: 13.5px;
    line-height: 1.5;
}

.about__body .label {
    margin-bottom: 8px;
}

.about__body .link-arrow {
    margin-top: 6px;
}

.about-card {
    width: 48%;
    padding: 16px 18px 18px;
}

.about-card__title {
    margin-bottom: 10px;
    font-size: clamp(15px, 1.3vw, 19px);
}

.about-card__list {
    gap: 6px;
}

.about-card__list li {
    font-size: 12.5px;
}

.about-card__icon {
    width: 13px;
    height: 13px;
    margin-top: 3px;
}

.about-card::after {
    width: 96px;
    height: 124px;
}

.botanical--branch {
    top: -10px;
    left: 4px;
    width: 132px;
    height: 380px;
    opacity: .38;
}


.services {
    padding: 34px 0 36px;
}

.services__head {
    margin-bottom: 18px;
}

.services__subtitle {
    font-size: 13.5px;
}

.services__item {
    gap: 5px;
    padding: 4px 20px;
}

.services__icon {
    width: 54px;
    height: 54px;
    stroke-width: 1.35;
}

.services__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
}


.section.calc {
    padding: 0;
}

.calc__photo {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.calc__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calc__body {
    padding: 23px 0;
}

.calc__inner {
    max-width: 495px;
    margin-left: 52px;
}

.calc__text {
    margin-bottom: 10px;
    font-size: 15px;
}

.calc__text--lead {
    font-size: 16.5px;
}

.calc .btn {
    margin-top: 16px;
}


.why {
    padding: 58px 0 22px;
}

.why__head {
    margin-bottom: 22px;
}

.why__subtitle {
    font-size: 17px;
}

.why__item {
    padding: 0 16px;
}

.why__icon {
    width: 27px;
    height: 27px;
    margin-bottom: 10px;
}

.why__title {
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.35;
}

.why__text {
    font-size: 12.5px;
    line-height: 1.5;
}

.botanical--firs {
    right: -60px;
    bottom: -80px;
    width: 440px;
    height: 520px;
    opacity: .26;
}


.steps {
    padding: 34px 0 38px;
}

.steps__head {
    margin-bottom: 22px;
}

.steps__subtitle {
    font-size: 13.5px;
}

.steps__item {
    padding: 32px 20px 0 0;
}

.steps__num {
    top: -14px;
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.steps__title {
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.35;
}

.steps__text {
    font-size: 12.5px;
    line-height: 1.48;
}


.portfolio {
    padding: 6px 0 10px;
}

.portfolio__head {
    margin-bottom: 8px;
}

.portfolio__subtitle {
    font-size: 13.5px;
}

.portfolio__grid {
    gap: 16px;
}

.project-card {
    padding-bottom: 8px;
}

.project-card__media img {
    aspect-ratio: 16 / 9;
}

.project-card__title {
    margin: 9px 13px 2px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
}

.project-card__text {
    margin: 0 13px;
    font-size: 11.5px;
    line-height: 1.4;
}


.cta {
    padding: 18px 0 24px;
}

.cta__grid {
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.cta__text {
    max-width: 400px;
    font-size: 13px;
}

.lead-form {
    gap: 4px;
}

.field__input {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.field__input--area {
    min-height: 44px;
}

.lead-form__note {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.3;
}


.page-hero {
    padding: 56px 0 26px;
}

.page-hero__subtitle {
    margin-top: 12px;
    font-size: 14px;
}

.page-content p,
.project-page__body p {
    font-size: 14px;
}


.site-footer {
    padding: 14px 0 8px;
}

.site-footer__inner {
    gap: 32px;
    padding-bottom: 8px;
}

.site-footer__phone {
    font-size: 19px;
}

.site-footer__nav {
    gap: 8px 18px;
    font-size: 13px;
}

.site-footer__link {
    font-size: 13.5px;
}

.site-footer__note {
    font-size: 12.5px;
}

.social {
    width: 36px;
    height: 36px;
}

.site-footer__bottom {
    padding-top: 8px;
    font-size: 12px;
}

.brand--footer .brand__mark {
    width: 64px;
    height: auto;
}


@media (max-width: 1180px) {
    :root {
        --gutter: 32px;
    }

    .nav {
        gap: 24px;
    }

    .site-header__actions {
        gap: 18px;
    }

    .about__grid,
    .calc__grid,
    .cta__grid,
    .project-page {
        gap: 48px;
    }

    .why__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 32px;
    }

    .why__item:nth-child(4) {
        border-left: 0;
        padding-left: 0;
    }

    .cta__grid {
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 1024px) {
    .nav,
    .site-header__actions .header-phone {
        display: none;
    }

    .burger {
        display: inline-flex;
        margin-left: auto;
    }

    .site-header__actions {
        margin-left: auto;
    }

    .mobile-menu {
        display: block;
        padding: 8px var(--gutter) 28px;
        background: var(--cream);
        border-top: 1px solid rgba(18, 58, 48, .08);
    }

    .mobile-menu[hidden] {
        display: none;
    }

    .mobile-menu__nav {
        display: grid;
        gap: 4px;
        padding: 8px 0 20px;
    }

    .mobile-menu__nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(18, 58, 48, .1);
        font-size: 17px;
    }

    .mobile-menu__phone {
        display: block;
        margin: 8px 0 18px;
        font-family: var(--font-display);
        font-size: 22px;
    }

    .services__list,
    .steps__list,
    .why__list,
    .portfolio__grid,
    .portfolio__grid--four {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .services__item,
    .why__item,
    .steps__item {
        border-left: 0;
        padding-left: 0;
    }

    .why__item {
        padding: 0;
        border-top: 0;
    }

    .steps__item {
        padding: 46px 0 0;
    }

    .about__grid,
    .calc__grid,
    .project-page {
        grid-template-columns: 1fr;
    }

    .calc__photo {
        min-height: 0;
    }

    .calc__photo img {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .calc__body {
        padding: 56px 0;
    }

    .calc__inner {
        max-width: none;
        margin-left: 0;
        padding: 0 var(--gutter);
    }

    .about__body,
    .about__interior {
        max-width: 620px;
    }

    .about__grid {
        padding-left: 0;
    }

    .about__photo img {
        aspect-ratio: 4 / 3;
    }

    .botanical--branch {
        display: none;
    }

    .about-card {
        width: 100%;
        bottom: 0;
        border-radius: 0;
    }

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

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer__contacts {
        justify-items: start;
        text-align: left;
    }
}

/* ---------- сверка с эталонным макетом (замеры при 1440) ----------
   Макет: текст первого экрана начинается на x=125, заголовок 62,
   подпись 13.5, лид 27, абзац 15, кнопка 201x43, подпись под кнопкой 14.
   «О компании»: полоса 431, фото 700x431 вплотную к правому краю,
   текст от x=150, колонка 446, карточка 50% ширины фото. */

@media (min-width: 1181px) {
    .hero__inner {
        padding-left: 34px;
    }

    /* «Почему мы»: заголовок 27px, подзаголовок 17px */
    .why .h2 {
        font-size: 27px;
    }

    /* «Расчёт стоимости»: заголовок 26px */
    .calc .h2 {
        font-size: 26px;
    }

    /* «Услуги»: текст от x=147, заголовок 28px, иконки 40px */
    .services > .container {
        padding-left: 59px;
    }

    .services .h2 {
        margin-bottom: 4px;
        font-size: 28px;
    }

    .services {
        padding-top: 26px;
        padding-bottom: 36px;
    }

    .hero {
        padding-bottom: 56px;
    }

    .hero__label {
        margin-bottom: 15px;
        font-size: 17px;
        letter-spacing: .24em;
    }

    .hero__lead {
        max-width: 430px;
    }

    .hero__text {
        max-width: 400px;
        font-size: 17.5px;
        line-height: 1.42;
    }

    .hero__note {
        font-size: 14px;
    }

    .hero .btn--lg {
        padding: 11px 28px;
        font-size: 14px;
    }


    .about {
        padding: 0;
    }

    .about__grid {
        grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
        gap: 73px;
        padding-left: max(calc(var(--gutter) + 21px), calc((100vw - var(--container)) / 2 + var(--gutter) + 21px));
        padding-right: 0;
        min-height: 431px;
    }

    /* фото интерьера — как в макете: сверху 30, снизу 5, справа вплотную к краю */
    .about__interior {
        margin: 30px 0 5px 0;
        align-self: stretch;
    }

    .about__interior > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .about__body {
        max-width: 520px;
        padding: 34px 0;
    }

    .about__body .label {
        margin-bottom: 8px;
        font-size: 12.5px;
        letter-spacing: .2em;
    }

    .about__body .h2 {
        margin-bottom: 6px;
        font-size: 33px;
        line-height: 1.09;
    }

    .about__text {
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 1.55;
    }

    .about__body .link-arrow {
        margin-top: 10px;
        font-size: 15px;
    }

    .about-card {
        width: 40%;
        min-height: 192px;
        padding: 28px 70px 28px 34px;
        bottom: 19px;
    }

    .about-card__list {
        gap: 11px;
    }

    .about-card__title {
        margin-bottom: 12px;
        font-size: 21px;
        line-height: 1.15;
    }

    .about-card__list {
        gap: 9px;
    }

    .about-card__list li {
        font-size: 13px;
        line-height: 1.45;
    }

    .about-card__icon {
        width: 14px;
        height: 14px;
        margin-top: 4px;
    }

    /* слева — ветка ели: растёт от самого края экрана, свисает вниз и растворяется
       к тексту маской, поэтому нет ни обрезки, ни отрыва от края */
    .botanical--branch {
        top: 0;
        left: 0;
        width: max(210px, calc((100vw - var(--container)) / 2 + var(--gutter) + 21px));
        height: 100%;
        background-image: url('../img/branch-about.png');
        background-size: auto 100%;
        background-position: left top;
        background-repeat: no-repeat;
        opacity: .96;
        -webkit-mask-image: linear-gradient(to right, #000 34%, rgba(0, 0, 0, .6) 62%, transparent 100%);
        mask-image: linear-gradient(to right, #000 34%, rgba(0, 0, 0, .6) 62%, transparent 100%);
    }
}

.label {
    font-size: 13px;
    letter-spacing: .24em;
}


/* ---------- декор по эталонному макету ---------- */
/* контурные линии местности в тёмной полосе «Услуги» (справа сверху) */
.services {
    position: relative;
    overflow: hidden;
}

.services::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -80px;
    width: 620px;
    height: 380px;
    background: url('../img/contours.jpg') no-repeat center / contain;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: .2;
    pointer-events: none;
}

.services > .container {
    position: relative;
    z-index: 1;
}

/* контурные линии за гравированными елями в «Расчёте стоимости» */
.calc__body::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -30px;
    width: 460px;
    height: 340px;
    background: url('../img/contours.jpg') no-repeat center / contain;
    mix-blend-mode: multiply;
    opacity: .35;
    pointer-events: none;
}

/* линия гор в шапке «Как мы работаем» */
.steps__head {
    position: relative;
}

.steps__head::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -46px;
    width: 380px;
    height: 128px;
    z-index: 0;
    background: url('../img/ridge-mountains.jpg') no-repeat right top / contain;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: .3;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .services::after,
    .steps__head::after,
    .calc__body::before {
        display: none;
    }
}


/* первый экран формы и заголовок CTA — под макет */
.cta .h2 {
    font-size: 27px;
    line-height: 1.2;
}

.cta__text {
    font-size: 12.5px;
    line-height: 1.55;
}
