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

:root {
    --bg-color: #e0e5ec;
    --text-color: #4a5568;
    --primary-color: #667eea;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --stone-1: #f5f5dc;
    --stone-2: #ff8c42;
    --stone-3: #ffb6c1;
    --stone-4: #2d5016;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* SEO и доступность: скрытый заголовок для экранных читалок и поисковиков */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Neumorphic shadow utilities */
.neumorphic {
    background: var(--bg-color);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
}

.neumorphic-inset {
    background: var(--bg-color);
    box-shadow: 
        inset 9px 9px 16px var(--shadow-dark),
        inset -9px -9px 16px var(--shadow-light);
}

.neumorphic-pressed {
    box-shadow: 
        inset 9px 9px 16px var(--shadow-dark),
        inset -9px -9px 16px var(--shadow-light);
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 30px;
    border-radius: 20px;
    gap: 20px;
    background: var(--bg-color);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 0;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.search-icon {
    color: var(--text-color);
    opacity: 0.6;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-color);
    font-size: 14px;
    width: 150px;
}

.search-bar input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    text-decoration: none;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.profile-icon:active {
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Panel */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Widgets */
.widget {
    border-radius: 25px;
    padding: 25px;
    background: var(--bg-color);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
}

/* Photo Widget */
.photo-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 25px;
}

.notification-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.notification-icon:hover {
    opacity: 1;
}

.photo-circle {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    position: relative;
    background: var(--bg-color);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 16px;
    text-align: center;
    line-height: 1.3;
}

.photo-title {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.75;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
}

/* Clock and Date Widget (left panel) — круглые часы */
.clock-date-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    text-align: center;
}

.clock-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    margin-bottom: 16px;
}

.time-display {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.clock-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 5px;
}

.date-display {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

/* Problems Toggle Widget */
.problems-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.toggle-row .toggle-item {
    flex: 1;
    min-width: 0;
}

.toggle-item {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.toggle-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

/* iOS Style Toggle */
.ios-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 51px;
    height: 31px;
    background-color: #ccc;
    border-radius: 31px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ios-toggle:checked + .toggle-slider {
    background-color: #2c3e50;
}

.ios-toggle:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.ios-toggle:focus + .toggle-slider {
    outline: 2px solid rgba(44, 62, 80, 0.3);
    outline-offset: 2px;
}

/* Active state for better feedback */
.toggle-label:active .toggle-slider::before {
    width: 30px;
}

/* Supervision Widget */
.supervision-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.supervision-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supervision-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.supervision-button:hover {
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transform: translateY(-2px);
}

.supervision-button:active {
    box-shadow: 
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
    transform: translateY(0);
}

.supervision-button-dark {
    background: #2c3e50;
    color: #ecf0f1;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25), -2px -2px 6px rgba(255, 255, 255, 0.05);
}

.supervision-button-dark:hover {
    background: #34495e;
    color: #fff;
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.3), -3px -3px 8px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.supervision-button-dark:active {
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), -1px -1px 4px rgba(255, 255, 255, 0.05);
    transform: translateY(0);
}

/* Кнопка «На главную» на страницах документов (оферта, как проходит терапия) */
.doc-page-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.doc-page-back:hover {
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transform: translateY(-2px);
}

.doc-page-back:active {
    box-shadow:
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
    transform: translateY(0);
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Top Row with Business Card and Additional Block (legacy, now single column) */
.top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Content Widget (Articles & Materials) */
.content-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.content-item:hover {
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transform: translateY(-2px);
}

.content-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    color: var(--text-color);
    flex-shrink: 0;
}

.content-text {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.content-description {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.4;
}

.content-arrow {
    flex-shrink: 0;
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.3s;
}

.content-item:hover .content-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ===== Визитка: шкала размеров =====
   Фото: 112px (десктоп) — читаемый портрет, не доминирует над текстом.
   Кнопки контактов: высота 44px (touch), шрифт 14px — вторичный уровень.
   Кнопка «Записаться»: высота 48px, шрифт 16px — главное действие, визуально сильнее контактов.
*/
.business-card-widget {
    padding: 28px 24px;
}

.card-contact-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.card-price {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    margin: 20px 0 0 0;
    font-weight: 500;
}

.card-price-note {
    font-size: 0.8125rem;
    color: var(--text-color);
    opacity: 0.75;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.card-price-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.card-price-note a:hover {
    text-decoration: underline;
}

.business-card-widget-wide {
    width: 100%;
}

/* Визитка: строка — текст слева, фото справа */
.card-compact-with-photo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
}

/* Визитка только с контактами и кнопкой (без фото и имени) */
.card-compact-contacts-only {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card-compact-contacts-only .card-contacts-compact {
    margin-bottom: 0;
}

.card-compact-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card-name-compact {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 4px;
}

.card-title-compact {
    font-size: 0.9375rem;
    color: var(--text-color);
    opacity: 0.75;
    font-weight: 500;
    margin-bottom: 20px;
}

.card-contacts-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Кнопки контактов: 44px высота (touch), 14px текст */
.contact-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.875rem;   /* 14px */
    line-height: 44px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-compact:hover {
    box-shadow:
        4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    transform: translateY(-1px);
}

.contact-compact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.contact-compact span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-telegram {
    background: #0088cc !important;
    color: white !important;
    box-shadow:
        3px 3px 8px rgba(0, 136, 204, 0.35),
        -3px -3px 8px rgba(255, 255, 255, 0.2) !important;
}

.contact-telegram:hover {
    background: #0077b3 !important;
    box-shadow:
        4px 4px 12px rgba(0, 136, 204, 0.4),
        -4px -4px 12px rgba(255, 255, 255, 0.25) !important;
}

.contact-telegram svg,
.contact-telegram span {
    color: white !important;
    opacity: 1 !important;
}

/* Фото: 112×112 px — пропорция визитки, одна базовая мера */
.card-compact-photo {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-color);
    box-shadow:
        5px 5px 14px var(--shadow-dark),
        -5px -5px 14px var(--shadow-light);
}

.card-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопка «Записаться»: 48px высота, 16px текст — главное действие */
.card-button-below {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 0 28px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;       /* 16px */
    font-weight: 600;
    line-height: 48px;
    text-decoration: none;
    box-shadow:
        4px 4px 10px rgba(102, 126, 234, 0.35),
        -2px -2px 6px rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-button-below:hover {
    box-shadow:
        5px 5px 14px rgba(102, 126, 234, 0.45),
        -3px -3px 8px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.card-button-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 48px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Modalities Widget */
.modalities-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modalities-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modality-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.modality-button:hover {
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transform: translateY(-2px);
}

.modality-button:active {
    box-shadow: 
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
    transform: translateY(0);
}

.modality-button-dark {
    background: #2c3e50;
    color: #ecf0f1;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25), -2px -2px 6px rgba(255, 255, 255, 0.05);
}

.modality-button-dark:hover {
    background: #34495e;
    color: #fff;
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.3), -3px -3px 8px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.modality-button-dark:active {
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), -1px -1px 4px rgba(255, 255, 255, 0.05);
    transform: translateY(0);
}

/* EMDR Button Animation */
.modality-emdr {
    position: relative;
    overflow: visible;
}

.emdr-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    animation: emdrPulse 3s ease-in-out infinite;
    background: #2c3e50;
}

.emdr-dot-left {
    left: 10px;
    animation-delay: 0s;
}

.emdr-dot-right {
    right: 10px;
    animation-delay: 1.5s;
}

@keyframes emdrPulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Exercises Widget */
.exercises-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    position: relative;
}

.exercise-item:hover {
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transform: translateY(-2px);
}

.exercise-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    color: var(--text-color);
    flex-shrink: 0;
}

.exercise-content {
    flex: 1;
    min-width: 0;
}

.exercise-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.exercise-description {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.4;
}

.questionnaire-badge {
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        display: grid;
    }

    .left-panel {
        display: contents;
    }

    .right-panel {
        display: contents;
    }

    .top-row {
        display: contents;
    }

    .photo-widget {
        order: 1;
    }

    .business-card-widget {
        order: 2;
    }

    .modalities-widget {
        order: 3;
    }

    .problems-widget {
        order: 4;
    }

    .supervision-widget {
        order: 5;
    }

    .content-widget {
        order: 6;
    }

    .exercises-widget {
        order: 7;
    }
}

@media (max-width: 768px) {
    header,
    .top-nav {
        display: none !important;
    }

    .top-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 15px;
    }

    .nav-title {
        font-size: 0.8125rem;
        line-height: 1.3;
        white-space: normal;
        word-break: break-word;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .nav-left {
        flex: 1 1 100%;
        min-width: 0;
    }

    .nav-right {
        width: 100%;
        justify-content: flex-end;
    }

    .top-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-name-compact {
        font-size: 18px;
    }

    .problems-widget .toggle-item,
    .problems-widget .toggle-label {
        min-width: 0;
    }
    .problems-widget .toggle-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.35;
        padding-right: 10px;
    }

    .content-item,
    .exercise-item {
        padding: 12px;
    }

    .content-title,
    .exercise-title {
        font-size: 15px;
    }

    .content-description,
    .exercise-description {
        font-size: 12px;
    }

    .card-compact-with-photo {
        flex-direction: column;
        gap: 24px;
    }

    .card-compact-photo {
        width: 96px;
        height: 96px;
    }

    .contact-compact {
        min-height: 42px;
        line-height: 42px;
        padding: 0 14px;
        font-size: 0.8125rem;
    }

    .card-button-below {
        min-height: 46px;
        line-height: 46px;
        padding: 0 24px;
        font-size: 0.9375rem;
        margin-top: 22px;
    }
}

/* Questionnaires Page */
.questionnaires-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.questionnaires-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.8;
}

.questionnaires-content {
    display: flex;
    justify-content: center;
}

.questionnaire-select-widget {
    max-width: 900px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.questionnaire-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.questionnaire-input:focus {
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.questionnaire-input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.questionnaire-name-error {
    display: block;
    color: #dc2626;
    font-size: 14px;
    margin-top: 6px;
}

.questionnaire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.questionnaire-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.questionnaire-card:hover {
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transform: translateY(-4px);
}

.questionnaire-card:active {
    box-shadow: 
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
    transform: translateY(0);
}

.questionnaire-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    color: var(--text-color);
    margin-bottom: 15px;
}

.questionnaire-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.questionnaire-card-description {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .questionnaire-grid {
        grid-template-columns: 1fr;
    }
}
