body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#FAFAFA;
    color:#333;
    line-height:1.6;
}
ul {
    list-style-type: none;
}
.header{
    background:#2c3e50;
    color:#fff;
    text-align:center;
    padding:30px 10px;
}
.menu{
    text-align:center;
    padding:30px 10px;
}

.header h1{
    margin:0;
    font-size:2.5rem;
}
.container{
    max-width:1200px;
    margin:auto;
    padding:20px;
}
/* Секции – «шахматный» порядок */
.section{
    display:flex;
    align-items:center;
    margin:40px 0;
}
.section:nth-child(even){
    flex-direction:row-reverse;   /* меняем порядок слева‑направо */
}
.section .text{
    flex:1;
    padding:20px;
}
.section .image{
    flex:1;
    text-align:center;
    padding:20px;
}
.section .image img{
    max-width:100%;
    height:auto;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}

a {
    color: royalblue;
    text-decoration: none;
    position: relative;
    font-family: 'Arial', sans-serif;
    transition: color 0.3s ease-in-out;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: crimson;
    transition: width 0.3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

a:hover {
    color: crimson;
}

a:hover::after {
    width: 100%;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-bottom: 60px;
}



header h1 { margin-bottom: .5rem; }


/* Шахматный фон */
.section:nth-child(odd)  { background: #fafafa; }
.section:nth-child(even) { background: #eaeaea; flex-direction: row-reverse; }

.section img {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.section .content {
    flex: 1;
}

.section .content h2 {
    margin-bottom: .5rem;
    color: #2c3e50;
}

.section .content p { margin-bottom: 1rem; }

.section .content ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}

@media (max-width: 768px) {
    .section { flex-direction: column; }
    .section:nth-child(even) { flex-direction: column; }
    .section img { max-width: 100%; }
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: .9rem;
    position: fixed; bottom: 0;
    width: 100%;
}

footer a { color: #fff; text-decoration: underline; }