* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #050505;
    background: #ffffff;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dedede;
}

.brand,
nav a,
footer a {
    color: #111111;
    text-decoration: none;
}

.brand {
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 800;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 24px;
}

.menu-close {
    display: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

nav a,
footer a {
    font-size: 13px;
    font-weight: 300;
}

.case-hero {
    min-height: 52svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
    justify-content: center;
    width: min(100%, 1120px);
    margin: 0 auto;
    align-items: stretch;
    background: #f5f5f5;
}

.hero-image {
    min-height: 360px;
    background: #ffffff;
}

.hero-copy {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
}

.hero-copy p,
.hero-copy h1 {
    text-align: center;
}

.hero-copy p {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(48px, 9vw, 112px);
    line-height: 0.96;
    font-weight: 800;
}

.section-pad {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(44px, 7vw, 84px) 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-pad > * {
    width: 100%;
}

.recent-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 194px);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 408px;
    margin: 0 auto;
    justify-content: center;
}

.work-item {
    width: 100%;
    height: 100%;
    padding: 18px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
}

.work-item a {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.work-item a:focus-visible {
    outline: 2px solid #555555;
    outline-offset: 2px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(32px, 8vw, 120px);
    align-items: center;
}

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

h2 {
    margin-bottom: 18px;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
}

.tools,
.problem {
    text-align: center;
}

.tools ul {
    margin: 0;
    padding: 0;
    color: #5a5a5a;
    list-style: none;
    font-size: 15px;
    line-height: 1.65;
}

.problem p {
    max-width: 660px;
    margin: 0 auto;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.55;
}

.journey img {
    width: 100%;
    max-height: 76vh;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid #f1c27d;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    margin-top: 28px;
}

.type-grid article {
    padding-bottom: 30px;
    border-bottom: 1px solid #999999;
}

.font-label {
    margin-bottom: 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    font-weight: 300;
}

.font-label.bold,
.alphabet.bold {
    font-weight: 800;
}

.alphabet {
    display: inline-block;
    margin: 0 40px 0 0;
    color: #333333;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: middle;
}

.type-grid span {
    color: #444444;
    font-size: 17px;
}

.swatches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
    width: min(100%, 600px);
    margin: 48px auto 0;
}

.swatches figure {
    margin: 0;
    text-align: center;
}

.swatches span {
    display: block;
    aspect-ratio: 1;
    border: 1px solid #777777;
}

.swatches .black {
    background: #000000;
}

.swatches .white {
    background: #ffffff;
}

.swatches figcaption {
    margin-top: 10px;
    font-size: 14px;
}

.map-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 16px;
}

.map-flow article {
    min-height: 112px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid #bdbdbd;
    background: #ffffff;
    font-weight: 700;
    text-align: center;
}

.wire-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 34px;
    align-items: start;
}

.phone {
    min-height: 420px;
    padding: 28px;
    border: 1px solid #9d9d9d;
    background: #ffffff;
}

.login .logo {
    width: 96px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 58px;
    background: #d9d9d9;
    font-size: 13px;
    font-weight: 700;
}

.login label {
    display: block;
    margin-bottom: 24px;
    font-size: 11px;
}

.login label span {
    display: block;
    height: 42px;
    margin-top: 8px;
    border: 1px solid #9d9d9d;
}

.login p {
    font-size: 10px;
    line-height: 1.5;
}

.mini-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-top span {
    width: 28px;
    height: 24px;
    border: 1px solid #b5b5b5;
}

.menu h3,
.detail h3,
.payment h3 {
    margin: 18px 0 8px;
    font-size: 15px;
    text-align: left;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.card-row span,
.wide-card,
.detail-image {
    display: block;
    min-height: 68px;
    border-radius: 8px;
    background: #d9d9d9;
}

.wide-card {
    min-height: 76px;
}

.detail {
    padding-top: 0;
}

.detail-image {
    min-height: 112px;
    margin: 0 -28px 28px;
    border-radius: 0;
}

.detail p {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #777777;
    font-size: 13px;
}

button {
    width: 100%;
    min-height: 48px;
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.payment {
    display: flex;
    flex-direction: column;
}

.qty {
    font-size: 24px;
    line-height: 1.5;
}

.totals {
    margin-top: auto;
    text-align: right;
    font-size: 12px;
    line-height: 1.55;
}

.contact-form-section {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(44px, 7vw, 84px) 20px;
    background: #ffffff;
    text-align: center;
}

.contact-form-section p {
    max-width: 520px;
    margin: 0 auto 24px;
    color: #4f4f4f;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
    color: #111111;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    font: inherit;
    font-size: 14px;
    color: #111111;
    background: #ffffff;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.contact-form button {
    width: auto;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid #111111;
    border-radius: 4px;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form button[type="submit"] {
    background: #111111;
    color: #ffffff;
}

.contact-form button[type="submit"]:hover {
    background: #3f3f3f;
}

.contact-form button[type="reset"]:hover {
    background: #f0f0f0;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 36px 20px;
    background: #ffffff;
    border-top: 1px solid #dedede;
}

footer p {
    width: 100%;
    margin: 4px 0 0;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 900px) {
    .case-hero,
    .intro-grid,
    .type-grid {
        grid-template-columns: 1fr;
    }

    .wire-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .site-header {
        align-items: center;
        padding: 16px 18px;
    }

    .brand {
        font-size: 22px;
    }

    .menu-toggle {
        display: block;
    }

    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 18px;
        background: #ffffff;
        border-bottom: 1px solid #dedede;
    }

    #nav-menu.active {
        display: flex;
    }

    .menu-close {
        display: block;
        align-self: center;
        width: 44px;
        min-height: 44px;
        margin-top: 8px;
        border: 0;
        background: transparent;
        color: #111111;
        font: inherit;
        font-size: 32px;
        line-height: 1;
        cursor: pointer;
    }

    nav a {
        padding: 10px 0;
    }

    .case-hero {
        min-height: auto;
    }

    .hero-image {
        min-height: 240px;
    }

    .hero-copy {
        min-height: 220px;
        padding: 42px 20px;
    }

    .section-pad {
        padding: 42px 18px;
    }

    .tools h2,
    .problem h2 {
        text-align: center;
    }

    .tools ul {
        text-align: center;
    }

    .problem p {
        font-size: 16px;
        text-align: center;
    }

    .type-grid {
        gap: 34px;
    }

    .font-label {
        overflow-wrap: anywhere;
    }

    .alphabet {
        display: block;
        margin: 0 0 10px;
    }

    .journey {
        overflow-x: auto;
    }

    .journey img {
        width: 760px;
        max-width: none;
    }

    .wire-grid,
    .swatches,
    .map-flow {
        grid-template-columns: 1fr;
    }

    .phone {
        width: min(100%, 340px);
        min-height: 390px;
        margin: 0 auto;
    }

    .recent-work-grid {
        grid-template-columns: 194px;
        max-width: 194px;
    }
}

@media (max-width: 420px) {
    .brand {
        font-size: 19px;
    }

    .hero-copy h1 {
        font-size: 54px;
    }

    .swatches {
        gap: 22px;
    }

    .phone {
        padding: 22px;
    }

    .detail-image {
        margin-right: -22px;
        margin-left: -22px;
    }
}
