.dg-hidden-cf7 {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

/* Фоновое затемнение (оверлей) */
.dg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 45, 53, 0.7); /* Фирменный темный оттенок с прозрачностью */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(4px); /* Легкое размытие заднего плана для премиального вида */
}

/* Класс для активации окна */
.dg-modal-overlay.dg-modal-active {
    opacity: 1;
    pointer-events: auto;
}

/* Контейнер формы */
.dg-modal-content {
    background: #ffffff;
    padding: 45px 35px 35px 35px;
    border-radius: 12px; /* Аккуратные скругления в стиле интерфейса сайта */
    position: relative;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-30px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dg-modal-overlay.dg-modal-active .dg-modal-content {
    transform: translateY(0);
}

/* Кнопка Закрыть (крестик) */
.dg-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #a0a3a6;
    line-height: 1;
    transition: color 0.2s ease;
}

.wpcf7 form>div, .wpcf7 form>p {
    margin-bottom: 0px;
}

.dg-modal-close:hover {
    color: #2c2d35;
}

/* Стилизация элементов Contact Form 7 внутри модалки */
.dg-modal-body h3, 
.dg-modal-body .modal-title {
    font-family: inherit;
    font-weight: 700;
    color: #2c2d35;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Поля ввода (инпуты) */
.dg-modal-body text,
.dg-modal-body input[type="text"],
.dg-modal-body input[type="tel"],
.dg-modal-body input[type="email"],
.dg-modal-body textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border: 1px solid #e0e2e5;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 15px;
    color: #2c2d35;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Фокус на полях ввода */
.dg-modal-body input:focus,
.dg-modal-body textarea:focus {
    border-color: #2c2d35;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 45, 53, 0.1);
}

/* Главная кнопка отправки формы */
.dg-modal-body .wpcf7-submit,
.dg-modal-body input[type="submit"] {
    display: block;
    width: 100%;
    background-color: #2c2d35; /* Фирменный цвет кнопок как на скрине */
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 16px 20px;
    border: none;
    border-radius: 30px; /* Круглая кнопка, один в один как «ПОДОБРАТЬ ПРОЕКТ ДОМА» */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(44, 45, 53, 0.15);
}

.dg-modal-body .wpcf7-submit:hover,
.dg-modal-body input[type="submit"]:hover {
    background-color: #1e1f24; /* Чуть темнее при наведении */
}

.dg-modal-body .wpcf7-submit:active,
.dg-modal-body input[type="submit"]:active {
    transform: scale(0.98);
}

/* Текст согласия / дисклеймер внизу формы */
.dg-modal-body .wpcf7-acceptance,
.dg-modal-body .form-acceptance {
    font-size: 12px;
    color: #7a7e85;
    line-height: 1.4;
    text-align: center;
    margin-top: 15px;
}

.modal__notice > a {
	color: #000;
}

.dg-modal-body .wpcf7-acceptance a {
    color: #2c2d35;
    text-decoration: underline;
}

/* Спиннер загрузки CF7 и сообщения об ошибках/успехе */
.dg-modal-body .wpcf7-spinner {
    position: absolute;
    bottom: 24px;
    left: 50%;
    margin-left: -8px;
}

.dg-modal-body .wpcf7-response-output {
    margin: 15px 0 0 0 !important;
    padding: 10px 15px !important;
    font-size: 13px;
    border-radius: 6px;
    text-align: center;
}



.dg-header-container {
    position: relative;
    overflow: hidden; /* Чтобы картинка не вылезала за границы */
    padding-top: 40px; /* Добавим верхний отступ, раз контейнер стал relative */
    padding-bottom: 60px;
}

/* Обертка контента поверх фона */
.dg-header-content-wrapper {
    position: relative;
    z-index: 2; /* Поднимаем текст выше картинки */
}

/* Сам блок фона */
.dg-header-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; /* Картинка занимает правую часть */
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Чтобы по кнопкам/ссылкам на картинке (если будут) кликалось нормально */
}

.dg-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* Центрируем по правому краю */
}



/* --- Корректировка адаптива под мобилки --- */
@media (max-width: 767px) {
    .dg-header-bg {
        width: 100%;
        opacity: 0.15; /* На мобилках делаем картинку еле заметной подложкой, чтобы текст читался */
    }
    .dg-header-bg::before {
        width: 100%;
        background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.4) 100%);
    }
}

/* --- Базовые стили для Elementor (чтобы не перебивали) --- */
.dg-header-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif; /* Основной шрифт, замените если другой */
    line-height: 1.2;
}

.elementor-element.elementor-element-d500279.elementor-widget__width-inherit.elementor-widget.elementor-widget-html {
	background-image: url('/wp-content/uploads/2026/06/v7e9utv7e9utv7e9.png');
    background-repeat: no-repeat !important;
    background-position: right center;
    background-size: contain;
	background-position: calc(100% - -200px) center;
}

@media (max-width: 1240px) {
	.elementor-element.elementor-element-d500279.elementor-widget__width-inherit.elementor-widget.elementor-widget-html {
		background-position: calc(100% - -400px) center;
	}
}

@media (max-width: 1024px) {
	.elementor-element.elementor-element-d500279.elementor-widget__width-inherit.elementor-widget.elementor-widget-html {
		background-position: calc(100% - -600px) center;
	}
}

@media (max-width: 804px) {
	.elementor-element.elementor-element-d500279.elementor-widget__width-inherit.elementor-widget.elementor-widget-html {
		background-image: none;
	}
}

/* --- Контейнер хедера --- */
.dg-header-container {
    width: 100%;
    max-width: 1440px; /* Максимальная ширина контента */
    margin: 0 auto;
    padding: 0 40px; /* Отступы по бокам */
    position: relative;
    color: #1a1a1a; /* Цвет текста по умолчанию */
}

/* --- 1. Top Bar (Верхняя панель) --- */
.dg-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px; /* Отступ до заголовка */
}

/* Логотип */
.dg-logo {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: inherit;
}

/* Блок контактов */
.dg-contacts {
    display: flex;
    align-items: center;
    gap: 30px; /* Расстояние между элементами */
}

@media (max-width: 612px) {
	.dg-contacts {
		gap: 10px;
	}

	.dg-contacts > .dg-phone, .dg-contacts > .dg-btn-callback {
		font-size: 12px;
	}
}

@media (max-width: 500px) {
	.dg-contacts {
		flex-direction: column;
	}

	.dg-modal-content {
		padding: 18px 18px 18px 18px;
		max-width: 340px
	}

	.modal__notice {
		font-size: 12px;
	}

}

.dg-phone {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.dg-socials {
    display: flex;
    gap: 15px;
}

.dg-social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.dg-social-icon:hover {
    background-color: #e0e0e0;
}

/* Кнопка "Заказать звонок" */
.dg-btn-callback {
    padding: 12px 28px;
    background-color: #3e444a; /* Темный цвет из макета */
    color: #fff;
    border: none;
    border-radius: 25px; /* Скругленные углы */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dg-btn-callback:hover {
    background-color: #2a2e32;
}

/* --- 2. Main Content (Заголовок и преимущества) --- */
.dg-main-content {
    max-width: 50%; /* Занимает левую половину */
}

.dg-title {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
    line-height: 1.1;
}

/* Сетка преимуществ */
.dg-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-bottom: 50px;
}

.dg-feature-item {
    display: flex;
    align-items: start;
    gap: 12px;
}

.dg-feature-icon {
    font-size: 20px;
    color: #1a1a1a; /* Цвет иконок */
    margin-top: 3px;
}

.dg-feature-text {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* --- 3. CTA Block (Кнопка и подпись) --- */
.dg-cta-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Главная кнопка */
.dg-btn-primary {
    padding: 16px 36px;
    background-color: #3e444a;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dg-btn-primary:hover {
    background-color: #2a2e32;
}

.dg-cta-desc {
    font-size: 13px;
    font-weight: 500;
    color: #4a4a4a;
    max-width: 280px;
    line-height: 1.3;
}

/* --- Адаптив (на всякий случай) --- */
@media (max-width: 1024px) {
    .dg-main-content { max-width: 70%; }
    .dg-title { font-size: 32px; }
}

@media (max-width: 767px) {
    .dg-header-container { padding: 0 20px; }
    .dg-top-bar { flex-direction: column; gap: 20px; text-align: center; }
    .dg-main-content { max-width: 100%; text-align: center; }
    .dg-features-grid { grid-template-columns: 1fr; }
    .dg-feature-item { justify-content: center; text-align: left; align-items: center; }
    .dg-cta-block { flex-direction: column; text-align: center; }
}

/* --- Базовые стили секции --- */
.dg-about-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
}

.dg-about-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* --- Заголовки --- */
.dg-about-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.dg-about-title span {
    font-weight: 900; /* Более жирное выделение для "КАК ДЛЯ СЕБЯ" */
}

.dg-about-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    max-width: 800px;
    margin-bottom: 50px;
}

.dg-about-subtitle strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* --- Сетка со списками --- */
.dg-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.dg-about-col {
    position: relative;
    padding-left: 25px; /* Отступ от вертикальной линии */
}

/* Вертикальная серая линия слева */
.dg-about-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background-color: #d1d5db; /* Светло-серый цвет линии */
    border-radius: 2px;
}

/* Элементы списка */
.dg-about-list-item {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 16px;
}

.dg-about-list-item:last-child {
    margin-bottom: 0;
}

.dg-about-list-item strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* --- Нижний блок (Технадзор) --- */
.dg-about-footer {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
    border-top: 1px solid transparent; /* Просто для отделения пространства */
}

.dg-about-footer strong {
    font-weight: 700;
}

/* --- Адаптивность --- */
@media (max-width: 991px) {
    .dg-about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .dg-about-section { padding: 40px 20px; }
    .dg-about-title { font-size: 28px; }
}

.dg-projects-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    color: #1a1a1a;
}

.dg-projects-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

/* --- Заголовки верхней части --- */
.dg-projects-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.dg-projects-title span {
    font-weight: 900;
}

.dg-projects-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 50px;
}

.dg-projects-subtitle strong {
    font-weight: 700;
    color: #1a1a1a;
	margin-bottom: 20px;
}

/* --- Сетка видеогалереи (3 колонки) --- */
.dg-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
	margin-top: 20px;
    margin-bottom: 70px;
}

/* Контейнер одной карточки видео */
.dg-video-item {
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    border-radius: 20px; /* Скругление углов как на макете */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Соотношение сторон 16:9 для адаптивности видео */
.dg-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

/* Стили для Rutube iframe, когда ты их туда вставишь */
.dg-video-wrapper iframe,
.dg-video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}

/* ВРЕМЕННАЯ ЗАГЛУШКА (Превью до вставки iframe) */
.dg-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
}

/* Градиентное затемнение снизу для читаемости белого текста */
.dg-video-placeholder::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

/* Кнопка Play по центру */
.dg-play-btn {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 2;
}

.dg-video-item:hover .dg-play-btn {
    transform: scale(1.1);
}

.dg-play-btn i {
    color: #1a1a1a;
    font-size: 20px;
    margin-left: 4px; /* Смещение для идеальной центровки треугольника */
}

/* Текст поверх превью */
.dg-video-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    z-index: 2;
    letter-spacing: 0.03em;
}

/* --- Нижний CTA Блок --- */
.dg-projects-cta {
    max-width: 800px;
    margin: 0 auto;
}

.dg-cta-title {
    font-size: 28px;
    font-weight: 600;
    color: #31373d;
    margin-bottom: 15px;
}

.dg-cta-text {
    font-size: 14px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.dg-cta-text strong {
    color: #1a1a1a;
}

/* Главная кнопка подбора */
.dg-btn-project {
    padding: 18px 45px;
    background-color: #31373d;
    color: #fff;
    border: none;
    border-radius: 35px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	margin-top: 20px;
}

.dg-btn-project:hover {
    background-color: #212529;
}

.dg-btn-subtext {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .dg-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .dg-projects-title { font-size: 30px; }
}

@media (max-width: 767px) {
    .dg-video-grid {
        grid-template-columns: 1fr;
    }
    .dg-projects-section { padding: 40px 20px; }
    .dg-projects-title { font-size: 24px; }
    .dg-cta-title { font-size: 22px; }
}



.dg-ceo-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    color: #1a1a1a;
}

.dg-ceo-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

/* --- Заголовок секции --- */
.dg-ceo-title {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

.dg-ceo-title span {
    font-weight: 800; /* Выделение для "ГЕНЕРАЛЬНОГО ДИРЕКТОРА" */
}

/* --- Контейнер для большого видео --- */
.dg-ceo-video-container {
    max-width: 960px; /* Ограничиваем ширину плеера, как на макете */
    margin: 0 auto 40px auto;
    background-color: #000;
    border-radius: 24px; /* Закругление углов видео */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dg-ceo-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Пропорции 16:9 */
    height: 0;
}

/* Стили для будущего плеера Rutube */
.dg-ceo-video-wrapper iframe,
.dg-ceo-video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Временная заглушка (пока не вставил код видео) */
.dg-ceo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Кастомная кнопка плей (светло-голубая, как на скрине Rutube для стиля) */
.dg-ceo-play-btn {
    width: 70px;
    height: 70px;
    background-color: #00a0e3; /* Цвет кнопки Rutube с макета */
    border-radius: 18px; /* Слегка квадратная со скруглениями */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s ease, background-color 0.3s;
}

.dg-ceo-video-container:hover .dg-ceo-play-btn {
    transform: scale(1.08);
    background-color: #00b4ff;
}

.dg-ceo-play-btn i {
    margin-left: 4px;
}

/* --- Текст-цитата снизу --- */
.dg-ceo-quote {
    max-width: 850px;
    margin: 0 auto;
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.6;
}

.dg-ceo-quote p {
    margin-bottom: 8px;
}

.dg-ceo-quote p:last-child {
    margin-bottom: 0;
}

/* Выделение капса и жирного текста */
.dg-ceo-quote-accent {
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
}

.dg-ceo-quote strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* --- Адаптивность --- */
@media (max-width: 767px) {
    .dg-ceo-section { padding: 40px 20px; }
    .dg-ceo-title { font-size: 24px; margin-bottom: 25px; }
    .dg-ceo-video-container { border-radius: 16px; margin-bottom: 25px; }
    .dg-ceo-play-btn { width: 54px; height: 54px; font-size: 18px; border-radius: 12px; }
    .dg-ceo-quote { font-size: 14px; }
}


.dg-quiz-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}
.dg-quiz-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #f8f9fa;
    text-align: center;
}
.dg-quiz-heading {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

/* Основной контейнер квиза */
.dg-quiz-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
    min-height: 580px;
}

/* Левая рабочая часть */
.dg-quiz-main {
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Правый сайдбар с менеджером */
.dg-quiz-sidebar {
    background-color: #fdfdfd;
    border-left: 1px solid #f0f0f0;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dg-manager-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.dg-manager-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    text-align: center;
}
.dg-manager-status {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    text-align: center;
}
.dg-manager-bubble {
    background: #f1f3f5;
    padding: 15px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #4a4a4a;
    margin-bottom: 25px;
    position: relative;
}
.dg-sidebar-bonus-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: 100%;
}
.dg-sidebar-bonus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #4a4a4a;
    font-weight: 500;
    width: 100%;
}
.dg-sidebar-bonus-item img {
    width: 50px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Прогресс-бар */
.dg-quiz-progress-container {
    margin-bottom: 30px;
}
.dg-quiz-steps-lines {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.dg-quiz-line {
    height: 6px;
    flex: 1;
    background-color: #e9ecef;
    border-radius: 3px;
    transition: background-color 0.3s;
}
.dg-quiz-line.active {
    background-color: #31373d;
}
.dg-quiz-meta {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

/* Управление шагами */
.dg-quiz-step {
    display: none;
    flex-direction: column;
    height: 100%;
}
.dg-quiz-step.active {
    display: flex;
}
.dg-step-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

/* Сетки для карточек */
.dg-quiz-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.dg-quiz-grid-3x1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.dg-quiz-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin-bottom: 30px;
}

/* Элемент карточки (label как кнопка) */
.dg-card-option {
    position: relative;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
}
.dg-card-option:hover {
    border-color: #a0a0a0;
    transform: translateY(-2px);
}
.dg-card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.dg-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    background-size: cover;
    background-position: center;
}
.dg-card-title-block {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}
.dg-custom-radio {
    width: 16px;
    height: 16px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}
/* Эффект активного выбора */
.dg-card-option input[type="radio"]:checked ~ .dg-card-img-wrapper {
    filter: brightness(0.95);
}
.dg-card-option input[type="radio"]:checked ~ .dg-card-title-block {
    background-color: #f8f9fa;
}
.dg-card-option input[type="radio"]:checked ~ .dg-card-title-block .dg-custom-radio {
    border-color: #1a1a1a;
    background-color: #1a1a1a;
}
.dg-card-option input[type="radio"]:checked ~ .dg-card-title-block .dg-custom-radio::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}
.dg-card-option.selected-border {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Текстовые радио-кнопки (Шаги 3 и 4) */
.dg-text-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: #fff;
}
.dg-text-option:hover {
    border-color: #a0a0a0;
}
.dg-text-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.dg-text-option input[type="radio"]:checked ~ .dg-custom-radio {
    border-color: #1a1a1a;
    background-color: #1a1a1a;
}
.dg-text-option input[type="radio"]:checked ~ .dg-custom-radio::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 3.5px;
    left: 3.5px;
}
.dg-text-option.selected-border {
    border-color: #1a1a1a;
    background-color: #f8f9fa;
}

/* Шаг 5: Финал */
.dg-final-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 10px;
}
.dg-final-left {
    flex: 1;
}
.dg-final-right-mock {
    width: 180px;
    flex-shrink: 0;
}
.dg-final-right-mock img {
    width: 100%;
    height: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-radius: 10px;
}
.dg-final-sub {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 25px;
    line-height: 1.5;
}
.dg-messenger-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.dg-ms-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.dg-ms-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.dg-ms-btn i { font-size: 16px; }
.dg-ms-btn.active-tg { border-color: #0088cc; color: #0088cc; background: #f0f8ff; }
.dg-ms-btn.active-phone { border-color: #25d366; color: #25d366; background: #f0fff5; }

.dg-input-field {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    font-weight: 500;
}
.dg-input-field:focus {
    border-color: #1a1a1a;
}
.dg-btn-submit-quiz {
    width: 100%;
    padding: 18px;
    background-color: #47a13b; /* Зеленая кнопка "ПОДОБРАТЬ ПРОЕКТ" */
    color: #fff;
    border: none;
    border-radius: 35px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: background-color 0.2s;
}
.dg-btn-submit-quiz:hover { background-color: #3b8631; }
.dg-quiz-privacy {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
    line-height: 1.4;
}
.dg-quiz-privacy a { color: #888; text-decoration: underline; }

/* Кнопки навигации снизу */
.dg-quiz-nav {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}
.dg-btn-back {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    display: none; /* Скрыта на первом шаге */
}
.dg-btn-back:hover { color: #1a1a1a; }
.dg-btn-next {
    padding: 14px 35px;
    background-color: #31373d;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: auto;
}
.dg-btn-next:hover { background-color: #212529; }

/* Адаптив */
@media (max-width: 991px) {
    .dg-quiz-container { grid-template-columns: 1fr; }
    .dg-quiz-sidebar { display: none; }
}
@media (max-width: 767px) {
    .dg-quiz-section { padding: 40px 20px; }
    .dg-quiz-heading { font-size: 24px; }
    .dg-quiz-main { padding: 25px 20px; }
    .dg-quiz-grid-3x2, .dg-quiz-grid-3x1 { grid-template-columns: 1fr 1fr; }
    .dg-quiz-grid-2x3 { grid-template-columns: 1fr; }
    .dg-step-title { font-size: 18px; }
    .dg-final-wrapper { flex-direction: column; }
    .dg-final-right-mock { display: none; }
}









.dg-footer-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    color: #1a1a1a;
}

.dg-footer-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px 40px 40px;
    position: relative;
}

/* --- Верхняя линия (основной контент) --- */
.dg-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

/* Левая колонка: Лого, почта и реквизиты */
.dg-footer-left {
    display: flex;
    flex-direction: column;
    max-width: 350px;
}

.dg-footer-logo {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.dg-footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 25px;
    font-weight: 500;
}

.dg-footer-email i {
    font-size: 16px;
}

.dg-footer-info {
    font-size: 12px;
    color: #666666;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dg-footer-link {
    font-size: 12px;
    color: #666666;
    text-decoration: underline;
    margin-top: 12px;
    transition: color 0.3s;
}

.dg-footer-link:hover {
    color: #1a1a1a;
}

/* Правая часть: Телефон и Кнопка */
.dg-footer-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.dg-footer-phone {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.dg-footer-btn {
    padding: 14px 32px;
    background-color: #31373d;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dg-footer-btn:hover {
    background-color: #212529;
}

/* --- Нижняя линия (дисклеймер) --- */
.dg-footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 25px;
}

.dg-footer-disclaimer {
    font-size: 11px;
    color: #666666;
    line-height: 1.6;
    max-width: 80%;
}

/* --- Кнопка "Наверх" --- */
.dg-scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #31373d;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.dg-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.dg-scroll-top:hover {
    background-color: #212529;
    transform: translateY(-3px);
}

.dg-scroll-top i {
    font-size: 18px;
}

/* --- Адаптивность --- */
@media (max-width: 991px) {
    .dg-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .dg-footer-right {
        width: 100%;
        justify-content: space-between;
    }
    .dg-footer-disclaimer {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .dg-footer-section { padding: 40px 20px; }
    .dg-footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .dg-footer-phone { font-size: 20px; }
    .dg-scroll-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
