:root {
    --bg: #f7fafc;
    --text: #172033;
    --muted: #5f6f85;
    --accent: #176b87;
    --accent-dark: #0f4f66;
    --panel: #ffffff;
    --line: #d9e1ec;
    --danger: #b42318;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.icon-sprite {
    height: 0;
    position: absolute;
    width: 0;
}

.icon {
    display: inline-block;
    fill: currentColor;
    flex: 0 0 auto;
    height: 18px;
    vertical-align: -3px;
    width: 18px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

.brand {
    align-items: center;
    color: var(--text);
    display: flex;
    font-size: 25px;
    font-weight: 800;
    gap: 11px;
}

.brand img {
    display: block;
    height: 32px;
    object-fit: contain;
    transform: translateY(-1px);
    width: 32px;
}

.brand span {
    line-height: 0.95;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav a,
.nav .button {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.nav > a:not(.button) {
    border-radius: 999px;
    color: var(--accent-dark);
    font-weight: 700;
    padding: 8px 10px;
}

.nav > a:not(.button):hover {
    background: #e9f6f7;
    text-decoration: none;
}

.nav-login {
    padding-left: 14px;
    padding-right: 14px;
}

.nav-cta {
    box-shadow: 0 10px 22px rgba(15, 79, 102, 0.16);
}

.button {
    display: inline-block;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 700;
}

.button:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.button.secondary {
    background: #ffffff;
    color: var(--accent);
}

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero, .page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px 24px;
}

.page-tight {
    padding-bottom: 0;
    padding-top: 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 42px;
    align-items: center;
}

h1 {
    font-size: 46px;
    line-height: 1.05;
    margin: 0 0 18px;
}

.title-with-icon {
    align-items: center;
    display: flex;
    gap: 10px;
}

.title-with-icon .icon {
    background: #e9f6f7;
    border: 1px solid #b9dfe5;
    border-radius: 8px;
    color: var(--accent-dark);
    height: 36px;
    padding: 8px;
    width: 36px;
}

h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

p {
    line-height: 1.6;
    margin: 0 0 14px;
}

.muted { color: var(--muted); }

.section-header {
    max-width: 720px;
    margin-bottom: 22px;
}

.public-hero {
    max-width: 760px;
    margin-bottom: 24px;
}

.public-hero h1 {
    margin-bottom: 12px;
}

.eyebrow {
    color: var(--accent-dark);
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.feature-list {
    border-top: 1px solid var(--line);
    list-style: none;
    margin: 18px 0 0;
    padding: 16px 0 0;
}

.feature-list li {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 9px;
    padding-left: 22px;
    position: relative;
}

.feature-list li::before {
    background: var(--accent);
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 2px;
    position: absolute;
    top: 9px;
    width: 7px;
}

.rating-widget {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 26px;
    padding: 18px 20px;
}

.rating-widget p {
    margin-bottom: 0;
}

.rating-stars {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

.rating-stars button {
    background: transparent;
    border: 0;
    color: #b7c3d4;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 3px;
}

.rating-stars button:hover,
.rating-stars button:focus,
.rating-stars button.active {
    color: #f4a62a;
}

.rating-stars button:disabled {
    cursor: progress;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.content-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.plans-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.plan-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 22px;
}

.plan-card.featured {
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(23, 107, 135, 0.12);
}

.plan-card.individual-plan {
    background: linear-gradient(180deg, #ffffff 0%, #f0faf9 100%);
    border-width: 2px;
}

.plan-card h3 {
    font-size: 21px;
    margin: 0;
}

.badge {
    align-self: flex-start;
    background: #e9f6f7;
    border: 1px solid #b9dfe5;
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 9px;
}

.price {
    color: var(--text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.price span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    margin-left: 4px;
}

.plan-card ul {
    margin: 0;
    padding-left: 18px;
}

.plan-card li {
    line-height: 1.55;
    margin-bottom: 4px;
}

.plan-note {
    background: #ffffff;
    border: 1px solid #b9dfe5;
    border-radius: 8px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
    margin: auto 0 0;
    padding: 10px;
}

.cookie-banner {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 18px;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.18);
    display: flex;
    gap: 18px;
    left: 50%;
    max-width: 860px;
    padding: 16px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 50;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 4px 0 0;
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.privacy-toggle {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 999px;
    bottom: 14px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    left: 14px;
    padding: 7px 11px;
    position: fixed;
    z-index: 45;
}

.privacy-toggle:hover {
    color: var(--accent-dark);
}

form .field {
    margin-bottom: 14px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 11px;
    font: inherit;
    background: #ffffff;
}

.errorlist {
    color: var(--danger);
    margin: 6px 0 0;
    padding-left: 18px;
}

@media (max-width: 760px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .hero { grid-template-columns: 1fr; padding-top: 28px; }
    .page { padding-top: 34px; padding-bottom: 34px; }
    h1 { font-size: 34px; }
    .price { font-size: 26px; }
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
    }
    .rating-widget {
        align-items: flex-start;
        flex-direction: column;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-actions .button {
        text-align: center;
        width: 100%;
    }
}
