.shadow{
    -webkit-box-shadow: 11px 33px 37px 0px rgba(0, 0, 0, 0.21);
-moz-box-shadow: 11px 33px 37px 0px rgba(0, 0, 0, 0.21);
box-shadow: 11px 33px 37px 0px rgba(0, 0, 0, 0.21);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Roboto', sans-serif;
}

:root {
    --state-blue: #a9071f;
    --state-blue-dark: #a9071f;
    --state-blue-light: #00509e;
    --state-white: #ffffff;
    --state-white-light: #ffffff;
    --state-red: #cc0000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================== */
/* ШАПКА САЙТА */
/* ====================== */
.nav-con {
    background: #b7041f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(0, 35, 70, 0.3);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--state-gold);
}

.img-header img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
    transition: var(--transition);
}

.img-header img:hover {
    transform: scale(1.05);
}

.ug {
    display: block;
    text-align: left;
    color: var(--white);
}

.TEXTP{
    display: inline-flex;
}

.TEXTP>p{
    font-size: 22px;
    color: white;
}

.Phi{
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.PHILIAL{
    font-size: 0.9rem;
}

.ANO{
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--state-gold-light);
}

.heading {
    display: flex;
    align-items: center;
    gap: 30px;
}

.heading a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.heading a:hover {
    background-color: white;
    color: black;
}

.heading a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--state-gold);
    transition: var(--transition);
}

.heading a:hover::after {
    width: 80%;
}

.heading button {
    background: linear-gradient(to right, var(--state-gold), #ffed4e);
    color: var(--state-blue-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.heading button:hover {
    background: linear-gradient(to right, #ffffff, var(--state-gold));
    transform: translateY(-3px);
    border-color: var(--state-blue-dark);
}

/* ====================== */
/* ГЛАВНЫЙ БЛОК */
/* ====================== */
main {
    width: 100%;
}

/* Блок с обложкой */
.Block-cover {
    background: linear-gradient(135deg, var(--state-blue) 0%, var(--state-blue-light) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* padding: 40px 0; */
}

/* .Block-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
} */

.cover {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.cover-text {
    flex: 1;
    color: var(--white);
}

.cover-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.cover-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    color: var(--state-gold-light);
}

.cover-img {
    margin-top: 100px;
    flex: 0 0 auto;
}

.cover-img img {
    height: 400px;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Раздел "Мы предлагаем" */
.ourServices {
    padding: 80px 40px;
    background-color: var(--light-gray);
    position: relative;
}

.ourServices::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--state-blue), var(--state-gold));
}

.Block-about-our-services {
    text-align: center;
    margin-bottom: 50px;
}

.aboutOurServices {
    font-size: 2.5rem;
    color: var(--state-blue);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.aboutOurServices::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--state-gold);
}

.block-card2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.dop-card1{
    display: flex;
    gap: 30px;
}

.dop-card2{
    display: flex;
    gap: 30px;
}



.dop-card1>a{
    text-decoration: none;
}

.dop-card2>a{
    text-decoration: none;
    width: 50%;
}

.pereiti>h3{
    margin-top: 15px;
    background-color: #a9071f;
    color: white;
    border-radius: 5px;
}

.card2 {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;

}

.card2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--state-blue), var(--state-gold));
}

.card2:hover{
    cursor: pointer;
    transform: translateY(-20px);
}

.img-card2 {
    margin-bottom: 20px;
}

.img-card2 img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.text-card2-h h1 {
    font-size: 1.4rem;
    color: var(--state-blue);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

/* Раздел "Направления ДПО" */
.dpo {
    padding: 80px 40px;
    background: linear-gradient(to bottom, var(--white) 0%, #f0f7ff 100%);
}

.Block-Directions-of-additional-education {
    text-align: center;
    margin-bottom: 50px;
}

.Block-Directions-of-additional-education h1 {
    font-size: 2.5rem;
    color: var(--state-blue);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.Block-Directions-of-additional-education h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--state-gold);
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

/* .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.25);
    border-color: var(--state-blue);
} */

.img-block {
    height: 200px;
    overflow: hidden;
}

.img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* .card:hover .img-block img {
    transform: scale(1.1);
} */

.text-block {
    padding: 25px;
}

.text-block h3 {
    color: var(--state-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.text-block p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.prof-perepodgotovka{
    background: linear-gradient(to bottom, var(--white) 0%, #f0f7ff 100%);
    padding: 80px;
}
.povish-kval{
    background: linear-gradient(to bottom, var(--white) 0%, #f0f7ff 100%);
    padding: 80px;
}
.more{
    background-color: #cc0000;
    border-radius: 25px;
    border: none;
    color: #ffffff;
    font-weight: 600;
    width: 5vw;height: 5vh;
    transition: all;
    &:hover{
        cursor: pointer;
    }
}
.CBO{
    color: #a9071f;
    font-weight: 800;
}
/* Раздел "О нас" */
.Block-about-us {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--state-blue) 0%, var(--state-blue-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.Block-about-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.aboutUs {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.block-aboutUs-text {
    flex: 1;
}

.aboutUs-text-h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--state-gold);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.aboutUs-text-h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--state-gold);
}

.aboutUs-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
}

.aboutUs-paragraph p {
    margin-bottom: 20px;
    color: var(--state-gold-light);
}

.aboutUs-img {
    flex: 0 0 400px;
}

.aboutUs-img img {
    width: 100%;
    height: auto;
}

/* ====================== */
/* ПОДВАЛ САЙТА */
/* ====================== */
#footer {
    background: linear-gradient(135deg, var(--state-blue-dark) 0%, #001a33 100%);
    color: var(--white);
    padding: 50px 40px 30px;
    position: relative;
    border-top: 5px solid var(--state-gold);
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--state-gold), transparent);
}

.container-footer-d-flex {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.contact-social {
    flex: 1;
    max-width: 600px;
}

.contact h3 {
    color: var(--state-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact ol {
    list-style: none;
}

.contact ol li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--state-gold-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact ol li::before {
    content: '•';
    color: var(--state-gold);
    font-size: 1.5rem;
}

.ya-maps-adress {
    color: var(--state-gold);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dashed var(--state-gold);
}

.ya-maps-adress:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.h4 {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.h4 h5 {
    color: var(--state-gold-light);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}

h4:hover{
    cursor: pointer;
}

.none{
    height: 127.01px;
}

.card3{
    margin: 20px;
    margin-top: 40px;
    box-shadow: 10px 5px 5px #a9071f;
    border-top-style: solid;
    border-left-style: solid;
    border-color: rgb(55, 55, 55);
    border-radius: 15px;
    gap: 30px;
}

.card3>h2{
    padding: 5px;
    padding-left: 15px;
}

.card3>h3{
    display: inline-block;
    padding: 5px;
    margin-left: 15px;
    margin-top: 15px;
    background-color: #a9071f;
    border-radius: 15px;
    color: white;
}

.dop-info-card3{
    display: flex;
    gap: 50px;
}

.dop-info-card3>p{
    font-size: 20px;
    padding-left: 15px;
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .cover {
        flex-direction: column;
        text-align: center;
        
    }
    
    .cover-text h1 {
        font-size: 2.5rem;
    }
    
    .aboutUs {
        flex-direction: column;
    }
    
    .aboutUs-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }
    
    .none{
        height: 20px;
    }
}

@media (max-width: 768px) {
    .nav-con {
        flex-direction: row;
        gap: 20px;
        padding: 20px;
    }
    
    .heading {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .heading a {
        width: 100%;
        text-align: center;
    }
    
    .cover-text h1 {
        font-size: 2rem;
    }
    
    .cover-img img {
        height: 300px;
    }
    
    .aboutOurServices,
    .Block-Directions-of-additional-education h1,
    .aboutUs-text-h1 {
        font-size: 2rem;
    }
    
    .ourServices,
    .dpo,
    .Block-about-us {
        padding: 60px 20px;
    }
    
    .container-footer-d-flex, .dop-card1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact ol li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cover-text h1 {
        font-size: 1.8rem;
    }
    
    .cover-text p {
        font-size: 1rem;
    }
    
    .block-card2,
    .catalog {
        grid-template-columns: 1fr;
    }
    
    .card2, .card {
        padding: 20px;
    }
    
    .text-card2-h h1 {
        font-size: 1.2rem;
    }
    
    .text-block h3 {
        font-size: 1.3rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.Block-cover,
.ourServices,
.dpo,
.Block-about-us,
#footer {
    animation: fadeIn 0.8s ease-out;
}

/* Специальные эффекты */
.heading a {
    animation: fadeIn 0.8s ease-out;
}

.card3{
    animation: fadeIn 0.8s ease-out;
}

.card2:nth-child(1) { animation-delay: 0.1s; }
.card2:nth-child(2) { animation-delay: 0.2s; }
.card2:nth-child(3) { animation-delay: 0.3s; }
.card2:nth-child(4) { animation-delay: 0.4s; }
.card2:nth-child(5) { animation-delay: 0.5s; }

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }