@font-face {
    font-family: 'EuclidSquare';
    src: url('fonts/EuclidSquare-Regular-WebS.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'EuclidSquare';
    src: url('fonts/EuclidSquare-Semibold-WebS.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

:root {
    --c-text: #0a1e3c;
    --c-label: #788394;
    --c-accent: #0069d2;
    --c-bg: #ededed;
    
    --pad: clamp(20px, 4.63vw, 50px);
    --sp-xs: clamp(10px, 3.7vw, 40px);
    --sp-sm: clamp(15px, 4.63vw, 50px);
    --sp-md: clamp(20px, 7.4vw, 80px);
    --sp-lg: clamp(25px, 11.11vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'EuclidSquare', system-ui, sans-serif;
    color: var(--c-text); 
    background: #fff;
    line-height: 1.25; 
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    padding: var(--pad) var(--pad) 0;
}

.card__photo {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--sp-lg);
}

.text-center { text-align: center; }

.card__name { 
    font-size: clamp(28px, 6.48vw, 70px); 
    font-weight: 600; 
    margin-bottom: var(--sp-md);
    letter-spacing: -0.02em;
}

.card__title { 
    font-size: clamp(22px, 4.63vw, 50px); 
    font-weight: 600; 
    margin-bottom: var(--sp-xs);
}

.card__org { 
    font-size: clamp(22px, 4.63vw, 50px); 
    font-weight: 400; 
    margin-bottom: var(--sp-sm);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--c-text);
    margin-bottom: var(--sp-sm);
    opacity: 1;
}

.card__regalia { 
    font-size: clamp(22px, 4.63vw, 50px); 
    font-weight: 600; 
    margin-bottom: var(--sp-lg);
    line-height: 1.25;
}

/* Класс для последнего элемента перед кнопкой - отступ 120px */
.last-element {
    margin-bottom: var(--sp-lg) !important;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
}

#btn-top { margin-bottom: var(--sp-lg); } 

.card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 16px);
    padding: clamp(14px, 2vw, 20px) clamp(24px, 3.5vw, 36px);
    border: 2px solid var(--c-accent);
    border-radius: 50px;
    background: transparent;
    color: var(--c-accent);
    font-family: inherit;
    font-size: clamp(16px, 2.6vw, 28px);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.card__btn:hover { background: var(--c-accent); color: #fff; }
.card__btn:hover .card__btn-icon { filter: brightness(0) invert(1); }
.card__btn-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.card-contacts {
    background: var(--c-bg);
    padding-top: var(--sp-sm);
    padding-bottom: var(--sp-md);
    padding-left: var(--pad);
    padding-right: var(--pad);
    margin: 0 calc(var(--pad) * -1); 
}

.contact-item { 
    margin-bottom: var(--sp-md);
    text-align: left; 
}

.contact-item:last-child { margin-bottom: 0; }

.contact-label {
    display: block; 
    font-size: clamp(16px, 3.33vw, 36px);
    color: var(--c-label); 
    margin-bottom: clamp(5px, 0.9vw, 10px);
}

.contact-value {
    font-size: clamp(22px, 4.63vw, 50px); 
    color: var(--c-text);
    text-decoration: none; 
    display: block; 
    line-height: 1.2;
    word-break: break-word;
}

.contact-value:hover { color: var(--c-accent); }

.card-bottom {
    padding: var(--sp-md) 0 var(--sp-lg);
}

.hidden { display: none !important; }

@media (max-width: 480px) {
    .card__btn { width: 100%; }
}

.telegram-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.telegram-notice p {
    margin-bottom: 12px;
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--c-text);
}

.open-browser-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--c-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    transition: 0.2s;
}

.open-browser-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}