:root {
    --black: #1d1d1b;
    --white: #ffffff;
    --red: #e8021f;
    --gray: #e7e7e7;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: "Helvetica Neue", Arial, sans-serif;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
}

h2 {
    font-size: 42px;
    color: var(--red);
    margin-top: 0;
    text-align: center;
}

p {
    font-size: 24px;
}

hr {
    width: calc(100% - 2px);
    margin: 0;
    color: var(--gray);
}

small {
    color: gray;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e7e7e7;
    position: relative;
}

.nav-logo {
    max-width: 170px;
    width: 100%;
}

.nav ul {
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.nav li {
    list-style: none;
    font-weight: bold;
}

.nav a {
    color: var(--black);
    text-decoration: none;
}

.contact-info {
    color: gray;
    text-align: right;
}

.contact-info a {
    color: var(--black);
    font-weight: bold;
    text-decoration: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--black);
    border-radius: 2px;
    transition: 0.3s;
}

.width-1200 {
    max-width: 1200px;
    width: 100%;
}

.hide {
    display: none;
}

.burger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.burger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section-base {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--gray);
}

.section-gray {
    background-color: #f7f7f7;
}

footer {
    /*background: #0f0f0f;*/
    background: #232323;
    color: #eaeaea;
    padding: 40px 20px 20px;
    font-family: "Inter", sans-serif;
}

.footer__block {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #b5b5b5;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-contacts h4,
.footer-nav h4,
.footer-address h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-nav a {
    display: block;
    color: #b5b5b5;
    text-decoration: none;
    margin: 6px 0;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-address p {
    color: #b5b5b5;
    font-size: 14px;
    margin: 6px 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2a2a2a;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 13px;
    color: #777;
}

.footer-tel {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.btn {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--red);
    background: none;
    color: var(--red);
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    text-decoration: none
}

.btn:hover {
    background: var(--red);
    color: var(--white);
    transition-delay: 0.2s;
    transition-duration: 0.2s;
    transition-timing-function: linear;
}

@media (max-width: 900px) {
    .nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e7e7e7;
        text-align: center;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .contact-info {
        display: none;
    }

    .mobile-hours {
        display: block;
        margin-top: 10px;
        color: gray;
    }

    .contact-info {
        flex-shrink: 0;
    }

    .width-1200 {
        width: 90%;
    }

    p {
        font-size: 18px;
    }

    h2 {
        font-size: 34px;
    }

    .section-base {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .footer__block {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo,
    .footer-nav,
    .footer-address {
        width: 100%;
    }

    .footer-logo img {
        width: 130px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
}

.modal-content {
    position: relative;
    background: var(--white);
    padding: 40px 50px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 2100;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 26px;
    font-weight: bold;
    color: var(--black);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

.close-btn:hover {
    color: var(--red);
    transform: rotate(90deg);
}

.modal-content h2 {
    text-align: center;
    color: var(--black);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
}

.call-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    font-size: 15px;
}

.call-form input,
.call-form textarea {
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

.call-form input:focus,
.call-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232, 2, 31, 0.1);
}

.call-form textarea {
    resize: none;
    min-height: 100px;
}

.btn-submit {
    background-color: var(--red);
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #c50119;
    transform: translateY(-1px);
}

@media (max-width: 500px) {
    .modal-content {
        padding: 30px 25px;
        border-radius: 14px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .call-form input,
    .call-form textarea {
        font-size: 15px;
    }
}

@media (max-width: 500px) {
    .call-form textarea {
        min-height: 70px;
    }

    .close-btn {
        top: 10px;
        right: 12px;
        font-size: 24px;
    }
}
