:root {
    --primary-text: #1E1E2A;
    --secondary-text: #4A4A5A;
    --brand-blue: #2563EB;
    --brand-purple: #9333EA;
    --bg-color: #F4F6F9;
    --white: #FFFFFF;
    --gradient: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    --highlight-bg: #FEF3C7;
    --highlight-text: #D97706;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
    line-height: 1.6;
}

.contract-container {
    background-color: var(--white);
    width: 100%;
    max-width: 900px;
    padding: 60px 70px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

/* ДЕКОРАТИВНЫЙ ЭЛЕМЕНТ СВЕРХУ */
.top-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient);
}

/* ШАПКА */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

/* ЛОГОТИП */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-block;
}

.logo-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, var(--brand-blue), var(--brand-purple)) border-box;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -15%;
    width: 130%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
    transform: translateY(-50%);
    border-radius: 2px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--primary-text);
    text-transform: uppercase;
}

.contact-info {
    font-size: 12px;
    color: var(--secondary-text);
    text-align: right;
    line-height: 1.5;
}

/* ЗАГОЛОВОК */
.title-block {
    margin-bottom: 50px;
}

.title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-text);
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 13px;
    color: var(--secondary-text);
    letter-spacing: 1px;
    line-height: 1.6;
}

/* ОСНОВНОЙ ТЕКСТ */
h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2B3A8F;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E7EB;
}

h2:first-of-type {
    margin-top: 0;
}

p {
    font-size: 15px;
    color: var(--secondary-text);
    margin-bottom: 16px;
    text-align: justify;
}

strong {
    color: var(--primary-text);
    font-weight: 600;
}

/* СПИСКИ */
ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--secondary-text);
}

ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: bold;
}

/* ВЫДЕЛЕНИЕ ПЛЕЙСХОЛДЕРОВ */
.placeholder {
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

/* БЛОК РЕКВИЗИТОВ */
.requisites-box {
    background-color: #F8F9FA;
    border-left: 4px solid var(--brand-blue);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.requisites-box p {
    margin-bottom: 10px;
    text-align: left;
}

.requisites-box p:last-child {
    margin-bottom: 0;
}

/* ПОДВАЛ С ЛОГОТИПОМ */
.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo .logo-mark {
    width: 48px;
    height: 48px;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--primary-text);
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 12px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 11px;
    color: #9CA3AF;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .contract-container {
        padding: 30px 20px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .contact-info {
        text-align: left;
    }
    .title {
        font-size: 24px;
    }
    h2 {
        font-size: 18px;
    }
    p, ul li {
        font-size: 14px;
    }
    .footer-logo-text {
        font-size: 22px;
        letter-spacing: 3px;
    }
    .footer-logo .logo-mark {
        width: 36px;
        height: 36px;
    }
}