/**
 * Contacts Page Styles (Контакти)
 * Modern card-based design
 */

/* ===================================
   BASE STYLES
   =================================== */

.contacts-page {
    position: relative;
    width: 100%;
    background: var(--color-bg, #F9F6F0);
    padding: 0;
    min-height: calc(100vh - 400px);
}

.site-main.contacts-page {
    margin-bottom: 0 !important;
}

body.page-contacts-template .footer-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.contacts-page .container {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   ARTICLE & HEADER
   =================================== */

.contacts-page .contacts-article {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.contacts-page .contacts-header {
    margin-bottom: 60px;
    text-align: center;
}

.contacts-page .contacts-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.2;
    color: var(--color-black, #1A1A1A);
    margin: 0;
}

/* ===================================
   CONTACT CARDS GRID
   =================================== */

.contacts-page .contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Individual Contact Card */
.contacts-page .contact-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contacts-page .contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #80C242 0%, #8DB255 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contacts-page .contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(128, 194, 66, 0.2);
}

.contacts-page .contact-card:hover::before {
    opacity: 1;
}

/* Card Icon */
.contacts-page .contact-card__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(128, 194, 66, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacts-page .contact-card:hover .contact-card__icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(128, 194, 66, 0.4);
}

.contacts-page .contact-card__icon svg {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
}

/* Card Content */
.contacts-page .contact-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contacts-page .contact-card__label {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: #666666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacts-page .contact-card__value {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.4;
    color: var(--color-black, #1A1A1A);
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts-page .contact-card__link:hover {
    color: #80C242;
}

.contacts-page .contact-card__hint {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #999999;
    margin: 8px 0 0 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.contacts-page .contacts-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 60px;
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(128, 194, 66, 0.3);
}

.contacts-page .contacts-cta__content {
    flex: 1;
}

.contacts-page .contacts-cta__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.contacts-page .contacts-cta__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contacts-page .contacts-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: #FFFFFF;
    color: #80C242;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contacts-page .contacts-cta__button:hover {
    background: #FFEAC4;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contacts-page .contacts-cta__button svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

.contacts-page .contact-card {
    animation: fadeInUp 0.6s ease both;
}

.contacts-page .contact-card:nth-child(1) { animation-delay: 0.1s; }
.contacts-page .contact-card:nth-child(2) { animation-delay: 0.2s; }
.contacts-page .contact-card:nth-child(3) { animation-delay: 0.3s; }

.contacts-page .contacts-cta {
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .contacts-page .contacts-grid {
        gap: 24px;
    }

    .contacts-page .contact-card {
        padding: 35px 25px;
    }

    .contacts-page .contacts-cta {
        padding: 40px 50px;
    }
}

@media (max-width: 1024px) {
    .contacts-page .contacts-article {
        padding: 50px 0 60px;
    }

    .contacts-page .contacts-title {
        font-size: 44px;
    }

    .contacts-page .contacts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        gap: 20px;
    }

    .contacts-page .contact-card {
        flex-direction: row;
        text-align: left;
        padding: 30px;
        gap: 24px;
    }

    .contacts-page .contact-card__icon {
        margin-bottom: 0;
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .contacts-page .contact-card__content {
        align-items: flex-start;
    }

    .contacts-page .contacts-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .contacts-page .contacts-cta__content {
        text-align: center;
    }

    .contacts-page .contacts-cta__title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .contacts-page .contacts-header {
        margin-bottom: 40px;
    }

    .contacts-page .contacts-title {
        font-size: 36px;
    }

    .contacts-page .contacts-grid {
        margin-bottom: 40px;
    }

    .contacts-page .contact-card {
        padding: 24px;
        border-radius: 20px;
    }

    .contacts-page .contact-card__icon {
        width: 60px;
        height: 60px;
    }

    .contacts-page .contact-card__icon svg {
        width: 26px;
        height: 26px;
    }

    .contacts-page .contact-card__label {
        font-size: 16px;
    }

    .contacts-page .contact-card__value {
        font-size: 18px;
    }

    .contacts-page .contacts-cta {
        padding: 30px 24px;
        border-radius: 20px;
        gap: 24px;
    }

    .contacts-page .contacts-cta__title {
        font-size: 26px;
    }

    .contacts-page .contacts-cta__text {
        font-size: 16px;
    }

    .contacts-page .contacts-cta__button {
        padding: 16px 28px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contacts-page .container {
        padding: 0 15px;
    }

    .contacts-page .contacts-article {
        padding: 30px 0 50px;
    }

    .contacts-page .contacts-header {
        margin-bottom: 30px;
    }

    .contacts-page .contacts-title {
        font-size: 28px;
    }

    .contacts-page .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }

    .contacts-page .contact-card__content {
        align-items: center;
    }

    .contacts-page .contact-card__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .contacts-page .contact-card__value {
        font-size: 17px;
        word-break: break-word;
    }

    .contacts-page .contacts-cta__title {
        font-size: 22px;
    }

    .contacts-page .contacts-cta__text {
        font-size: 15px;
    }

    .contacts-page .contacts-cta__button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.contacts-page .contact-card__link:focus,
.contacts-page .contacts-cta__button:focus {
    outline: 3px solid #80C242;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .contacts-page .contact-card,
    .contacts-page .contacts-cta {
        animation: none;
    }

    .contacts-page .contact-card,
    .contacts-page .contacts-cta__button {
        transition: none;
    }
}
