/* Дополнительные стили для МотоПилот */

/* Стили для формы заявки */
.site-form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
    margin: 0;
}

textarea.site-form__input {
    border-radius: 15px;
}

.site-form__input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.3);
}

/* Иконки для полей формы */
.site-form__input--icon {
    padding-left: 50px !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
}

/* Иконка пользователя */
.site-form__input--user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") !important;
}

.site-form__input--user:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") !important;
}

/* Иконка телефона */
.site-form__input--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") !important;
}

.site-form__input--phone:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Иконка email */
.site-form__input--email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.site-form__input--email:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Иконка числа (возраст) */
.site-form__input--number {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cline x1='4' y1='9' x2='20' y2='9'%3E%3C/line%3E%3Cline x1='4' y1='15' x2='20' y2='15'%3E%3C/line%3E%3Cline x1='10' y1='3' x2='8' y2='21'%3E%3C/line%3E%3Cline x1='16' y1='3' x2='14' y2='21'%3E%3C/line%3E%3C/svg%3E") !important;
}

.site-form__input--number:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2'%3E%3Cline x1='4' y1='9' x2='20' y2='9'%3E%3C/line%3E%3Cline x1='4' y1='15' x2='20' y2='15'%3E%3C/line%3E%3Cline x1='10' y1='3' x2='8' y2='21'%3E%3C/line%3E%3Cline x1='16' y1='3' x2='14' y2='21'%3E%3C/line%3E%3C/svg%3E") !important;
}

/* Обязательные поля - звездочка */
.site-form__required span::after {
    display: inline-block;
    content: " *";
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    color: #ef7c00;
    margin-left: 3px;
}

/* Стили для чекбокса */
.site-form__checkbox {
    margin: 20px 0;
}

.site-form__checkbox .site-form__input {
    display: none;
}

.site-form__checkbox .site-form__input:checked + span::after {
    opacity: 1;
}

.site-form__checkbox span {
    padding-left: 35px;
    position: relative;
    display: inline-block;
    font-size: 14px;
    color: #333;
    line-height: 22px;
    user-select: text;
}

.site-form__checkbox span::before {
    content: "";
    display: block;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border: 3px solid #ef7c00;
    background-color: #ffffff;
    position: absolute;
    top: 10px;
    left: 0;
    border-radius: 5px;
    cursor: pointer;
}

.site-form__checkbox span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    width: 12px;
    height: 8px;
    border-bottom: 2px solid #ef7c00;
    border-left: 2px solid #ef7c00;
    transform: rotate(-45deg);
    position: absolute;
    top: 10px;
    left: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

/* Убираем оранжевый цвет при наведении на чекбокс */
.site-form__checkbox:hover span {
    color: #333 !important;
}

/* Ссылки в чекбоксах */
.checkbox-link {
    color: #ff6b00;
    text-decoration: underline;
    transition: color 0.3s;
    pointer-events: auto;
}

.checkbox-link:hover {
    color: #e55f00;
}

.site-form__input::-webkit-input-placeholder {
    color: #999;
}

.site-form__input::-moz-placeholder {
    color: #999;
}

.site-form__input:-ms-input-placeholder {
    color: #999;
}

.site-form__input::placeholder {
    color: #999;
}

/* Стили для кнопок */
.btn--orange {
    padding: 15px 40px;
    font-size: 16px;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--orange:hover {
    background: #e55f00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Стили для таблиц */
.schedule-table {
    margin-top: 40px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.schedule-table thead tr {
    background: rgba(255, 107, 0, 0.3);
}

.schedule-table th {
    padding: 15px 10px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-size: 14px;
}

.schedule-table td {
    padding: 15px 10px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 14px;
}

.schedule-table tbody tr:hover {
    background: rgba(255, 107, 0, 0.1);
}

/* Старые стили для transfer-table (не используются) */
.transfer-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.transfer-table th {
    padding: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.transfer-table td {
    padding: 15px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.transfer-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Стили для контента из CKEditor в блоке "Программа МотоПилот" */
.main-segment__content {
    text-align: left;
}

.main-segment__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-segment__content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.main-segment__content ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50%;
}

.main-segment__content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.main-segment__content strong,
.main-segment__content b {
    font-weight: 700;
    color: #ff6b00;
}

/* Стили для контента из CKEditor в блоке "Условия проживания" */
.conditions-text p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.conditions-text strong,
.conditions-text b {
    font-weight: 700;
    color: #ff6b00;
}

.conditions-text ul,
.conditions-text ol {
    margin: 10px 0;
    padding-left: 20px;
}

.conditions-text ul li,
.conditions-text ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Стили для контента из CKEditor в блоке "Прокат техники" */
.rental-description p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.rental-description strong,
.rental-description b {
    font-weight: 700;
    color: #ff6b00;
}

.rental-description ul,
.rental-description ol {
    margin: 10px 0;
    padding-left: 20px;
}

.rental-description ul li,
.rental-description ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Стили для сообщений */
.alert {
    position: relative;
    padding: 20px 50px 20px 60px;
    margin: 20px 0 30px 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.alert-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    border: 2px solid #45a049;
}

.alert-success::before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-error {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: #fff;
    border: 2px solid #e53935;
}

.alert-error::before {
    content: "✕";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) rotate(90deg);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.alert.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@media (max-width: 768px) {
    .alert {
        padding: 15px 45px 15px 50px;
        font-size: 14px;
    }
    
    .alert-success::before,
    .alert-error::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
    
    .alert-close {
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .main-segment__columns {
        flex-direction: column;
    }
    
    .schedule-table,
    .transfer-table {
        overflow-x: auto;
    }
    
    .schedule-table table,
    .transfer-table table {
        min-width: 600px;
    }
    
    .schedule-table th,
    .schedule-table td {
        font-size: 13px;
        padding: 12px 8px;
    }
    
    .site-form {
        padding: 20px !important;
    }
}

/* Стили для прокрутки */
html {
    scroll-behavior: smooth;
}

/* Дополнительные анимации */
.bounceIn {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes bounceIn {
    from,
    20%,
    40%,
    60%,
    80%,
    to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Стили для галереи (для будущих фото) */
.main-segment__gallery {
    margin-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Улучшение footer */
.site-footer {
    background: #1a1a1a;
    padding: 40px 0;
    text-align: center;
    border-top: 3px solid #ff6b00;
}

.site-footer p {
    margin: 10px 0;
}

/* Стили для контактной секции */
.contacts-info {
    margin-top: 40px;
    text-align: center;
}

.contacts-info a {
    color: #ff6b00;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
}

.contacts-info a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #e55f00;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.6);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ===== */

/* Увеличенные отступы сверху для заголовков */
.segment-h {
    margin-top: 60px !important;
}

.main-segment__h {
    margin-top: 60px !important;
}

@media (max-width: 768px) {
    .segment-h,
    .main-segment__h {
        margin-top: 40px !important;
    }
}

/* Стили для информации о программе */
.main-segment__info {
    margin-top: 50px;
}

.program-info-main {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 20px;
}

.program-info-text {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 20px;
}

.program-info-text:last-child {
    margin-bottom: 0;
}

/* Стили для кнопки проката */
.prokat-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b00;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    font-style: normal !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.prokat-btn:hover {
    background: #e55f00;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

.prokat-text {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Стили для секции проката техники (светлый фон) */
.rental-description {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.rental-details {
    margin-top: 30px;
}

.rental-item {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.rental-item:last-child {
    margin-bottom: 0;
}

/* Стили для галереи */
.gallery-title {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-text {
    text-align: center;
    color: #fff;
    font-style: italic;
}

/* Стили для блока о программе с фото */
.program-about-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.program-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .program-about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.program-about-text {
    color: #333;
}

.program-about-text h3 {
    font-size: 24px;
    color: #ff6b00;
    margin-bottom: 20px;
    font-weight: bold;
}

.program-about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.program-about-text p:last-child {
    margin-bottom: 0;
}

.program-about-text strong {
    color: #ff6b00;
}

/* Коллаж фотографий справа */
.photo-collage-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s;
}

.photo-collage-item a,
.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.photo-collage-item a:hover,
.gallery-link:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.photo-collage-item a::after,
.gallery-link::after {
    content: "⤢";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.photo-collage-item a:hover::after,
.gallery-link:hover::after {
    opacity: 1;
}

.photo-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.photo-collage-item a:hover img,
.gallery-link:hover img {
    filter: brightness(0.8);
}

/* Фото 1 - большое сверху */
.photo-collage-top {
    grid-column: 1 / 3;
    height: 280px;
}

/* Фото 2 и 3 - средние */
.photo-collage-middle {
    height: 200px;
}

/* Ряд с большими фото внизу */
.photo-collage-bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.photo-collage-bottom-item {
    height: 280px;
}

@media (max-width: 992px) {
    .photo-collage-right {
        grid-template-columns: 1fr;
    }
    
    .photo-collage-top,
    .photo-collage-middle {
        grid-column: 1;
        height: 250px;
    }
    
    .photo-collage-bottom-row {
        grid-template-columns: 1fr;
    }
    
    .photo-collage-bottom-item {
        height: 250px;
    }
}

/* Стили для секций с белым фоном */
.section-light {
    background-color: #f5f5f5;
}

/* Градиентный фон для секции "О программе" */
#about-program {
    background: linear-gradient(to right, #efefef 0%, #ffffff 100%);
}

/* Темный фон для секций с градиентом */
#schedule,
#contacts {
    background: linear-gradient(to bottom, #1a1a1a 0%, #2d2d2d 100%);
}

/* Оранжевые заголовки в секциях расписания и контактов */
#schedule .main-segment__h,
#schedule .gallery-title,
#contacts .main-segment__h {
    color: #ff6b00 !important;
}

.text-dark {
    color: #333 !important;
}

/* Блок условий с иконками */
.conditions-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.conditions-info {
    background: rgba(255, 107, 0, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 0, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.conditions-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.4);
}

.conditions-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.conditions-subtitle {
    font-size: 20px;
    color: #ff6b00;
    font-weight: bold;
    margin-bottom: 15px;
}

.conditions-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .conditions-block {
        grid-template-columns: 1fr;
    }
}

/* Необычный коллаж для условий проживания */
.conditions-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 15px;
    margin-top: 40px;
}

.conditions-photo {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s;
}

.conditions-photo a,
.gallery-link-conditions {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.conditions-photo a:hover,
.gallery-link-conditions:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.conditions-photo a::after,
.gallery-link-conditions::after {
    content: "⤢";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.conditions-photo a:hover::after,
.gallery-link-conditions:hover::after {
    opacity: 1;
}

.conditions-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.conditions-photo a:hover img,
.gallery-link-conditions:hover img {
    filter: brightness(0.8);
}

/* Необычная мозаичная раскладка */
.conditions-photo-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.conditions-photo-small {
    grid-column: 3;
    grid-row: 1;
}

.conditions-photo-tall {
    grid-column: 3;
    grid-row: 2 / 4;
}

.conditions-photo-medium {
    grid-column: 4;
    grid-row: 1 / 3;
}

.conditions-photo-wide {
    grid-column: 1 / 3;
    grid-row: 3;
}

@media (max-width: 992px) {
    .conditions-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .conditions-photo-main,
    .conditions-photo-small,
    .conditions-photo-tall,
    .conditions-photo-medium,
    .conditions-photo-wide {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 250px;
    }
}

.gallery-text-dark {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Стили для таблиц - расширение */
.schedule-info {
    margin-top: 30px;
    margin-bottom: 30px;
}

.schedule-info-text {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    text-align: center;
}

.empty-table-text {
    text-align: center;
    color: #fff;
    font-style: italic;
    margin-top: 30px;
}

.transfer-section {
    margin-top: 60px;
}

.transfer-info {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

/* Стили для таблицы трансфера из Москвы */
.moscow-transfer-table {
    margin-top: 40px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.moscow-transfer-table table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.moscow-transfer-table thead tr {
    background: rgba(255, 107, 0, 0.3);
}

.moscow-transfer-table th {
    padding: 15px 10px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-size: 14px;
}

.moscow-transfer-table td {
    padding: 15px 10px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 14px;
}

.moscow-transfer-table tbody tr:hover {
    background: rgba(255, 107, 0, 0.1);
}

.price-cell {
    font-weight: bold;
    color: #ffa23d !important;
    font-size: 15px !important;
}

.transfer-order-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #ff6b00;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
}

.transfer-order-btn:hover {
    background: #e55f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.4);
}

.transfer-info-box {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ff6b00;
}

.transfer-includes {
    color: #fff;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.transfer-includes strong {
    color: #ffa23d;
}

@media (max-width: 1200px) {
    .moscow-transfer-table {
        overflow-x: auto;
    }
    
    .moscow-transfer-table table {
        min-width: 900px;
    }
    
    .moscow-transfer-table th,
    .moscow-transfer-table td {
        font-size: 13px;
        padding: 12px 8px;
    }
}

/* Стили для формы - расширение */
.site-form {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site-form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.site-form__col {
    display: flex;
    flex-direction: column;
}

.site-form__field {
    margin-bottom: 20px;
}

/* Стили для радиобаттонов трансфера */
.site-form__radio-group {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-form__radio-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #333;
    margin: 0;
}

.site-form__radio-item:hover {
    border-color: #ff6b00;
    background: #fff5f0;
}

.site-form__radio-item input[type="radio"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6b00;
    flex-shrink: 0;
}

.site-form__radio-item input[type="radio"]:checked ~ span,
.site-form__radio-item:has(input[type="radio"]:checked) {
    border-color: #ff6b00;
    background: #fff5f0;
    font-weight: 600;
    color: #ff6b00;
}

.site-form__radio-item span {
    flex: 1;
}

@media (max-width: 768px) {
    .site-form {
        padding: 30px 20px;
    }
    
    .site-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.site-form__label {
    display: block;
    color: #333;
}

.site-form__label span {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.site-form__submit {
    text-align: center;
    margin-top: 30px;
}

/* Стили для textarea */
.site-form__input[rows] {
    resize: vertical;
    min-height: 100px;
    padding: 12px 15px;
    border-radius: 15px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

/* Стили для select */
.site-form__input[name="shift"] {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px;
    border-radius: 15px;
    line-height: 1.4;
    height: auto;
}

select.site-form__input option {
    padding: 10px;
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 260px;
    height: 50px;
    padding: 0 30px;
    margin: 0 auto;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    background: #ef7c00;
    background-image: linear-gradient(to top, #ff6b3d, #ffa23d);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-image: linear-gradient(to top, #e55f00, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

/* Стили для контактов - расширение */
.contacts-description {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #ff6b00;
    text-decoration: none;
}

.contact-link:hover {
    color: #e55f00;
    text-decoration: underline;
}

/* Стили для футера - расширение */
.footer-copyright {
    color: #fff;
    margin-bottom: 10px;
}

.footer-description {
    color: #999;
}

/* Стили для Lightbox - кастомизация */
.lightbox {
    background: rgba(0, 0, 0, 0.95) !important;
}

.lightbox__button:hover {
    color: #ff6b00 !important;
}

.lightbox__caption {
    background: rgba(255, 107, 0, 0.9) !important;
    border-radius: 25px !important;
}

/* Эффект приподнятия для белой кнопки */
.btn--white {
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

.btn--white:hover {
    transform: translateY(-3px) !important;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal--opened {
    display: flex !important;
}

.modal__block {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.modal__announcement {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

.modal-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.modal-form .site-form__field {
    margin-bottom: 20px;
}

.modal__btn-block {
    max-width: 260px;
    margin: 20px auto 0;
    text-align: center;
}

.modal__closer {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ff6b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s;
    cursor: pointer;
}

.modal__closer:hover {
    background: #e55f00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
}

.modal__bg-closer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (max-width: 768px) {
    .modal__block {
        padding: 30px 20px;
    }
    
    .modal__header {
        font-size: 24px;
    }
}

/* Стили для юридических страниц */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.legal-title {
    font-size: 32px;
    color: #ff6b00;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.legal-date {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin: 30px 0 15px 0;
    padding-top: 20px;
    border-top: 2px solid #f5f5f5;
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    color: #ff6b00;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.legal-back {
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 30px 20px;
    }
    
    .legal-title {
        font-size: 24px;
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
    
    .legal-content h3 {
        font-size: 16px;
    }
}

/* Ссылки в футере */
.footer-legal-links {
    margin-top: 20px;
    text-align: center;
}

.footer-legal-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-legal-link:hover {
    color: #ff6b00;
    text-decoration: underline;
}

.footer-divider {
    color: #666;
    margin: 0 10px;
}

.footer-disclaimer {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
    text-align: center;
    font-style: italic;
}

/* Стили для хедера на юридических страницах */
.legal-header-btn.site-header__col--center {
    margin: 0 auto;
    max-width: 300px !important;
}

/* Стили для кнопки "Вернуться на главную" на юридических страницах */
.legal-back .btn-submit {
    max-width: 300px !important;
}

/* Неактивная кнопка отправки формы */
.btn-submit:disabled,
.btn-submit.disabled {
    background: #cccccc !important;
    background-image: none !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.btn-submit:disabled:hover,
.btn-submit.disabled:hover {
    background: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Кнопка "Важная информация" */
.important-info-btn-block {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.important-info-btn-block .btn {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    padding: 15px 40px !important;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: all 0.3s;
    line-height: 1.2 !important;
    vertical-align: middle;
    text-decoration: none;
}

.important-info-btn-block .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
}

/* Стили для страницы "Важная информация" */
.legal-list {
    margin: 30px 0;
    padding-left: 25px;
    line-height: 1.8;
}

.legal-list li {
    margin-bottom: 20px;
    color: #333;
}

.legal-important {
    background: #fff3e0;
    border-left: 4px solid #ff6b00;
    padding: 20px;
    margin: 30px 0;
    line-height: 1.8;
    color: #333;
}

.legal-highlight {
    background: #ffebee;
    border: 2px solid #d32f2f;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    line-height: 1.8;
    color: #d32f2f;
    border-radius: 8px;
}

/* Скрываем badge reCAPTCHA v3 */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

/* Стили для открытого бургер-меню */
.site-nav--opened {
    left: 0 !important;
}

@media (min-width: 576px) {
    .site-nav--opened {
        left: auto !important;
    }
}

