:root {
    --ink: #444444;
    --muted: #727272;
    --brand-red: #a31621;
    --brand-purple: #481f50;
    --brand-orange: #ed5e46;
    --soft: #f7f7f7;
    --line: #e7e2e4;
    --footer: #f0eeee;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--brand-red);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

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

.topbar {
    min-height: 36px;
    background: #8b7e83;
}

.shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    padding: 24px 0 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

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

.logo {
    width: 268px;
}

.claim {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-family: Lato, Arial, sans-serif;
    font-size: 18px;
    text-align: right;
}

main {
    background: #ffffff;
}

.intro {
    padding: 44px 0 28px;
    text-align: center;
}

.intro h1 {
    margin: 0 0 12px;
    color: #7678ed;
    font-family: Lato, Arial, sans-serif;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
}

.intro p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 22px 0 58px;
}

.service {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(40, 32, 38, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service:hover,
.service:focus {
    border-color: #d4c8cd;
    box-shadow: 0 16px 34px rgba(40, 32, 38, 0.13);
    text-decoration: none;
    transform: translateY(-3px);
}

.service img {
    width: 100%;
    aspect-ratio: 366 / 244;
    object-fit: contain;
    object-position: center;
    background: var(--soft);
}

.service-body {
    padding: 22px;
}

.service h2 {
    margin: 0 0 12px;
    color: var(--brand-purple);
    font-family: Lato, Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
}

.service p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
}

.site-footer {
    padding: 42px 0 22px;
    background: var(--footer);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
    gap: 28px;
}

.footer-logo {
    width: 268px;
    margin-bottom: 16px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #780116;
    font-family: Lato, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
}

.site-footer h4 {
    margin: 4px 0 8px;
    color: var(--brand-orange);
    font-family: Lato, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.site-footer p,
.site-footer ul {
    margin: 0 0 10px;
    padding: 0;
}

.site-footer ul {
    list-style: none;
}

.site-footer li + li {
    margin-top: 6px;
}

.credits {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #ddd6d9;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    .services,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .claim {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .shell {
        width: min(var(--max), calc(100% - 24px));
    }

    .site-header {
        padding-top: 18px;
    }

    .intro {
        padding-top: 32px;
    }

    .service-body {
        padding: 18px;
    }
}
