body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    margin: 0;
    font-weight: 400;
}

.page {
    padding: 0 0 48px;
}

.hero,
.content-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    box-sizing: border-box;
}

.content-section {
    padding: 0 20px;
    margin-top: 28px;
}

.hero {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 28px;
}

.logo-wrap {
    width: 100%;
    background: #000;
    text-align: center;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.logo.loaded {
    opacity: 1;
}

.intro {
    max-width: 620px;
    margin: 16px auto 18px; /* 🔥 добавили сверху */
    text-align: center;
    padding: 0 20px;
}

h1 {
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 10px;
    font-weight: 800;
}

h2 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

h3 {
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 700;
}

p {
    margin: 0 0 14px;
    overflow-wrap: break-word;
}

.lead {
    color: gray;
    font-size: 16px;
    margin-bottom: 0;
}

.card {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
}

.subtitle {
    color: gray;
    font-size: 14px;
    margin-bottom: 20px;
}

.label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
}

.currency-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.currency-row button,
.budget-buttons button {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
}

.currency-row button {
    flex: 1;
}

.currency-row button.active,
.budget-buttons button.active {
    background: #1fa463;
    color: #fff;
    border: none;
}

.budget-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-weight: 400;
}

.city-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.location-btn {
    width: 52px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
}

.location-btn:disabled {
    background: #eee;
    cursor: not-allowed;
}

.btn {
    width: 100%;
    padding: 16px;
    background: #1fa463;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#result {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    scroll-margin-top: 16px;
}

.result-card {
    background: #fff;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid #eee;
    font-weight: 400;
}

.summary-line {
    font-weight: 400;
}

.product-list {
    margin-top: 12px;
}

.product {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 400;
}

.product:nth-child(odd) {
    background: #cccccc;
}

.product-name {
    font-weight: 400;
}

.product-name small {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: #666;
    margin-top: 2px;
}

.product-store-link {
    display: block;
    width: fit-content;
    margin-top: 3px;
    color: #1a73e8;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
}

.product-store-link:hover {
    text-decoration: underline;
}

.product-price {
    font-weight: 400;
    white-space: nowrap;
}

.total {
    font-weight: 700;
    margin-bottom: 10px;
}

.save-line {
    color: #16834a;
    font-weight: 700;
    margin-bottom: 10px;
}

.note {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 400;
}

.map-link {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    background: #f0fff6;
    color: #16894f;
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.feature-btn {
    padding: 14px;
    border-radius: 12px;
    background: #f3f3f3;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border: 0;
}

.feature-btn:hover {
    background: #e9e9e9;
}

.section-intro {
    color: #475467;
}

.compact-info {
    text-align: center;
}

.compact-info p {
    color: #475467;
    margin-bottom: 8px;
}

.text-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.text-link-button:hover {
    background: #2b3442;
}

.text-page {
    padding-top: 28px;
}

.text-hero {
    margin-bottom: 8px;
}

.text-hero h1 {
    text-align: left;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #16894f;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.content-section h2 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 10px;
    overflow-wrap: break-word;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.info-card,
.sample-list {
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #ffffff;
}

.info-card {
    padding: 16px;
}

.info-card p,
.faq-section p {
    color: #475467;
    margin-bottom: 0;
}

.sample-list {
    padding: 10px 14px;
}

.sample-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eaecf0;
}

.sample-item:last-child {
    border-bottom: 0;
}

.faq-section article {
    margin-bottom: 16px;
}

.faq-section article:last-child {
    margin-bottom: 0;
}

#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9999;
}

#toast.show {
    opacity: 1;
}

.loading-card {
    background: #e8f8ef;
    border: 1px solid #b7ebc6;
    color: #0a7f2e;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .page {
        padding-bottom: 64px;
    }

    .logo {
        width: 100%;
    }

    h1 {
        font-size: 42px;
    }

    .info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero {
        max-width: 834px;
    }
}

.badge {
    background: #fff;
    color: #d9363e;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
    border: 1px solid #d9363e;
}

.feature-btn-primary {
    background: #d9363e;
    color: #fff;
    font-weight: 700;
    grid-column: span 2;
}

.feature-btn-primary:hover {
    background: #c92a2a;
}

.feature-btn-primary:active {
    transform: none;
}

.feature-btn-primary:disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
}

.data-source {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}
