* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #e3e3e3;
}

h2{
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.header {
    max-height: 70px;
    background-image: url('header.gif');
    background-size: cover;
    background-repeat: no-repeat;
    position: center;
    border-bottom: 1px solid #e5e5e5;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    color: #333;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}

.nav a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background: #edebeb;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-text p {
    margin-bottom: 20px;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    background: #333;
    color: #fff;
    text-decoration: none;
}

.descript{
    text-indent: 2em;
    margin-bottom: 20px;
}

.btn:hover {
    background: #555;
}

.firstimg{
    border-radius: 15px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section.light {
    background: #edebeb;
}

.section.white {
    background: whitesmoke;
}

.section h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

/* Cards */
.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
    flex: 1;
    border-radius: 10px;
}

.card img{
    width: 311px;
    height: 311px;
    object-fit: cover;
    object-position: center;
}

.cards-others {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.card-other {
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    width: 100%;
    overflow: hidden; /* важно */
}

.card-other img {
    width: 100%;
    max-width: 100%;
    height: 311px;
    object-fit: cover;
    object-position: center;
}

.card-other:hover{
    background: whitesmoke;
}

.card:hover {
    text-decoration: underline;
    background: whitesmoke;
}

.andother{
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 16px;
    background-color: lightgray;
    border-radius: 10px;
    max-width: 130px;
}

.andother a{
    text-decoration: none;
    color: black;
}

.card h3 {
    margin: 15px 0 10px;
}

/* Benefits */
.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
}

.benefitbox{
    max-width: 330px;
    margin:0 auto;
    background-color: springgreen;
    border-radius: 10px;
}

/* Contacts */
.contacts p {
    margin-bottom: 10px;
    text-align: center;
}

.contact-us{
    text-align: center;
    background: whitesmoke;
    padding: 50px;
    border-radius: 15px;
}


.contact-info{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    text-align: center;
    padding: 50px;
    border-radius: 15px;
}
 
.contact-info p {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer-info {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Image placeholder */
.image-placeholder {
    background: #ddd;
    width: 100%;
    height: 200px;
}

.hero-image {
    height: 250px;
}