/**
 * Настройки и переменные
 *
 * @format
 */

:root {
    --bg-color: #ffffff;
    --text-color: #111827;
    --text-muted: #6b7280;
    --block-bg: #f3f4f6;
    --block-hover: #e5e7eb;
    --accent-color: #7F5C0E;
    --accent-hover: #513B09;

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 8px 16px rgba(37, 99, 235, 0.25);

    /* Системные шрифты уровня Apple */
    --font-family:
        -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--block-bg); /* Темный фон вне карточки для ПК */
    color: var(--text-color);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Главный контейнер (Карточка) */
.card {
    width: 100%;
    max-width: 460px;
    background-color: var(--bg-color);
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Адаптив для ПК (чтобы карточка красиво смотрелась по центру) */
@media (min-width: 500px) {
    body {
        padding: 40px 20px;
    }
    .card {
        min-height: auto;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }
}

/* Типографика */
h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.role {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 600;
}

/* Шапка профиля */
header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    background-color: var(--block-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.profile-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--block-hover);
    width: 100%;
}

/* Сетка кнопок (контакты) */
.links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    user-select: none;
}

/* Плавное нажатие */
.btn:active {
    transform: scale(0.96);
}

.full-width {
    grid-column: 1 / -1;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Вторичные кнопки */
.btn-secondary {
    background-color: var(--block-bg);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--block-hover);
}

/* Главная кнопка */
.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: var(--shadow-btn);
    padding: 20px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Блок "О компании" */
.about {
    background-color: var(--block-bg);
    padding: 28px 24px;
    border-radius: var(--radius-md);
}

.about-desc {
    font-size: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--text-muted);
}

.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Блок QR-кода */
.qr-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-wrapper {
    background-color: #ffffff;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--block-hover);
}

.qr-wrapper img {
    display: block;
    border-radius: 8px;
}

.qr-section p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Футер */
footer {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--block-hover);
    color: var(--text-muted);
    font-size: 14px;
}

/* Анимации появления блоков (Apple-style fade-in-up) */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
