.root { display: flex; flex-direction: column; min-height: 100vh; background: #fff; box-sizing: border-box; overflow-x: hidden; } .imageBlock { width: 100%; max-width: 100%; margin: 0; padding: 0; overflow: visible; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; } .image { width: 100%; min-width: 100%; max-width: 100%; height: auto; display: block; margin: 0; padding: 0; border-radius: 0; box-shadow: none; object-fit: cover; flex-shrink: 0; flex-grow: 0; /* Сдвиг вверх для маленьких экранов будет через медиазапросы */ } .contentWrapper { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; padding: 0 16px; box-sizing: border-box; justify-content: flex-start; } .textContent { margin: 0; padding: 0 0 16px 0; } .title { font-size: 28px; font-weight: 800; color: #111; text-align: center; margin-bottom: 18px; margin-top: 0; line-height: 1.18; letter-spacing: -0.5px; } .description { font-size: 18px; color: #444; text-align: center; margin-bottom: 0; margin-top: 0; line-height: 1.5; font-weight: 400; } .bottomContent { width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: auto; margin-bottom: 0; padding-top: 24px; } .progress { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 16px; width: 100%; } .dot { width: 32px; height: 8px; border-radius: 4px; background: #e0e0e0; transition: background 0.2s; } .dotActive { background: #16b100; } .button { width: calc(100% - 32px); max-width: 370px; background: #16b100; color: #fff; font-size: 20px; font-weight: 700; border: none; border-radius: 12px; padding: 18px 0; margin: 0 0 32px 0; cursor: pointer; box-shadow: 0 2px 8px rgba(22, 177, 0, 0.08); transition: background 0.2s; } .button:active { background: #129200; } /* --- Медиазапросы для адаптивности --- */ @media (max-width: 480px) { .imageBlock { max-height: none; min-height: 120px; } .image { max-height: none; margin-top: -5vh; } .contentWrapper { justify-content: center; flex: 1 1 0%; min-height: 0; } .bottomContent { margin-top: 0; margin-bottom: 0; } .title { font-size: 22px; } .description { font-size: 15px; } .button { font-size: 17px; padding: 14px 0; } } /* iPad и планшеты */ @media (min-width: 600px) and (max-width: 1100px) { .imageBlock { min-height: 320px; } .image { margin-top: -25vh; } .contentWrapper { padding-top: 16px; } } @media (max-height: 667px) { .imageBlock { max-height: none; min-height: 100px; } .image { max-height: none; margin-top: -10vh; } .title { font-size: 20px; margin-bottom: 12px; } .description { font-size: 14px; } } @media (max-height: 568px) { .imageBlock { max-height: none; min-height: 80px; } .image { max-height: none; margin-top: -12vh; } .textContent { padding-bottom: 8px; } .bottomContent { margin-top: 8px; } } @media (max-height: 600px) { .image { margin-top: -20vh; } .textContent { padding-bottom: 8px; } .bottomContent { margin-top: 8px; } } @media (max-height: 520px) { .image { margin-top: -35vh; } } @media (max-height: 480px) { .image { margin-top: -45vh; } }