:root {
    --bg: #f4f7fb;

    --card: #ffffff;
    --card-border: #e5e7eb;

    --text: #1f2937;
    --text-secondary: #6b7280;

    --accent: #00b5f0;
    --accent-hover: #00BBEE;

    --shadow:
        0 8px 24px rgba(15,23,42,.06);

    --radius: 24px;
    --blue: #0088BB;

    --cyan: #00BBEE;

     --yellow: #FFCC88;

    --border: #E8E2D6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
}

body {

    min-height: 100vh;

    font-family: Inter, Arial, sans-serif;

    background:
        linear-gradient(
            180deg,
            #FAF5EC 0%,
            #F7F1E5 100%
        );

    color: var(--text);

    padding: 24px;
}

.container {

    width: min(980px, calc(100% - 32px));

    margin: 0 auto;

    padding: 0px 0 60px;
}

.calculator-card {

    background: rgba(255,255,255,.95);

    border-radius: 32px;

    padding: 40px;

    border: 1px solid #e2e8f0;

    box-shadow:
        0 12px 40px rgba(0,0,0,.05);
}

h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;
    margin-bottom: 20px;
}

label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="text"] {

    font-family: Inter, Arial, sans-serif;

    font-size: 16px;

    font-weight: 500;

    color: var(--text);
}
#amount {

    height: 72px;

    background: #f8fafc;

    border: 2px solid #dbe4f0;

    color: #111827;

    border-radius: 18px;

    font-size: 30px;

    font-weight: 700;
}
#amount::placeholder {
    color: #94A3B8;
}
#amount:focus {

    outline: none;

    border-color: #00BBEE;

    box-shadow:
        0 0 0 4px rgba(0,187,238,.15),
        0 0 20px rgba(0,136,187,.15);

    background: #ffffff;
}
#amount,
.period-selector,
.type-list,
.btn {

    width: 100%;
}


input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.btn {

    width: 100%;

    height: 72px;

    border: none;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            #0088BB,
            #00BBEE
        );

    color: #fff;

    font-size: 20px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(109,93,246,.28);

    transition: all .25s ease;
}

.btn:hover {

    background:
        linear-gradient(
            180deg,
            #0099D4,
            #33C9F3
        );

    transform: translateY(-2px);
    box-shadow:
        0 16px 35px rgba(109,93,246,.35);
}

.btn:active {
    transform: translateY(0);
}

/* Страница результатов */

.result-card {

    background: rgba(255,255,255,.95);

    box-shadow:
        0 12px 40px rgba(0,0,0,.05);

    min-height: 650px;

    border: 1px solid #e2e8f0;

    border-radius: 32px;

    padding: 40px;
}



.info-block span {

    font-size: clamp(14px, 1.2vw, 18px);

    font-weight: 600;
}

.info-block strong {

    font-size: clamp(24px, 3vw, 38px);

    font-weight: 700;

    color: #ffffff;

    line-height: 1.1;
}
.type-list {

    max-height: 240px;

    overflow-y: auto;

    scroll-behavior: smooth;

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 8px;

    background: #f8fafc;

    border: 1px solid #dbe4f0;

    border-radius: 16px;
}


.type-list::-webkit-scrollbar {
    width: 8px;
}

.type-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
}

.type-list::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #FFCC88,
        #FFCC88
    );
    border-radius: 999px;
}

.type-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #93c5fd,
        #60a5fa
    );
}
.type-list {
    scrollbar-width: thin;
    scrollbar-color: #60a5fa rgba(255,255,255,0.05);
}
.period-selector {
    
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.period-selector input {
    display: none;
}

.period-btn {

    background: #f8fafc;

    border: 1px solid #dbe4f0;

    color: #475569;
    
    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    border-radius: 12px;
}
.period-selector input:checked + .period-btn {

    background: linear-gradient(
            180deg,
            #0088BB,
            #00BBEE
        );

    color: #ffffff;

    border-color: #00BBEE;

    box-shadow: none;
}
.period-btn:hover {
    background: rgba(255,255,255,0.12);
}
.radio-item {
    display: block;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 700;
}
.radio-item input[type="radio"] {
    display: none;
}
.radio-item span {

    display: block;

    padding: 12px 14px;

    border-radius: 10px;

    background: transparent;

    border: 1px solid transparent;

    color: #334155;

    font-size: 14px;

    line-height: 1.4;
}
.radio-item:hover span {
    background: rgba(255,255,255,0.08);

    border-color: rgba(255,255,255,0.15);

    transform: translateY(-1px);
}
.radio-item input[type="radio"]:checked + span {

    background: linear-gradient(
            90deg,
            rgba(0,136,187,.15),
            rgba(0,187,238,.25)
        );;

    border-color: #00BBEE;

    color: #000000;
}
.results-row {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 20px;
    padding-top: 24px;

    width: 100%;
}

@media (max-width: 700px) {

    .result-card {
        min-height: auto;
    }

     .results-row {

        grid-template-columns: 1fr;
    }


    .side-card,
    .winner-card {
        min-height: 220px;
    }


    .result-disclaimer {

        padding: 16px;

        font-size: 13px;

        line-height: 1.6;
    }
}

.result-comment {

    color: #dbe4f0;

    font-size: 14px;

    line-height: 1.6;
}

.result-comment-right {
  
    font-size: 14px;

    padding: 4px 10px;

    line-height: 1.6;

    box-sizing: border-box;

    border-radius: 18px;

    background: #fffdf5;

    border: 1px solid #fde68a;

    box-shadow:
        0 6px 18px rgba(251, 191, 36, 0.08);
}

.result-comment,
.result-comment-right {

    min-height: 110px;

    line-height: 1.6;
}

.info-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    height: 100%;
    min-height: 340px;
}
.result-card .info-block span,
.result-card .info-block strong,
.result-card .result-comment,
.result-card .result-comment-right {

    color: var(--text);
}


.winner-card {

    position: relative;



    border: 2px solid #22c55e;

    box-shadow:
        0 0 20px rgba(34,197,94,.15),
        0 15px 40px rgba(34,197,94,.15);

    transform: scale(1.03);
}
.winner-card strong {

    font-size: 30px;

    font-weight: 800;

    color: #15803d;
    text-shadow:
        0 0 10px rgba(34,197,94,.25);
}
.winner-card span {

    color: #166534;

    font-weight: 700;
}
.result-disclaimer {

    width: 100%;

    margin-top: 24px;

    padding: 18px 24px;

    box-sizing: border-box;

    border-radius: 18px;

    background: #fffdf5;

    border: 1px solid #fde68a;

    border-left: 5px solid #fbbf24;

    color: #92400e;

    font-size: 14px;

    line-height: 1.7;

    box-shadow:
        0 6px 18px rgba(251, 191, 36, 0.08);
}
.calculation-summary {

    width: 100%;

    margin-top: 28px;

    padding: 24px;

    background: rgba(255,255,255,.95);

    border: 1px solid #E8E2D6;

    border-radius: 24px;

    box-shadow:
        0 8px 24px rgba(0,0,0,.04);
}
.summary-title {

    font-size: 18px;

    font-weight: 700;

    color: #1F2937;

    margin-bottom: 18px;
}
.summary-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 16px;
}
.summary-item {

    display: flex;

    flex-direction: column;

    gap: 6px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #E8E2D6;

    border-radius: 16px;
}
.summary-label {

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .05em;

    color: #64748B;
}
.summary-value {

    font-size: 16px;

    font-weight: 700;

    color: #1F2937;

    line-height: 1.4;
}

        /* ---------------- */
        /* ТАРИФЫ           */
        /* ---------------- */

        .tariff-list {

            display: flex;

            flex-direction: column;

            gap: 12px;
        }

        .tariff-item {

            padding: 14px 16px;

            border-radius: 14px;

            background: #FAF7F0;

            border: 1px solid var(--border);
        }

        /* ---------------- */
        /* ЦЕНТР            */
        /* ---------------- */

        .center-card {

            align-items: center;

            justify-content: center;

            text-align: center;
        }

        .calculator-title {

            font-size: 34px;

            font-weight: 800;

            margin-bottom: 20px;
        }

        .calculator-description {

            font-size: 16px;

            line-height: 1.6;

            color: #64748B;

            margin-bottom: 32px;

            max-width: 450px;
        }

.start-btn{

    display:flex;

    align-items:center;
    justify-content:center;

    width:100%;
    max-width:420px;

    min-height:76px;

    margin:0 auto;

    color:#FFFFFF;

    text-decoration:none;

    font-size:20px;
    font-weight:800;

    border-radius:24px;

    background:
        linear-gradient(
            180deg,
            #0088BB,
            #00BBEE
        );

    box-shadow:
        0 16px 36px rgba(0,136,187,.30);

    transition:.25s ease;
}

.start-btn:hover{

    transform:
        translateY(-2px)
        scale(1.02);

    box-shadow:
        0 22px 44px rgba(0,136,187,.40);
}

        /* ---------------- */
        /* ЛОГОТИП          */
        /* ---------------- */
        .logo {
            display: block;

            width: 100%;
            height: 100%;

            object-fit: contain;
        }

        .logo-container {

            width: 100%;
            max-width: 420px;

            height: 220px;

            margin: 0 auto 24px;

            display: flex;

            align-items: center;

            justify-content: center;

            color: #94A3B8;

            font-size: 14px;
        }

        .sbp-link {

            text-align: center;

            margin-top: auto;
        }

        .sbp-link a {

            color: var(--blue);

            font-weight: 700;

            text-decoration: none;
        }

        .sbp-link a:hover {

            color: var(--cyan);
        }

        @media (max-width: 1000px) {

            .cards {

                grid-template-columns: 1fr;
            }

            .title {

                font-size: 30px;
            }

            .calculator-title {

                font-size: 28px;
            }
        }
.result-actions {

    display: flex;

    justify-content: center;

    gap: 16px;

    margin-top: 24px;

    width: 100%;
}
.action-btn {

    min-width: 220px;

    padding: 16px 28px;

    border-radius: 20px;

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    text-align: center;

    transition: .25s ease;
}
.primary-btn {

    color: white;

    background:
        linear-gradient(
            180deg,
            #0088BB,
            #00BBEE
        );

    box-shadow:
        0 10px 25px rgba(0,136,187,.25);
}
.primary-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(0,136,187,.35);
}
.secondary-btn {

    color: #0088BB;

    background: white;

    border: 2px solid #00BBEE;
}
.secondary-btn:hover {

    background: rgba(0,187,238,.08);
}
.main-disclaimer {

    width: 100%;

    margin-top: 24px;

    padding: 18px 24px;

    box-sizing: border-box;

    border-radius: 18px;

    background: #fff;

    border: 1px solid #fff;

    color: #000;

    font-size: 14px;

    line-height: 1.7;
}
.tariff-value {

    align-self: flex-start;

    min-height: 34px;
    
    margin-top: 12px;

    display: flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 12px;

    font-size: 13px;

    font-weight: 600;

    color: #0088BB;

    background: rgba(0, 187, 238, 0.08);

    border: 1px solid rgba(0, 187, 238, 0.18);

    box-shadow: none;
}
.result-comment a,
.result-comment-right a {

    color: #0088BB;

    font-weight: 600;

    text-decoration: none;
}

.result-comment a:hover,
.result-comment-right a:hover {

    text-decoration: underline;
}
.card-footer {

    margin-top: auto;

    display: flex;
    flex-direction: column;

    gap: 12px;
}




.page {

max-width: 1400px;
width: 100%;
overflow-x: hidden;

margin: 0 auto;
}

.title {

    text-align: center;

    margin-bottom: 40px;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 800;
        }

.cards {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 24px;
}

.card {

    background: var(--card);

    border-radius: 28px;

    border: 1px solid var(--border);

    padding: 32px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

        display: flex;

    flex-direction: column;
        }

.card h2 {

    margin-bottom: 24px;

    font-size: 22px;
        }
        
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.activity-hint {

    margin-top: 10px;

    padding: 12px 14px;

    border-radius: 12px;

    background: rgba(0, 187, 238, 0.06);

    border: 1px solid rgba(0, 187, 238, 0.15);

    color: #475569;

    font-size: 14px;

    line-height: 1.5;
}

.activity-hint a {

    color: #0088BB;

    font-weight: 600;

    text-decoration: none;
}

.activity-hint a:hover {

    text-decoration: underline;
}
.activity-group {

    border: 0px;

    border-radius: 14px;    

    background: #fff;

    overflow: hidden;

    transition:
    border-color .2s,
    box-shadow .2s,
    transform .2s;

    flex-shrink: 0;
}

.activity-group:hover {

    border-color: #00BBEE;

    box-shadow:
        0 4px 16px rgba(0,187,238,.08);
}

.activity-group[open] {

    border-color: #00BBEE;

    box-shadow:
        0 6px 20px rgba(0,187,238,.12);
}

.activity-group summary {
    display: flex;

    align-items: center;
     
    border-radius:14px;

    justify-content:space-between;

    gap: 16px;

    cursor:pointer;

    padding: 14px 16px;

    white-space: nowrap;

    list-style: none;

    cursor: pointer;

    padding: 16px 20px;

    font-size: 15px;

    font-weight: 700;

    color: #334155;

    background: #f8fafc;

    transition: .2s ease;

    position: sticky;

    top: 0;

    z-index: 2;
}
.activity-group summary:hover {

    background:#F7FCFE;
}
.activity-group summary::-webkit-details-marker {

    display: none;
}
.activity-group summary::before {

    content: "";

    width: 16px;
    height: 16px;

    flex-shrink: 0;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    background-image:
        url("images/select_arrow.svg");

    transition: transform .2s ease;
}
.activity-group[open] summary::before {

    transform: rotate(90deg);
}

.group-title {

    flex: 1;

    min-width: 0;

    white-space: normal;

    line-height: 1.4;
}
.selected-item{

    display:inline-flex;

    align-items:center;

    margin-left:auto;

    padding:4px 10px;

    border-radius:999px;

    background:#E0F2FE;

    color:#0284C7;

    font-size:12px;

    font-weight:600;

    max-width:320px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;
}

.selected-item:empty{
    display:none;
}

.selected-activity{

    margin-top:10px;
    margin-bottom:16px;

    padding:12px 16px;

    border-radius:12px;

    background:#F0FAFF;

    border:1px solid rgba(0,187,238,.2);

    color:#0088BB;

    font-size:14px;
    font-weight:600;
}

.cards{
    display:block;
}

.hub-card{
    max-width:900px;
    margin:0 auto;
}

.hub-divider{
    height:1px;
    background:#E8E2D6;
    margin-top:32px;
    margin-bottom: 0;
}

.hero-block{
    text-align:center;
    max-width:700px;
    margin:0 auto;
}

.calculator-title{
    font-size:42px;
    font-weight:800;
    line-height:1.1;
    margin-bottom:16px;
}

.calculator-description{
    font-size:18px;
    color:#64748B;
    line-height:1.7;
    margin:0 auto 36px;
}

.links-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.links-section{
    margin-top: 20px;
}

.section-title{
	margin-bottom: 20px;
}

.compact-link{

    display:flex;
    align-items:center;

    gap:16px;

    padding:18px;

    background:#F7FCFE;

    border:1px solid rgba(0,187,238,.15);

    border-radius:18px;

    text-decoration:none;
}

.compact-link:hover{

    background:#F7FCFE;

    border-color:#00BBEE;

    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,187,238,.12);
}

.compact-link img{

    width:56px;
    height:56px;

    object-fit:contain;

    flex-shrink:0;
}

.compact-link strong{

    display:block;

    color:#0088BB;

    font-size:15px;

    font-weight:700;

    margin-bottom:4px;
}

.compact-link span{

    color:#64748B;

    font-size:13px;

    line-height:1.5;
}

.calculator-help{

    margin-top:40px;

    padding:24px;

    border-radius:20px;

    background:#F7FCFE;

    border:1px solid rgba(0,187,238,.15);
}

.help-title{

    color:#0088BB;

    font-size:16px;

    font-weight:700;

    margin-bottom:10px;
}

.help-text{

    color:#475569;

    line-height:1.8;
}
.activity-error{

    display:none;

    margin-top:10px;

    padding:12px 14px;

    border-radius:12px;

    background:#FEF2F2;

    border:1px solid #FECACA;

    color:#DC2626;

    font-size:14px;

    font-weight:600;
}

.activity-error.show{
    display:block;
}

.single-item .radio-item{

    padding-top:12px;

    border-top:1px solid rgba(0,0,0,.05);
}

.single-item summary{

    background:
        linear-gradient(
            180deg,
            #FAFCFE,
            #F5FAFD
        );
}

/* ==========================
   Блок отображения результата
   ========================== */

.result-amount-wrapper {

    min-height: 90px;

    display: flex;

    align-items: center;

    width: 100%;

    margin: 12px 0 20px;
}

.result-value {
    display: block;
    width: 100%;

    font-weight: 800;
    line-height: 1.15;

    overflow-wrap: normal;
    word-break: normal;

    font-size: 32px;

    
}

/* Победитель чуть крупнее */
.winner-card .result-value {
    color: #15803d;
}

.amount-hint {

    margin-top: -18px;
    
    margin-bottom: 20px;

    font-size: 13px;

    color: #64748B;

    line-height: 1.4;
}


.amount-error {

    display: none;

    margin-top: -10px;

    margin-bottom: 20px;

    padding: 10px 12px;

    border-radius: 12px;

    background: #FEF2F2;

    border: 1px solid #FECACA;

    color: #DC2626;

    font-size: 13px;

    font-weight: 600;
}

.amount-error.show {
    display: block;
}

/* Планшеты */

@media (max-width: 768px) {
        .compact-link{
        align-items:flex-start;
    }

    .compact-link img{
        width:56px;
        height:56px;
    }

    .hub-card{
        padding:20px;
    }

    .results-row {

        grid-template-columns: 1fr;

        gap: 16px;
    }

    .info-block {

        min-height: 220px;
    }

    .result-card {

        padding: 20px;
    }

    .result-actions {

        flex-direction: column;
    }

    .action-btn {

        width: 100%;
    }
    body {
        padding: 16px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px;
    }

    .logo-container {
        height: 120px;
    }

    .calculator-title {
        font-size: 28px;
    }
      .payment-logo {
        width: 32px;
        height: 32px;
    }
    .btn{
    
    bottom:16px;
}
}

/* Смартфоны */

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
.btn{
   
    bottom:16px;
}

    .calculator-card {
        padding: 20px;
        border-radius: 18px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

.result-comment{
	min-height: 10px;
}

    input,
    .btn{

    font-family: Inter, Arial, sans-serif;

    font-size: 15px;

    font-weight: 600;
    }
    
    .result-card {
        min-height: auto;
    }

     .results-row {

        grid-template-columns: 1fr;
    }


    .side-card,
    .winner-card {
        min-height: 220px;
    }


    .result-disclaimer {

        padding: 16px;

        font-size: 13px;

        line-height: 1.6;
    }
    .title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .card {
        padding: 16px;
        border-radius: 18px;
    }

    .logo-container {
        height: 90px;
    }

    .calculator-title {
        font-size: 24px;
    }

    .calculator-description {
        font-size: 14px;
    }

    .start-btn {
        width: 100%;
        display: flex;
        text-align: center;
    } 
      .payment-logo {
        width: 32px;
        height: 32px;
    }

}