* { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; } body { font-size: 18px; font-family: sans-serif; margin: 0; padding: 0; overflow: auto; } .content { min-height: 100%; display: flex; flex-direction: column; } a { text-decoration: none; } a:hover { color: white; } a:visited, a:link { color: #dbe2ef; } .header { position: fixed; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 90px; background: #112d4e; color: #dbe2ef; top: 0; left: 0; padding: 0 20px; z-index: 10; } .logo { display: flex; align-items: center; } .logo img { width: 60px; height: 60px; border-radius: 15px; } .header h1 { font-size: 1.5em; margin-left: 20px; } .menu { display: flex; align-items: center; list-style: none; } .menu li { margin-left: 20px; position: relative; } .features-menu { display: none; flex-direction: column; background: #b2d6ff; border-radius: 5px; position: absolute; top: 40px; left: 0; z-index: 1; padding: 10px 0; } .features-menu a { color: #112d4e; } .dropdown:hover .features-menu { display: flex; } .features-menu li { padding: 10px 20px; text-align: center; border-bottom: 1px solid #fff; } .features-menu li:last-child { border-bottom: none; } .sad { flex: 1; padding-top: 150px; color: #00264d; text-align: center; padding-bottom: 110px; } .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; margin-left: auto; } /* Мобильные устройства до 400px */ @media (max-width: 400px) { .header { flex-direction: column; align-items: flex-start; padding: 10px; height: auto; } .logo { display: flex; align-items: center; margin-bottom: 10px; } .logo img { width: 45px; height: 45px; margin-left: 0; margin-right: 10px; } .header h1 { margin: 0; font-size: 1.2em; white-space: nowrap; } .menu { display: flex; flex-wrap: wrap; justify-content: flex-start; width: 100%; margin-left: 0; gap: 5px; padding-left: 10px; font-size: smaller; } .menu > li { margin-right: 0; } .dropdown .features-menu { position: absolute; top: 100%; left: 0; background: #b2d6ff; border-radius: 5px; display: none; flex-direction: column; justify-content: center; z-index: 1000; padding: 10px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); } .dropdown:hover .features-menu { display: flex; flex-direction: column; } .sad h1 { font-size: smaller; } .sad img { width: 90%; height: auto; } .footer { flex-direction: column; text-align: center; font-size: smaller; padding-bottom: 120px; flex-shrink: 0; } .contact-info { text-align: center; margin-top: 10px; } } /* Устройства от 400px до 767px */ @media (min-width: 400px) and (max-width: 767px) { .header { flex-direction: column; align-items: flex-start; padding: 10px; height: auto; } .logo { display: flex; align-items: center; margin-bottom: 10px; } .logo img { width: 45px; height: 45px; } .header h1 { margin-left: 10px; font-size: 1em; white-space: nowrap; } .menu { flex-wrap: wrap; justify-content: flex-start; width: 100%; gap: 8px; font-size: 0.85em; padding-left: 10px; } .dropdown .features-menu { position: static; background: #b2d6ff; display: none; } .dropdown:hover .features-menu { display: flex; flex-direction: column; } .sad img { width: 90%; height: auto; } .footer { flex-direction: column; text-align: center; font-size: smaller; padding-bottom: 120px; flex-shrink: 0; } .contact-info { text-align: center; margin-top: 10px; } } /* Планшеты */ @media (min-width: 768px) and (max-width: 1023px) { .text-container h2 { font-size: 2em; } .footer { margin-top: 350px; } .sad img { width: 80%; height: auto; } } /* Маленькие десктопы */ @media (min-width: 1024px) and (max-width: 1365px) { .text-container h2 { font-size: 2.5em; } } /* Большие экраны */ @media (min-width: 1366px) { .text-container h2 { font-size: 3em; } }