:root {
    --bg-main: #F6F6F9;
    --bg-card: #FFFFFF;
    --text-primary: #121212;
    --text-secondary: #707076;
    --border-color: #E5E5EA;
    --border-hover: #121212;
    --accent: #121212;
    --accent-hover: #232326;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.01em;
    padding: 0 0 env(safe-area-inset-bottom) 0;
}

.wrapper {
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Изменение логотипа через фоновое изображение */
.header-image {
    width: 100%;
    height: 140px;                      /* Оптимальная высота, чтобы логотип не выглядел гигантским */
    background-color: #FFFFFF;          /* Меняем фон на белый, под цвет самого логотипа */
    background-image: url('header-bg.jpg');
    background-size: contain;           /* Логотип теперь полностью вписывается в пропорции и не режется */
    background-position: center;        /* Центрируем по вертикали и горизонтали */
    background-repeat: no-repeat;       /* Запрещаем дублирование картинки */
    border: 1px solid var(--border-color); /* Элегантная тонкая рамка в трендах минимализма */
    border-radius: 24px;                /* Мягкое закругление углов */
    margin-bottom: 32px;
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 8px;
}

.brand-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.intro-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.card:focus-within {
    border-color: rgba(0,0,0,0.15);
}

.question-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
}

.question-title span {
    color: var(--text-secondary);
    margin-left: 3px;
}

/* Шкала оценок (1-5) */
.rating-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.scale-item {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.scale-item input[type="radio"], 
.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.scale-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background-color: #F6F6F9;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-item:hover .scale-label {
    background-color: #EDEDF2;
}

.scale-item input[type="radio"]:checked + .scale-label {
    background-color: var(--accent);
    color: #FFFFFF;
}

.scale-legend {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 12px;
    padding: 0 2px;
}

/* Списки опций */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-list-row {
    display: flex;
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

.text-center {
    justify-content: center;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background-color: #F6F6F9;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.option-item:hover .option-label {
    background-color: #EDEDF2;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 1.5px solid #C7C7CC;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    position: relative;
    background: #FFF;
    transition: all 0.2s ease;
}

.option-item input[type="radio"]:checked + .option-label {
    background-color: var(--accent);
    color: #FFFFFF;
}

.option-item input[type="radio"]:checked + .option-label .custom-radio {
    border-color: #FFFFFF;
    background: var(--accent);
}

.option-item input[type="radio"]:checked + .option-label .custom-radio::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Текстовое поле */
.textarea-wrapper {
    position: relative;
}

textarea {
    width: 100%;
    height: 110px;
    background-color: #F6F6F9;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: all 0.2s ease;
}

textarea:focus {
    background-color: #FFFFFF;
    border-color: var(--border-hover);
}

/* Кнопка отправки */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 32px;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

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