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

body {
    font-family: 'Gilroy', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(180deg, #626362 0%, #bfc0c0 20%, #c3c4c4 50%, #bfc0c0 75%, #626362 100%);
    color: var(--primary);
    line-height: 1.4;
    max-width: 1480px;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    outline: none;
}


:root {
    --red: #FD0400;
    --red-dark: #d00300;
    --primary: #fff;
    --black: #333;
}

.btn {
    font-weight: 600;
    font-size: 16px;
    line-height: 180%;
    color: var(--primary);
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-family: 'Gilroy-Semibold', 'Segoe UI', 'Roboto', sans-serif;
    border-radius: 100px;
}

.btn--red {
    background-color: var(--red);
}

.btn--red:hover {
    background-color: var(--red-dark);
}

.btn--red:active {
    opacity: 0.5;
}

.container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.title {
    font-family: 'Gilroy-Black', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 96px;
    line-height: 120%;
    text-transform: uppercase;
    text-align: right;
    color: #fd0400;
}


.header {
    background-color: #5d5d5d;
    min-height: 126px;
    display: flex;
    align-items: center;
    padding: 34px 0px;

}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    width: 98px;
    height: 58px;
}


.menu {
    display: flex;
    gap: 24px;
}

.menu__link {
    font-weight: 500;
    font-size: 18px;
    line-height: 180%;
    white-space: nowrap;
    border: 1px solid var(--primary);
    padding: 6px 28px;
    background: transparent;
    border-radius: 100px;
    transition: background 0.2s;
    font-family: 'Gilroy-Medium', 'Segoe UI', 'Roboto', sans-serif;
    text-transform: uppercase;
    
}

.menu__link:hover {
    background: var(--primary);
    color: var(--black);
}



.social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background-color: var(--red);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.social__icon:hover {
    background-color: var(--red-dark);
}

.social__icon:active {
    opacity: 0.5;
}


.btn-request {
    padding: 9px 32px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.burger__line {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s;
}

.burger.active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #4a4a4a;
    padding: 100px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu--active {
    right: 0;
}

.mobile-menu__link {
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #7a7a7a;
    font-family: 'Gilroy-Medium', 'Segoe UI', 'Roboto', sans-serif;
    text-transform: uppercase;
}

.mobile-menu .social {
    margin-top: 20px;
}

.mobile-menu .btn-request {
    align-self: flex-start;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.overlay--active {
    opacity: 1;
    visibility: visible;
}

path {
    transition: transform 0.25s;
}

.active path:nth-of-type(1) {
    transform: rotate(45deg);
    transform-origin: -1px 3px;
}

.active path:nth-of-type(2) {
    display: none;
}

.active path:nth-of-type(3) {
    transform: rotate(-45deg);
    transform-origin: 0px 13px;
}

.slider {
    display: flex;
    align-items: center;
    position: relative;

}

.slide {
    height: 800px;
}

.slide__img {
    height: 100%;
    background-size: cover;
    background-position: center;
}
.slide__content {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 0;
    right: 0;
}

.slide__title {
    font-family: 'Gilroy-Black', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 96px;
    font-size: calc(4.5rem + 1vw);
    line-height: 120%;
    text-transform: uppercase;
}
.slide__description {
    font-size: 64px;
    font-size: calc(2rem + 1.5vw);
    line-height: 120%;
}
.slide__right {
    text-align: right;
}
.slide__title span {
    color: var(--red);
}
h2.slide__medium  {
    font-size: 64px;
    font-size: calc(2rem + 1.7vw);
    line-height: 140%;
}

.tags-block {
    padding: 42px 0px;
}

.tags-block__container {
    display: flex;
    justify-content: flex-end;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: flex-end;
    flex-direction: column;
}

.tag {
    font-size: 46px;
    line-height: 140%;
    padding: 14px 16px;
    border-radius: 100px;
    font-family: 'Gilroy-Medium', 'Segoe UI', 'Roboto', sans-serif;
    display: block;
    color: var(--black);
}

.tag-container {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.tag--red {
    background-color: var(--red);
    padding: 14px 42px;
    color: var(--primary);
}

.about {
    padding: 16px 0px;
}

.about__tags {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.about__tag {
    font-family: 'Gilroy-Medium', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 44px;
    line-height: 140%;
    border: 4px solid var(--black);
    border-radius: 100px;
    padding: 14px 42px;
    color: var(--black);
}

.about__tag--red {
    color: var(--red);
    border: 4px solid var(--red);
}

.about__text {
    font-family: 'Gilroy-Semibold', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 140%;
    color: var(--black);
    padding: 24px 0px;
}

.btn--full {
    width: 100%;
    max-width: 100%;
}

.about__check {
    border-radius: 100px;
    padding: 14px 42px;
    font-size: 32px;
    line-height: 140%;
    color: var(--primary);
    background-color: var(--red);
    margin: 16px 0px;
    text-align: center;
}

.services {
    padding: 24px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: 564px 1fr;
    gap: 24px;
    padding: 16px 0px 0px 0px;
}

.services__left,
.services__right {
    gap: 24px;
    display: flex;
    flex-direction: column;
}
.services__right .service-card {
    padding: 16px 24px;
}
.service-card {
    background: var(--black);
    border-radius: 32px;
    padding: 31px 24px;
    height: fit-content;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.service-card__tags--right{
    justify-content: right;
}
.service-card__tags--justify{
    justify-content: space-between;
}
.service-card__tag {
    font-family: 'Gilroy-Medium', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 160%;
    text-transform: uppercase;
    color: var(--primary);
    border: 3px solid var(--primary);
    border-radius: 100px;
    padding: 8px 24px;

}

.service-card__tag--red {
    color: var(--red);
    border: 3px solid var(--red);
}

.service-card__titles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
}
.service-card__title {
    font-family: 'Gilroy-Extrabold', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--primary);
}

.service-card__title--red {
    color: var(--red);
}

.why-us {
    padding: 16px 0px;
}

.why-us__tags {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px 8px;
    margin-top: 16px;
}

.why-us__tag {
    font-family: 'Gilroy-Extrabold', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 43px;
    line-height: 140%;
    border: 4px solid var(--black);
    border-radius: 100px;
    padding: 14px 42px;
    color: var(--black);
    text-transform: uppercase;
}

.why-us__tag--red {
    color: var(--red);
    border: 4px solid var(--red);
}

.stages {
    padding: 16px 0;
}

.stages__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: auto;
    margin-top: 16px;
}

.stage-card {
    border-radius: 24px;
    padding: 16px;

    flex: 1 1 270px;
    min-width: 270px;
    min-height: 270px;
}

.stage-card:first-child {
    background: #8e8f8f;
}

.stage-card:nth-of-type(2) {
    background: #6b6c6c;
}

.stage-card:nth-of-type(3) {
    background: #515252;
}

.stage-card:last-child {
    background: var(--black);
}

.stage-card__img {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.stage-card__title {
    font-family: 'Gilroy-Extrabold', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 27px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: left;
}

.stage-card__description {
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    color: var(--primary);
}

.stage-arrow {
    font-size: 40px;
    color: #ccc;
    font-weight: 300;
}

.form-section {
    padding: 24px 0;
}

.form-block {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 24px 32px;
    color: var(--black);
}

.form-block__title {
    font-family: 'Gilroy-Black', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 84px;
    line-height: 120%;
    text-transform: uppercase;
    text-align: center;
    color: var(--red)
}

.form-block__text {
    font-family: inherit;
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    text-align: center;
    color: #333;
    max-width: 542px;
    margin: auto;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: auto;
    margin-top: 32px;
}
.form .error {
    color: var(--red);
    margin-left: 25px;
    display: block;
    margin-top: 10px;
}

.form__row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form__input {
    padding: 16px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: boxShadow 0.2s;
    width: 100%;
}

.form__input:hover,
.form__input:focus,
.form__input:active {
    box-shadow: inset 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.form__input:disabled {
    opacity: 0.5;
    border: none;
}

.form__input::placeholder {
    font-family: 'Gilroy-Medium', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: rgba(51, 51, 51, 0.5);
}

.form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.form__checkbox p {
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--black);
}

.form__checkbox a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.form__btn {
    border: none;
    padding: 8.5px 32px;
    border-radius: 100px;
    cursor: pointer;
    align-self: flex-start;
    font-family: 'Gilroy-Semibold', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 180%;
    text-align: right;
    color: var(--primary);
    margin: auto;
}

.map-block {
    padding: 24px 0;
}

.map-block__grid {
    display: flex;
    gap: 32px;
    align-items: center;
}

.address-list__title {
    font-family: inherit;
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    color: var(--primary);
    margin-bottom: 24px;
}

.address-list__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-item {
    font-family: inherit;
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    color: var(--primary);
}

.map-placeholder {
    max-width: 852px;
    width: 100%;
}

.map-placeholder iframe {
    border-radius: 24px;
    min-height: 318px;
    width: 100%;
    height: 100%;
}

.footer {
    padding: 34px 0;
}

.footer__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.footer__links {
    display: flex;
    gap: 40px;
}

.footer__link-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__link {
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    transition: opacity 0.2s;
}

.footer__link:hover,
.footer__link:focus,
.footer__link:active {
    opacity: 0.5;
}

.footer__social {
    display: flex;
    gap: 20px;
}

.footer__contacts {
    text-align: right;
    display: flex;
    gap: 24px;
}

.footer__line {
    width: 1px;
    background-color: var(--primary);
}

.footer__email,
.footer__phone {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__email a,
.footer__phone a {
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    transition: opacity 0.2s;
}

.footer__email a:hover,
.footer__email a:active,
.footer__email a:focus,
.footer__phone a:hover,
.footer__phone a:active,
.footer__phone a:focus {
    opacity: 0.5;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
    transition: opacity 0.1s;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkbox-visual {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(51, 51, 51, 0.2);
    transition: border 0.15s ease-in-out, background 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.checkbox-visual svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke-width: 1px;
    stroke: rgba(51, 51, 51, 0.4);
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: stroke 0.12s, opacity 0.1s;
    opacity: 0;
}

.custom-checkbox input:checked+.checkbox-visual svg {
    opacity: 1;
    stroke: #000000 !important;
}

.custom-checkbox input:checked+.checkbox-visual {
    border: 1px solid var(--red) !important;
}

.custom-checkbox:hover .checkbox-visual,
.custom-checkbox:focus .checkbox-visual {
    border-radius: 4px;
    border: 1px solid var(--black);
}

.custom-checkbox:active .checkbox-visual {
    border-radius: 4px;
    border: 1px solid var(--red) !important;
}

.custom-checkbox:active .checkbox-visual svg {
    stroke: #000000 !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal--active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: rgba(255, 255, 255, 1);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    color: #333;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal--active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    transition: all 0.2s;
}

.modal__close:hover {
    background: #e0e0e0;
    color: var(--black);
}

.modal__icon {
    width: 80px;
    height: 80px;
    background: var(--red);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 48px;
    font-weight: bold;
}

.modal__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.modal__text {
    font-size: 16px;
    color: #8e8f8f;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal__btn {
    color: var(--primary);
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
}