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

@font-face {
    font-family: "HelviticaNeue";
    src: url("/static/fonts/HelveticaNeueCyr-Roman.woff2") format("woff2"),
         url("/static/fonts/HelveticaNeueCyr-Roman.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "HelviticaNeue";
    src: url("/static/fonts/HelveticaNeueCyr-Bold.woff2") format("woff2"),
         url("/static/fonts/HelveticaNeueCyr-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "HelviticaNeue", Arial, sans-serif;
    font-size: 20px;
    line-height: 24px;
    color: #000;
}

#container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top {
    height: 93px;
    flex-shrink: 0;
    background: #fff;
}

.topLogo {
    padding: 19px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 100;
}

.wrapper {
    max-width: 970px;
    margin: 0 auto;
    padding: 0 15px;
}

.topLogo .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: inline-block;
}

.logo svg {
    max-width: 190px;
    height: auto;
}

.contacts-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.button {
    display: inline-block;
    font-size: 20px;
    line-height: 24px;
    color: #000;
    background: transparent;
    border: 2px solid #000;
    border-radius: 60px;
    padding: 8px 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.button:hover {
    color: #fff;
    background: #3878be;
    border-color: #3878be;
}

.button.input {
    color: #fff;
    background: #3878be;
    padding: 14px 16px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 20px;
    line-height: 24px;
}

.button.input:hover {
    background: #3B65CC;
}

.showPhone {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 26px 8px 16px;
}

.showPhone svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Stage */
.stage {
    flex-grow: 1;
    padding-bottom: 56px;
}

.content {
    font-family: "HelviticaNeue";
}

h1, h2 {
    color: #000;
    font-weight: 700;
}

h1 {
    font-size: 44px;
    line-height: 53px;
    margin: 40px 0;
}

h2 {
    font-size: 36px;
    line-height: 40px;
    margin: 29px 0 40px;
}

p {
    margin-bottom: 10px;
}

b {
    font-weight: 700;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #3878be;
}

.email-link {
    color: inherit;
}

/* First Block */
.firstBlock {
    background: #f8f9fa;
    padding: 52px 0 60px;
}

.firstBlock h1 {
    margin-top: 0;
}

.buttons {
    margin-top: 20px;
}

/* Features / Work Block */
.workBlock {
    padding: 60px 0;
}

ul.floated {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.floated > li {
    float: left;
    padding: 0;
    margin: 0;
    margin-right: 5%;
    width: 30%;
    word-break: break-word;
    list-style: none;
}

ul.floated[column="3"] > li:nth-child(3n) {
    margin-right: 0;
}

ul.floated[column="3"] > li:nth-child(3n+1) {
    clear: both;
}

ul.floated[column="4"] > li {
    width: 23.2%;
    margin-right: 2.4%;
}

ul.floated[column="4"] > li:nth-child(4n) {
    margin-right: 0;
}

ul.floated[column="4"] > li:nth-child(4n+1) {
    clear: both;
}

ul.floated > li img {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
}

ul.floated > li .imageTitle {
    display: block;
    color: rgba(51, 51, 51, 0.6);
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 19px;
}

ul.floated > li p {
    font-size: 20px;
    line-height: 24px;
}

.features {
    margin-bottom: 40px;
}

.features > li img {
    margin-bottom: 20px;
}

.equipment-list {
    margin-top: 40px;
}

/* Application Form */
.applicationBlock {
    background: #f8f9fa;
    padding: 60px 0;
}

.applicationForm {
    max-width: 750px;
    margin: 30px 0 0;
}

.form-group {
    margin-bottom: 7px;
    padding: 5px 0;
}

.form-group label {
    display: block;
    font-size: 16px;
    line-height: 20px;
    color: #000;
    margin-bottom: 5px;
}

.form-group .required {
    color: #f33;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-size: 16px;
    line-height: 20px;
    color: #000;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    font-family: "HelviticaNeue", Arial, sans-serif;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
    outline: none;
}

.form-group .error-hint {
    display: none;
    font-size: 14px;
    line-height: 18px;
    color: #ED1C24;
    margin: 4px 0 0 10px;
}

.form-group.error .error-hint {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ED1C24;
}

.submit-btn {
    margin-top: 8px;
}

.privacy {
    margin-top: 12px;
}

.privacy p {
    font-size: 13px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.3);
}

/* About Us */
.aboutUs {
    padding: 60px 0;
}

.aboutUs p {
    margin-bottom: 10px;
}

/* Certificate */
.certificate {
    background: #f8f9fa;
    padding: 60px 0;
}

.cert-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cert-buttons .button {
    font-size: 16px;
    padding: 8px 20px;
}

/* Examples */
.examples {
    padding: 60px 0;
}

.examples-list > li img {
    width: 100%;
    border-radius: 4px;
}

.examples-list > li span {
    display: block;
    color: rgba(51, 51, 51, 0.6);
    font-size: 16px;
    line-height: 20px;
    margin-top: 10px;
    text-align: center;
}

/* Footer */
.footer {
    flex-shrink: 0;
    background: #333;
    padding: 0;
}

.footer p {
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 10px;
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: #3878be;
}

.footerLeft {
    padding: 21px 0 14px;
}

.footerCenter {
    padding: 24px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer p.head {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 6px;
}

.contacts-footer a.showPhone {
    color: #fff;
    border-color: #fff;
    border-width: 1px;
    padding: 2px 12px 4px;
    display: inline-block;
    margin-bottom: -2px;
}

.contacts-footer a.showPhone:hover {
    border-color: #3878be;
}

.contacts-footer a.showPhone svg .st0 {
    fill: #fff;
}

.contacts-footer svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.contacts-footer .phone a,
.contacts-footer .email a,
.contacts-footer .address a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footerCenter p {
    font-size: 15px;
    color: #ccc;
}

/* Popup */
.popupBlock {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popupBlock.active {
    display: flex;
}

.popupBlockBack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.popup {
    position: relative;
    background: #fff;
    padding: 40px 35px 50px 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
    min-width: 400px;
}

.popup .close {
    position: absolute;
    right: 28px;
    top: 28px;
    cursor: pointer;
}

.popup .close svg {
    width: 24px;
    height: 24px;
}

.popup .close:hover svg path {
    fill: #3878be;
}

.popup p.head {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 10px;
}

.phone-link {
    font-size: 24px;
    font-weight: 700;
    color: #3878be !important;
}

/* Success message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 32px; line-height: 38px; }
    h2 { font-size: 28px; line-height: 32px; }
    .contacts-header { gap: 10px; }
    .contacts-header .showPhone span { display: none; }
    .contacts-header .button.input { font-size: 14px; padding: 10px 12px; }
    ul.floated[column="3"] > li,
    ul.floated[column="4"] > li {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .cert-buttons { flex-direction: column; }
    .top { height: auto; }
    .topLogo { position: relative; }
    .topLogo .wrapper { flex-wrap: wrap; gap: 10px; }
    .popup { min-width: auto; width: 90%; margin: 0 auto; padding: 30px 20px; }
}
