@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.ttf");
    font-weight: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.ttf");
    font-weight: bold;
}

*
{
    margin: 0;
    padding: 0;
}

.main
{
    margin-left: 20%;
    width: 60%;
}

body
{
    font-family: "Montserrat";
    font-weight: normal;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a
{
    text-decoration: none;
}

img
{
    max-width: 100%; /* Максимальный размер изображения не больше родительского блока */
}

.container {
    display: grid;
    grid-template-columns: 20% 60% 20%;
    width: 100%;
    min-height: 100vh; /* Растянет на всю высоту экрана, если нужно */
}

.left-panel, .main-content, .right-panel {
    padding: 15px;
    box-sizing: border-box; /* Чтобы паддинги не увеличивали ширину блоков */
}

.right-panel {
    height: fit-content;
    position: sticky;
    top: 20px; /* Отступ от верхнего края экрана при скролле */

    display: flex;
    flex-direction: column; /* Элементы идут друг под другом */
    align-items: center;    /* Центрирует по горизонтали */
    text-align: center;     /* Центрирует сам текст внутри строк */
    gap: 15px;              /* Делает аккуратные отступы между текстом, картинкой и кнопкой */
}

.right-panel img {
    width: 50%;
    height: auto; /* Чтобы не искажались пропорции */
    display: block; /* Убирает лишние отступы снизу */
    margin: 0 auto; /* Если нужно отцентрировать картинку внутри панели */
}

.donate-button {
    display: inline-block;
    background-color: #ffdd2d; /* Желтый цвет (в стиле Т-Банка) */
    color: #000;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 11px; /* Тот самый маленький размер */
    color: #999;     /* Светло-серый цвет */
    line-height: 1.4;
    margin-top: 15px;
    font-style: italic;
}

@media (max-width: 768px)
{
    .container
    {
        /* Переключаем сетку в режим "одна колонка" */
        grid-template-columns: 1fr;
    }

    /* Опционально: меняем порядок, чтобы левая панель 
       не мешала контенту и ушла вниз */
    .left-panel
    {
        order: 1;
    }

    .main-content
    {
        order: 2;
    }

    .right-panel
    {
        order: 3;
    }
}

/* Header*/

.nav-link-main
{
    font-family: "Montserrat";
    font-weight: normal;
    text-decoration: none;
    vertical-align: middle;
}

.nav-link-main {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    transition: background 0.2s;
    color: var(--text-color);
}

.nav-item-main
{
    display: inline-block;
    margin-left: 60px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    transition: all 300ms ease;
}

.head
{
    height: auto;
    box-shadow: 0px 4px 5px #8D8B8B;
    border-color: rgba(2, 2, 2, 0.2);
    border-bottom: 5px;
    display: inline;
    padding-bottom: 10px;
}

.nav-item-main:hover
{
    transform: scale(1.1);
    color: #fff;
    text-shadow: 
    /* 1. Яркое ядро (небольшой размыв) */
    0 0 7px var(--shadow-color1), 
    0 0 10px var(--shadow-color2),
    /* 2. Основная аура (средний размыв) */
    0 0 50px var(--shadow-color3),
    /* 3. Широкое мягкое заполнение (большой размыв) */
    0 0 100px var(--shadow-color4),
    0 0 200px var(--shadow-color5);
}

.logo
{
    font-family: "Montserrat";
    font-weight: normal;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--logo-color);
    white-space: nowrap;
}

.logo-panel
{
    width: 40%;
    min-width: max-content;
    display: inline-block;
}

.nav-panel
{
    width: 59%;
    display: inline-block;
}

/* Header end*/

.footer
{
    height: 300px;
    margin-top: 50px;
    margin-left: 10%;
    margin-right: auto;
}

.inline-block
{
    display: inline-block;
}

:root {
    --primary-color: #512bd4; /* Фирменный цвет .NET */
    --bg-color: rgb(216, 216, 216);
    --text-color: rgb(31, 31, 31);
    --secondary-text: #313131;
    --logo-color: black;
    --shadow-color1: rgba(255, 255, 255, 0.3);
    --shadow-color2: rgba(255, 255, 255, 0.3);
    --shadow-color3: rgba(255, 255, 255, 0.3);
    --shadow-color4: rgba(255, 255, 255, 0.3);
    --shadow-color5: rgba(255, 255, 255, 0.3);
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Шапка */
/*header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid #1e293b;
}*/

.nav-links button {
    background: none;
    border: none;
    color: var(--secondary-text);
    /*margin-left: 20px;*/
    cursor: pointer;
    transition: 0.3s;
}

.nav-links button:hover {
    color: var(--primary-color);
}

/* Заголовок и текст */
h1.main-header
{
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-color), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p 
{
    font-size: 1.2rem;
    color: var(--secondary-text);
    /*max-width: 800px;*/
    line-height: 1.6;
}

/* Кнопка перехода с главной в конструктор */
.cta-button {
    margin-top: 40px;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(81, 43, 212, 0.3);
    display: block;
    width: max-content;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 35px rgba(81, 43, 212, 0.6);
    background: #623ce4;
}

/* Размытое пятно на фоне */
.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(120px);
    opacity: 0.25;
    z-index: -1;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Переключатель темы*/

:root {
  --bg-color: #f0f0f0;
  --slider-bg: #ccc;
}

body.dark-theme {
    --slider-bg: #444;
    --text-color: #fff;
    --bg-color: #0b0e14;
    --secondary-text: #94a3b8;
    --logo-color: white;
    --shadow-color1: rgba(81, 43, 212, 1);
    --shadow-color2: rgba(81, 43, 212, 1);
    --shadow-color3: rgba(81, 43, 212, 0.8);
    --shadow-color4: rgba(81, 43, 212, 0.6);
    --shadow-color5: rgba(81, 43, 212, 0.4);
}

.theme-switch-container {
  display: flex;
  align-items: center;
}

.theme-input {
  display: none; /* Скрываем стандартный чекбокс */
}

.theme-slider {
  width: 60px;
  height: 30px;
  background-color: var(--slider-bg);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  transition: background-color 0.4s ease;
}

/* Белый шар, который ездит туда-сюда */
.ball {
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Эффект перемещения шара */
.theme-input:checked + .theme-slider .ball {
  transform: translateX(40px);
}

/* Стили для иконок */
.icon {
  font-size: 14px;
  user-select: none;
  z-index: 1;
}

/* Оживим иконки: в светлой теме луна тусклая, в тёмной — солнце */
.theme-input:checked + .theme-slider .sun { opacity: 0.3; }
.theme-input:not(:checked) + .theme-slider .moon { opacity: 0.3; }

/* Куки */
.cookie-notice {
    position: fixed;
    bottom: -100px; /* Изначально спрятана ниже экрана */
    left: 0;
    width: 100%;
    background-color: var(--bg-color, #f8f9fa);
    color: var(--text-color, #212529);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    z-index: 9999;
    
    /* Анимация */
    transition: all 0.5s ease-in-out; 
    opacity: 0;
}

/* Класс, который мы добавим через JS */
.cookie-notice.show {
    bottom: 0;
    opacity: 1;
}

.cookie-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
}

#cookie-accept-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#cookie-accept-btn:hover {
    background: #0056b3;
}

/* Плашка восстановления схемы */
.restore-notice {
    position: fixed;
    top: -100px; /* Спрятана сверху */
    left: 0;
    width: 100%;
    background-color: #fff3cd; /* Желтоватый цвет предупреждения */
    color: #856404;
    border-bottom: 1px solid #ffeeba;
    padding: 10px 20px;
    z-index: 10000;
    transition: all 0.4s ease;
}

.restore-notice.show {
    top: 0;
}

.restore-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-restore {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-ignore {
    background: transparent;
    color: #856404;
    border: 1px solid #856404;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
}