:root {
    --navy: #16356b;
    --ink: #1c1e2b;
    --muted: #5c6478;
    --line: #e4e7ee;
    --canvas: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-header img {
    display: block;
    height: 72px;
    width: auto;
    margin: 12px 20px;
}

main {
    flex: 1;
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.intro h1 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
}

.intro p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 32px 0 0;
    padding: 0;
}

.card {
    position: relative;
    display: block;
    border-radius: 28px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
}

a.card:hover,
a.card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(22, 53, 107, 0.16);
    outline: none;
}

a.card:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 4px;
}

.card--soon {
    cursor: default;
}

.card--soon img {
    filter: grayscale(0.25);
    opacity: 0.8;
}

.badge {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-footer {
    background: var(--ink);
    color: #fff;
}

.footer-inner {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px 48px;
    align-items: start;
}

.footer-inner > img {
    height: 64px;
    width: auto;
    grid-row: span 2;
}

.footer-label {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.social-link {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-link--instagram svg {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.social-link--facebook { background: #1877f2; }
.social-link--x { background: #000; }
.social-link--instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.social-link--youtube { background: #ff0033; }

.contacts p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #d7d7e4;
}

.contacts span {
    display: block;
    color: #9b9baf;
    font-size: 0.75rem;
}

@media (max-width: 860px) {
    .menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner > img {
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .site-header img {
        height: 48px;
        margin: 10px 12px;
    }

    .menu {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
