/**
 * Дополнительные стили для шаблонов страниц
 * Контакты и Партнёры
 */

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

/* Контактная секция */
:root {
    --color-primary: #5aac4e;
    --color-primary-hover: #458a3e;
    --color-primary-hover-light: rgba(77, 131, 62, 0.3);
    --color-primary-text: #2d2d2d;
    --color-primary-text-hover: #1a1a1a;
    --color-primary-text-light: #666;
    --color-primary-text-dark: #2d2d2d;
    --color-primary-text-dark-hover: #1a1a1a;
    --color-primary-text-light-hover: #666;
    --color-primary-text-dark-light: #2d2d2d;
    --color-primary-text-dark-light-hover: #1a1a1a;
}

.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.contact-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

/* Контактная форма */
.form-contact .form-group {
    margin-bottom: 25px;
}

.form-contact .form-control {
    height: 50px;
    padding: 15px 20px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-contact .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 107, 129, 0.1);
    outline: none;
}

.form-contact textarea.form-control {
    height: auto;
    min-height: 150px;
    resize: vertical;
}

.button-contactForm {
    background: var(--color-primary);
    color: #ffffff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-contactForm:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 129, 0.3);
}

/* Контактная информация */
.contact-info {
}

.contact-info__icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 20px;
}

.contact-info .media-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 5px;
}

.contact-info .media-body p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Уведомления */
.alert {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert .close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert .close:hover {
    opacity: 1;
}

/* Контент страницы перед формой */
.contact-page-content {
    font-size: 16px;
    line-height: 28px;
    color: #666;
}

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

/* Секция партнёров */
.partners-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-description {
/*    text-align: center;*/
    font-size: 16px;
    line-height: 28px;
    color: #666;
    margin-bottom: 60px;
}

.section-description p {
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
}
/* Карточка партнёра */
.single-partner {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /*height: 100%;*/
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.single-partner:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Изображение партнёра */
.partner-img {
    margin-bottom: 30px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.single-partner:hover .partner-img {
    background: #ffffff;
}

.partner-img img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.single-partner:hover .partner-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Контент карточки */
.partner-cap {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.partner-cap h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d2d2d;
}

.partner-cap h3 a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.partner-cap h3 a:hover {
    color: var(--color-primary-hover);
}

.partner-cap p {
    font-size: 15px;
    line-height: 26px;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

/* Ссылка на сайт партнёра */
.partner-link a {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.partner-link a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.partner-link a i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.partner-link a:hover i {
    transform: translateX(3px);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 991px) {
    .contact-title {
        font-size: 30px;
    }
    
    .partner-cap h3 {
        font-size: 20px;
    }
    
    .wantToWork-caption2 h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .contact-section,
    .partners-section {
        padding: 50px 0;
    }
    
    .contact-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .contact-info {
        margin-bottom: 25px;
    }
    
    .single-partner {
        margin-bottom: 30px;
    }
    
    .partner-img {
        min-height: 120px;
    }
    
    .partner-img img {
        max-height: 120px;
    }
    
    .section-description {
        margin-bottom: 40px;
    }
    
    .btn.f-right {
        float: none !important;
        display: block;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .contact-title {
        font-size: 22px;
    }
    
    .button-contactForm {
        width: 100%;
    }
    
    .partner-cap h3 {
        font-size: 18px;
    }
    
    .wantToWork-caption2 h2 {
        font-size: 22px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
   ============================================ */

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.single-partner,
.contact-info {
    animation: fadeInUp 0.6s ease-out;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Улучшенный фокус для доступности */
.form-control:focus,
.button-contactForm:focus,
.partner-link:focus {
    outline: 2px solid #ff6b81;
    outline-offset: 2px;
}

/* Состояние загрузки формы */
.form-contact.loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-contact.loading .button-contactForm:after {
    content: '...';
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* ============================================
   СТИЛИ ДЛЯ CONTACT FORM 7
   ============================================ */

.wpcf7-form {
    max-width: 100%;
    width: 100%;
}

/* Поля формы CF7 */
.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-number,
.wpcf7-form .wpcf7-date,
.wpcf7-form .wpcf7-select {
    width: 100%;
    height: 50px;
    padding: 15px 20px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wpcf7-form .wpcf7-textarea {
    width: 100%;
    height: auto;
    min-height: 150px;
    padding: 15px 20px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #ffffff;
    transition: all 0.3s ease;
    resize: vertical;
    font-family: inherit;
}

/* Фокус на полях */
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-tel:focus,
.wpcf7-form .wpcf7-number:focus,
.wpcf7-form .wpcf7-date:focus,
.wpcf7-form .wpcf7-select:focus,
.wpcf7-form .wpcf7-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 107, 129, 0.1);
    outline: none;
}

/* Кнопка отправки */
.wpcf7-form .wpcf7-submit {
    background: var(--color-primary);
    color: #ffffff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wpcf7-form .wpcf7-submit:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--color-primary-hover-light);
}

.wpcf7-form .wpcf7-submit:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Сообщения валидации */
.wpcf7-not-valid-tip {
    color: #721c24;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #f8d7da !important;
}

/* Сообщения об отправке */
.wpcf7-response-output {
    padding: 15px 20px;
    margin: 30px 0 0 0;
    border-radius: 5px;
    border: none !important;
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background: #fff3cd;
    color: #856404;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: #f8d7da;
    color: #721c24;
}

/* Спиннер загрузки */
.wpcf7-form .ajax-loader {
    margin-left: 10px;
    vertical-align: middle;
}

/* Состояние отправки формы */
.wpcf7-form.submitting {
    opacity: 0.6;
    pointer-events: none;
}

/* Чекбоксы и радиокнопки */
.wpcf7-form .wpcf7-list-item {
    margin: 0 0 10px 0;
    display: block;
}

.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
    margin: 0;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.wpcf7-form .wpcf7-list-item-label {
    cursor: pointer;
    font-size: 15px;
    color: #666;
}

/* Лейблы */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: #2d2d2d;
    font-weight: 500;
    font-size: 15px;
}

/* Адаптивность для CF7 */
@media (max-width: 575px) {
    .wpcf7-form .wpcf7-submit {
        width: 100%;
    }
}

/* ============================================
   СТИЛИ ДЛЯ КОНТАКТНОЙ ИНФОРМАЦИИ
   ============================================ */
   .contact-info span a i {
    font-size: 24px;
    margin-right: 5px;
    color: var(--color-primary);
    font-weight: 100;
}

/* ============================================
   COMPACT HEADER CONTROLS
   ============================================ */

.header-lang-switcher .lang-buttons {
    gap: 3px;
    padding: 3px;
    border-radius: 22px;
}

.header-lang-switcher .lang-btn {
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1;
    border-radius: 18px;
    letter-spacing: 0.3px;
    min-width: 34px;
}

.header-search .search-wrap {
    border-radius: 22px;
}

.header-search .search-field {
    width: 110px;
    padding: 7px 14px;
    font-size: 12px;
    line-height: 1.2;
}

.header-search .search-field:focus {
    width: 110px;
}

.header-search .search-submit {
    padding: 8px 13px;
}

.header-search .search-submit i {
    font-size: 14px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .header-search .search-field,
    .header-search .search-field:focus {
        width: 128px;
    }
}

/* ============================================
   FOOTER LOGO SAFETY
   ============================================ */

.footer-logo,
.footer-logo a,
.footer-logo .custom-logo-link {
    display: block;
    max-width: 100%;
}

.footer-logo img,
.footer-logo .custom-logo,
.footer-logo .footer-custom-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width: 991px) {
    .footer-logo {
        width: 100%;
        overflow: hidden;
    }

    .footer-logo img,
    .footer-logo .custom-logo,
    .footer-logo .footer-custom-logo {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   POSTS PHOTO GALLERY TEMPLATE
   ============================================ */

.posts-photo-gallery-page .blog_details {
    margin-bottom: 30px;
}

.posts-photo-gallery-section {
    margin-top: 45px;
}

.posts-photo-gallery-section .section-tittle {
    margin-bottom: 20px;
}

.posts-photo-gallery-section .section-tittle p {
    max-width: 720px;
    margin-bottom: 0;
}

.posts-photo-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    height: calc(100% - 30px);
}

.posts-photo-card__image {
    display: block;
    background: #eef5ec;
}

.posts-photo-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.posts-photo-card__body {
    padding: 22px 22px 24px;
}

.posts-photo-card__meta {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(90, 172, 78, 0.12);
    color: #3f7f37;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.posts-photo-card__title {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.35;
}

.posts-photo-card__title a {
    color: #0b1c39;
}

.posts-photo-card__title a:hover {
    color: #5aac4e;
}

.posts-photo-card__link {
    color: #5aac4e;
    font-weight: 600;
}

.posts-photo-card__link:hover {
    color: #3f7f37;
}

.posts-photo-gallery-empty {
    margin-bottom: 0;
    padding: 20px 24px;
    border-radius: 10px;
    background: #f4f8f3;
}

@media (max-width: 767px) {
    .posts-photo-gallery-section {
        margin-top: 35px;
    }

    .posts-photo-card__body {
        padding: 18px 18px 20px;
    }

    .posts-photo-card__title {
        font-size: 18px;
    }
}

/* ============================================
   POSTS VIDEO GALLERY TEMPLATE
   ============================================ */

.posts-video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    height: calc(100% - 30px);
}

.posts-video-card__media {
    position: relative;
    background: #0f1728;
}

.posts-video-card__media iframe,
.posts-video-card__media video,
.posts-video-card__media .wp-video,
.posts-video-card__media .wp-video-shortcode,
.posts-video-card__media .mejs-container,
.posts-video-card__media embed,
.posts-video-card__media object {
    display: block;
    width: 100% !important;
    max-width: 100%;
}

.posts-video-card__media iframe {
    aspect-ratio: 16 / 9;
    min-height: 320px;
    border: 0;
}

.posts-video-card__media video,
.posts-video-card__media .wp-video-shortcode {
    height: auto !important;
}

@media (max-width: 767px) {
    .posts-video-card__media iframe {
        min-height: 220px;
    }
}
