/* ========================================
   FONTS — подключение шрифтов
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC&display=swap');
@import url('https://fonts.cdnfonts.com/css/thyssen-j');

/* ========================================
   BODY — общие стили страницы
   ======================================== */
body {
    background-color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* ========================================
   MAIN — растягивается
   ======================================== */
main {
    flex: 1;
}

/* ========================================
   CONTAINER — обертка для контента
   ======================================== */
.container {
    max-width: 700px;
    padding: 0 15px;
    margin: 0 auto;
    text-align: left;
}

/* ========================================
   ANIMATION — анимация появления
   ======================================== */
.fade-in {
    opacity: 0;
    animation: ani 2.5s forwards;
}

@keyframes ani {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ========================================
   HEADER — заголовок страницы
   ======================================== */
.header {
    font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 52px;
    line-height: 1;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, white, #999999);
    padding: 20px 0 10px 0;
    text-align: center;
}

/* ========================================
   CONTACTS LIST — почта
   ======================================== */
.contacts-list {
    display: flex;
    flex-direction: column;
    padding: 30px 0 20px 0;
}

.contact-group {
    display: flex;
    align-items: baseline;
    gap: 30px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 12px;
}

.contact-label {
    font-family: "EB Garamond", serif;
    font-weight: 800;
    font-size: 20px;
    color: white;
    min-width: 160px;
    letter-spacing: 0.5px;
}

.contact-link,
.contact-link:visited,
.contact-link:active {
    font-family: "EB Garamond", serif;
    font-size: 20px;
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #888888;
}

/* ========================================
   SOCIAL COLUMN — соцсети в колонку
   ======================================== */
.social-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 10px 0;
}

.social-link,
.social-link:visited,
.social-link:active {
    font-family: "EB Garamond", serif;
    font-weight: 800;
    font-size: 18px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #888888;
}

/* ========================================
   NAVIGATION — навигация
   ======================================== */
.nav {
    font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 52px;
    line-height: 1;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, white, #999999);
    text-align: center;
    padding: 20px 0;
}

/* ========================================
   FOOTER — подвал с градиентом
   ======================================== */
.footer {
    font-family: 'Thyssen J', arial;
    font-size: 18px;
    line-height: 2.88;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, white 20%, #999999 100%);
    text-align: center;
}

/* ========================================
   CUSTOM SCROLLBAR — кастомный скроллбар
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #666, #999);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #999, #ccc);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #666 #0a0a0a;
}

/* ========================================
   ADAPTIVE — планшеты (до 768px)
   ======================================== */
@media (max-width: 768px) {
    .header {
        font-size: 36px;
    }

    .contact-group {
        flex-direction: column;
        gap: 6px;
        padding-bottom: 16px;
    }

    .contact-label {
        font-size: 16px;
        min-width: auto;
    }

    .contact-link,
    .contact-link:visited,
    .contact-link:active {
        font-size: 18px;
    }

    .social-link,
    .social-link:visited,
    .social-link:active {
        font-size: 16px;
    }
}

/* ========================================
   ADAPTIVE — телефоны (до 480px)
   ======================================== */
@media (max-width: 480px) {
    .container {
        text-align: center;
    }

    .header {
        font-size: 28px;
    }

    .contacts-list {
        padding: 20px 0 15px 0;
    }

    .contact-group {
        align-items: center;
        gap: 4px;
        padding-bottom: 12px;
    }

    .contact-label {
        font-size: 14px;
        min-width: auto;
    }

    .contact-link,
    .contact-link:visited,
    .contact-link:active {
        font-size: 16px;
    }

    .social-column {
        gap: 8px;
        padding: 15px 0 5px 0;
        align-items: center;
    }

    .social-link,
    .social-link:visited,
    .social-link:active {
        font-size: 14px;
        padding: 4px 0;
    }

    .nav {
        font-size: 28px;
    }

    .footer {
        font-size: 14px;
    }
}