/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    padding: 40px 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    font-weight: 400;
    font-size: 16px;
}

.container {
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* Стиль для декоративного уголка в правом верхнем углу КОНТЕЙНЕРА */
.corner-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 700px;
    height: auto;
    margin: 0;
    padding: 0;
}

.corner-image.down {
    top: auto;
    bottom: 0;
    left: 0;
}

.corner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.4;
    transform: rotate(180deg);
}

.corner-image.down img {
    transform: none;
}

/* Шапка с логотипами */
.header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 5;
    padding-right: 70px;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: end;
}

.logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* Основное содержание */
.content {
    padding: 0;
    position: relative;
    z-index: 5;
}

.title {
    font-family: 'PT Serif', serif;
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

h2 {
    font-family: 'PT Serif', serif;
    color: #222;
    margin: 45px 0 20px 0;
    font-weight: 700;
    font-size: 1.4rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

p {
    margin-bottom: 22px;
    text-align: justify;
    color: #444;
}

ul {
    margin-left: 30px;
    margin-bottom: 30px;
    color: #444;
}

li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 5px;
}

li::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #666;
}

/* Блоки с важной информацией */
.statement-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 25px;
    margin: 40px 0;
    border-radius: 1px;
}

.statement-box p {
    margin-bottom: 15px;
}

.decision {
    font-size: 1.1rem;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ccc;
    background-color: white;
}

.mission-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 25px;
    margin: 40px 0;
    border-radius: 1px;
    border-left: 3px solid #999;
}

.closing {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 50px 0;
    color: #222;
}

/* Блок подписей */
.signatures {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.signature {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 1px;
    text-align: center;
    border: 1px solid #eee;
}

.signature p {
    text-align: center;
    margin-bottom: 0;
    line-height: 1.8;
}

.signature strong {
    font-weight: 700;
    color: #222;
}

/* Футер */
.footer {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    position: relative;
    z-index: 5;
}

/* Акценты в тексте */
strong {
    font-weight: 600;
    color: #222;
}

/* Адаптивность */
@media (max-width: 768px) {
    .corner-image {
        width: 400px;
        height: auto;
    }
    
    body {
        padding: 20px 10px;
    }
    
    .container {
        padding: 30px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .header {
        padding-right: 50px;
        margin-bottom: 30px;
    }
    
    .logos {
        justify-content: center;
        gap: 20px;
    }
    
    .logo {
        max-height: 50px;
    }
    
    .signatures {
        flex-direction: column;
        align-items: center;
    }
    
    .signature {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .corner-image {
        display: none;
    }
    
    .header {
        padding-right: 40px;
    }
    
    .container {
        padding: 20px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
}