@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap');

:root {
    --urmall-brand-purple: #7f00d4;
    --urmall-brand-pink: #ff0077;
    --urmall-bg-light: #f8f5fc;
    --urmall-bg-white: #ffffff;
    --urmall-text-main: #2d2d2d;
    --urmall-text-muted: #666666;
    --urmall-radius: 16px;
    --urmall-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--urmall-text-main);
    background-color: var(--urmall-bg-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Блокировка скролла при открытом меню */
body.urmall-no-scroll {
    overflow: hidden;
}

/* Резиновая типографика */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 1rem; }
p { font-size: clamp(1rem, 1.2vw, 1.15rem); margin-bottom: 1rem; }

.urmall-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.urmall-section {
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.urmall-section-light {
    background-color: var(--urmall-bg-light);
}

/* Шапка */
.urmall-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: var(--urmall-bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.urmall-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 101; /* Поверх мобильного меню */
}

.urmall-logo svg {
    height: 40px;
    width: auto;
    display: block;
}

.urmall-nav {
    display: flex;
    gap: 2rem;
}

.urmall-nav a {
    text-decoration: none;
    color: var(--urmall-text-main);
    font-weight: 600;
    transition: var(--urmall-transition);
}

.urmall-nav a:hover {
    color: var(--urmall-brand-pink);
}

/* Кнопки */
.urmall-btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: linear-gradient(135deg, var(--urmall-brand-purple) 0%, var(--urmall-brand-pink) 100%);
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: var(--urmall-transition);
	box-shadow: 0 4px 15px rgba(255, 0, 119, 0.2);
	text-align: center;
}

.urmall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 119, 0.3);
}

/* Градиентный текст */
.urmall-text-gradient {
    background: linear-gradient(135deg, var(--urmall-brand-purple) 0%, var(--urmall-brand-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Сетка карточек */
.urmall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.urmall-card {
    background: var(--urmall-bg-white);
    padding: 2.5rem;
    border-radius: var(--urmall-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(127, 0, 212, 0.05);
    transition: var(--urmall-transition);
}

.urmall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(127, 0, 212, 0.08);
}

.urmall-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Подвал */
.urmall-footer {
    margin-top: auto;
    padding: 3rem 0;
    background-color: var(--urmall-bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.urmall-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--urmall-text-muted);
    font-size: 0.9rem;
}

/* Бургер-меню (кнопка) */
.urmall-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102; /* Поверх всего */
}

.urmall-burger span {
    width: 100%;
    height: 2px;
    background-color: var(--urmall-brand-purple);
    transition: var(--urmall-transition);
    border-radius: 2px;
    pointer-events: none;
}

/* Анимация крестика */
.urmall-burger.urmall-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--urmall-brand-pink);
}

.urmall-burger.urmall-active span:nth-child(2) {
    opacity: 0;
}

.urmall-burger.urmall-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--urmall-brand-pink);
}

/* Мобильное меню (оверлей) */
.urmall-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--urmall-bg-white);
    z-index: 99; /* Под шапкой */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.urmall-mobile-menu.urmall-active {
    transform: translateX(0);
}

.urmall-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.urmall-mobile-nav a {
    text-decoration: none;
    color: var(--urmall-text-main);
    font-size: 1.8rem;
    font-weight: 800;
    transition: var(--urmall-transition);
}

.urmall-mobile-nav a:hover,
.urmall-mobile-nav a:active {
    color: var(--urmall-brand-pink);
}

@media (max-width: 768px) {
    .urmall-nav { display: none; }
    .urmall-burger { display: flex; }
    .urmall-footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Спиннер загрузки для кнопки */
.urmall-spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: urmall-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes urmall-spin {
    to { transform: rotate(360deg); }
}

/* Оверлей-поповер для блокировки формы */
.urmall-form-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: var(--urmall-radius);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.urmall-form-overlay.urmall-active {
    opacity: 1;
    visibility: visible;
}

/* Крупный спиннер для поповера */
.urmall-spinner-large {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(127, 0, 212, 0.1);
    border-radius: 50%;
    border-top-color: var(--urmall-brand-purple);
    animation: urmall-spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

/* Стили для полей ввода (замена inline-скриптов onfocus) */
.urmall-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.urmall-input:focus {
    border-color: var(--urmall-brand-purple);
}

textarea.urmall-input {
    resize: vertical;
}

/* --- Блок последних новостей на главной --- */
.urmall-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.urmall-news-header h2 {
    margin-bottom: 0;
}

.urmall-link-more {
    text-decoration: none;
    color: var(--urmall-brand-purple);
    font-weight: 800;
    transition: var(--urmall-transition);
    display: inline-flex;
    align-items: center;
}

.urmall-link-more:hover {
    color: var(--urmall-brand-pink);
}

/* --- Блок последних новостей на главной --- */
.urmall-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.urmall-news-header h2 {
    margin-bottom: 0;
}

.urmall-link-more {
    text-decoration: none;
    color: var(--urmall-brand-purple);
    font-weight: 800;
    transition: var(--urmall-transition);
    display: inline-flex;
    align-items: center;
}

.urmall-link-more:hover {
    color: var(--urmall-brand-pink);
}

.urmall-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.urmall-news-card {
    display: flex;
    flex-direction: column;
    background: var(--urmall-bg-white);
    padding: 2rem;
    border-radius: var(--urmall-radius);
    border: 1px solid rgba(127, 0, 212, 0.05);
    text-decoration: none;
    transition: var(--urmall-transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    height: 100%;
}

.urmall-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(127, 0, 212, 0.08);
    border-color: var(--urmall-brand-pink);
}

.urmall-news-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--urmall-brand-pink);
    margin-bottom: 1rem;
}

.urmall-news-title {
    font-size: 1.2rem;
    color: var(--urmall-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    transition: color 0.2s;
    flex-grow: 1;
}

.urmall-news-card:hover .urmall-news-title {
    color: var(--urmall-brand-purple);
}

.urmall-news-read {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--urmall-text-muted);
    transition: var(--urmall-transition);
    display: flex;
    align-items: center;
}

.urmall-news-read::after {
    content: '→';
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--urmall-transition);
}

.urmall-news-card:hover .urmall-news-read {
    color: var(--urmall-brand-purple);
}

.urmall-news-card:hover .urmall-news-read::after {
    opacity: 1;
    transform: translateX(0);
}

/* --- Зона Drag & Drop для загрузки файлов --- */
.urmall-dropzone {
    border: 2px dashed rgba(127, 0, 212, 0.2);
    border-radius: var(--urmall-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--urmall-bg-light);
    cursor: pointer;
    transition: var(--urmall-transition);
}

.urmall-dropzone:hover {
    border-color: var(--urmall-brand-pink);
    background: #fdfafc;
}

.urmall-dropzone.urmall-dragover {
    border-color: var(--urmall-brand-purple);
    background: #f4ecfd;
    transform: scale(1.02);
}

.urmall-hidden-input {
    display: none;
}

.urmall-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

/* Список прикрепленных файлов */
.urmall-file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.urmall-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--urmall-bg-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--urmall-text-main);
}

.urmall-file-name {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.urmall-file-remove {
    background: none;
    border: none;
    color: var(--urmall-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s;
    padding: 0 0.5rem;
}

.urmall-file-remove:hover {
    color: var(--urmall-brand-pink);
}

/* --- Стили для страницы контактов и формы --- */
.urmall-contacts-subtitle {
    max-width: 800px;
    font-size: 1.15rem;
    color: var(--urmall-text-muted);
}

.urmall-contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--urmall-bg-white);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--urmall-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(127, 0, 212, 0.05);
    position: relative;
}

.urmall-form-loading-text {
    font-weight: 600;
    color: var(--urmall-brand-purple);
}

.urmall-bot-trap {
    display: none;
}

.urmall-form-group {
    margin-bottom: 1.5rem;
}

.urmall-form-group-large {
margin-bottom: 2rem;
}

.urmall-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.urmall-dropzone-icon {
    margin-bottom: 10px;
}

.urmall-dropzone-text {
    margin-bottom: 0.25rem;
}

.urmall-dropzone-link {
    color: var(--urmall-brand-pink);
    text-decoration: underline;
}

.urmall-dropzone-hint {
    font-size: 0.85rem;
    color: var(--urmall-text-muted);
}

.urmall-captcha-wrapper {
    height: 100px;
    margin-bottom: 1.5rem;
}

.urmall-btn-submit {
    width: 100%;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
}

.urmall-form-result-box {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

/* --- Стили блока перенаправления в магазин --- */
.urmall-section-redirect {
    background: var(--urmall-bg-light);
    padding: clamp(0.1rem, 4vw, 4rem) 0;
}

.urmall-redirect-box {
    background: var(--urmall-bg-white);
    border: 1px solid rgba(127, 0, 212, 0.08);
    border-radius: var(--urmall-radius);
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: 0 15px 45px rgba(127, 0, 212, 0.04);
    position: relative;
    overflow: hidden;
}

.urmall-redirect-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--urmall-brand-purple), var(--urmall-brand-pink));
}

.urmall-redirect-info {
    max-width: 850px;
}

.urmall-redirect-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--urmall-text-main);
    margin-bottom: 1.5rem;
}

.urmall-redirect-text {
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    color: var(--urmall-text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.urmall-redirect-btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: rgba(127, 0, 212, 0.06);
    color: var(--urmall-brand-purple);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: var(--urmall-transition);
    border: 1px solid rgba(127, 0, 212, 0.12);
}

.urmall-redirect-btn:hover {
    background: linear-gradient(135deg, var(--urmall-brand-purple) 0%, var(--urmall-brand-pink) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 119, 0.2);
    border-color: transparent;
}

.urmall-redirect-btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.urmall-redirect-svg {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.urmall-redirect-btn:hover .urmall-redirect-svg {
    transform: translate(2px, -2px);
}

.urmall-tg-button {
	display: inline-flex;
	align-items: center;
	/* gap: 12px; */
	/* padding: 10px 20px; */
	/* background-color: #f8f5fc; */
	/* border: 2px solid transparent; */
	border-radius: 8px;
	text-decoration: none;
	/* color: #333333; */
	/* font-family: inherit; */
	/* font-size: 16px; */
	/* font-weight: 600; */
	/* transition: all 0.3s ease; */
	cursor: pointer;
	box-sizing: border-box;
	margin-top: 15px;
}

.urmall-tg-icon {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	display: block;
}

/* Изменение поведения при клике */
.urmall-tg-button:active {
    transform: scale(0.98);
}

/* ==========================================================================
   СТИЛИ ДЛЯ КАРТОЧКИ НОВОСТИ ЁМОЛЛ (urmall-news-card)
   ========================================================================== */

/* Блок "Новость не найдена" */
.urmall-news-card-not-found-section {
    text-align: center;
}

.urmall-news-card-not-found-text {
    color: var(--urmall-text-muted, #666666);
    margin-bottom: 2rem;
}

/* Основная сетка карточки новости */
.urmall-news-card-wrapper {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.urmall-news-card-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

/* Левая часть - Сама статья */
.urmall-news-card-article {
    background: var(--urmall-bg-white, #ffffff);
}

.urmall-news-card-back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--urmall-brand-purple, #7f00d4);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: var(--urmall-transition, 0.3s ease);
}

.urmall-news-card-back-link:hover {
    opacity: 0.8;
}

.urmall-news-card-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--urmall-brand-pink, #ff0077);
    margin-bottom: 0.5rem;
}

.urmall-news-card-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    color: var(--urmall-text-main, #333333);
    line-height: 1.15;
}

.urmall-news-card-content {
    color: var(--urmall-text-main, #333333);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

.urmall-news-card-content a {
    color: var(--urmall-brand-purple, #7f00d4);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.urmall-news-card-content a:hover {
    color: var(--urmall-brand-pink, #ff0077);
}

/* Правая часть - Сайдбар (Свежие материалы) */
.urmall-news-card-sidebar {
    background: var(--urmall-bg-light, #f8f5fc);
    padding: 2rem;
    border-radius: var(--urmall-radius, 8px);
    border: 1px solid rgba(127, 0, 212, 0.05);
    position: sticky;
    top: 120px;
}

.urmall-news-card-sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--urmall-text-main, #333333);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.urmall-news-card-sidebar-empty {
    color: var(--urmall-text-muted, #666666);
    font-size: 0.95rem;
}

.urmall-news-card-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.urmall-news-card-sidebar-item {
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    transition: var(--urmall-transition, border-color 0.3s ease);
}

.urmall-news-card-sidebar-item:hover {
    border-bottom-color: var(--urmall-brand-pink, #ff0077);
}

.urmall-news-card-sidebar-item-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--urmall-brand-pink, #ff0077);
    margin-bottom: 0.25rem;
}

.urmall-news-card-sidebar-item-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--urmall-text-main, #333333);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.urmall-news-card-sidebar-item:hover .urmall-news-card-sidebar-item-title {
    color: var(--urmall-brand-purple, #7f00d4);
}

/* Адаптивность для мобильных устройств и планшетов */
@media (max-width: 992px) {
    .urmall-news-card-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .urmall-news-card-sidebar {
        position: static;
    }
}

/* ==========================================================================
   СТИЛИ ДЛЯ СПИСКОВ ВНУТРИ ТЕКСТА НОВОСТИ
   ========================================================================== */

.urmall-news-card-content ul,
.urmall-news-card-content ol {
    padding: 0;
    margin: 0 0 1.5rem 0;
    list-style: none; /* Отключаем стандартные маркеры браузера */
}

.urmall-news-card-content li {
    position: relative;
    padding-left: 1.5rem; /* Фиксированный отступ для текста */
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.urmall-news-card-content li:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   МАРКИРОВАННЫЕ СПИСКИ (ul)
   -------------------------------------------------------------------------- */
.urmall-news-card-content ul > li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.6em; /* Оптическое выравнивание по центру первой строки */
    width: 6px;
    height: 6px;
    background-color: var(--urmall-brand-purple, #7f00d4); 
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   НУМЕРОВАННЫЕ СПИСКИ (ol)
   -------------------------------------------------------------------------- */
.urmall-news-card-content ol {
    counter-reset: urmall-news-counter;
}

.urmall-news-card-content ol > li::before {
    counter-increment: urmall-news-counter;
    content: counter(urmall-news-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--urmall-brand-pink, #ff0077); 
}

/* --------------------------------------------------------------------------
   ВЛОЖЕННЫЕ СПИСКИ (любые комбинации)
   -------------------------------------------------------------------------- */
.urmall-news-card-content ul ul, 
.urmall-news-card-content ol ol, 
.urmall-news-card-content ul ol, 
.urmall-news-card-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Смена формы маркера для вложенных немаркированных списков */
.urmall-news-card-content ul ul > li::before,
.urmall-news-card-content ol ul > li::before {
    background-color: transparent;
    border: 2px solid var(--urmall-brand-purple, #7f00d4);
    width: 4px;
    height: 4px;
    left: 0.25rem; /* Корректировка позиции из-за появившейся рамки */
}