* { margin: 0; padding: 0; box-sizing: border-box; } body { height: 1200px; font-size: 18px; font-family: sans-serif; margin: 0; padding: 0; } a:link, a:visited { color: #dbe2ef; text-decoration: none; } a:hover { text-decoration: none; color: white; } .header { position: fixed; display: flex; align-items: center; width: 100%; height: 90px; background: #112d4e; padding: 0; color: #dbe2ef; top: 0; left: 0; } .logo-container { display: flex; align-items: center; margin-right: 20px; } .logo img { width: 75px; height: 75px; border-radius: 15px; margin-left: 10px; margin-top: 5px; } .header h1 { margin: 0 20px; font-size: 1.5em; white-space: nowrap; } .menu { display: flex; align-items: center; list-style-type: none; margin-left: auto; } .menu > li { margin-right: 30px; display: flex; align-items: center; } .menu > li:last-of-type { margin-right: 0; } .dropdown { position: relative; } .dropdown > a { cursor: pointer; color: #dbe2ef; } .dropdown:hover .features-menu { display: flex; } .features-menu { display: none; flex-direction: column; background: #b2d6ff; border-radius: 5px; padding-top: 10px; position: absolute; top: 40px; left: 0; z-index: 1; align-items: center; } .features-menu li { border-bottom: 1px solid #fff; font-size: 0.8em; width: 100%; padding: 10px 20px; text-align: center; } .features-menu li:last-of-type { border-bottom: none; } .features-menu a { color: #112d4e; } .card { padding-top: 50px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); width: 350px; margin: auto; text-align: center; font-family: arial; } .price { color: grey; font-size: 22px; } .card button { border: none; outline: 0; padding: 12px; color: white; background-color: #00264d; text-align: center; cursor: pointer; width: 100%; font-size: 18px; } .card button:hover { opacity: 0.7; } .cards { display: grid; /* Автоматически заполняем на всю ширину grid-контейнера */ grid-template-columns: repeat(auto-fill, 400px); width: 100%; justify-content: center; justify-items: center; /* Размещаем карточку по центру */ column-gap: 60px; /* Отступ между колонками */ row-gap: 40px; /* Отступ между рядами */ margin: 0 auto; padding-bottom: 50px; padding-top: 50px; } .footer { display: flex; justify-content: space-between; align-items: center; padding: 20px; background-color: #00264d; color: #b2d6ff; } .social-container { display: flex; align-items: center; } .social { display: flex; align-items: center; margin-right: 20px; } .social h2, .social h1 { margin-left: 10px; } .contact-info { text-align: right; }