@font-face {
    font-family: Montserrat;
    src: url('assets/Montserrat-Regular.ttf');
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Montserrat;
    src: url('assets/Montserrat-SemiBold.ttf');
    font-weight: 600 900;
    font-display: swap
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: #303b3d;
    background: #fff;
    font: 16px/1.75 Montserrat, Arial, sans-serif
}

button, summary {
    font: inherit
}

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

h2 {
    font-weight: 600;
    font-size: clamp(30px, 3.1vw, 46px);
    line-height: 1.2;
    letter-spacing: -.035em
}

h3 {
    font-weight: 600;
    line-height: 1.3
}

.wrap {
    max-width: 1220px;
    width: calc(100% - 80px);
    margin: auto
}

.preview-note {
    padding: 12px 24px;
    background: #f1f5f5;
    color: #65787a;
    font: 12px/1.5 Montserrat, Arial, sans-serif;
    text-align: center
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px
}

.eyebrow:before {
    content: '';
    height: 2px;
    width: 32px;
    background: #c8a55c
}

.accent {
    color: #008b98
}

.ornament {
    height: 65px;
    background: linear-gradient(#ffffff88, #ffffff88), url('assets/Фирменный узор.jpg') center/280px;
    opacity: .35
}

.benefits {
    background: #fcfbf8;
    padding: 36px 0 64px
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
    box-shadow: none;
}

.section-heading .eyebrow {
    justify-content: center
}

.benefit-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: auto
}

.benefit {
    aspect-ratio: 1;
    border-radius: 50%;
    background: white;
    border: 7px solid #edf1f3;
    outline: 1px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 25px;
    box-shadow: 0 10px 28px #35556406
}

.icon {
    width: 60px;
    height: 60px;
    color: #008b98;
    margin-bottom: 17px
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.benefit h3 {
    font-size: 21px;
    max-width: 250px
}

.gold-line {
    width: 42px;
    height: 2px;
    background: #c8a55c;
    margin: 17px 0
}

.benefit p {
    font-size: 14px;
    line-height: 1.7;
    color: #696969;
    max-width: 255px
}

.history {
    padding: 70px 0 80px;
    background: #fcfbf8
}

.history-grid {
    display: grid;
    grid-template-columns:1.03fr 1fr;
    gap: 64px;
    align-items: start
}

.history-copy > p {
    margin: 25px 0 22px;
    color: #696969;
    font-size: 16px;
    line-height: 1.85
}

.history-details {
    margin-top: 22px
}

.history-details summary {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    cursor: pointer;
    list-style: none;
    border: 1px solid #c8a55c;
    border-radius: 99px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #fff
}

.history-details summary::-webkit-details-marker {
    display: none
}

.history-details summary:after {
    content: '+';
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    color: #008b98
}

.history-details[open] summary:after {
    content: '−'
}

.history-details .collapse {
    display: none
}

.history-details[open] .expand {
    display: none
}

.history-details[open] .collapse {
    display: inline
}

.story-rest {
    padding-top: 26px;
    color: #696969;
    font-size: 15px;
    line-height: 1.9
}

.story-rest p + p {
    margin-top: 20px
}

.film {
    padding-top: 4px
}

.film-frame {
    position: relative;
    border: 1px solid #d8c398;
    border-radius: 28px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 18px 40px #3555640a
}

.film-placeholder {
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #edf5f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px
}

.film-placeholder:before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/Фирменный узор.jpg') center/320px;
    opacity: .11
}

.film-placeholder > * {
    position: relative
}

.film-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #687e80
}

.film-years {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.15;
    color: #008b98;
    margin: 8px 0
}

.film-title {
    font-size: 16px;
    font-weight: 600
}

.film figcaption {
    padding: 20px 12px 0
}

.film figcaption strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px
}

.film figcaption span {
    font-size: 13px;
    color: #696969
}

.film-note {
    margin: 16px 12px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #829092
}

summary:focus-visible {
    outline: 3px solid #008b98;
    outline-offset: 5px
}

summary:hover {
    background: #f5faf9
}

@media (max-width: 1000px) {
    .wrap {
        width: calc(100% - 48px)
    }

    .benefit-grid {
        gap: 14px
    }

    .benefit {
        padding: 22px 15px;
        border-width: 5px
    }

    .benefit h3 {
        font-size: 18px
    }

    .benefit p {
        font-size: 12px
    }

    .icon {
        width: 43px;
        height: 43px;
        margin-bottom: 12px
    }

    .gold-line {
        margin: 12px 0
    }

    .history-grid {
        gap: 32px
    }

    .history-copy > p {
        font-size: 14px
    }

    .film-years {
        font-size: 44px
    }
}

@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 36px)
    }

    .preview-note {
        font-size: 10px
    }

    .ornament {
        height: 40px
    }

    .benefits {
        padding: 28px 0 44px
    }

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

    .benefit-grid {
        grid-template-columns:1fr;
        gap: 22px;
        max-width: 320px
    }

    .benefit {
        padding: 26px;
        border-width: 7px
    }

    .benefit h3 {
        font-size: 21px
    }

    .benefit p {
        font-size: 14px
    }

    .icon {
        width: 52px;
        height: 52px
    }

    .gold-line {
        margin: 16px 0
    }

    .history {
        padding: 40px 0 50px
    }

    .history-grid {
        grid-template-columns:1fr;
        gap: 36px
    }

    .history-copy > p {
        font-size: 15px;
        margin-top: 22px
    }

    .film-years {
        font-size: 50px
    }

    .film-frame {
        border-radius: 24px
    }

    .story-rest {
        font-size: 14px
    }

    .history-details summary {
        min-height: 48px
    }

    h2 {
        font-size: 32px
    }
}

@media print {
    .preview-note {
        display: none
    }

    .wrap {
        width: 100%
    }

    .history-details .story-rest {
        display: block
    }

    .history {
        padding: 20px
    }
}

@media (max-width: 700px) {
    .film-placeholder {
        min-height: 210px
    }

    .film-kicker {
        font-size: 10px
    }

    .film-title {
        font-size: 14px
    }
}

.history-copy, .film {
    min-width: 0
}

.film {
    margin: 0
}

.story-rest, .history-copy > p {
    overflow-wrap: anywhere
}

@media (max-width: 700px) {
    .history-grid {
        grid-template-columns:minmax(0, 1fr)
    }
}

.film-placeholder {
    width: 100%
}

@media (max-width: 700px) {
    .film-placeholder {
        aspect-ratio: auto;
        min-height: 210px
    }
}

/* Единая ширина по указанию Марины */
.wrap {
    max-width: 1890px;
    width: calc(100% - 30px)
}

@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 36px)
    }
}



/* Видео в блоке film: заполняет рамку; 16:9 — как у исходного ролика */
.film-frame video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
    border-radius: inherit;
}


/* block 4-6-7 */


.next-block {
    padding: 72px 0 80px;
    background: #fcfbf8
}

.next-block.alt {
    background: #fff
}

.next-intro {
    max-width: 740px;
    margin-bottom: 36px;
	box-shadow: none
}

.next-intro p:last-child {
    margin-top: 18px;
    color: #696969;
    font-size: 16px
}

.situations {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 20px
}

.situation {
    display: grid;
    grid-template-columns:72px minmax(0, 1fr) 24px;
    gap: 20px;
    align-items: center;
    padding: 30px;
    border: 1px solid #dce6e7;
    border-radius: 26px;
    background: white;
    min-height: 160px
}

.situation-icon {
    width: 70px;
    height: 70px;
    background: #edf8f8;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #008b98
}

.situation-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.situation h3 {
    font-size: 22px;
    margin-bottom: 10px
}

.situation p {
    color: #696969;
    font-size: 14px;
    line-height: 1.65
}

.arrow {
    color: #008b98;
    font-size: 25px
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: 32px
}

.all-services-button {
    border: 1px solid #c8a55c !important;
    border-radius: 99px;
    padding: 13px 27px;
    background: white;
    color: #303b3d;
    font-weight: 600;
    font-size: 14px;
    min-height: 48px
}

.all-services-button:focus-visible {
    outline: 3px solid #008b98;
    outline-offset: 4px
}

.case-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px
}

.case-placeholder {
    min-width: 0;
    border: 1px solid #dce6e7;
    border-radius: 26px;
    overflow: hidden;
    background: white
}

.case-image {
    aspect-ratio: 4/3;
    background: #edf3f3;
    display: grid;
    place-items: center;
    border-bottom: 1px solid #dce6e7;
    color: #809496;
    font-size: 13px
}

.case-content {
    padding: 26px
}

.skeleton {
    height: 10px;
    background: #edf1f1;
    border-radius: 20px;
    margin-bottom: 13px
}

.skeleton.title {
    height: 17px;
    width: 83%;
    margin-bottom: 24px
}

.skeleton.short {
    width: 58%
}

.case-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e6eeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #008b98;
    font-size: 13px
}

.stage-list {
    list-style: none;
    padding: 0;
    margin: 44px 0 0;
    display: grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap: 24px
}

.stage-list li {
    position: relative;
    min-width: 0
}

.stage-list li:not(:last-child):after {
    content: '';
    position: absolute;
    height: 1px;
    background: #d8c398;
    top: 33px;
    left: 80px;
    right: -10px
}

.stage-number {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 5px solid #edf1f3;
    background: white;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 600;
    color: #008b98;
    margin-bottom: 24px;
    position: relative;
    z-index: 1
}

.stage-list h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 14px
}

.stage-list p {
    font-size: 13px;
    line-height: 1.8;
    color: #696969
}

.stage-end {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #dce6e7;
    padding-top: 28px;
    margin-top: 38px
}

.stage-end p {
    font-size: 14px;
    color: #696969;
    max-width: 760px
}

.stage-end .all-services-button {
    flex: none
}

.case-guide {
    margin-top: 24px;
    color: #809496;
    font-size: 12px;
    line-height: 1.7
}

.situation:hover {
    border-color: #c8a55c
}

.all-services-button:hover {
    background: #f1f8f7
}

/* Вся карточка кликабельна: невидимая ссылка поверх блока */
        .situation {
            position: relative;
        }

        .situation .situation-link {
            position: absolute;
            inset: 0;
            z-index: 1;
            border-radius: inherit;
        }

        .situation .situation-link:focus-visible {
            outline: 2px solid currentColor;
            outline-offset: 4px;
        }

        a.all-services-button {
            text-decoration: none;
        }

@media (max-width: 1000px) {
    .situation {
        padding: 23px;
        grid-template-columns:52px minmax(0, 1fr) 18px;
        gap: 15px
    }

    .situation-icon {
        width: 52px;
        height: 52px
    }

    .situation h3 {
        font-size: 19px
    }

    .stage-list {
        gap: 17px
    }

    .stage-list h3 {
        font-size: 16px
    }

    .stage-list p {
        font-size: 12px
    }

    .stage-end {
        align-items: flex-start
    }
}

@media (max-width: 700px) {
    .next-block {
        padding: 42px 0 48px
    }

    .next-intro {
        margin-bottom: 26px
	}

    .next-intro p:last-child {
        font-size: 14px
    }

    .situations, .case-grid {
        grid-template-columns:minmax(0, 1fr);
        gap: 16px
    }

    .situation {
        min-height: 140px;
        padding: 22px 18px;
        grid-template-columns:48px minmax(0, 1fr) 14px;
        gap: 12px
    }

    .situation-icon {
        width: 48px;
        height: 48px
    }

    .situation-icon svg {
        width: 30px;
        height: 30px
    }

    .situation h3 {
        font-size: 18px
    }

    .situation p {
        font-size: 12px
    }

    .arrow {
        font-size: 20px
    }

    .case-content {
        padding: 24px
    }

    .stage-list {
        grid-template-columns:minmax(0, 1fr);
        gap: 0;
        margin-top: 30px
    }

    .stage-list li {
        display: grid;
        grid-template-columns:58px minmax(0, 1fr);
        column-gap: 20px;
        padding-bottom: 30px
    }

    .stage-number {
        grid-row: 1/3;
        width: 56px;
        height: 56px;
        font-size: 18px;
        margin: 0
    }

    .stage-list h3 {
        font-size: 19px;
        margin-top: 11px;
        margin-bottom: 10px
    }

    .stage-list p {
        grid-column: 2;
        font-size: 14px
    }

    .stage-list li:not(:last-child):after {
        width: 1px;
        height: auto;
        top: 56px;
        bottom: 0;
        left: 28px;
        right: auto
    }

    .stage-end {
        display: block;
        margin-top: 0
    }

    .stage-end p {
        font-size: 13px;
        margin-bottom: 22px
    }

    .all-services-button {
        max-width: 100%
    }

    .case-guide {
        font-size: 11px
    }
}
