:root {
    --text: #355b78;
    --blue: #356fa8;
    --blue-light: #edf4fd;
    --teal: #078c9a;
    --teal-light: #e7f7f8;
    --berry: #ad487d;
    --berry-light: #fff0f7;
    --lavender: #f0f1ff;
    --line: #bfdbe6;
    --white: #fff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--berry);
}

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

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

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 0;
    color: var(--blue);
}

h1 {
    font-size: 40px;
    line-height: 1.12;
    overflow-wrap: anywhere;
    margin-bottom: 24px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
}

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

.service-hours {
    background: var(--teal);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .045em;
}

.service-hours__inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-header__inside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    text-decoration: none;
    color: var(--blue);
    white-space: nowrap;
}

.wordmark strong {
    font-size: 19px;
    color: var(--teal);
}

.wordmark__dial {
    display: inline-block;
    position: relative;
    width: 41px;
    height: 41px;
    border: 5px solid var(--teal);
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 4px var(--blue-light);
    flex: none;
}

.wordmark__dial::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 11px;
    left: 14px;
    top: 5px;
    border-radius: 3px;
    background: var(--berry);
    transform: rotate(44deg);
    transform-origin: bottom center;
}

.wordmark__dial::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    left: 13px;
    top: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a {
    padding: 10px 17px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    border-radius: 5px;
}

.desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
    background: var(--teal-light);
    color: var(--teal);
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    border: 2px solid var(--teal);
    color: var(--teal);
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav nav {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--white);
    border: 2px solid var(--teal);
    box-shadow: 0 9px 25px #5b8fab2a;
}

.mobile-nav nav a {
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 700;
}

.opening {
    background: var(--blue-light);
    border-bottom: 5px solid var(--teal);
    padding: 37px 0 43px;
}

.opening__tag {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 19px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.opening__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--berry);
    box-shadow: 0 0 0 4px var(--berry-light);
}

.opening__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(280px, .9fr);
    gap: clamp(24px, 4vw, 62px);
    align-items: center;
}

.opening__copy p:last-of-type {
    margin-bottom: 21px;
}

.actions {
    display: flex;
    align-items: stretch;
    gap: 11px;
    flex-wrap: wrap;
}

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.action:active {
    transform: translateY(1px);
}

.action--call {
    background: var(--berry);
    color: var(--white);
    border: 2px solid var(--berry);
}

.action--call:hover {
    color: var(--white);
    background: #933562;
    border-color: #933562;
}

.action--online {
    color: var(--teal);
    background: var(--white);
    border: 2px solid var(--teal);
}

.action--online:hover {
    color: var(--white);
    background: var(--teal);
}

.instrument {
    position: relative;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    padding: 16px 19px 18px;
    box-shadow: 13px 13px 0 #d0eafa;
}

.instrument__heading, .instrument__caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--teal);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .09em;
}

.instrument__heading {
    padding-bottom: 11px;
    border-bottom: 1px dashed var(--line);
}

.instrument__caption {
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.instrument__seal {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--berry);
    color: var(--berry);
    border-radius: 50%;
    font-size: 11px;
    transform: rotate(-13deg);
}

.machine {
    position: relative;
    margin: 22px auto;
    width: min(100%, 225px);
    height: 232px;
    border: 6px solid var(--blue);
    border-radius: 14px 14px 8px 8px;
    background: #f3fbff;
    box-shadow: inset 0 -11px 0 #daeef8;
}

.machine__controls {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    border-bottom: 5px solid var(--blue);
    background: #deeffa;
}

.machine__knob {
    width: 23px;
    height: 23px;
    border: 4px solid var(--teal);
    border-radius: 50%;
    background: #fff;
    position: relative;
}

.machine__knob::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 7px;
    background: var(--berry);
    left: 6px;
    top: 0;
    transform: rotate(35deg);
}

.machine__display {
    width: 55px;
    height: 16px;
    border: 3px solid var(--teal);
    border-radius: 2px;
    background: #baf2ed;
    margin-left: auto;
}

.machine__lamp {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--berry);
}

.machine__chamber {
    position: absolute;
    inset: 54px 20px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.machine__center {
    width: min(100%, 142px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 14px solid var(--teal);
    background: radial-gradient(circle at 38% 32%, #fff 0 8%, #a3e5e7 9% 38%, #438ebc 40% 100%);
    box-shadow: 0 0 0 5px #d2ebf8, inset 0 0 0 7px #74c4d6;
}

.machine__bottom {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    border-top: 3px solid #b9d9e7;
}

.machine--dish .machine__chamber {
    inset: 58px 17px 26px;
    border: 5px solid var(--teal);
    border-radius: 4px;
    background: linear-gradient(transparent 49%, #b5e6ed 50% 52%, transparent 53%);
}

.machine--dish .machine__center {
    position: absolute;
    width: 78%;
    height: 19px;
    aspect-ratio: auto;
    top: 31px;
    border-radius: 2px;
    border: 4px solid var(--blue);
    background: repeating-linear-gradient(90deg, #a9dae6 0 11px, var(--blue) 11px 14px);
    box-shadow: none;
}

.machine--dish .machine__detail {
    position: absolute;
    bottom: 28px;
    width: 78%;
    height: 19px;
    border: 4px solid var(--blue);
    background: repeating-linear-gradient(90deg, #a9dae6 0 9px, var(--blue) 9px 12px);
}

.machine--dish .machine__detail--second {
    height: 6px;
    width: 90%;
    bottom: 12px;
    background: var(--berry);
    border: 0;
}

.machine--cold {
    max-width: 172px;
    height: 253px;
    border-radius: 12px;
}

.machine--cold .machine__controls {
    display: none;
}

.machine--cold .machine__chamber {
    inset: 7px 0 0;
    border-top: 0;
}

.machine--cold .machine__center {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 76px;
    border: 0;
    border-radius: 0;
    border-bottom: 7px solid var(--blue);
    background: linear-gradient(90deg, #ebf8ff, #c9eaf7);
    box-shadow: none;
}

.machine--cold .machine__center::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 26px;
    height: 33px;
    width: 6px;
    background: var(--teal);
    border-radius: 4px;
}

.machine--cold .machine__detail {
    position: absolute;
    right: 14px;
    top: 111px;
    height: 65px;
    width: 6px;
    border-radius: 4px;
    background: var(--teal);
}

.machine--cold .machine__detail--second {
    left: 10px;
    right: 10px;
    top: 88px;
    width: auto;
    height: 2px;
    background: #afdce9;
}

.machine--oven .machine__chamber {
    inset: 57px 12px 25px;
    border: 8px solid var(--teal);
    border-radius: 7px;
    background: #bbdfe9;
    box-shadow: inset 0 -12px 0 #5b9fbc;
}

.machine--oven .machine__center {
    width: 96px;
    height: 79px;
    aspect-ratio: auto;
    border: 7px solid #5d9fbc;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent 47%, #78bed0 48% 52%, transparent 53%);
    box-shadow: none;
}

.machine--oven .machine__detail {
    position: absolute;
    height: 6px;
    left: 19px;
    right: 19px;
    bottom: 19px;
    background: var(--berry);
}

.machine--oven .machine__detail--second {
    bottom: auto;
    top: 16px;
    background: #e3f6fb;
}

.chapter {
    padding: 35px 0 37px;
    border-bottom: 1px solid var(--line);
}

.chapter--local {
    background: var(--teal-light);
}

.chapter--soft {
    background: var(--lavender);
}

.chapter__header {
    display: flex;
    align-items: flex-start;
    gap: 19px;
    margin-bottom: 18px;
}

.chapter__marker {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin-top: 1px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    color: var(--teal);
    font-weight: 800;
    font-size: 14px;
    background: var(--white);
}

.chapter__kicker {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--berry);
}

.chapter__content {
    margin-left: 68px;
    max-width: 1030px;
    border-left: 3px solid #b5e2e8;
    padding-left: 22px;
}

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

.chapter__content strong {
    color: var(--blue);
}

.chapter--local .chapter__content {
    border-left-color: var(--teal);
}

.chapter--soft .chapter__content {
    border-left-color: #c2bbeb;
}

.contact-band {
    background: var(--blue);
    color: var(--white);
    padding: 30px 0;
}

.contact-band__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.contact-band h2 {
    color: var(--white);
    margin-bottom: 8px;
}

.contact-band p {
    max-width: 690px;
    margin: 0;
}

.contact-band .actions {
    flex: none;
}

.contact-band .action--call {
    border-color: var(--white);
}

.site-footer {
    padding: 28px 0 31px;
    background: #e4f0fa;
}

.site-footer__layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-footer p {
    margin: 12px 0 0;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 19px;
}

.site-footer__nav a {
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.site-footer__nav a:last-child {
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 1100px) {
    .opening__layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(250px, .9fr);
        gap: 26px;
    }

    .contact-band__content {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .opening__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .instrument {
        width: min(100%, 360px);
        margin-inline: auto;
    }

    .opening {
        padding: 28px 0 39px;
    }

    .site-footer__layout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 660px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .service-hours__inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0 12px;
    }

    .service-hours__inner span {
        text-align: center;
    }

    .site-header__inside {
        padding: 12px 0;
    }

    .chapter {
        padding: 30px 0;
    }

    .chapter__header {
        gap: 12px;
    }

    .chapter__marker {
        width: 37px;
        height: 37px;
        font-size: 12px;
    }

    .chapter__content {
        margin-left: 0;
        padding-left: 14px;
    }

    .contact-band {
        padding: 29px 0;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(100% - 30px, 1180px);
    }

    .wordmark {
        font-size: 19px;
        gap: 8px;
    }

    .wordmark strong {
        font-size: 15px;
    }

    .wordmark__dial {
        width: 34px;
        height: 34px;
    }

    .wordmark__dial::before {
        left: 11px;
        top: 3px;
    }

    .wordmark__dial::after {
        left: 10px;
        top: 9px;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .action {
        width: 100%;
    }

    .contact-band .actions {
        flex: auto;
    }

    .opening__tag {
        font-size: 11px;
    }

    .chapter__header {
        align-items: flex-start;
    }
}
