/* ── Шапка ЦИК ── */
.cik-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #d0d5e0;
    padding: 0.65rem 1.5rem;
}

.cik-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.cik-emblem {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cik-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cik-name {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1a3a8f;
    line-height: 1.3;
}

.cik-country {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1a3a8f;
    line-height: 1.3;
}

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

body {
    font-family: 'PT Sans', 'Arial', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #fff;
}

.main-card {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Заголовок ── */
.header-title {
    text-align: center;
    margin-bottom: 1.2rem;
}

.header-title h1 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a3a8f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

/* ── Логотип-календарь ── */
.date-logo {
    margin-bottom: 1.4rem;
}

.calendar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.year-label {
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a8f;
    letter-spacing: 0.1em;
    margin-bottom: 0.1rem;
    align-self: flex-start;
    margin-left: 2px;
}

.dates-row {
    display: flex;
    align-items: stretch;
    border: 3px solid #1a3a8f;
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.date-cell {
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    font-size: 2.2rem;
    position: relative;
}

.date-18 {
    color: #1a3a8f;
    background: #fff;
    border-right: 2px solid #1a3a8f;
}

.date-19 {
    color: #fff;
    background: #1a3a8f;
    font-size: 2.6rem;
    width: 68px;
    height: 68px;
    margin: -3px 0;
    border: 3px solid #1a3a8f;
    z-index: 2;
    position: relative;
}

.date-20 {
    color: #fff;
    background: #e30611;
    border-left: 2px solid #e30611;
    font-size: 2.4rem;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 0;
}

/* Загнутый уголок на "20" */
.date-20::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent #fff transparent;
}

.month-label {
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3a8f;
    letter-spacing: 0.18em;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

/* ── Слоган ── */
.slogan-block {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    margin-top: 0.2rem;
}

.slogan-line {
    flex: 1;
    height: 2px;
    background: #1a3a8f;
}

.slogan-text {
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a8f;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

/* ── Форма ── */
.form-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-wrapper {
    width: 100%;
}

.passport-input {
    width: 100%;
    border: 1px solid #b0b8c8;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'PT Sans', Arial, sans-serif;
}

.passport-input::placeholder {
    color: #9aa3b2;
    font-size: 0.97rem;
}

.passport-input:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.1);
}

.passport-input.input-error {
    border-color: #e30611;
    box-shadow: 0 0 0 3px rgba(227, 6, 17, 0.12);
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ── Нижняя строка ── */
.bottom-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.gosuslugi-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.vote-btn-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.vote-hint {
    font-size: 0.78rem;
    color: #9aa3b2;
    text-align: center;
    font-family: 'PT Sans', Arial, sans-serif;
}

.vote-submit-btn {
    width: 100%;
    background-color: #1a3a8f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vote-submit-btn:hover {
    background-color: #0e2567;
}

.vote-submit-btn:active {
    transform: scale(0.98);
}

.vote-submit-btn:disabled {
    background-color: #4a6acc;
    cursor: not-allowed;
}

/* ── Спинер внутри кнопки ── */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: btnSpin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ── Результат ── */
.result-block {
    width: 100%;
    margin-top: 1.5rem;
    background: #f0f5ff;
    border: 2px solid #1a3a8f;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    transition: opacity 0.4s, transform 0.4s;
    opacity: 0;
    transform: translateY(10px);
}

.result-block.hidden {
    display: none;
}

.result-block.show {
    opacity: 1;
    transform: translateY(0);
}

.result-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.result-check {
    width: 36px;
    height: 36px;
    background: #1a3a8f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

#result-text {
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a8f;
    text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .main-card {
        padding: 1.5rem 1rem 2rem;
    }

    .header-title h1 {
        font-size: 1.25rem;
    }

    .date-cell {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
    }

    .date-19 {
        width: 58px;
        height: 58px;
        font-size: 2.1rem;
    }

    .slogan-text {
        font-size: 0.88rem;
    }

    .bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gosuslugi-logo {
        align-self: center;
    }
}
