/* =================================================================
   CONTACT PAGE - подравнено с index.html/services.html
   ================================================================= */

body.contact-page {
    font-family: "Inter", "Poppins", sans-serif;
    background: #0b1120;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.6;
    font-size: 0.9rem;
}

body.contact-page .section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

body.contact-page .container {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding-inline: clamp(1.5rem, 5vw, 3rem);
}

body.contact-page .section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(1.8rem, 4.5vw, 3rem);
}

body.contact-page .section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.contact-page .section-subtitle {
    font-size: clamp(0.85rem, 2vw, 0.98rem);
    line-height: 1.62;
    color: rgba(203, 213, 225, 0.85);
    margin: 0 auto;
    max-width: 70ch;
}

/* =================================================================
   HERO SECTION (копие от index.css)
   ================================================================= */

body.contact-page .hero-section {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.8)),
        url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=70")
            center/cover no-repeat;
    padding-top: 120px;
}

body.contact-page .hero-background,
body.contact-page .hero-overlay,
body.contact-page .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

body.contact-page .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(30, 41, 59, 0.7) 50%,
        rgba(59, 130, 246, 0.3) 100%
    );
}

body.contact-page .hero-particles {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="18" cy="8" r="0.3" fill="rgba(59,130,246,0.2)"/><circle cx="8" cy="18" r="0.4" fill="rgba(139,92,246,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-3px);
    }
    75% {
        transform: translateY(-15px) translateX(2px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

body.contact-page .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(3rem, 7vw, 5rem) 0;
}

body.contact-page .hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3rem);
    align-items: center;
    width: min(100%, 1080px);
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

@media (min-width: 1024px) {
    body.contact-page .hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
        gap: clamp(2.5rem, 4vw, 3.5rem);
        padding-inline: 2.5rem;
    }
}

body.contact-page .hero-text {
    text-align: center;
    color: white;
    max-width: clamp(320px, 80vw, 520px);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    body.contact-page .hero-text {
        text-align: left;
        margin: 0;
    }
}

body.contact-page .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

body.contact-page .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.4);
    color: rgba(226, 232, 240, 0.95);
    font-size: clamp(0.75rem, 2vw, 0.8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.contact-page .hero-title {
    font-size: clamp(1.45rem, 5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(0.9rem, 3vw, 1.3rem);
}

body.contact-page .title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.contact-page .title-line:last-child {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.contact-page .hero-subtitle {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.84);
    margin-bottom: clamp(1.1rem, 3.5vw, 1.75rem);
}

body.contact-page .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 2.5vw, 0.85rem);
    align-items: stretch;
    width: 100%;
}

@media (min-width: 640px) {
    body.contact-page .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: clamp(0.75rem, 2.5vw, 1.2rem);
        width: auto;
    }
}

@media (min-width: 1024px) {
    body.contact-page .hero-buttons {
        justify-content: flex-start;
        align-items: center;
    }
}

body.contact-page .hero-buttons .btn {
    min-width: 0;
    padding: 0.75rem 1.15rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.contact-page .hero-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

body.contact-page .hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

body.contact-page .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

body.contact-page .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

body.contact-page .hero-metrics {
    margin-top: clamp(1.5rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(0.75rem, 2vw, 1rem);
}

body.contact-page .hero-metric {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    text-align: left;
}

body.contact-page .metric-label {
    display: block;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 0.35rem;
}

body.contact-page .hero-metric strong {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #e0f2fe;
    margin-bottom: 0.15rem;
}

body.contact-page .metric-caption {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    color: rgba(203, 213, 225, 0.85);
}

body.contact-page .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    width: 100%;
    max-width: 400px;
}

body.contact-page .hero-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.5rem;
    padding: clamp(2rem, 4.5vw, 2.5rem);
    text-align: center;
    color: rgba(226, 232, 240, 0.98);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.contact-page .hero-card-header h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.35;
}

body.contact-page .hero-card-header p {
    margin: 0;
    font-size: clamp(0.8rem, 1.7vw, 0.92rem);
    line-height: 1.55;
}

body.contact-page .hero-card-badge {
    font-size: clamp(0.72rem, 1.5vw, 0.82rem);
    padding: 0.35rem 0.8rem;
}

body.contact-page .hero-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: clamp(1.25rem, 3vw, 1.75rem) 0;
}

body.contact-page .hero-contact-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.6);
    align-items: flex-start;
}

body.contact-page .hero-contact-item i {
    width: 42px;
    height: 42px;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

body.contact-page .hero-contact-item .label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: clamp(0.78rem, 1.5vw, 0.88rem);
    line-height: 1.2;
}

body.contact-page .hero-contact-item a,
body.contact-page .hero-contact-item span {
    font-size: clamp(0.86rem, 1.8vw, 0.98rem);
    line-height: 1.4;
}

body.contact-page .hero-contact-item p {
    margin: 0.2rem 0 0;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem) !important;
    line-height: 1.35 !important;
}

body.contact-page .hero-card-pill {
    flex: 1;
    min-width: 140px;
    border-radius: 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.12);
    padding: 0.75rem 1rem;
    text-align: center;
}

/* =================================================================
   CONTACT INFO SECTION (четири карти)
   ================================================================= */

body.contact-page .contact-info-section {
    position: relative;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.9);
    background:
        linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.75)),
        url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=70")
            center/cover no-repeat;
}

body.contact-page .contact-info-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.72);
    z-index: 0;
}

body.contact-page .contact-info-section > .container {
    position: relative;
    z-index: 1;
}

body.contact-page .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

body.contact-page .contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

body.contact-page .contact-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.contact-page .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

body.contact-page .contact-info-card h3 {
    color: rgba(226, 232, 240, 0.95);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.contact-page .contact-info-card p {
    color: rgba(203, 213, 225, 0.85);
    font-size: clamp(0.85rem, 1.8vw, 0.9rem);
    margin: 0.5rem 0;
}

body.contact-page .contact-link {
    color: rgba(59, 130, 246, 0.9);
    text-decoration: none;
    font-weight: 500;
}

/* =================================================================
   CONTACT FORM + BENEFITS
   ================================================================= */

body.contact-page .contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 2.2vw, 1.4rem);
    margin-top: 0;
    align-items: stretch;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    body.contact-page .contact-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.1rem, 2.6vw, 1.8rem);
    }
}

body.contact-page .contact-benefits,
body.contact-page .contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    padding: clamp(1rem, 2.2vw, 1.35rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body.contact-page .contact-benefits {
    justify-content: space-between;
    gap: 0.75rem;
}

body.contact-page .contact-benefits h3 {
    color: rgba(226, 232, 240, 0.95);
    font-size: clamp(0.9rem, 1.9vw, 1.02rem);
    font-weight: 600;
    margin-bottom: 0;
}

body.contact-page .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

body.contact-page .benefits-list li {
    display: flex;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-start;
}

body.contact-page .benefits-list li:last-child {
    border-bottom: none;
}

body.contact-page .benefits-list li i {
    color: #3b82f6;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

body.contact-page .benefits-list li strong {
    color: rgba(226, 232, 240, 0.95);
    font-size: clamp(0.76rem, 1.45vw, 0.84rem);
    display: block;
    margin-bottom: 0.25rem;
}

body.contact-page .benefits-list li p {
    color: rgba(203, 213, 225, 0.85);
    font-size: clamp(0.7rem, 1.3vw, 0.76rem);
    margin: 0;
}

body.contact-page .contact-cta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.contact-page .direct-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.contact-page .direct-contact .btn {
    padding: 0.52rem 0.85rem;
    border-radius: 0.42rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(226, 232, 240, 0.95);
    font-size: clamp(0.7rem, 1.25vw, 0.78rem);
}

body.contact-page .direct-contact .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

body.contact-page .btn:focus-visible,
body.contact-page input:focus-visible,
body.contact-page textarea:focus-visible,
body.contact-page select:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 3px;
}

body.contact-page .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

body.contact-page .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
}

@media (min-width: 640px) {
    body.contact-page .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
}

body.contact-page .form-group {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Override floating label styles from components.css - ensure labels are normal, not floating */
body.contact-page .contact-form-container .form-group label,
body.contact-page .contact-form .form-group label,
body.contact-page #contact-form-main .form-group label,
body.contact-page .form-group > label[for] {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    color: rgba(226, 232, 240, 0.98) !important;
    font-size: clamp(0.72rem, 1.3vw, 0.8rem) !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    line-height: 1.5 !important;
    transform: none !important;
    pointer-events: auto !important;
    background-color: transparent !important;
    padding: 0 !important;
    transition: color 0.3s ease !important;
    z-index: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hide any labels that come after input fields (from floating label styles) */
body.contact-page .contact-form-container .form-group input + label,
body.contact-page .contact-form-container .form-group textarea + label,
body.contact-page .contact-form-container .form-group select + label,
body.contact-page .contact-form .form-group input + label,
body.contact-page .contact-form .form-group textarea + label,
body.contact-page .contact-form .form-group select + label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Disable floating label behavior for contact page */
body.contact-page .contact-form-container .form-group input:focus + label,
body.contact-page .contact-form-container .form-group textarea:focus + label,
body.contact-page .contact-form-container .form-group select:focus + label,
body.contact-page .contact-form-container .form-group input:not(:placeholder-shown) + label,
body.contact-page .contact-form-container .form-group textarea:not(:placeholder-shown) + label,
body.contact-page .contact-form-container .form-group select:not([value=""]) + label,
body.contact-page .contact-form .form-group input:focus + label,
body.contact-page .contact-form .form-group textarea:focus + label,
body.contact-page .contact-form .form-group select:focus + label,
body.contact-page .contact-form .form-group input:not(:placeholder-shown) + label,
body.contact-page .contact-form .form-group textarea:not(:placeholder-shown) + label,
body.contact-page .contact-form .form-group select:not([value=""]) + label {
    position: static !important;
    top: auto !important;
    left: auto !important;
    font-size: clamp(0.72rem, 1.3vw, 0.8rem) !important;
    color: rgba(226, 232, 240, 0.98) !important;
    transform: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

body.contact-page .form-group input,
body.contact-page .form-group textarea,
body.contact-page .form-group select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-size: clamp(0.72rem, 1.25vw, 0.8rem);
    font-weight: 400;
    color: rgba(226, 232, 240, 0.98);
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.55rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
}

body.contact-page .form-group input:focus,
body.contact-page .form-group textarea:focus,
body.contact-page .form-group select:focus {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

body.contact-page .form-group input:hover,
body.contact-page .form-group textarea:hover,
body.contact-page .form-group select:hover {
    border-color: rgba(148, 163, 184, 0.5);
}

body.contact-page .form-group input:invalid:not(:placeholder-shown),
body.contact-page .form-group textarea:invalid:not(:placeholder-shown),
body.contact-page .form-group select:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.6);
}

body.contact-page .form-group select {
    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='%2360a5fa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

body.contact-page .form-group textarea {
    resize: vertical;
    min-height: 84px;
    font-family: inherit;
    line-height: 1.6;
}

body.contact-page .form-group input::placeholder,
body.contact-page .form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.6);
    opacity: 1;
}

body.contact-page .form-group input::-webkit-input-placeholder,
body.contact-page .form-group textarea::-webkit-input-placeholder {
    color: rgba(148, 163, 184, 0.6);
}

body.contact-page .form-group input::-moz-placeholder,
body.contact-page .form-group textarea::-moz-placeholder {
    color: rgba(148, 163, 184, 0.6);
    opacity: 1;
}

body.contact-page .form-group input:-ms-input-placeholder,
body.contact-page .form-group textarea:-ms-input-placeholder {
    color: rgba(148, 163, 184, 0.6);
}

body.contact-page .contact-form button[type="submit"],
body.contact-page .btn-full {
    padding: clamp(0.62rem, 1.35vw, 0.8rem) clamp(1rem, 2.1vw, 1.25rem);
    font-size: clamp(0.74rem, 1.3vw, 0.82rem);
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #8b5cf6 100%);
    border: none;
    border-radius: 0.55rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 6px 20px rgba(59, 130, 246, 0.35),
        0 3px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0;
}

body.contact-page .contact-form button[type="submit"]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(59, 130, 246, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.18);
}

body.contact-page .contact-form button[type="submit"]:active {
    transform: translateY(-2px) scale(1);
}

body.contact-page .contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =================================================================
   CHECKBOX STYLES
   ================================================================= */

body.contact-page .checkbox-group {
    position: relative;
    margin: 0;
}

body.contact-page .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: clamp(0.68rem, 1.2vw, 0.76rem);
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.contact-page .checkbox-label:hover {
    color: rgba(226, 232, 240, 1);
}

body.contact-page .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

body.contact-page .checkbox-custom {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 2px solid rgba(148, 163, 184, 0.4);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
}

body.contact-page .checkbox-label:hover .checkbox-custom {
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(15, 23, 42, 0.8);
}

body.contact-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: #3b82f6;
}

body.contact-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.contact-page .checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

body.contact-page .checkbox-text {
    flex: 1;
}

body.contact-page .checkbox-text a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

body.contact-page .checkbox-text a:hover {
    color: #93c5fd;
}

/* =================================================================
   ERROR MESSAGE STYLES
   ================================================================= */

body.contact-page .error-message {
    display: block;
    font-size: clamp(0.8rem, 1.8vw, 0.875rem);
    color: var(--error);
    margin-top: 0.5rem;
    padding-left: 0.25rem;
    min-height: 1.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.contact-page .error-message:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

body.contact-page .form-group input:invalid:not(:placeholder-shown) ~ .error-message,
body.contact-page .form-group textarea:invalid:not(:placeholder-shown) ~ .error-message,
body.contact-page .form-group select:invalid:not(:placeholder-shown) ~ .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   FAQ SECTION
   ================================================================= */

body.contact-page .faq-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.75)),
        url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=70")
            center/cover no-repeat;
    color: rgba(226, 232, 240, 0.9);
}

body.contact-page .faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.72);
    z-index: 0;
}

body.contact-page .faq-section > .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.contact-page .faq-section .section-header {
    width: 100%;
    max-width: 100%;
}

body.contact-page .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 1.8vw, 1.1rem);
    margin-top: clamp(1rem, 2.5vw, 1.5rem);
    width: 100%;
    max-width: 100%;
    align-items: start;
}

@media (min-width: 640px) {
    body.contact-page .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.85rem, 2vw, 1.25rem);
        align-items: stretch;
    }
    
    body.contact-page .faq-item {
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 1024px) {
    body.contact-page .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2.2vw, 1.4rem);
        align-items: stretch;
    }
}

body.contact-page .faq-item {
    position: relative;
    border-radius: clamp(0.8rem, 1.8vw, 1rem);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.68));
    border: 1px solid rgba(96, 165, 250, 0.15);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: fit-content;
    align-self: stretch;
}

body.contact-page .faq-item.active {
    z-index: 10;
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.contact-page .faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 639px) {
    body.contact-page .faq-item:hover {
        transform: translateY(-2px);
    }
}

body.contact-page .faq-question {
    display: flex;
    align-items: center;
    gap: clamp(0.55rem, 1.6vw, 0.85rem);
    width: 100%;
    padding: clamp(0.75rem, 1.8vw, 1rem);
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: all 0.3s ease;
}

body.contact-page .faq-question:focus {
    outline: 2px solid rgba(96, 165, 250, 0.5);
    outline-offset: 2px;
    border-radius: clamp(0.75rem, 2vw, 1rem);
}

body.contact-page .faq-question .question-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
}

body.contact-page .faq-question .question-title {
    font-size: clamp(0.82rem, 1.7vw, 0.95rem);
    font-weight: 700;
    color: rgba(226, 232, 240, 0.98);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.contact-page .faq-answer {
    padding: 0 clamp(0.75rem, 1.8vw, 1rem);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

body.contact-page .faq-item.active .faq-answer {
    max-height: 2000px;
    padding-top: clamp(0.55rem, 1.5vw, 0.8rem);
    padding-bottom: clamp(0.7rem, 1.7vw, 1rem);
    overflow: visible;
}

body.contact-page .faq-answer p {
    margin: clamp(0.45rem, 1.2vw, 0.65rem) 0 clamp(0.35rem, 1vw, 0.5rem);
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.6;
}

/* Question Icon */
body.contact-page .faq-question .question-icon {
    flex-shrink: 0;
    width: clamp(1.75rem, 3.8vw, 2.1rem);
    height: clamp(1.75rem, 3.8vw, 2.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: rgba(96, 165, 250, 0.95);
    font-size: clamp(0.68rem, 1.4vw, 0.8rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.contact-page .faq-item:hover .question-icon,
body.contact-page .faq-item.active .question-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35));
    border-color: rgba(96, 165, 250, 0.5);
    transform: scale(1.05);
}

/* Question Kicker */
body.contact-page .faq-question .question-kicker {
    display: inline-block;
    font-size: clamp(0.58rem, 1.1vw, 0.66rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(96, 165, 250, 0.85);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

body.contact-page .faq-item.active .question-kicker {
    color: rgba(96, 165, 250, 1);
}

/* Question Toggle */
body.contact-page .faq-question .question-toggle {
    flex-shrink: 0;
    width: clamp(1.45rem, 2.8vw, 1.7rem);
    height: clamp(1.45rem, 2.8vw, 1.7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.8);
    font-size: clamp(0.58rem, 1.1vw, 0.66rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.contact-page .faq-item:hover .question-toggle {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(96, 165, 250, 0.4);
    color: rgba(96, 165, 250, 0.95);
}

body.contact-page .faq-item.active .question-toggle {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(96, 165, 250, 0.5);
    color: rgba(96, 165, 250, 1);
    transform: rotate(180deg);
}

/* FAQ List */
body.contact-page .faq-list {
    list-style: none;
    padding: 0;
    margin: clamp(0.35rem, 1vw, 0.5rem) 0 0 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 1vw, 0.5rem);
}

body.contact-page .faq-list li {
    padding: clamp(0.42rem, 1.2vw, 0.58rem);
    padding-left: clamp(1rem, 2vw, 1.25rem);
    position: relative;
    color: rgba(203, 213, 225, 0.9);
    font-size: clamp(0.68rem, 1.2vw, 0.76rem);
    line-height: 1.6;
    border-left: 2px solid rgba(96, 165, 250, 0.2);
    background: rgba(15, 23, 42, 0.3);
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
}

body.contact-page .faq-list li::before {
    content: "→";
    position: absolute;
    left: clamp(0.35rem, 1vw, 0.5rem);
    top: clamp(0.42rem, 1.2vw, 0.58rem);
    color: rgba(96, 165, 250, 0.6);
    font-size: clamp(0.62rem, 1vw, 0.72rem);
    font-weight: 600;
}

body.contact-page .faq-list li:hover {
    background: rgba(15, 23, 42, 0.5);
    border-left-color: rgba(96, 165, 250, 0.4);
    transform: translateX(4px);
}

body.contact-page .faq-list li strong {
    color: rgba(226, 232, 240, 0.98);
    font-weight: 600;
    display: inline-block;
    margin-right: 0.5rem;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

/* Mobile optimizations */
@media (max-width: 639px) {
    body.contact-page .faq-grid {
        gap: clamp(1rem, 3vw, 1.5rem);
    }
    
    body.contact-page .faq-question {
        gap: clamp(0.75rem, 2vw, 1rem);
        padding: clamp(1rem, 2.5vw, 1.5rem);
    }
    
    body.contact-page .faq-question .question-icon {
        width: clamp(2.25rem, 4.5vw, 2.75rem);
        height: clamp(2.25rem, 4.5vw, 2.75rem);
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    }
    
    body.contact-page .faq-question .question-toggle {
        width: clamp(1.75rem, 3.5vw, 2.25rem);
        height: clamp(1.75rem, 3.5vw, 2.25rem);
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    }
    
    body.contact-page .faq-answer {
        padding-left: clamp(1rem, 2.5vw, 1.5rem);
        padding-right: clamp(1rem, 2.5vw, 1.5rem);
    }
    
    body.contact-page .faq-list li {
        padding: clamp(0.625rem, 1.8vw, 0.875rem);
        padding-left: clamp(1.25rem, 2.5vw, 1.75rem);
        font-size: clamp(0.8rem, 1.9vw, 0.9rem);
    }
}

@media (max-width: 768px) {
    body.contact-page .container {
        padding-inline: clamp(1rem, 4vw, 1.5rem);
    }

    body.contact-page .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    body.contact-page .contact-benefits,
    body.contact-page .contact-form-container {
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    body.contact-page .direct-contact {
        flex-direction: column;
    }

    body.contact-page .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    body.contact-page .faq-item.active .faq-answer {
        max-height: 3000px;
    }
}

/* Tablet optimizations */
@media (min-width: 640px) and (max-width: 1023px) {
    body.contact-page .faq-grid {
        gap: clamp(1.5rem, 3vw, 1.75rem);
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    body.contact-page .faq-grid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Мобилна четимост и полета (Google / iOS без нежелан zoom) */
@media (max-width: 767px) {
    body.contact-page {
        font-size: 1rem;
    }

    body.contact-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    body.contact-page textarea,
    body.contact-page select {
        font-size: 1rem;
    }
}
