:root {
    --navy: #00267c;
    --navy-deep: #001a54;
    --blue: #0077e9;
    --yellow: #f3c300;
    --ink: #1c2434;
    --muted: #5c6b80;
    --line: #e4e9f2;
    --bg: #ffffff;
    --topbar: #f4f5f7;
    --whatsapp: #128c7e;
    --radius: 16px;
    --font: "Inter", "Segoe UI", sans-serif;
    --max: 1140px;
    --shadow: 0 12px 30px rgba(0, 26, 84, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

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

a {
    color: var(--navy);
}

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

h1,
h2,
h3 {
    line-height: 1.2;
}

.container {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    background: var(--yellow);
    color: var(--navy-deep);
    padding: 0.6rem 1rem;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

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

.topbar {
    background: var(--topbar);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
}

.topbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.topbar__note {
    font-weight: 500;
    color: var(--muted);
    font-size: 0.85rem;
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__list a {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav__list a[href*="catalogos"] {
    background: var(--yellow);
    color: var(--navy-deep);
}

.primary-nav__list a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle__close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: inline-flex;
}

.brand {
    padding: 1.1rem 0 1.25rem;
}

.brand__link,
.custom-logo-link {
    display: inline-block;
    max-width: 520px;
}

.brand img,
.custom-logo {
    width: 100%;
    height: auto;
}

.hero {
    padding: 2.5rem 0 0.5rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--navy);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
}

.hero__lead {
    max-width: 38rem;
    margin: 0.8rem auto 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.contacts {
    padding: 2.5rem 0 1rem;
}

.contacts h2,
.catalog-section h2,
.page-intro h1,
.entry h1 {
    text-align: center;
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
}

.contact-grid,
.services__grid,
.catalog-grid,
.footer-links,
.store-info {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 6.2rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.contact-card:hover,
.contact-card:focus-visible {
    background: var(--navy-deep);
    color: #fff;
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #8eb6ff;
}

.contact-card--whatsapp .contact-card__icon {
    color: #25d366;
    background: rgba(37, 211, 102, 0.15);
}

.contact-card__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.contact-card__value,
.contact-card__note {
    overflow-wrap: anywhere;
}

.contact-card__note {
    font-size: 0.75rem;
    opacity: 0.8;
}

.catalog-section {
    padding: 1.5rem 0;
}

.catalog-section h2 {
    margin: 0.5rem 0 1.4rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.catalog-card:hover {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.catalog-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    background: #f7f8fb;
    border: 1px solid var(--line);
}

.catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-card__name {
    display: block;
    margin-top: 0.45rem;
    padding: 0.85rem 0.6rem;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.catalog-more {
    margin: 0.5rem 0 2.5rem;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.3rem;
    background: var(--yellow);
    color: var(--navy-deep);
    font-weight: 800;
    text-decoration: none;
}

.button:hover {
    background: #ffd84a;
    color: var(--navy-deep);
}

.services {
    position: relative;
    margin-top: 1rem;
    padding: 4.5rem 0;
    background: var(--navy) url("../img/services-bg.jpg") center / cover no-repeat;
    color: #fff;
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 124, 0.86);
}

.services .container {
    position: relative;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.services h3 {
    margin: 0.4rem 0;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.services a {
    color: #fff;
    font-weight: 700;
}

.services img {
    width: 92px;
    height: auto;
}

.page-content {
    padding: 1.5rem 0 3.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb span[aria-current="page"]::before {
    content: "/";
    margin-right: 0.4rem;
    color: var(--muted);
}

.entry,
.page-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.page-intro {
    max-width: none;
}

.entry h1,
.page-intro h1 {
    margin-top: 0;
}

.entry-content h2 {
    margin-top: 1.8rem;
    color: var(--navy);
    text-align: left;
    font-size: 1.35rem;
}

.entry-content p,
.entry-content li {
    color: #334155;
}

.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
    color: #fff;
    padding: 2.5rem 0 1.4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem 3rem;
}

.site-footer h2 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links a,
.store-info a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover,
.store-info a:hover {
    text-decoration: underline;
}

.footer-links li + li,
.store-info li + li {
    margin-top: 0.45rem;
}

.store-info__note {
    color: rgba(255, 255, 255, 0.85);
}

.footer-badges {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

.feder-link {
    max-width: 500px;
    margin-left: auto;
}

.footer-copy {
    width: min(var(--max), calc(100% - 2rem));
    margin: 2rem auto 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.catalog-cover-preview {
    width: 160px;
    height: auto;
}

@media (max-width: 980px) {
    .contact-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
    }

    .topbar__inner {
        flex-wrap: wrap;
        padding: 0.6rem 0;
    }

    .primary-nav {
        display: none;
        flex: 1 1 100%;
        padding-bottom: 0.6rem;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-nav__list a {
        text-align: center;
    }

    .topbar__note {
        display: none;
    }

    .footer-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .feder-link {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
