/* ===== БАЗА ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0px;
    background-image: url('/wp-content/uploads/2026/06/pattern-for-order.webp');
    background-repeat: repeat;        /* повторять по горизонтали и вертикали */
    background-attachment: fixed;; 
}

section {
    background: white;
    padding: 30px 85px; 
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #878787; 
    max-width: 840px;
    margin-left: auto;     /* ← центрирование */
    margin-right: auto;
}

h1, h2 {
    color: #333;
    margin-top: 0px;
    line-height: 1.1em;
}

.h2-subtitle {
    display: block;
    font-size: 0.77em;
    font-weight: normal;
    color: #666;
    margin-top: 5px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;     /* чтобы шрифт был как везде */
    line-height: 1.5;         /* удобное расстояние между строками */
    resize: none;             /* ← запрещаем ручное изменение размера */
    box-sizing: border-box;
    background-color: white;
}

textarea:focus {
    outline: none;
    border-color: #237a51;    /* такой же зелёный, как у input */
}

footer {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 30px;
}

/* ===== СТИЛИ ДЛЯ БЛОКА TOP-LINE (Заголовок + Картинка + Текст) ===== */
.top-line {
    display: flex;
    flex-direction: column; /* H1 сверху, контент снизу */
    align-items: center;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 40px;     
    box-sizing: border-box;
}

.top-line h1 {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

/* Контейнер для картинки и текста */
.top-line-inner {
    display: flex;
    flex-direction: row;    /* Картинка и текст в ряд */
    align-items: center;    /* Центрируем по вертикали */
    gap: 35px;              /* Расстояние между картинкой и текстом */
    width: 100%;
}

/* Картинка */
.top-line-image {
    width: 30%;             /* Картинка занимает 30% ширины */
    flex-shrink: 0;         /* Запрещаем картинке сжиматься */
}

.top-line-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Легкая тень для объема */
}

/* Текст */
.top-line-content {
    width: 70%;             /* Текст занимает 70% ширины */
}

/* Убираем лишние отступы у первого и последнего абзацев для идеального выравнивания */
.top-line-content p:first-child {
    margin-top: 0;
}

.top-line-content p:last-child {
    margin-bottom: 0;
}

#orderDescription::placeholder {
  font-style: italic;
  color: #9aa0a6;
  opacity: 1; /* Firefox по умолчанию снижает opacity */
}

/* ===== СТИЛИ ДЛЯ СЕКЦИИ ЦЕН (МАКСИМАЛЬНО КОМПАКТНЫЕ) ===== */
.pricing-section {
    max-width: 840px;
    margin: 15px auto; /* Уменьшили внешние отступы сверху/снизу */
    padding: 15px 30px; /* Уменьшили внутренние отступы секции */
    background: white;
    border-radius: 12px;
    border: 1px solid #878787;
    box-sizing: border-box;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 15px; /* Минимальный отступ под заголовком */
    color: #333;
    font-size: 20px; /* Заголовок стал меньше */
}

/* Сетка для карточек */
.pricing-cards {
    display: flex;
    gap: 15px; 
    justify-content: space-between;
}

/* Сама карточка */
.pricing-card {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px; 
    padding: 12px 10px; /* Отступы сжаты до минимума (было 15px) */
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer; /* Добавляем курсор-руку */
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.pricing-card h3 {
    margin-top: 0;
    font-size: 15px; 
    color: #333;
    margin-bottom: 2px; /* Почти вплотную к цене */
}

.pricing-price {
    font-size: 22px; /* Уменьшили размер цены */
    font-weight: bold;
    color: #237a51;
    margin-bottom: 4px; /* Минимальный отступ */
}

.pricing-price span {
    font-size: 14px; 
    font-weight: normal;
}

.pricing-desc {
    font-size: 12px; 
    color: #666;
    line-height: 1.25; /* Сделали текст максимально плотным */
    margin-bottom: 0;
    flex-grow: 1;
}

/* Стили для выделенной карточки (Связка) */
.pricing-card-featured {
    border: 1px solid #e0e0e0;
}

.pricing-card-featured h3 {
    color: #237a51;
}

/* Плашка "Выгодно" */
.pricing-badge {
    position: absolute;
    top: -9px; 
    left: 50%;
    transform: translateX(-50%);
    background: #237a51;
    color: white;
    font-size: 10px; 
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ КЛИКАБЕЛЬНЫХ КАРТОЧЕК ===== */
.tariff-radio {
    display: none; /* Скрываем стандартные кружочки */
}

.pricing-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Эффект выбора карточки */
.pricing-card.selected {
    border: 2px solid #237a51;
    background: #f0fdf4; /* Легкий зеленоватый фон */
    box-shadow: 0 0 10px rgba(35, 122, 81, 0.2);
}

.pricing-card-featured.selected {
    background: #f0fdf4;
}
/* ================================================== */

/* Адаптация для мобильных телефонов */
@media (max-width: 768px) {
    .pricing-section {
        padding: 15px;
    }
    
    .pricing-cards {
        flex-direction: column;
        gap: 15px;
    }
    
    .pricing-card-featured {
        margin-top: 8px;
    }
}

/* ===== Стили для формы ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

.form-selection_div {
    padding: 10px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

label {
    font-weight: bold;
}

input, select, option {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

#customHzContainer input , #customCarTypeContainer input {
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #237a51;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    width: fit-content;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #575760;
    transform: scale(1.05);
}

.menu-toggle:hover {
    background-color: #237a51;
    transform: none;
}

/* Стиль для формы при наведении */
input:hover, select:hover {
    border: 1px solid #949191;
}

/* Стиль для формы при фокусе */
form input:focus {
    outline: none;
    border-color: #237a51;
}

/* ===== Стили для блока соцсетей ===== */
.social-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    font-size: 14px;
}

.social-card img {
    width: 24px; 
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 200px));
    gap: 5px 15px;
}


/* ===== МОБИЛЬНАЯ ВЕРСИЯ (Адаптация) ===== */
@media (max-width: 480px) {
    section {
        padding: 20px 25px;
    }

    .top-line {
        padding: 20px 15px;
    }

    /* На мобильных картинка и текст встают в колонку */
    .top-line-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .top-line-image {
        width: 80%; /* На телефоне картинка будет крупной */
        margin: 0 auto;
    }
    
    .top-line-content {
        width: 100%;
        text-align: left;
    }
    
    .top-line h1 {
        font-size: 22px;
    }
    
    .top-line-content p {
        font-size: 14px;
    }
}