* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111;
}

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

.page-shell {
    width: min(100%, 100vw);
    margin: 0 auto;
    background: #ffffff;
    box-shadow: none;
}

.topbar,
.hero-grid,
.bottom-grid {
    background: #e4e4e4;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    padding: 24px clamp(28px, 5vw, 72px) 18px;
}

.topbar h1,
.hero-grid h2,
.section-title,
.bottom-grid h2 {
    margin: 0;
    font-weight: 700;
}

.topbar h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.topbar p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    padding-top: 4px;
}

.main-nav a {
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    padding: 0 8px;
}

.main-nav a + a::before {
    content: "|";
    position: absolute;
    left: -2px;
    color: #111;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    padding: 18px clamp(28px, 5vw, 72px) 32px;
}

.intro-card h2,
.about-card h2 {
    font-size: 17px;
    margin-bottom: 14px;
}

.intro-card p,
.about-card p,
.about-card li,
.howto-card p,
.howto-card li,
.product-card p,
.order-card p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
    transform: translateY(-1px);
}

.hero-button-secondary {
    background: transparent;
    color: #111;
}

.about-card ol,
.howto-card ol {
    margin: 4px 0 0 18px;
    padding: 0;
}

.content-area {
    padding: 22px 0 0;
}

.products-section {
    padding: 0 clamp(24px, 4vw, 56px) 24px;
}

.section-title {
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 28px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
    background: #f5f5f5;
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    outline: none;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    align-self: flex-start;
    padding-left: 6px;
}

.product-photo,
.brand-logo {
    width: min(100%, 165px);
    border-radius: 26px;
}

.product-photo {
    height: 232px;
    object-fit: cover;
    background: #f3f3f3;
}

.brand-logo {
    height: 92px;
    margin-top: 8px;
    object-fit: cover;
    background: #ffffff;
}

.logo-plain {
    object-fit: contain;
    border-radius: 0;
    padding: 12px;
}

.logo-contain {
    object-fit: contain;
    background: #ffffff;
    padding: 6px;
}

.adidas-badge {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #000000;
    overflow: hidden;
}

.adidas-badge::before,
.adidas-badge::after {
    content: "";
    position: absolute;
    background: #ffffff;
    border-radius: 3px;
}

.adidas-badge::before {
    width: 14px;
    height: 34px;
    top: 16px;
    left: 32px;
    transform: rotate(-28deg);
    box-shadow: 22px 6px 0 #ffffff, 44px 12px 0 #ffffff;
}

.adidas-badge::after {
    left: 12px;
    right: 12px;
    bottom: 18px;
    height: 4px;
}

.adidas-badge span {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    text-transform: lowercase;
    margin-bottom: 14px;
}

.product-card p {
    width: min(100%, 165px);
    margin-top: 8px;
}

.product-hint {
    width: min(100%, 165px);
    margin-top: 8px;
    color: #4a4a4a;
    font-size: 10px;
    font-weight: 700;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 16px clamp(28px, 5vw, 72px) 22px;
    align-items: start;
}

.howto-card h2,
.order-card h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.order-form {
    margin-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.form-row-top,
.form-row-single,
.form-row:last-of-type {
    grid-template-columns: 1fr;
}

.order-form input,
.order-form textarea,
.order-form select,
.order-form button {
    width: 100%;
    border: none;
    border-radius: 999px;
    font: inherit;
}

.order-form input,
.order-form textarea,
.order-form select {
    padding: 8px 14px;
    background: #ffffff;
    font-size: 12px;
}

.order-form textarea {
    min-height: 34px;
    border-radius: 20px;
    resize: vertical;
}

.order-form button {
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
}

.order-form button:hover,
.order-form button:focus-visible {
    background: #222;
}

.form-feedback {
    min-height: 16px;
    margin-top: 8px;
    color: #0f5f24;
    font-size: 12px;
}

.form-feedback.is-error {
    color: #9d1313;
}

.main-nav a.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.product-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.payment-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 60;
}

.payment-popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 20px;
    width: min(720px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 22px;
}

.payment-card {
    position: relative;
    width: min(480px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    text-align: center;
}

.payment-card h2,
.payment-card p {
    margin: 0 0 12px;
}

.payment-actions,
.payment-fields {
    display: grid;
    gap: 10px;
}

.payment-fields input,
.payment-fields select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 11px 14px;
    font: inherit;
    background: #fff;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    background: #f1f1f1;
}

.modal-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.modal-brand {
    color: #666;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-copy h2,
.modal-copy p {
    margin: 0;
}

.footer {
    background: #171717;
    color: #ffffff;
    text-align: center;
    padding: 14px 16px 18px;
}

.footer p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 920px) {
    .topbar,
    .hero-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar {
        gap: 14px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        justify-items: center;
    }

    .product-card h3 {
        align-self: center;
        padding-left: 0;
    }

    .product-modal-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: calc(100% - 16px);
        margin-top: 8px;
    }

    .topbar,
    .hero-grid,
    .bottom-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .products-section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
