* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #ffffff;
    color: #111;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    width: 100%;
}

/* Верхняя часть с кнопкой и названием */
.hero-section {
    text-align: center;
    margin-bottom: 0;
}

/* Кнопка */
.t1331__row {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 80px;
}

/* Скрываем на десктопах (ширина больше 768px) */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Показываем на мобильных (ширина меньше или равна 768px) */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

.t-btnflex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.t-btnflex_type_button {
    color: #000000;
    border-style: solid !important;
    border-color: #000000 !important;
    border-width: 3px;
    box-shadow: none !important;
    transition-duration: 0.2s;
    transition-property: background-color, color, border-color, box-shadow, opacity, transform, gap;
    transition-timing-function: ease-in-out;
    background-color: transparent;
    border-radius: 0;
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', sans-serif;
}

.t-btnflex_type_button:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000 !important;
}

.t-btnflex__text {
    display: inline-block;
    line-height: 1.3;
}

/* Название КБ №101 - как заголовок */
.t-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

.t050__title {
    font-size: 96px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #000;
    line-height: 1.1;
    word-break: break-word;
    margin: 0 0 20px 0;
    text-align: center;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', sans-serif;
}

/* Подзаголовок - Система мониторинга */
.system-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #555;
    margin-bottom: 80px;
    text-align: center;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    word-break: break-word;
}

/* Хлебные крошки - ПО ЦЕНТРУ */
.breadcrumbs {
    color: #666;
    font-size: 18px;
    margin: 0 0 60px 0;
    text-align: center;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', sans-serif;
}

.breadcrumbs a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', sans-serif;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== ЦЕНТРИРОВАННАЯ FLEX-СЕТКА ===== */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Это значение будет переопределено в медиа-запросах */
    margin: 0 auto;
    width: 100%;
}

/* Карточки с фиксированной шириной через min/max-width */
.feature-card {
    border-radius: 22px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    transition: 0.25s;
    word-break: break-word;
    width: calc(25% - 30px); /* 4 карточки в ряд */
    min-width: 200px; /* --card-min-width */
    max-width: 260px; /* --card-max-width */
    color: #111;
    flex-grow: 0;
    flex-shrink: 0;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', sans-serif;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    filter: brightness(1.02);
}

/* Цвета для 31 плитки (старый способ через nth-child) */
.feature-card:nth-child(1) { background: #F59EA0; }  /* нежно-розовый */
.feature-card:nth-child(2) { background: #A8D2B2; }  /* шалфей */
.feature-card:nth-child(3) { background: #C7CEEA; }  /* светло-голубой */
.feature-card:nth-child(4) { background: #FFCF94; }  /* янтарный */
.feature-card:nth-child(5) { background: #B48FBC; }  /* глициния */
.feature-card:nth-child(6) { background: #F5C6A0; }  /* персиковый */
.feature-card:nth-child(7) { background: #B5D9B8; }  /* травяной */
.feature-card:nth-child(8) { background: #8BA6C2; }  /* джинсовый */
.feature-card:nth-child(9) { background: #FFD89A; }  /* медовый */
.feature-card:nth-child(10) { background: #E0BBE4; }  /* сиреневый */
.feature-card:nth-child(11) { background: #F5B2A0; }  /* коралловый */
.feature-card:nth-child(12) { background: #C5E0BF; }  /* мятный */
.feature-card:nth-child(13) { background: #9AB0CC; }  /* васильковый */
.feature-card:nth-child(14) { background: #FFEAA7; }  /* жёлтый */
.feature-card:nth-child(15) { background: #BF9AC6; }  /* сливовый */
.feature-card:nth-child(16) { background: #F5BCA0; }  /* лососевый */
.feature-card:nth-child(17) { background: #D4E8C5; }  /* светло-зелёный */
.feature-card:nth-child(18) { background: #A9BAD6; }  /* небесный */
.feature-card:nth-child(19) { background: #FFF3B0; }  /* светло-лимонный */
.feature-card:nth-child(20) { background: #CAA5D0; }  /* фиолетовый */
.feature-card:nth-child(21) { background: #F5A8A0; }  /* розовый */
.feature-card:nth-child(22) { background: #E2F0CB; }  /* салатовый */
.feature-card:nth-child(23) { background: #B8C4E0; }  /* голубой */
.feature-card:nth-child(24) { background: #FFE2A0; }  /* золотистый */
.feature-card:nth-child(25) { background: #D5B0DA; }  /* лавандовый */
.feature-card:nth-child(26) { background: #80C2BB; }  /* нефрит */
.feature-card:nth-child(27) { background: #9AD6C9; }  /* морская волна */
.feature-card:nth-child(28) { background: #A885B0; }  /* нежно-фиолетовый */
.feature-card:nth-child(29) { background: #B5EAD7; }  /* мятно-бирюзовый */
.feature-card:nth-child(30) { background: #A8E0D0; }  /* бирюзовый */
.feature-card:nth-child(31) { background: #8DCCC2; }  /* лазурный */



/* Форма */
.form-card {
    background: #fff;
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    width: 100%;
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.form-card h2 {
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #000;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}


textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 0;
}

.radio-group input {
    width: 18px;
    height: 18px;
    accent-color: #000;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 45px !important;
    background-image: url('/static/image/calendar.svg');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 30px;
}

.time-with-icon input {
    padding-right: 45px !important;
    background-image: url('/static/image/time.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 30px !important;
    cursor: pointer;
}

.datetime-with-icon input {
    padding-right: 45px !important;
    background-image: url('/static/image/datetime.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 30px !important;
    cursor: pointer;
}


/* Стили для сетки годов */
.calendar-year {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%; /* Или 4px для квадратов */
    font-size: 14px;
    transition: 0.2s;
    font-weight: 500;
}

.calendar-year:hover {
    background: #f0f0f0;
}

.calendar-year.selected {
    background: #000;
    color: #fff;
    font-weight: 700;
}

/* Опционально: подсветка текущего года (не выбранного, а системного) */
.calendar-year.current {
    border: 1px solid #000;
}

.calendar-days:has(.calendar-year) {
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 8px;
}



/* Кнопка отправки */
.btn {
    padding: 16px 42px;
    border: 2px solid #000;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
}

.btn-solid {
    background: #000;
    color: #fff;
}

.btn-solid:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== УВЕДОМЛЕНИЕ ===== */
#success-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #B5EAD7;
    border: 3px solid #000;
    border-radius: 22px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    font-family: 'Golos Text', 'Tilda Sans', 'Segoe UI', sans-serif;
    max-width: 400px;
    width: fit-content;
    pointer-events: none;
}

#success-notification.show {
    transform: translateX(0);
}

#success-notification .notification-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    border: 2px solid #000;
}

#success-notification .notification-text {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* Ошибки формы */
.form-error-block {
    margin-bottom: 8px;
}

.form-error-field {
    font-weight: 600;
    color: red;
}

.form-error-text {
    margin-left: 12px;
    color: red;
}

.form-errors{
    color: red;
}

.error-text {
    color: red;
}

.error-text ul {
    margin: 4px 0 0;
    padding-left: 16px;
}

.error-text li::marker {
    color: red;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1100px) {
    .feature-card {
        width: calc(33.33% - 30px); /* 3 карточки в ряд, gap остается 30px */
    }
}

@media (max-width: 900px) {
    .container {
        padding: 100px 20px 30px;
    }

    .t050__title {
        font-size: 72px;
        margin-bottom: 15px;
    }

    .system-subtitle {
        font-size: 22px;
        margin-bottom: 70px;
    }

    .t1331__row {
        margin-bottom: 70px;
    }

    .breadcrumbs {
        margin-bottom: 55px;
        font-size: 17px;
    }
}

@media (max-width: 800px) {
    .feature-card {
        width: calc(50% - 15px); /* 2 карточки в ряд, gap уменьшен до 15px */
        min-width: 200px;
    }
    .cards-grid {
        gap: 15px; /* Переопределяем gap для этого разрешения */
    }
    .t050__title { font-size: 60px; }
}

@media (max-width: 700px) {
    .container {
        padding: 90px 16px 25px;
    }

    .t050__title {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .system-subtitle {
        font-size: 20px;
        margin-bottom: 60px;
    }

    .t1331__row {
        margin-bottom: 60px;
    }

    .t-btnflex_type_button {
        padding: 14px 42px;
        font-size: 19px;
    }

    .breadcrumbs {
        margin-bottom: 50px;
        font-size: 17px;
    }

    .star {
        font-size: 35px;
    }

    .map-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    #success-notification {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 550px) {
    .feature-card {
        width: calc(50% - 12px); /* 2 карточки в ряд */
        min-width: 140px;
        font-size: 16px;
        padding: 15px;
    }
    .cards-grid {
        gap: 12px; /* Переопределяем gap */
    }
}

@media (max-width: 560px) {
    .container {
        padding: 80px 15px 20px;
    }

    .t050__title {
        font-size: 52px;
        margin-bottom: 12px;
    }

    .system-subtitle {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .t1331__row {
        margin-bottom: 50px;
    }

    .t-btnflex_type_button {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 18px;
    }

    .breadcrumbs {
        margin-bottom: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 70px 12px 15px;
    }

    .t050__title {
        font-size: 46px;
        margin-bottom: 10px;
    }

    .system-subtitle {
        font-size: 17px;
        margin-bottom: 45px;
    }

    .t1331__row {
        margin-bottom: 45px;
    }

    .t-btnflex_type_button {
        padding: 12px 16px;
        font-size: 17px;
        border-width: 3px;
    }

    .breadcrumbs {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .feature-card {
        font-size: 15px;
        padding: 12px;
    }

    .star {
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 60px 10px 10px;
    }

    .t050__title {
        font-size: 42px;
        margin-bottom: 8px;
    }

    .system-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .t1331__row {
        margin-bottom: 40px;
    }

    .t-btnflex_type_button {
        max-width: 260px;
        padding: 12px 16px;
        font-size: 16px;
    }

    .breadcrumbs {
        margin-bottom: 35px;
        font-size: 14px;
    }

    .feature-card {
        width: calc(50% - 10px); /* 2 карточки в ряд */
        min-width: 130px;
        font-size: 14px;
        padding: 10px;
    }
    .cards-grid {
        gap: 10px; /* Переопределяем gap */
    }
}

@media (max-width: 320px) {
    .container {
        padding: 50px 8px 8px;
    }

    .t050__title {
        font-size: 38px;
    }

    .system-subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .t1331__row {
        margin-bottom: 35px;
    }

    .breadcrumbs {
        margin-bottom: 30px;
    }

    .feature-card {
        font-size: 14px;
        padding: 8px;
    }
}

/* АВТОРИЗАЦИЯ */

.error-message,
.error-message ul,
.error-message li {
    color: red;
}

.empty-state-card {
    grid-column: 1 / -1;   /* ВАЖНО для grid */
    max-width: 720px;
    margin: 40px auto;

    background: #fff;
    padding: 48px 40px;
    border-radius: 22px;
    border: 1px dashed #e5e7eb;

    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 15px;
    color: #6b7280;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    /* margin-bottom: 8px;
    margin-top: 8px; */
}
.logout-btn:hover {
    background: #000000;
    color: #fff;
}

.reports-btn {
    position: absolute;
    top: 20px;
    left: 20px; /* вместо right */
    background: #fff;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.reports-btn:hover {
    background: #000000;
    color: #fff;
}

/* ===== РЕЙТИНГ (ЗВЁЗДЫ) ===== */
.rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.star {
    font-size: 40px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
    user-select: none;
}

.star.selected {
    color: #FFD700;
}

.star:hover {
    color: #FFD700;
}

/* ===== БЛОК БЛАГОДАРНОСТИ ===== */
.thanks-block {
    text-align: center;
}

.thanks-block h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #000;
}

.thanks-block p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.map-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: 0.2s;
}

.map-link:hover {
    transform: translateY(-5px);
}

.map-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 10px;
    border: 2px solid #000;
}

.map-icon.yandex {
    background: #f0f0f0;
}

.map-icon.dgis {
    background: #B5EAD7;
}

/* ==== CONSENT чекбокс (фикс, чтобы не применялся общий input{width:100%}) ==== */
.form-group.consent {
  margin-top: 8px;
}

.form-group.consent input[type="checkbox"]{
  width: auto;      /* убираем 100% */
  padding: 0;       /* убираем padding 14px */
  border: none;     /* убираем чёрную рамку как у текстовых инпутов */
  box-shadow: none;
  margin: 0 10px 0 0;
  vertical-align: middle;
  accent-color: #000;  /* чтобы в твоём стиле */
}

.form-group.consent .consent-label{
  display: inline;  /* чтобы не растягивалось как label { display:block } */
  font-size: 14px;
  font-weight: 600;
}

.login-privacy {
  margin-top: 14px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.login-privacy a {
  color: #000;
  text-decoration: underline;
}

.label-optional {
    font-weight: 400;
    color: #888;
    font-size: 0.9em;
}

.admin-center-btn {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.admin-center-btn:hover {
    background: #000000;
    color: #fff;
}

.client-error,
.error-message {
    margin-top: 6px;
    color: #d93025;
    font-size: 14px;
}

.input-invalid {
    border: 1px solid #d93025 !important;
}


.oleg-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.oleg-modal__box {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    max-width: 420px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.oleg-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.oleg-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.oleg-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    background: #111;
    color: #fff;
}

.oleg-btn:hover {
    opacity: 0.9;
}

.oleg-denied {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    padding: 60px 20px;
}

.oleg-gif-wrap {
    margin-top: 20px;
    text-align: center;
}

.oleg-gif {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}