

:root {
    --c-bg: #050505;
    --c-surface: #0f0f10;
    --c-surface-hover: #141416;
    --c-border: rgba(255, 255, 255, 0.09);
    --c-border-strong: rgba(255, 255, 255, 0.16);
    --c-text: #ececec;
    --c-muted: #8a8a8a;
    --c-faint: #5c5c5c;
    --c-accent: #FF9A3D;
    --c-error: #ff5a5f;
    --c-ok: #22c55e;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.contact-page {
    position: relative;
    min-height: 100vh;
    background-color: var(--c-bg);
    overflow: hidden;
    z-index: 1;
}

.contact-map {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 125vh;
    z-index: 0;
    pointer-events: none;
    
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.contact-map svg { width: 100%; height: 100%; display: block; }

.map-block    { fill: rgba(255, 255, 255, 0.018); }
.map-street   { stroke: rgba(255, 255, 255, 0.055); stroke-width: 1.2; fill: none; }
.map-road     { stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; fill: none; stroke-linecap: round; }
.map-road-core{ stroke: rgba(0, 0, 0, 0.55); stroke-width: 5; fill: none; stroke-linecap: round; }
.map-avenue   { stroke: rgba(255, 154, 61, 0.10); stroke-width: 3; fill: none; }
.map-park     { fill: rgba(120, 160, 120, 0.035); }
.map-label    { fill: rgba(255, 255, 255, 0.16); font: 600 11px 'Inter', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.map-pin-ring { fill: none; stroke: var(--c-accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pinPulse 2.4s ease-out infinite; }
.map-pin-core { fill: var(--c-accent); }
.map-pin-label{ fill: var(--c-accent); font: 700 13px 'League Spartan', sans-serif; letter-spacing: 2px; }
@keyframes pinPulse {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

.contact-page::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 125vh;
    background: radial-gradient(ellipse 60% 45% at 50% 40%, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.35) 60%, rgba(5,5,5,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.contact-hero {
    position: relative;
    z-index: 2;
    min-height: 78vh;
    padding: clamp(130px, 18vh, 190px) 5vw 4vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.breadcrumb {
    position: absolute;
    top: clamp(110px, 15vh, 150px);
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--c-muted);
}
.breadcrumb a { color: var(--c-muted); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current] { color: var(--c-text); }
.breadcrumb-sep { color: var(--c-accent); }

.contact-title {
    margin: 0 0 1.2rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #fff;
}
.contact-title em {
    font-style: italic;
    color: var(--c-accent);
}

.contact-subtitle {
    max-width: 560px;
    margin: 0 0 2.6rem;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    color: #bdbdbd;
}

.contact-tabs {
    position: relative;
    display: inline-flex;
    padding: 8px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.tab-indicator {
    position: absolute;
    top: 8px; bottom: 8px; left: 8px;
    width: 0;
    border-radius: 50px;
    background: var(--c-accent);
    box-shadow: 0 4px 14px rgba(255, 154, 61, 0.18);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), width 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 0;
}
.contact-tab {
    position: relative;
    z-index: 1;
    padding: 14px 36px;
    border: 0;
    border-radius: 50px;
    background: transparent;
    font: 500 clamp(0.95rem, 1.2vw, 1.15rem) 'Inter', sans-serif;
    color: #d5d5d5;
    cursor: pointer;
    transition: color 0.4s;
}
.contact-tab:hover { color: #fff; }
.contact-tab.is-active { color: #000; }
.contact-tab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.contact-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    padding: 2vh 5vw 14vh;
}

.col-title {
    margin: 0 0 2.5rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--c-border-strong);
    font: 400 clamp(1.3rem, 1.6vw, 1.6rem) 'Inter', sans-serif;
    color: var(--c-muted);
}

.info-item {
    padding: 0.4rem 0 2.6rem;
    margin-bottom: 2.4rem;
    border-bottom: 1px solid var(--c-border);
}
.info-item:last-child { border-bottom: 0; margin-bottom: 0; }

.info-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.3rem;
}
.info-head h3 {
    margin: 0;
    font: 500 1.2rem 'Inter', sans-serif;
    color: var(--c-text);
}
.info-icon {
    width: 28px; height: 28px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--c-accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-value {
    margin: 0;
    font-style: normal;
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    line-height: 1.45;
    color: #fff;
}
.info-value a { color: #fff; text-decoration: none; transition: color 0.3s; }
.info-value a:hover { color: var(--c-accent); }
.info-value .info-sub-link { font-size: 0.95rem; color: var(--c-accent); }
.info-value .info-sub-link:hover { color: #fff; }
.info-note { font-size: 0.95rem; color: var(--c-muted); }

.social-row { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.social-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.social-item svg {
    width: 30px; height: 30px;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.social-item svg .fill { fill: currentColor; stroke: none; }
.social-item:hover { color: var(--c-accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 26px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    cursor: text;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.field:hover { background: var(--c-surface-hover); border-color: var(--c-border-strong); }
.field:focus-within {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(255, 154, 61, 0.12);
}
.field.has-error { border-color: var(--c-error); box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.12); }

.field-label { font-size: 1.05rem; color: #cfcfcf; }
.req { color: var(--c-accent); }

.field input,
.field textarea {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 400 0.95rem 'Inter', sans-serif;
    color: #fff;
    resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--c-faint); }
.field-message textarea { min-height: 120px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 0.6rem;
}

.consent {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.02rem;
    color: #d8d8d8;
    cursor: pointer;
}
.consent input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.consent-box {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 7px;
    background: var(--c-surface);
    border: 1px solid var(--c-border-strong);
    display: grid;
    place-items: center;
    transition: background-color 0.25s, border-color 0.25s;
}
.consent-box::after {
    content: '';
    width: 7px; height: 12px;
    border: solid #000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px) scale(0);
    transition: transform 0.2s;
}
.consent input:checked + .consent-box { background: var(--c-accent); border-color: var(--c-accent); }
.consent input:checked + .consent-box::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.consent.has-error .consent-box { border-color: var(--c-error); }
.consent a { color: var(--c-accent); text-decoration: none; }
.consent a:hover { text-decoration: underline; }

.send-btn {
    flex-shrink: 0;
    min-width: 165px; height: 66px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--c-accent);
    box-shadow: 0 4px 14px rgba(255, 154, 61, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #000;
    font: 700 0.8rem 'Inter', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.send-btn svg {
    width: 24px; height: 24px; flex: none;
    fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.send-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); }
.send-btn:hover svg { transform: translate(4px, -4px); }
.send-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.send-btn:disabled { opacity: 0.6; cursor: wait; }
.send-btn.is-sending svg { animation: sendFly 0.9s ease-in-out infinite; }
@keyframes sendFly { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,-5px); } }

.form-status { min-height: 1.4em; margin: 0; font-size: 0.95rem; color: var(--c-muted); }
.form-status.is-error { color: var(--c-error); }
.form-status.is-ok { color: var(--c-ok); }

#footer-container { position: relative; z-index: 20; background-color: #030303; }

@media (max-width: 1024px) {
    .contact-body { grid-template-columns: 1fr; gap: 5rem; }
}

@media (max-width: 640px) {
    .contact-hero { min-height: auto; padding-top: 130px; padding-bottom: 6vh; }
    
    .breadcrumb { position: static; margin-bottom: 1.6rem; font-size: 0.8rem; }
    .contact-tab { padding: 12px 18px; font-size: 0.9rem; }
    .field-row { grid-template-columns: 1fr; }
    .field { padding: 18px 20px; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .send-btn { width: 100%; }
    .social-row { gap: 2rem; }
    .contact-body { padding-bottom: 20vh; }
}

@media (prefers-reduced-motion: reduce) {
    .map-pin-ring, .send-btn.is-sending svg { animation: none; }
    .tab-indicator { transition: none; }
}

.consent a { text-decoration: underline; text-underline-offset: 3px; }

/* Tablets (portrait) and phones: contact details in two columns
   Phone | Address
   E-mail | Working hours
   Social media (full width) */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 767px) {
    .contact-body > .contact-col:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 5vw, 48px); align-items: start; }
    .contact-body > .contact-col:first-child > .col-title { grid-column: 1 / -1; }
    .contact-body > .contact-col:first-child > .info-item { margin-bottom: 1.6rem; padding-bottom: 1.6rem; min-width: 0; }
    .contact-body > .contact-col:first-child > .info-item:nth-of-type(1) { grid-column: 1; grid-row: 2; }
    .contact-body > .contact-col:first-child > .info-item:nth-of-type(2) { grid-column: 1; grid-row: 3; }
    .contact-body > .contact-col:first-child > .info-item:nth-of-type(3) { grid-column: 2; grid-row: 2; }
    .contact-body > .contact-col:first-child > .info-item:nth-of-type(4) { grid-column: 2; grid-row: 3; }
    .contact-body > .contact-col:first-child > .info-item:nth-of-type(5) { grid-column: 1 / -1; grid-row: 4; border-bottom: 0; }
    .contact-body > .contact-col:first-child .info-value { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
    .contact-body > .contact-col:first-child .info-head { gap: 10px; }
    .contact-body > .contact-col:first-child .info-head h3 { font-size: 0.95rem; }
    .contact-body > .contact-col:first-child .info-value { font-size: 0.95rem; }
}
/* Touch screens: solid tabs instead of a live blur */
@media (hover: none) and (pointer: coarse) {
    .contact-tabs { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(30, 30, 34, 0.92); }
}
