/* ================================================================
   contacts.css — стили страницы контактов mxander.ru/contacts/
   ================================================================ */

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ---------- Visiting card ---------- */
.visiting-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.photo-section {
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}
.photo {
    width: 180px;
    height: 180px;
    border-radius: 10%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    cursor: pointer;
}
.photo:hover {
    border-color: #00D0FF;
    box-shadow: 0 0 32px rgba(0, 208, 255, 0.5);
}

.info-section {
    padding: 25px 30px;
}

h1 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.6em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.position {
    color: #00D0FF;
    margin-bottom: 16px;
    font-size: 1.15em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 208, 255, 0.3);
}


/* ---------- Contacts grid ---------- */
.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}
.contact-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 1.1em;
}
.contact-item:hover {
    background: #00D0FF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 208, 255, 0.4);
    color: #1a1a2e;
}

/* ---------- Company info ---------- */
.company-info {
    margin-top: 20px;
    padding: 18px;
    background: rgba(15, 52, 96, 0.4);
    border-radius: 12px;
    font-size: 0.85em;
    color: #e8e8e8;
    line-height: 1.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .visiting-card { max-width: 100%; margin: 10px; }
    .photo-section { padding: 30px 20px 20px; }
    .photo { width: 160px; height: 160px; }
    h1 { font-size: 1.4em; }
    .position { font-size: 1.05em; }
    .contacts { grid-template-columns: 1fr; gap: 12px; }
    .contact-item { padding: 18px 15px; font-size: 1em; }
}
@media (max-width: 360px) {
    .photo { width: 140px; height: 140px; }
    h1 { font-size: 1.25em; }
    .position { font-size: 1em; }
}

/* Large screens (2K / 4K) */
@media (min-width: 1920px) {
    .visiting-card { max-width: 520px; }
    h1 { font-size: 1.9em; }
    .position { font-size: 1.35em; }
    .photo { width: 220px; height: 220px; }
}
@media (min-width: 2560px) {
    .visiting-card { max-width: 620px; }
    h1 { font-size: 2.2em; }
    .position { font-size: 1.55em; }
    .photo { width: 260px; height: 260px; }
}
@media (min-width: 3840px) {
    .visiting-card { max-width: 780px; }
    h1 { font-size: 2.8em; }
    .position { font-size: 1.9em; }
    .photo { width: 320px; height: 320px; }
}
