:root {
    --rose: #a44f77;
    --rose-bright: #cf7e9e;
    --rose-pale: #fdebf3;
    --jade: #347f78;
    --jade-soft: #d7f0ea;
    --mist: #f4faf9;
    --ink: #476672;
    --subtle: #607d86;
    --line: #b8d6d4;
    --paper: #ffffff;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.68 "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

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

a:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 4px;
}

.container {
    width: min(1160px, calc(100% - 80px));
    margin-inline: auto;
}

.narrow {
    max-width: 1040px;
}

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

h1,
h2,
h3 {
    color: var(--jade);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.028em;
}

h1 {
    margin-bottom: 25px;
    font-size: 40px;
}

h2 {
    margin-bottom: 22px;
    font-size: 28px;
}

h3 {
    margin-bottom: 13px;
    font-size: 21px;
}

p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.72;
}

strong {
    font-weight: 800;
}

p a[href=""] {
    color: var(--rose);
    font-weight: inherit;
    text-decoration: none;
}

p a[href=""]:hover,
p a[href=""]:focus-visible {
    color: var(--jade);
}

.site-header {
    background: var(--paper);
    border-top: 8px solid var(--rose);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    min-height: 83px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--jade);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.055em;
    white-space: nowrap;
}

.brand-gear {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 6px solid var(--rose);
    border-radius: 50%;
    background: var(--rose-pale);
    box-shadow: 0 -7px 0 -3px var(--rose), 0 7px 0 -3px var(--rose), 7px 0 0 -3px var(--rose), -7px 0 0 -3px var(--rose);
}

.brand-gear::after {
    position: absolute;
    inset: 6px;
    border: 4px solid var(--jade);
    border-radius: 50%;
    content: "";
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(11px, 3vw, 42px);
}

.main-nav a {
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
    transition: color .16s ease, border-color .16s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    border-bottom-color: var(--rose);
    color: var(--rose);
}

.overline,
.chapter-number {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.opening {
    padding-block: 48px 60px;
    background: var(--rose-pale);
    border-bottom: 5px solid var(--rose-bright);
}

.opening h1 {
    margin-bottom: 29px;
    color: var(--rose);
}

.opening-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .86fr);
    gap: clamp(32px, 5vw, 75px);
    align-items: center;
}

.opening-text p:last-of-type {
    margin-bottom: 25px;
}

.ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.cta {
    display: inline-flex;
    min-height: 50px;
    padding: 11px 20px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--rose);
    border-radius: 3px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

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

.cta:active {
    transform: translateY(0);
}

.cta-primary {
    background: var(--rose);
    color: var(--paper);
}

.cta-primary:hover {
    background: #8e3f66;
}

.cta-secondary {
    background: var(--paper);
    color: var(--rose);
}

.cta-secondary:hover {
    background: var(--jade-soft);
}

.control-drawing {
    position: relative;
    width: min(100%, 410px);
    padding: 12px;
    margin-inline: auto;
    transform: rotate(1.5deg);
    border: 2px dashed #c387a0;
    background: #f7dde9;
}

.instrument-board {
    padding: 26px 27px 27px;
    border: 10px solid var(--jade);
    border-radius: 15px;
    background: #f5fffc;
    box-shadow: 10px 12px 0 #bfdbd5;
}

.board-top {
    display: flex;
    height: 31px;
    align-items: flex-start;
    justify-content: space-between;
}

.board-caption {
    color: var(--jade);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
}

.board-light {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 4px solid var(--jade);
    border-radius: 50%;
    background: #f4a9c8;
}

.board-screen {
    position: relative;
    height: 137px;
    overflow: hidden;
    border: 6px solid #9bc5be;
    border-radius: 9px;
    background: #d9f0eb;
}

.board-screen::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 96%, #bbded6 97%), linear-gradient(0deg, transparent 95%, #bbded6 96%);
    background-size: 34px 32px;
    content: "";
}

.board-trace {
    position: absolute;
    top: 53px;
    left: -10px;
    width: 112%;
    height: 37px;
    border-top: 9px solid var(--rose);
    border-radius: 50%;
    transform: rotate(-9deg);
}

.board-trace-alt {
    top: 74px;
    left: 30px;
    width: 85%;
    border-color: var(--jade);
    transform: rotate(12deg);
}

.board-lower {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 23px 3px 10px;
}

.board-knob {
    position: relative;
    width: min(27%, 70px);
    aspect-ratio: 1;
    border: 9px solid #8fbeb4;
    border-radius: 50%;
    background: var(--jade);
    box-shadow: inset 0 0 0 7px #c7e8df;
}

.board-knob::after {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 5px;
    height: 20px;
    border-radius: 4px;
    background: var(--paper);
    transform: translateX(-50%);
    content: "";
}

.board-knob-two::after {
    transform: rotate(55deg);
    transform-origin: bottom;
}

.board-knob-three::after {
    transform: rotate(-44deg);
    transform-origin: bottom;
}

.board-labels {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    color: var(--jade);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
}

.drawing-strip {
    padding-top: 18px;
    color: var(--rose);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-align: center;
}

.territory {
    padding-block: 43px 42px;
    background: var(--jade-soft);
    border-bottom: 2px solid var(--line);
}

.territory h2 {
    margin-bottom: 19px;
}

.territory p:last-child {
    margin-bottom: 0;
}

.chapter {
    padding-block: 53px 54px;
}

.chapter-clean {
    background: var(--paper);
}

.chapter-rose {
    background: var(--rose-pale);
}

.chapter h2,
.diagnosis-band h2,
.repair-focus h2,
.offer-details h2 {
    max-width: 970px;
}

.chapter-aside {
    display: flex;
    align-items: flex-start;
    gap: 21px;
    margin-top: 25px;
    padding: 23px 25px;
    border-left: 7px solid var(--jade);
    background: var(--mist);
}

.aside-symbol {
    display: inline-block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-top: 4px;
    border: 8px solid var(--rose-bright);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #eed1dc;
}

.chapter-aside p {
    margin-bottom: 0;
}

.diagnosis-band {
    padding-block: 53px 56px;
    background: var(--mist);
    border-top: 5px solid var(--jade-soft);
}

.closing {
    padding-block: 43px;
    background: var(--jade);
}

.closing-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.closing-copy {
    max-width: 620px;
}

.closing .overline,
.closing h2,
.closing p {
    color: var(--paper);
}

.closing h2 {
    margin-bottom: 12px;
}

.closing p {
    margin-bottom: 0;
}

.closing .cta-primary {
    border-color: var(--rose-pale);
    background: var(--rose-pale);
    color: var(--rose);
}

.closing .cta-primary:hover {
    background: var(--paper);
}

.site-footer {
    background: var(--rose-pale);
    border-top: 3px solid var(--rose-bright);
}

.footer-layout {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    font-size: 21px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.site-footer nav a {
    color: var(--jade);
    font-weight: 800;
}

.site-footer nav a:hover {
    text-decoration: underline;
}

.site-footer nav .privacy {
    color: var(--subtle);
    font-size: 13px;
    font-weight: 500;
}

.repair-lead {
    padding-block: 54px 56px;
    background: var(--jade-soft);
    border-bottom: 5px solid var(--rose);
}

.repair-lead h1 {
    max-width: 790px;
}

.repair-lead .ctas {
    margin-top: 23px;
}

.repair-focus {
    padding-block: 49px 51px;
}

.focus-color {
    background: var(--rose-pale);
}

.repair-completion {
    padding-block: 51px 52px;
    background: var(--mist);
}

.closing-home {
    background: var(--rose);
}

.closing-home .cta-primary {
    color: var(--rose);
}

.closing-home .cta-secondary {
    border-color: var(--paper);
}

.offer-head {
    padding-block: 53px 48px;
    background: var(--rose-pale);
    border-bottom: 5px solid var(--jade);
}

.offer-head h1 {
    color: var(--rose);
}

.offer-head p:last-child {
    margin-bottom: 0;
}

.offer-details {
    padding-block: 51px 48px;
}

.service-block {
    position: relative;
    padding: 24px 0 25px 34px;
    border-bottom: 1px solid var(--line);
}

.service-block:last-child {
    border-bottom: 0;
}

.service-dot {
    position: absolute;
    top: 31px;
    left: 0;
    width: 14px;
    height: 14px;
    border: 4px solid var(--rose);
    border-radius: 50%;
    background: var(--rose-pale);
}

.service-block p:last-child {
    margin-bottom: 0;
}

.costs {
    padding-block: 52px 54px;
    background: var(--jade-soft);
}

.offer-finish {
    padding-block: 51px 56px;
}

.offer-finish .ctas {
    margin-top: 23px;
}

@media (max-width: 1150px) {
    .control-drawing {
        width: min(100%, 390px);
    }

    .closing-layout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 850px) {
    .opening-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .control-drawing {
        width: min(100%, 500px);
        margin-inline: auto;
    }
}

@media (max-width: 800px) {
    .container {
        width: calc(100% - 44px);
    }

    .header-inner {
        min-height: 72px;
    }

    .opening,
    .repair-lead,
    .offer-head {
        padding-block: 40px 46px;
    }

    .chapter,
    .repair-focus,
    .repair-completion,
    .offer-details,
    .costs,
    .offer-finish,
    .diagnosis-band {
        padding-block: 41px 44px;
    }
}

@media (max-width: 620px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-block: 14px 10px;
    }

    .brand {
        font-size: 23px;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .main-nav a {
        padding: 7px 0;
        font-size: 13px;
    }

    h1 {
        line-height: 1.13;
        overflow-wrap: break-word;
    }

    h2 {
        line-height: 1.2;
    }

    .ctas {
        flex-direction: column;
    }

    .cta {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .control-drawing {
        width: min(calc(100% - 14px), 350px);
        margin-top: 10px;
    }

    .instrument-board {
        padding: 18px;
        border-width: 8px;
    }

    .board-screen {
        height: 106px;
    }

    .board-knob {
        border-width: 7px;
    }

    .board-knob::after {
        top: 4px;
        height: 13px;
    }

    .territory {
        padding-block: 33px 34px;
    }

    .chapter-aside {
        gap: 14px;
        padding: 18px 16px;
    }

    .aside-symbol {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        border-width: 6px;
    }

    .closing {
        padding-block: 34px 37px;
    }

    .closing-layout {
        gap: 23px;
    }

    .closing-actions,
    .closing-actions .ctas {
        width: 100%;
    }

    .footer-layout {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        padding-block: 26px;
    }

    .site-footer nav {
        gap: 19px;
    }

    .service-block {
        padding-left: 26px;
    }
}
