/* Core palette and layout */
:root {
    --green: #0b7f43;
    --white: #ffffff;
    --red: #c9323b;
    --dark: #30343a;
    --light-grey: #f5f6f4;
    --line: #e8e8e8;
    --shadow: 0 5px 16px rgba(0,0,0,0.09);
    --transition: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.62;
    color: var(--dark);
    background-color: var(--light-grey);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 9px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 13px rgba(0,0,0,0.09);
    border-bottom: 2px solid var(--green);
}

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

.site-logo {
    min-width: 0;
}

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

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

.primary-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    transition: var(--transition);
}

.primary-nav a:hover {
    color: var(--green);
}

.header-offer-link {
    background: var(--red);
    color: var(--white);
    padding: 9px 14px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-offer-link:hover {
    background: #a92730;
}

/* Intro */
.intro-panel {
    background: var(--white);
    padding: 36px 0 34px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.intro-panel h1 {
    font-size: 2.15rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--green);
}

.intro-panel p {
    max-width: 820px;
    margin: 0 auto 20px;
    font-size: 1.06rem;
    color: #62666b;
}

.editor-meta {
    display: inline-flex;
    align-items: center;
    text-align: left;
    margin-top: 18px;
    gap: 12px;
    padding: 10px 18px;
    background: var(--light-grey);
    border: 1px solid #eceeea;
    border-radius: 14px;
}

.editor-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green);
}

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

.editor-name {
    font-weight: 700;
    font-size: 1rem;
}

.editor-badge {
    color: var(--green);
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.review-date {
    font-size: 0.75rem;
    color: #7d8186;
}

/* Offers listing */
.offers-section {
    padding: 38px 0 42px;
}

.offers-title {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.78rem;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.operator-card {
    background: var(--white);
    border-radius: 12px;
    padding: 23px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-width: 0;
    box-shadow: var(--shadow);
    border: 1px solid #ececec;
    border-left: 4px solid var(--green);
    transition: var(--transition);
}

.operator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.12);
}

.rank-badge {
    position: absolute;
    top: -11px;
    left: -10px;
    background: var(--green);
    color: var(--white);
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}

.operator-brand {
    flex: 0 0 175px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.operator-logo {
    max-width: 138px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.operator-name {
    font-weight: 700;
    font-size: 1.08rem;
}

.rating {
    color: #dcae00;
    letter-spacing: 2px;
}

.offer-details {
    flex: 1 1 240px;
    min-width: 0;
    text-align: center;
    padding: 0 20px;
}

.offer-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #80848a;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.04em;
}

.offer-copy {
    font-size: 1.34rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1.22;
}

.operator-points {
    flex: 1 1 250px;
    min-width: 0;
    list-style: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 0 20px;
}

.operator-points li {
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #555b61;
}

.operator-points li:last-child {
    margin-bottom: 0;
}

.operator-points svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: var(--green);
}

.operator-action {
    flex: 0 0 168px;
    max-width: 100%;
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 13px 16px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
}

.operator-action:hover {
    background: var(--dark);
    color: var(--white);
}

/* Editorial content */
.editorial-content {
    background: var(--white);
    padding: 42px 0;
}

.editorial-content p {
    margin-bottom: 20px;
}

.editorial-content h2 {
    margin: 34px 0 18px;
    font-size: 1.78rem;
    line-height: 1.25;
    color: var(--green);
}

.editorial-content h3 {
    margin: 25px 0 14px;
    font-size: 1.38rem;
    line-height: 1.3;
}

.editorial-content ul,
.editorial-content ol {
    margin: 0 0 20px 22px;
}

.editorial-content li {
    margin-bottom: 9px;
}

/* Content tables */
.data-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid #ededed;
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

table td,
table th {
    padding: 14px;
    border: 1px solid #ececec;
}

table th {
    background: var(--green);
    color: var(--white);
}

table tr:nth-child(even) {
    background-color: #fbfcfb;
}

/* FAQ */
.faq-panel {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid var(--light-grey);
}

.faq-entry {
    background: #f7f8f6;
    padding: 19px 20px;
    border: 1px solid #eceeea;
    border-radius: 8px;
    margin-bottom: 14px;
}

.faq-entry h3 {
    margin-top: 0;
    font-size: 1.08rem;
    color: var(--dark);
}

/* Footer */
.site-footer {
    background: #2d3136;
    color: var(--white);
    padding: 36px 0;
    text-align: center;
}

.responsible-note {
    font-size: 0.8rem;
    color: #c4c6c8;
    margin-bottom: 18px;
    line-height: 1.45;
}

.footer-copy {
    font-size: 0.88rem;
    opacity: 0.72;
}

/* Tablet */
@media (max-width: 992px) {
    .operator-card {
        padding: 20px;
    }

    .operator-points {
        display: none;
    }

    .operator-brand {
        flex-basis: 165px;
    }

    .operator-action {
        flex-basis: 160px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .primary-nav {
        display: none;
    }

    .site-header {
        padding: 8px 0;
    }

    .header-layout {
        gap: 8px;
    }

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

    .header-offer-link {
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    .intro-panel {
        padding: 28px 0;
    }

    .intro-panel h1 {
        font-size: 1.58rem;
    }

    .intro-panel p {
        font-size: 1rem;
    }

    .operator-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 13px;
        padding: 28px 14px 18px;
        width: 100%;
        overflow: hidden;
    }

    .operator-brand {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
    }

    .offer-details {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .operator-action {
        order: 3;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        padding: 14px;
    }

    .operator-points {
        order: 4;
        display: block;
        width: 100%;
        border: 0;
        padding: 2px 0 0;
        text-align: left;
    }

    .operator-points li {
        justify-content: center;
    }

    .editor-meta {
        border-radius: 12px;
        padding: 10px 14px;
    }

    .editorial-content h2 {
        font-size: 1.55rem;
    }

    .editorial-content h3 {
        font-size: 1.25rem;
    }
}

/* Small mobile: keep brand, offer and CTA immediately accessible */
@media (max-width: 480px) {
    .site-logo img {
        height: 33px;
        max-width: 108px;
    }

    .header-offer-link {
        padding: 7px 9px;
        font-size: 0.72rem;
        border-radius: 6px;
    }

    .intro-panel h1 {
        font-size: 1.38rem;
    }

    .offers-title {
        font-size: 1.5rem;
    }

    .offer-copy {
        font-size: 1.18rem;
    }

    .operator-points {
        display: none;
    }

    .editor-meta {
        display: grid;
        grid-template-columns: 46px 1fr;
        text-align: left;
        width: 100%;
        max-width: 340px;
    }

    .editor-photo {
        width: 46px;
        height: 46px;
    }

    .editor-details {
        min-width: 0;
    }
}

@media (max-width: 350px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

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

    .header-offer-link {
        font-size: 0.68rem;
        padding: 7px 8px;
    }

    .operator-card {
        padding-left: 12px;
        padding-right: 12px;
    }
}