/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #fff;
}
.captcha {
    margin-bottom: 15px;
    font-size: 14px;
}

.captcha label {
    display: block;
    margin-bottom: 5px;
}
.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211,47,47,0.15);
}
.order-form button:hover {
    background: #b71c1c;
}
.captcha input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.nav-bar-inner a {
    position: relative;
}
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.popup-box button {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: #d32f2f;
    color: #fff;
    cursor: pointer;
}

.nav-bar-inner a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #d32f2f;
    transition: width 0.2s ease;
}

.nav-bar-inner a:hover::after {
    width: 100%;
}
.hero-text h1 {
    max-width: 480px;
}
.hero-text h1 {
    max-width: 480px;
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d32f2f;
    outline-offset: 2px;
}

.order-form button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.form-message.success {
    background: #e6f4ea;
    color: #207245;
}

.form-message.error {
    background: #fdecea;
    color: #a32121;
}

/* ================= HEADER ================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.top-bar-inner,
.nav-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-block img {
    height: 42px;
}

.logo-title {
    font-size: 12px;
    color: #777;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: bold;
}

.top-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone {
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.callback-btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.nav-bar {
    background: #e6e6e6;
}

.nav-bar-inner a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
}

.nav-bar-inner a:hover {
    color: #d32f2f;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 500px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-text h1 {
    font-size: 28px;          /* чуть меньше */
    line-height: 1.25;
    white-space: nowrap;      /* 🔑 запрещаем перенос */
}

.hero-text {
    position: absolute;
    left: 60px;
    bottom: 60px;
    background: rgba(255,255,255,0.9);
    padding: 30px;
    max-width: 520px;
    border-radius: 20px;
}

/* ================= BLOCKS ================= */
.block {
    max-width: 1200px;
    margin: 40px auto;
    padding: 60px 40px;
    background: #fff;
    border-radius: 20px;
}

.block.gray {
    background: #f3f3f3;
}

.block h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 40px;
}

.block-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.block-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* LISTS */
.block-text ul {
    list-style: none;
}

.block-text li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
}

.block-text li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #c00;
    font-weight: bold;
}

/* ================= BUTTON ================= */
.main-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #d32f2f;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.main-btn:hover {
    background: #b71c1c;
}

/* ================= APPLICATIONS ================= */
.applications-carousel {
    position: relative;
    overflow: hidden;
    height: 360px;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.carousel-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ================= ORDER ================= */
.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* 🔑 главное */
}
.order-text {
    display: flex;
    align-items: center; /* центрируем по вертикали */
}
.order-form {
    background: #f0f0f0;
    padding: 24px;
    border-radius: 16px;
}

.order-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-form input,
.order-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.order-form button {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ================= CONTACTS ================= */
.contacts-block {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* ================= FOOTER ================= */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #666;
}
/* ================= MAP ================= */
.map-wrapper {
    width: 100%;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
    .block-row,
    .order-row {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        white-space: normal;  /* на узких экранах разрешаем перенос */
        font-size: 24px;
    }
    .hero {
        height: 420px;
    }

    .hero-text {
        left: 20px;
        right: 20px;
    }

    .applications-carousel {
        height: 260px;
    }
}
