@font-face {
    font-family: golos;
    src: url(fonts/golos-text_regular.ttf);
}

@font-face {
    font-family: golosbold;
    src: url(fonts/golos-text_bold.ttf);
}

@font-face {
    font-family: logo;
    src: url(fonts/logo.ttf);
}

:root {
    --black: #000;
    --white: #fff;
    --secondary-color-1: #ffa500;
    --secondary-color-2: #0b0d3c;
    --secondary-color-3: #511d60;
    --secondary-color-4: #8b357c;
    --background-color-dark: #4e4e4e;
    --background-color-light: #fafafa;
    --text-color-dark: #111;
    --text-color-light: #f1f1f1;
    --telegram-color: #2AABEE;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: golos;
    background-color: var(--background-color-light);
}

header {
    background-color: var(--black);
    color: var(--white);
    padding: 10px;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
}

.header-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background-color: var(--black);
    overflow: hidden;
}

nav a {
    font-size: 18px;
    float: left;
    display: block;
    color: var(--white);
    text-align: right;
    padding: 14px 16px;
    text-decoration: none;
}

nav a:hover {
    color: var(--secondary-color-1);
}

.component {
    position: relative;
}

.box {
    position: relative;
    margin: auto;
    overflow: hidden;
}

.text-xs {
    font-size: 16px;
    text-align: center;
    font-weight: lighter;
}

.text-s {
    font-size: 18px;
    text-align: center;
}

.text-m {
    font-size: 28px;
    text-align: center;
}

.text-l {
    font-size: 36px;
    text-align: center;
}

.bold {
    font-weight: bolder;
    font-family: golosbold;
}

.lspace {
    letter-spacing: 1px;
}

.dark {
    color: var(--text-color-dark);
}

.light {
    color: var(--text-color-light);
}

.w800px {
    max-width: 800px;
    height: auto;
    padding-bottom: 50px;
    padding: 50px;
}

.w1000px {
    max-width: 1000px;
    height: auto;
    padding: 50px;
}

.mg0 {
    margin-top: 0;
}

.mg10 {
    margin-top: 10px;
}

.mg20 {
    margin-top: 20px;
}

.box img {
    width: 50%;
    position: relative;
    height: auto;
    margin: auto;
    display: block;
    z-index: 2;
}

.box .top {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    padding: 15px 24px;
    height: 50px;
    text-align: center;
}

.box .bottom {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 2;
}

.button1 {
    background-color: var(--secondary-color-4);
    color: var(--text-color-light);
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px 12px 20px;
    border: 2px solid #00a7a7;
    cursor: pointer;
    border-radius: 25px;
    text-decoration: none;
}

.button1:hover {
    background-color: #00a7a7
}

.bg-gradient {
    background: linear-gradient(140deg, var(--secondary-color-2) 0%, var(--secondary-color-3) 100%);
}

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

.bg-dark {
    background-color: var(--background-color-dark);
}

.drop-shadow {
    -webkit-filter: drop-shadow(5px 5px 1px var(--text-color-dark));
    filter: drop-shadow(5px 5px 1px var(--text-color-dark));
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.pointer {
    cursor: pointer;
}

.cards {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

.card {
    flex: 1 0 45%;
    margin: 10px;
    border: 2px solid #7c528d;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
}

.card-text {
    flex-grow: 1;
    padding: 0 10px 20px;
}

.card img {
    margin-top: 0;
    flex-grow: 1;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    filter: brightness(80%) contrast(100%) grayscale(20%) opacity(70%);
}

.card:hover {
    border: 2px solid #00a7a7;
    cursor: pointer;
}

.card img:hover {
    filter: brightness(80%) contrast(80%) grayscale(20%) opacity(100%);
}

/* Price Details Spoiler Styles */
.price-details {
    margin: 10px;
    border: 2px solid #7c528d;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--secondary-color-2) 0%, var(--secondary-color-3) 100%);
    overflow: hidden;
}

.price-details summary {
    padding: 15px 20px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    color: var(--white) !important;
    background: linear-gradient(140deg, var(--secondary-color-2) 0%, var(--secondary-color-3) 100%);
}

.price-details summary:hover {
    opacity: 90%;
}

.price-details summary::-webkit-details-marker {
    display: none;
}

.details-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    line-height: 1;
}

details[open].price-details {
    background: var(--white);
}

details[open].price-details summary:hover {
    opacity: 95%;
    background: linear-gradient(140deg, var(--secondary-color-2) 0%, var(--secondary-color-3) 100%);
}

details[open].price-details .details-icon {
    transform: rotate(45deg);
}

.details-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eee;
}

/* Price Section Inner Styles */
.price-tags {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.price-tag {
    background: #f1f1f1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color-dark);
    border: 1px solid #ddd;
}

.price-btn {
    display: inline-block;
    background-color: var(--secondary-color-4);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
    transition: background 0.3s;
}

.price-btn:hover {
    background-color: #00a7a7;
}

input[type=text],
textarea,
select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 200px;
}

/* Footer Styles */
footer {
    background-color: var(--black);
    color: var(--text-color-light);
    text-align: center;
    width: 100%;
    height: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Blog Link Styles */
.link-blog {
    color: var(--telegram-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.link-blog:hover {
    opacity: 0.8;
}

.link-blog svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-container_text {
    font-size: 13px !important;
    color: #515151;
    margin: 0.25rem 0;
}

@media screen and (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-item {
        align-items: center;
    }

    .footer-item .text-left {
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    nav a {
        display: none;
    }

    .box .top {
        width: 100%;
    }

    #computer-img {
        margin-top: 40px;
    }

    #logo {
        margin: auto;
        display: block;
    }
}

/* ==========================================================================
   ВЫПАДАЮЩЕЕ МЕНЮ (DROPDOWN) В ШАПКЕ
   ========================================================================== */

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 18px;
    border: none;
    outline: none;
    color: var(--white);
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

nav a:hover, .dropdown:hover .dropbtn {
    color: var(--secondary-color-1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    top: 50px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content .dropdown-item {
    display: flex;
    align-items: center;
    float: none;
    color: var(--text-color-dark);
    padding: 12px 16px;
    text-decoration: none;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown-content .dropdown-item:hover {
    background-color: #f1f1f1;
    color: var(--secondary-color-4);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
    font-family: golosbold;
}

.dropdown-desc {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    line-height: 1.2;
}

/* Скрываем дропдаун на мобильных (пока меню закрыто) */
@media screen and (max-width: 600px) {
    nav a, .dropdown {
        display: none;
    }
}

/* ==========================================================================
   СТРАНИЦА ПРОДУКТА (КАРТИНКА)
   ========================================================================== */

.product-showcase-img {
    width: 100%;
    height: 2000px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-showcase-img:hover {
}

/* ==========================================================================
   УТИЛИТЫ И КЛАССЫ, ЗАМЕНИВШИЕ INLINE СТИЛИ
   ========================================================================== */

#logo {
    font-family: logo;
    font-size: 28px;
    font-weight: 100;
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
}

.logo-hash {
    font-size: 24px;
    padding-right: 2px;
}

.box-50 {
    height: 50px;
}

.box-80 {
    height: 80px;
}

.mb-10 {
    margin-bottom: 10px;
}

.pt-0 {
    padding-top: 0;
}

.price-list {
    padding-left: 20px;
    margin: 5px 0;
}

.price-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.price-disclaimer {
    opacity: 0.6;
    font-size: 14px;
}

.link-tg {
    color: rgb(50, 189, 214);
    text-decoration: none;
}

.link-email {
    color: rgb(255, 145, 0);
    text-decoration: none;
}

/* Картинка продукта на весь экран */
.product-showcase-full {
    width: 100%;
    max-width:1100px;
    height: auto;        /* Высота подстраивается автоматически, без искажений */
    display: block;      /* Убирает лишние отступы снизу */
    margin: 0;
    padding: 0;
    border-radius:  12px;
}

.product-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 24px;
    @media (max-width: 600px) {
        padding: 10px;
    }
}

/* ====================================================
   СТИЛИ ДЛЯ СЕКЦИИ ПРОДУКТОВ (ТРЕУГОЛЬНИК И ЦВЕТА)
   ==================================================== */

/* Центрируем последнюю карточку (создаем треугольник) */
.products-grid {
    justify-content: center;
}

/* Фиксируем размер карточек продуктов, чтобы нижняя не растягивалась */
.product-card {
    flex: 0 0 calc(45% - 20px) !important; /* Отключаем растягивание */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none; /* Убираем бордер для карточек с картинками */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Эффект при наведении (карточка будет слегка приподниматься) */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Глубокая тень */
    border: none;
}

/* Градиентные фоны + Картинки для каждого продукта */
/* 1. deepVi.ai — Глубокий синий / Технологичный голубой (ИИ, Аналитика) */
.bg-prod-1 {
    background-image:
            linear-gradient(140deg, rgba(11, 30, 89, 0.65) 0%, rgba(39, 89, 255, 0.65) 100%),
            url('../images/deepViProd.png');
}

/* 2. Быстрый QR — Изумрудный / Зеленый (Скорость, Успешное сканирование) */
.bg-prod-2 {
    background-image:
            linear-gradient(140deg, rgba(9, 64, 40, 0.65) 0%, rgba(18, 140, 85, 0.65) 100%),
            url('../images/fastQRProd.png');
}

/* 3. Клапитаск — Темно-фиолетовый / Лиловый (Таски, отсылка к Telegram-темам) */
.bg-prod-3 {
    background-image:
            linear-gradient(140deg, rgba(42, 20, 84, 0.65) 0%, rgba(114, 45, 184, 0.65) 100%),
            url('../images/clapytaskProd.png');
}

/* Адаптивность: на телефонах выстраиваем их в один столбец */
@media screen and (max-width: 768px) {
    .product-card {
        flex: 1 0 100% !important;
    }
}

/* ==========================================================================
   СТИЛИ ДЛЯ ЮРИДИЧЕСКИХ СТРАНИЦ (TERMS / PRIVACY)
   ========================================================================== */
.legal-page {
    text-align: left;
    color: var(--text-color-dark);
    padding-bottom: 50px;
}

.legal-page p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
    font-weight: lighter;
}

.legal-page p strong {
    font-family: golosbold;
    font-weight: bold;
}

.legal-page .legal-header {
    border-bottom: 1.5px solid #e0e0e0;
    padding-bottom: 24px;
    margin-bottom: 40px;
}

.legal-page h1 {
    text-align: left;
    margin-bottom: 10px;
}

.legal-page .meta-info {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.legal-page h3.section-title {
    font-size: 22px;
    font-family: golosbold;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-color-dark);
    text-transform: uppercase;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 24px;
}

.legal-page ul li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: lighter;
    list-style-type: disc;
    color: var(--text-color-dark);
}

.legal-page a {
    color: var(--secondary-color-4);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.legal-page a:hover {
    opacity: 0.8;
}

.legal-page .admin-info {
    background-color: var(--white);
    padding: 32px;
    border-radius: 16px;
    margin-top: 64px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.legal-page .admin-info h6 {
    font-size: 18px;
    font-family: golosbold;
    margin-top: 0;
    margin-bottom: 20px;
}

.legal-page .admin-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* ==========================================================================
   ТАБЛИЦА: ВИДЫ ДЕЯТЕЛЬНОСТИ ИТ
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Для скролла на мобильных, если таблица не влезет */
    margin-top: 30px;
    margin-bottom: 50px;
    border-radius: 8px;
}

.it-codes-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--white);
}

.it-codes-table thead {
    background-color: #f1f3f5; /* Светло-серый цвет как на референсе */
}

.it-codes-table th {
    padding: 16px 20px;
    font-size: 16px;
    font-family: golosbold;
    color: var(--text-color-dark);
    border-top-left-radius: 8px; /* Скругление левого верхнего угла шапки */
}

.it-codes-table th:last-child {
    border-top-right-radius: 8px; /* Скругление правого верхнего угла шапки */
}

.it-codes-table td {
    padding: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color-dark);
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.it-codes-table tr:last-child td {
    border-bottom: none; /* Убираем линию у последней строки */
}

.it-codes-table .code-col {
    color: var(--text-color-dark);
    white-space: nowrap;
}

/* Адаптив для телефонов */
@media screen and (max-width: 600px) {
    .it-codes-table th, .it-codes-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* ==========================================================================
   АДАПТИВНЫЕ ОТСТУПЫ ДЛЯ МОБИЛОК (Убираем огромные padding 50px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Уменьшаем боковые отступы у главных контейнеров до 18px */
    .w1000px,
    .w800px {
        padding: 18px !important;
    }

    /* Уменьшаем огромный нижний отступ (80px) у текстовых страниц */
    .legal-page {
        padding-bottom: 30px !important;
    }
}

.general-footer {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 50px;
    text-align: left;
    gap: 16px;
    @media screen and (max-width: 768px) {
        padding: 18px;
    }
}

.admin-info_pd {
    margin-top: 30px;
}