/*
    Author: S Marinov http://marinov.atspace.eu
    Updated: Fixed box-sizing, clean header
*/

/* ВАЖНО - поправя проблема с ширината */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: Verdana, Geneva, sans-serif;
    width: 100%;
    min-width: 1100px;
    background: rgb(252,228,17);
    background: -moz-linear-gradient(left, rgba(252,228,17,1) 0%, rgba(239,238,230,1) 50%, rgba(60,188,24,1) 100%);
    background: -webkit-linear-gradient(left, rgba(252,228,17,1) 0%, rgba(239,238,230,1) 50%, rgba(60,188,24,1) 100%);
    background: linear-gradient(to right, rgba(252,228,17,1) 0%, rgba(239,238,230,1) 50%, rgba(60,188,24,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fce411', endColorstr='#3cbc18', GradientType=1);
}

body {
    position: relative;
    min-height: 100%;
    margin: 0 auto;
    padding: 0;
    width: 90%;
    min-width: 1000px;
}

#head {
    font-family: "Book Antiqua", Georgia, serif;
    font-style: oblique;
    font-weight: bold;
    font-size: 40px;
    color: #cc0000;
    text-align: center;
    padding: 15px 20px;
    width: 90%;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

#wrapper {
    min-width: 1070px;
    min-height: 100%;
    position: relative;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.25);
    border-radius: 3px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: transparent;
}

#header {
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 7px;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.2);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.header-item img {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
    max-height: 230px;
    object-fit: cover;
}

#content {
    flex: 1;
    padding-bottom: 20px;
}

.content-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.content-left {
    flex: 2;
    min-width: 280px;
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 7px;
}

.content-left p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
    text-align: left;
    width: 100%;
    color: #111;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.content-middle {
    flex: 1.5;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-middle img {
    width: 100%;
    height: auto;
    border-radius: 7px;
    object-fit: cover;
    max-height: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.content-right {
    flex: 1.2;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 7px;
}

.content-right .docs-title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.content-right .doc-link {
    text-align: center;
    width: 100%;
    margin: 2px 0;
}

.content-right .doc-link a {
    color: red;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    transition: background 0.3s;
}

.content-right .doc-link a:hover {
    background: rgba(255,255,255,0.3);
    text-decoration: underline;
}

.content-right .email {
    color: #cc0000;
    font-weight: bold;
}

.content-right .contact-info {
    font-weight: bold;
    font-size: 15px;
    text-align: left;
    margin-top: 8px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.content-right .contact-title {
    font-weight: bold;
    font-size: 15px;
    text-align: left;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.content-right .contact-details {
    font-weight: bold;
    font-size: 15px;
    text-align: left;
    margin: 1px 0;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.content-right .fb-share-link {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.content-right .fb-share-link a {
    display: inline-block;
    color: #1877f2;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

.content-right .fb-share-link a:hover {
    background: rgba(24, 119, 242, 0.1);
    text-decoration: underline;
}

#footer {
    width: 100%;
    padding: 10px 0 5px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.2);
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

#footer p {
    width: 100%;
    margin: 0;
    padding: 5px 0;
    text-align: center;
}

#footer a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
}

#footer a:hover {
    text-decoration: underline;
}

.clr {
    clear: both;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 0;
    line-height: 0px;
    font-size: 0px;
    border: none;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1100px) {
    html {
        min-width: auto;
    }
    body {
        min-width: auto;
        width: 95%;
    }
    #wrapper {
        min-width: auto;
    }
}

@media (max-width: 1024px) {
    #head {
        font-size: 32px;
        width: 100%;
    }
    .content-grid {
        gap: 20px;
    }
    .content-left {
        flex: 1 1 100%;
    }
    .content-middle {
        flex: 1 1 45%;
    }
    .content-right {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    body {
        width: 95%;
        padding: 10px;
        min-width: auto;
    }
    #head {
        font-size: 26px;
        padding: 12px 15px;
        width: 100%;
        box-shadow: 0px 2px 10px rgba(0,0,0,0.3);
    }
    #wrapper {
        padding: 12px;
        min-width: auto;
    }
    .header-grid {
        flex-direction: column;
        gap: 5px;
    }
    .header-item {
        width: 100%;
    }
    .header-item img {
        max-height: 150px;
        width: auto;
    }
    .content-grid {
        flex-direction: column;
        gap: 20px;
    }
    .content-left,
    .content-middle,
    .content-right {
        flex: 1 1 100%;
        min-width: 0;
    }
    .content-middle {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .content-middle img {
        flex: 1 1 45%;
        max-height: 200px;
    }
    .content-left {
        background: rgba(255,255,255,0.2);
    }
    .content-right {
        background: rgba(255,255,255,0.2);
    }
}

@media (max-width: 480px) {
    body {
        width: 100%;
        padding: 5px;
        min-width: auto;
    }
    #head {
        font-size: 20px;
        padding: 10px 12px;
        margin-bottom: 15px;
        box-shadow: 0px 2px 8px rgba(0,0,0,0.3);
        width: 100%;
    }
    #wrapper {
        padding: 8px;
        box-shadow: 0px 0px 4px 3px black;
        min-width: auto;
    }
    #header {
        padding: 5px;
    }
    .header-item img {
        max-height: 100px;
    }
    .content-left {
        padding: 10px;
        background: rgba(255,255,255,0.25);
    }
    .content-left p {
        font-size: 14px;
        line-height: 1.5;
    }
    .content-middle {
        flex-direction: column;
    }
    .content-middle img {
        flex: 1 1 100%;
        max-height: 200px;
    }
    .content-right {
        padding: 10px;
        background: rgba(255,255,255,0.25);
    }
    .content-right .docs-title {
        font-size: 14px;
    }
    .content-right .doc-link a {
        font-size: 14px;
    }
    .content-right .contact-info,
    .content-right .contact-title,
    .content-right .contact-details {
        font-size: 13px;
    }
    .content-right .fb-share-link a {
        font-size: 13px;
        padding: 4px 8px;
    }
    #footer {
        padding: 6px 0;
    }
    #footer a {
        font-size: 11px;
    }
}