html, body {
    margin: 0px;
    padding: 0px;
    border: 0px;
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
}
h1 {
    color: #b03030;
    font-size: 1rem;
    font-weight: bold;
}

h2 {
    color: #b03030;
    font-size: 1rem;
    font-weight: 400;
}

h3 {
    color: #b03030;
    font-size: 1rem;
    font-weight: 300;
}

h4 {
    color: #3030b0;
    font-size: 1rem;
    font-weight: bold;
}


h5 {
    color: #3030b0;
    font-size: 1rem;
    font-weight: 400;
}


p {
    text-align: justify;
    /* text-indent: 1.5em;*/
    margin: 0px;
}
body {
    color: #000;
    background: #fff;
    font-family: Georgia, "Times New Roman", Times, serif;	  
}
nav {
    font-size: 100%;
    background: #eeeeee;
    border-style: solid none;
    border-width: 2px 0px;
    border-color: #c00;
    margin: 2px 0px;
    padding: 5px 20px;
    text-align: center;
    white-space: nowrap;
}
header {
    font-size: 100%;
    color: #fff;
    background: #369;
    margin: 0px;
    padding: 10px 20px;
    text-align: center;
}
main {
    background: #ffffff;
    margin: 20px;
    padding: 20px;
    border: solid 1px #ccc;
}
footer {
    font-size: 100%;
    color: #fff;
    background: #369;
    padding: 10px 20px;
}
details {
    font-size: 100%;
    background: #eeeeee;
    /* border-style: solid none;
    border-width: 2px 0px;
    border-color: #c00;*/
    margin: 2px 0px;
    padding: 5px 20px;
}

#navbar ul {
    display: none;
    background-color: #eeeeee;
    position: absolute;
    top: 100%;
}

#navbar li:hover ul { display: block; }

#navbar, #navbar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
#navbar {
    height: 30px;
    background: #eeeeee;
    padding-left: 25px;
    min-width: 470px;
}
#navbar li {
    float: left;
    position: relative;
    height: 100%;
}
#navbar li a {
    display: block;
    padding: 6px;
    width: auto;
    color: #000000;
    text-decoration: none;
    text-align: left;
}
#navbar ul li { float: none; }

#navbar li:hover { 
    border-bottom: 1px solid #930000;
    background-color: #dddddd;
}

#header-bar {
    font-size: 100%;
    color: #fff;
    background: #369;
    margin: 0px;
    padding: 10px 20px;
    text-align: center;
}
#header-bar a {
    color: #fff;
}

#accessibility-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#accessibility-panel.active {
    left: 0;
}

#accessibility-panel h3 {
    margin-bottom: 20px;
    color: #333;
}

.accessibility-control {
    margin-bottom: 15px;
}

.accessibility-control label {
    margin-right: 10px;
}

/* Общий контейнер-лента */
.banner-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
/*    max-width: 1300px; */
    margin: 10px auto;
    padding: 10px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Карточка баннера */
.banner-card {
    flex: 0 0 300px;
    width: 300px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
    object-fit: scale-down;
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.banner-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}


.banner-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: white;
}


/* Адаптив для маленьких экранов */
@media (max-width: 700px) {
    .banner-strip {
	flex-direction: column;
	align-items: center;
	padding: 15px;
	gap: 16px;
    }
    .banner-card {
	flex: 0 0 auto;
	width: 100%;
	max-width: 300px;
	height: 226px;
    }
}
