@import url(https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Ubuntu:wght@500&display=swap);

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.15
}

body {
    margin: 0
}

main {
    display: block
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible
}

pre {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
input {
    overflow: visible
}

button,
select {
    text-transform: none
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
    outline: 1px dotted ButtonText
}

fieldset {
    padding: .35em .75em .625em
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal
}

progress {
    vertical-align: baseline
}

textarea {
    overflow: auto
}

[type=checkbox],
[type=radio] {
    box-sizing: border-box;
    padding: 0
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

details {
    display: block
}

summary {
    display: list-item
}

[hidden],
template {
    display: none
}

body {
    font-family: Manrope, sans-serif
}

.container {
    margin: 0 auto;
    max-width: 1209px;
    padding: 0 15px
}

.main {
    padding-bottom: 13px;
    padding-top: 10px
}

.main,
.main-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column
}

.main-check {
    margin-bottom: 56px
}

.main-title {
    color: #000;
    font-size: 48px;
    font-weight: 500;
    line-height: 100%;
    margin-bottom: 44px;
    text-align: center
}

.main-texts {
    margin-bottom: 5px
}

.main-text {
    font-size: 30px;
    font-weight: 400;
    line-height: 130%
}

.main-form-title,
.main-text {
    color: #000;
    margin-bottom: 44px;
    text-align: center
}

.main-form-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 100%
}

.main-form-inputs {
    grid-column-gap: 24px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 44px
}

.main-form-input {
    background: #dbdbdb;
    border: none;
    border-radius: 8px;
    color: #9a9a9a;
    font-size: 24px;
    font-weight: 400;
    height: 76px;
    line-height: 100%;
    max-width: 308px;
    max-width: 277px;
    outline: none;
    padding-left: 26px
}

.main-form-input::placeholder {
    color: #9a9a9a
}

.main-form-input--house,
.main-form-input--kv {
    max-width: 135px
}

.main-form-button {
    align-items: center;
    background: #b71b1b;
    border: none;
    border-radius: 86px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    font-weight: 500;
    height: 90px;
    justify-content: center;
    line-height: 100%;
    margin: 0 auto;
    outline: none;
    width: 388px
}

.others-title {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 13px;
    text-align: center
}

.others-blocks {
    grid-row-gap: 148px;
    grid-column-gap: 50px;
    display: grid;
    grid-auto-rows: 606px;
    grid-template-columns: repeat(3, 314px);
    justify-content: space-between;
    margin: 0 auto;
    width: fit-content
}

/* ✅ Исправлено */
.others-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
}

.others-block-img {
    margin-bottom: 15px
}

.others-block-title {
    color: #000;
    font-family: Ubuntu;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    margin-bottom: 15px
}

/* ✅ Исправлено */
.others-block-prices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.others-block-prices-new {
    color: #000;
    font-size: 24px;
    font-weight: 400;
    line-height: 100%
}

.others-block-prices-old {
    color: #b4b4b4;
    font-size: 20px;
    font-weight: 400;
    line-height: 100%;
    text-decoration-line: line-through
}

/* ✅ Исправлено */
.others-block-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b71b1b;
    border: none;
    border-radius: 86px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    height: 52px;
    width: 100%;
    margin-top: auto;
    text-decoration: none;
    transition: background 0.3s ease;
}

.others-block-button:hover {
    background: #a00;
}

.subscribe {
    padding-bottom: 123px;
    padding-top: 91px
}

.subscribe-title {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 58px;
    text-align: center
}

.subscribe-links {
    grid-column-gap: 60px;
    align-items: center;
    display: flex;
    margin: 0 auto;
    width: fit-content
}

.subscribe-link {
    grid-column-gap: 35px;
    align-items: center;
    background: #d9d9d9;
    border-radius: 142px;
    display: flex;
    height: 92px;
    justify-content: center;
    text-decoration: none;
    width: 285px
}

.subscribe-link__text {
    color: #1b1b1b;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%
}

.overlay {
    background: hsla(0, 0%, 100%, .7);
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20
}

.modal,
.overlay {
    display: none;
    position: fixed
}

.modal {
    background: #fff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 21
}

.modal-wrapper {
    padding: 61px 79px 103px
}

.modal-title {
    color: #373737;
    font-size: 26px;
    line-height: 30px;
    margin-bottom: 4px
}

.modal-subtitle,
.modal-title {
    font-weight: 300;
    text-align: center
}

.modal-subtitle {
    color: #180f0f;
    font-size: 16px;
    line-height: 100%;
    margin-bottom: 73px
}

.modal-inputs {
    grid-row-gap: 18px;
    margin-bottom: 77px
}

.modal-block,
.modal-inputs {
    display: flex;
    flex-direction: column
}

.modal-block {
    grid-row-gap: 5px
}

.modal-block__label {
    color: #373737
}

.modal-block__input,
.modal-block__label {
    font-size: 16px;
    font-weight: 300;
    line-height: 100%
}

.modal-block__input {
    background: #fff;
    border-radius: 7px;
    color: #000;
    height: 51px;
    outline: none;
    padding-left: 25px
}

.modal-button {
    background: #b71b1b;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 0 #d51f1f;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    height: 85px;
    line-height: 23px;
    margin: 0 auto;
    outline: none;
    text-transform: uppercase;
    width: 369px
}

.modal.active,
.overlay.active {
    display: block
}

/* --- адаптивы --- */
@media(max-width:1380px) {
    .others-blocks {
        grid-template-columns: repeat(2, 314px);
        grid-row-gap: 60px;
        grid-auto-rows: auto;
    }
}

@media(max-width:880px) {
    .others-blocks {
        grid-template-columns: 1fr 1fr;
        grid-row-gap: 40px;
        grid-column-gap: 20px;
    }
}

@media(max-width:570px) {
    .others-blocks {
        grid-template-columns: 1fr;
        grid-row-gap: 30px;
    }

    .others-block {
        padding: 15px;
    }

    .others-block-prices {
        flex-direction: column;
        gap: 6px;
    }

    .others-block-button {
        font-size: 16px;
        height: 48px;
    }
}

@media(max-width:430px) {
    .main-title,
    .main-form-title,
    .others-title,
    .subscribe-title {
        font-size: 32px;
    }

    .main-text {
        font-size: 20px;
    }

    .others-block-title {
        font-size: 18px;
    }

    .others-block-prices-new {
        font-size: 20px;
    }

    .others-block-prices-old {
        font-size: 16px;
    }
}
