/* Palette: white, green and blue */
:root {
    --white: #ffffff;
    --surface: #f2f7f5;
    --green: #24b86a;
    --green-dark: #198f50;
    --blue: #2477a8;
    --navy: #263b4d;
    --text: #2f3437;
    --muted: #6f7d82;
    --line: #dfe8e4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
}

.page-shell {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(38, 59, 77, 0.08);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 100%;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.site-logo img {
    display: block;
    width: auto;
    height: 44px;
    object-fit: contain;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.primary-nav a {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--green-dark);
}

.header-offer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 5px 14px rgba(36, 184, 106, 0.22);
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-offer:hover,
.header-offer:focus-visible {
    background: var(--green-dark);
    transform: translateY(-1px);
}

/* Intro */
.intro-banner {
    padding: 64px 0 42px;
    text-align: center;
    background: linear-gradient(145deg, #fbfdfc 0%, #edf5f2 100%);
    border-bottom: 1px solid var(--line);
}

.page-heading {
    max-width: 900px;
    margin: 0 auto 18px;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.18;
}

.intro-copy {
    max-width: 820px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 1.06rem;
}

.editor-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 10px 18px 10px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(38, 59, 77, 0.07);
}

.editor-photo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 12px;
    object-fit: cover;
}

.editor-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.editor-name {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
}

.editor-badge {
    display: inline-block;
    margin-left: 5px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 600;
}

.updated-on {
    color: var(--muted);
    font-size: 0.8rem;
}

/* Offers listing */
.offers-section {
    padding: 46px 0 52px;
    background: var(--surface);
}

.section-heading {
    margin-bottom: 34px;
    color: var(--navy);
    font-size: clamp(1.65rem, 3vw, 2.05rem);
    line-height: 1.25;
    text-align: center;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.operator-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 9px 26px rgba(38, 59, 77, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.operator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(38, 59, 77, 0.1);
}

.operator-rank {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--white);
    background: var(--blue);
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(36, 119, 168, 0.2);
}

.operator-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-bottom: 18px;
    padding-left: 36px;
}

.operator-logo {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: contain;
}

.operator-meta {
    min-width: 0;
}

.operator-name {
    display: block;
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.3;
}

.operator-rating {
    color: #e6a900;
    font-size: 1rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.offer-summary {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(36, 184, 106, 0.17);
    border-radius: 10px;
    background: rgba(36, 184, 106, 0.08);
    text-align: center;
}

.offer-label {
    display: block;
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.offer-value {
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.offer-terms {
    flex-grow: 1;
    margin-bottom: 22px;
    list-style: none;
}

.offer-terms li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 9px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.term-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 3px;
    color: var(--green);
}

.offer-action {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    color: var(--white);
    background: var(--blue);
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.offer-action:hover,
.offer-action:focus-visible {
    background: var(--navy);
    transform: translateY(-1px);
}

/* Editorial content */
.guide-content {
    padding: 58px 0;
}

.guide-content h2 {
    margin: 40px 0 18px;
    color: var(--navy);
    font-size: clamp(1.45rem, 2.7vw, 1.9rem);
    line-height: 1.3;
}

.guide-content h3 {
    margin: 26px 0 13px;
    color: var(--blue);
    font-size: clamp(1.15rem, 2.2vw, 1.38rem);
    line-height: 1.35;
}

.guide-content p {
    margin-bottom: 19px;
}

.guide-content ol,
.guide-content ul:not(.offer-terms) {
    margin: 0 0 22px 24px;
}

.guide-content li {
    margin-bottom: 8px;
}

.guide-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.guide-content tbody {
    display: table;
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.guide-content th,
.guide-content td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.guide-content tr:nth-child(even) {
    background: #f8faf9;
}

.faq-panel {
    margin-top: 58px;
    padding: 30px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    background: #fbfdfc;
}

.faq-panel h2:first-child {
    margin-top: 0;
}

/* Footer */
.site-footer {
    margin-top: 58px;
    padding: 46px 0 28px;
    color: var(--white);
    background: var(--navy);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-links a {
    color: #c6d0d5;
    font-size: 0.9rem;
    text-decoration: none;
}

.responsible-note {
    margin-bottom: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #b8c5ca;
    font-size: 0.8rem;
    text-align: center;
}

.rights-note {
    color: #c8d2d6;
    font-size: 0.84rem;
    text-align: center;
}

@media (max-width: 900px) {
    .primary-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-shell {
        width: min(100% - 30px, 1180px);
    }

    .site-header {
        height: 68px;
    }

    .intro-banner {
        padding: 48px 0 34px;
    }

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

    .operator-card {
        width: 100%;
    }

    .guide-content {
        padding: 46px 0;
    }
}

@media (max-width: 430px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        gap: 8px;
    }

    .site-logo img {
        width: auto;
        max-width: 118px;
        height: 36px;
    }

    .header-offer {
        gap: 5px;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 0.77rem;
        white-space: nowrap;
    }

    .header-offer svg {
        width: 16px;
        height: 16px;
    }

    .page-heading {
        font-size: 1.82rem;
    }

    .intro-copy {
        font-size: 0.98rem;
    }

    .editor-meta {
        width: 100%;
        justify-content: flex-start;
        padding-right: 12px;
    }

    .section-heading {
        margin-bottom: 26px;
    }

    .operator-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .operator-rank {
        top: 12px;
        left: 12px;
    }

    .operator-brand {
        gap: 11px;
        padding-left: 34px;
    }

    .operator-logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .operator-name {
        font-size: 1.05rem;
    }

    .offer-value {
        font-size: 1rem;
    }

    .faq-panel {
        padding: 22px 18px;
    }
}

@media (max-width: 350px) {
    .header-offer {
        padding-inline: 9px;
        font-size: 0.72rem;
    }

    .header-offer svg {
        display: none;
    }

    .site-logo img {
        max-width: 105px;
    }
}
