.terms-page-main {
    padding-top: clamp(14px, 4vw, 42px);
}

.terms-page-container { max-width: 980px; }

.terms-page-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 4.5vw, 46px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
}

.terms-page-shell::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(47, 125, 91, 0.09);
    pointer-events: none;
}

.terms-page-hero {
    display: grid;
    gap: 12px;
    margin-bottom: clamp(22px, 5vw, 38px);
}

.terms-page-kicker {
    width: 100%;
    padding: 7px 12px;
    color: var(--accent-primary);
    border: 1px solid #cfe2cd;
    border-radius: 999px;
    background: #f3f8f1;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.terms-page-title {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(40px, 8vw, 86px);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.075em;
}

.terms-page-line {
    width: 96px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.terms-page-content { color: var(--text-secondary); }

.terms-main-title {
    margin: 0 0 16px;
    color: var(--text-primary);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.terms-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.term-item {
    position: relative;
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.term-title {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.term-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.68;
}

.guarantee-page-content {
    display: grid;
    gap: 18px;
}

.guarantee-lead {
    max-width: 820px;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.guarantee-address-card {
    display: grid;
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(47, 125, 91, 0.2);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(47, 125, 91, 0.08), rgba(255, 255, 255, 0.86)),
        #fbfcf7;
    box-shadow: 0 10px 28px rgba(28, 61, 44, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.guarantee-address-card__label {
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.guarantee-address-card__value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    color: var(--text-primary);
    border: 1px solid rgba(47, 125, 91, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(0.78rem, 1.35vw, 0.9rem);
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.guarantee-command code {
    color: var(--text-primary);
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
}

.guarantee-steps {
    margin-top: 4px;
}

.guarantee-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.62;
}

.guarantee-command {
    margin: 14px 0 0;
    padding: 13px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fbfcf7;
}

@media (min-width: 981px) {
    .terms-container .term-item:nth-child(3n + 1) {
        grid-column: span 2;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .terms-page-shell {
        padding: 20px;
        border-radius: 22px;
    }
    .terms-container { grid-template-columns: 1fr; }
    .guarantee-address-card {
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 18px;
    }
    .term-item {
        min-height: 0;
        padding: 18px;
    }
}
