﻿/* =========================================
   Contact/Index (Home theme matched)
   - NO gradients
   - Pro icons (SVG masks)
   - Smooth transitions
   - Responsive down to 320px
   ========================================= */

:root {
    --home-bg: #0b0b0f;
    --home-text: rgba(255,255,255,0.92);
    --home-muted: rgba(255,255,255,0.70);
    --home-border: rgba(255,255,255,0.12);
    --home-red: #ff2a2a;
    --home-card: rgba(255,255,255,0.05);
    --home-card2: rgba(0,0,0,0.18);
    --home-radius: 18px;
    --home-shadow: 0 18px 55px rgba(0,0,0,0.55);
    --home-shadow2: 0 12px 34px rgba(0,0,0,0.45);
    --home-ease: cubic-bezier(.2,.8,.2,1);
    --home-ease-fast: cubic-bezier(.2,.9,.2,1);
    /* ✅ Icons (mask) — no emoji */
    --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v12H4z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 7l8 6 8-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h3l1 5-2 1c1.5 3 4 5.5 7 7l1-2 5 1v3c0 1-1 2-2 2-9.4 0-17-7.6-17-17 0-1 1-2 2-2z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-loc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s7-5 7-11a7 7 0 1 0-14 0c0 6 7 11 7 11z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2.2' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.2' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M4.5 20c1.6-4 13.4-4 15 0' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12l-8 8-10-10V2h8z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.2' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    --i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v11H7l-3 3z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M7.5 9h9' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7.5 12h7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --i-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3L3 11l7 2 2 7 9-17z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 13l11-10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    /* pills */
    --i-speed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h13' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M13 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 4v6c0 5-3.4 9.5-8 10-4.6-.5-8-5-8-10V6z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M8 12l2.3 2.3L16 8.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-quality: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 5.9 6.5 1-4.7 4.6 1.1 6.5L12 18.9 6.2 20l1.1-6.5L2.6 8.9l6.5-1z' fill='%23000'/%3E%3C/svg%3E");
}

.contact {
    position: relative;
    padding: clamp(56px, 7vw, 82px) 0 clamp(56px, 7vw, 90px);
}

    /* ✅ subtle "glow" (NO gradient) */
    .contact::before {
        content: "";
        position: absolute;
        inset: -120px -120px auto -120px;
        height: 220px;
        pointer-events: none;
        background: rgba(255,42,42,0.10);
        filter: blur(38px);
        opacity: 0.9;
    }

.contact__inner {
    max-width: 1200px;
    margin-inline: auto;
}

/* Head */
.contact__head {
    max-width: 960px;
    margin: 0 auto 18px;
    text-align: left;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: var(--home-shadow2);
    transition: transform 220ms var(--home-ease), border-color 220ms var(--home-ease);
}

    .kicker:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.16);
    }

.kicker__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--home-red);
    box-shadow: 0 0 0 4px rgba(255,42,42,0.14);
}

.kicker__text {
    font-weight: 900;
    letter-spacing: .2px;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
}

.contact__title {
    margin: 16px 0 10px;
    font-size: clamp(28px, 4.2vw, 50px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.accent {
    color: var(--home-red);
    text-shadow: 0 14px 28px rgba(255,42,42,0.18);
}

.contact__sub {
    margin: 0 0 14px;
    max-width: 70ch;
    color: var(--home-muted);
    line-height: 1.65;
}

/* Meta pills (home-like) */
.contact__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast);
}

    .pill:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.18);
    }

.pill__icon {
    --pill-icon: var(--i-speed);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,42,42,0.12);
    border: 1px solid rgba(255,42,42,0.38);
    display: inline-grid;
    place-items: center;
}

    .pill__icon::before {
        content: "";
        width: 12px;
        height: 12px;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--pill-icon) center/contain no-repeat;
        mask: var(--pill-icon) center/contain no-repeat;
    }

.pill__icon--speed {
    --pill-icon: var(--i-speed);
}

.pill__icon--shield {
    --pill-icon: var(--i-shield);
}

.pill__icon--quality {
    --pill-icon: var(--i-quality);
}

.pill__text {
    font-size: 13px;
    font-weight: 850;
    color: rgba(255,255,255,0.86);
}

/* Grid */
.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(12px, 2.6vw, 18px);
    align-items: start;
}

/* Panels */
.panel {
    border-radius: 22px;
    padding: clamp(16px, 2.4vw, 22px);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--home-shadow2);
    transition: transform 200ms var(--home-ease-fast), border-color 200ms var(--home-ease-fast), background-color 200ms var(--home-ease-fast);
}

    .panel:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.05);
    }

.panel__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.panel__hint {
    margin: 0 0 14px;
    color: var(--home-muted);
    line-height: 1.6;
}

/* Form */
.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .2px;
    color: rgba(255,255,255,0.88);
}

/* Control with icon */
.control {
    position: relative;
}

.control__icon {
    --ic: var(--i-user);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.95;
    pointer-events: none;
}

    .control__icon::before {
        content: "";
        width: 16px;
        height: 16px;
        display: block;
        background: rgba(255,255,255,0.86);
        -webkit-mask: var(--ic) center/contain no-repeat;
        mask: var(--ic) center/contain no-repeat;
    }

.control__icon--user {
    --ic: var(--i-user);
}

.control__icon--mail {
    --ic: var(--i-mail);
}

.control__icon--phone {
    --ic: var(--i-phone);
}

.control__icon--tag {
    --ic: var(--i-tag);
}

.control__icon--chat {
    --ic: var(--i-chat);
}

.input {
    width: 100%;
    height: 46px;
    border-radius: 16px;
    padding: 0 14px 0 42px; /* space for icon */
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    outline: none;
    transition: border-color 160ms var(--home-ease-fast), box-shadow 160ms var(--home-ease-fast), background-color 160ms var(--home-ease-fast);
}

    .input::placeholder {
        color: rgba(255,255,255,0.45);
    }

    .input:focus {
        border-color: rgba(255,255,255,0.18);
        box-shadow: 0 0 0 4px rgba(255,42,42,0.16);
        background: rgba(0,0,0,0.22);
    }

.control--textarea .control__icon {
    top: 18px;
    transform: none;
}

.textarea {
    height: auto;
    min-height: 150px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

/* Phone group */
.phone {
    display: grid;
    grid-template-columns: 74px 1fr;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    transition: border-color 160ms var(--home-ease-fast), box-shadow 160ms var(--home-ease-fast), background-color 160ms var(--home-ease-fast);
}

    .phone:focus-within {
        border-color: rgba(255,255,255,0.18);
        box-shadow: 0 0 0 4px rgba(255,42,42,0.16);
        background: rgba(0,0,0,0.22);
    }

.phone__code {
    height: 46px;
    display: grid;
    place-items: center;
    font-weight: 950;
    letter-spacing: .2px;
    color: rgba(255,255,255,0.86);
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.10);
}

.phone__wrap {
    position: relative;
}

    .phone__wrap .control__icon {
        left: 14px;
    }

.phone__input {
    border: 0;
    border-radius: 0;
    height: 46px;
    background: transparent;
    box-shadow: none !important;
}

/* Help */
.help {
    margin-top: 8px;
    color: rgba(255,255,255,0.62);
    font-size: 12.5px;
    line-height: 1.5;
}

/* Checkbox */
.check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.check__box {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.check__ui {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 0 0 1px rgba(255,42,42,0.10);
    transition: transform 160ms var(--home-ease-fast), border-color 160ms var(--home-ease-fast), background-color 160ms var(--home-ease-fast), box-shadow 160ms var(--home-ease-fast);
}

.check__text {
    color: rgba(255,255,255,0.80);
    font-weight: 800;
    line-height: 1.55;
    font-size: 13.5px;
}

.check:hover .check__ui {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.18);
}

.check__box:focus-visible + .check__ui {
    box-shadow: 0 0 0 4px rgba(255,42,42,0.18), inset 0 0 0 1px rgba(255,42,42,0.10);
    border-color: rgba(255,255,255,0.20);
}

.check__box:checked + .check__ui {
    background: rgba(255,42,42,0.16);
    border-color: rgba(255,255,255,0.20);
}

    .check__box:checked + .check__ui::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 6px;
        width: 9px;
        height: 5px;
        border-left: 2px solid rgba(255,255,255,0.92);
        border-bottom: 2px solid rgba(255,255,255,0.92);
        transform: rotate(-45deg);
    }

/* Errors */
.err {
    margin-top: 8px;
    min-height: 18px;
    color: rgba(255,120,120,0.95);
    font-weight: 800;
    font-size: 12.5px;
    line-height: 1.4;
}

/* Buttons (home-like, NO gradient) */
.btnx {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 950;
    letter-spacing: .2px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    width: 100%;
    transition: transform 180ms var(--home-ease-fast), box-shadow 180ms var(--home-ease-fast), background-color 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast), color 180ms var(--home-ease-fast);
}

    .btnx:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(255,42,42,0.20);
    }

.btnx--primary {
    color: #0b0b0f;
    background: var(--home-red);
    border-color: rgba(255,42,42,0.55);
    box-shadow: 0 16px 32px rgba(255,42,42,0.16), 0 14px 28px rgba(0,0,0,0.45);
}

    .btnx--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 22px 50px rgba(255,42,42,0.22), 0 16px 30px rgba(0,0,0,0.55);
    }

.btn-submit__ico {
    width: 16px;
    height: 16px;
    display: inline-block;
}

    .btn-submit__ico::before {
        content: "";
        width: 16px;
        height: 16px;
        display: block;
        background: rgba(0,0,0,0.86);
        -webkit-mask: var(--i-send) center/contain no-repeat;
        mask: var(--i-send) center/contain no-repeat;
    }

.btn-submit__spin {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,0.25);
    border-top-color: rgba(0,0,0,0.70);
    display: none;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-submit.is-loading {
    pointer-events: none;
    opacity: .92;
}

    .btn-submit.is-loading .btn-submit__spin {
        display: inline-block;
    }

/* Status */
.status {
    margin-top: 12px;
    min-height: 22px;
    font-weight: 850;
    font-size: 13px;
    color: rgba(255,255,255,0.74);
}

/* Info panel list */
.info-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.info {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast);
}

    .info:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.18);
    }

.info__icon {
    --ic: var(--i-mail);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,42,42,0.12);
    border: 1px solid rgba(255,42,42,0.30);
    display: grid;
    place-items: center;
}

    .info__icon::before {
        content: "";
        width: 18px;
        height: 18px;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--ic) center/contain no-repeat;
        mask: var(--ic) center/contain no-repeat;
    }

.info__icon--mail {
    --ic: var(--i-mail);
}

.info__icon--phone {
    --ic: var(--i-phone);
}

.info__icon--loc {
    --ic: var(--i-loc);
}

.info__k {
    font-weight: 950;
    color: rgba(255,255,255,0.90);
    font-size: 13px;
    letter-spacing: -.01em;
}

.info__v {
    color: rgba(255,255,255,0.76);
    font-weight: 850;
    margin-top: 2px;
}

.info__v--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.info__val {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info__link {
    color: rgba(255,255,255,0.90);
    text-decoration: none;
    font-weight: 900;
}

    .info__link:hover {
        text-decoration: underline;
    }

.mini-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    font-weight: 950;
    cursor: pointer;
    transition: transform 160ms var(--home-ease-fast), background-color 160ms var(--home-ease-fast), border-color 160ms var(--home-ease-fast);
    flex: 0 0 auto;
}

    .mini-btn:hover,
    .mini-btn:focus-visible {
        outline: none;
        transform: translateY(-1px);
        background: rgba(255,255,255,0.09);
        border-color: rgba(255,255,255,0.18);
    }

.info-note {
    margin-top: 14px;
    color: rgba(255,255,255,0.70);
    font-weight: 800;
    font-size: 13px;
}

/* Honeypot */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 520ms var(--home-ease), transform 520ms var(--home-ease);
}

    .reveal.is-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive */
@media (max-width: 980px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .form__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    /* keep panels comfortable */
    .panel {
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .phone {
        grid-template-columns: 68px 1fr;
    }

    .input {
        padding-left: 40px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .panel,
    .kicker,
    .pill,
    .input,
    .btnx,
    .mini-btn,
    .info {
        transition: none !important;
        animation: none !important;
    }
}
