html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #76b8ff !important;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1e293b;
}

.wrap {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #eaf4ff !important;
}

main,
main > .container,
.site-index {
    background-color: transparent !important;
}

.container {
    max-width: 1200px;
}

.navbar {
    background: linear-gradient(90deg, #0f172a, #1e3a8a) !important;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

    .navbar .navbar-brand,
    .navbar .nav-link,
    .navbar-nav .nav-link,
    .navbar a {
        color: #f8fafc !important;
    }

        .navbar .nav-link:hover,
        .navbar .navbar-brand:hover,
        .navbar a:hover {
            color: #bfdbfe !important;
        }

.hero-section {
    background: linear-gradient(135deg, #153b8a, #2d5fd3);
    color: #ffffff;
    padding: 85px 30px;
    border-radius: 0 0 28px 28px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18);
}

    .hero-section h1 {
        font-size: 58px;
        font-weight: 700;
        margin-bottom: 25px;
    }

.hero-text {
    font-size: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 18px;
    color: #eff6ff;
}

.hero-subtext {
    font-size: 18px;
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto;
    color: #dbeafe;
}

.section-block,
.catalog-preview,
.advantages-section,
.about-gallery-section,
.team-section,
.info-section {
    margin-bottom: 70px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0f172a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Универсальная карточка */
.card,
.tv-card,
.about-card,
.team-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .card:hover,
    .tv-card:hover,
    .about-card:hover,
    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 16px 34px rgba(59, 130, 246, 0.18);
    }

    .card img,
    .tv-image,
    .about-image,
    .team-image {
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .card img,
    .tv-image {
        height: 250px;
    }

.about-image {
    height: 260px;
}

.team-image {
    height: 280px;
}

.card-body,
.tv-card-body,
.about-card-body,
.team-card-body {
    padding: 24px 24px 28px;
}

    .card-body h3,
    .tv-card-body h3,
    .about-card-body h3,
    .team-card-body h3 {
        font-size: 22px;
        margin-bottom: 14px;
        color: #1d4ed8;
        font-weight: 700;
    }

    .card-body p,
    .tv-card-body p,
    .about-card-body p,
    .team-card-body p {
        font-size: 16px;
        line-height: 1.75;
        color: #475569;
        margin-bottom: 12px;
    }

        .card-body p:last-child,
        .tv-card-body p:last-child,
        .about-card-body p:last-child,
        .team-card-body p:last-child {
            margin-bottom: 0;
        }

.info-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .info-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 30px rgba(59, 130, 246, 0.16);
    }

    .info-box h3 {
        font-size: 24px;
        color: #0f172a;
        margin-bottom: 16px;
        font-weight: 700;
    }

    .info-box p {
        font-size: 16px;
        line-height: 1.75;
        color: #475569;
        margin: 0;
    }

.footer {
    background: #dbeafe;
    color: #1e3a8a;
    border-top: 1px solid #bfdbfe;
    padding: 22px 0;
    margin-top: auto;
}

.page-top-section {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
    color: #ffffff;
    padding: 70px 25px;
    border-radius: 0 0 28px 28px;
    margin-bottom: 60px;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.18);
}

    .page-top-section h1 {
        font-size: 52px;
        font-weight: 700;
        margin-bottom: 22px;
    }

.page-top-text {
    font-size: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 16px;
    color: #eff6ff;
}

.page-top-subtext {
    font-size: 17px;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
    color: #dbeafe;
}

.about-text-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    background: linear-gradient(180deg, #ffffff, #f0f7ff);
}

.team-role {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 14px;
}

.contact-info-box {
    margin-top: 20px;
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
    color: #ffffff;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.18);
}

    .contact-info-box h2 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #ffffff;
    }

    .contact-info-box p {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 10px;
        color: #eff6ff;
    }

        .contact-info-box p:last-child {
            margin-bottom: 0;
        }

.breadcrumb-box {
    margin-bottom: 20px;
    font-size: 15px;
    opacity: 0.95;
}

    .breadcrumb-box a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
    }

        .breadcrumb-box a:hover {
            text-decoration: underline;
        }

.text-center {
    text-align: center;
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 44px;
    }

    .section-title {
        font-size: 38px;
    }

    .page-top-section h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

        .hero-section h1 {
            font-size: 34px;
        }

    .hero-text,
    .hero-subtext,
    .page-top-text,
    .page-top-subtext {
        font-size: 16px;
    }

    .page-top-section {
        padding: 55px 20px;
    }

        .page-top-section h1 {
            font-size: 32px;
        }

    .section-title {
        font-size: 30px;
    }

    .card img,
    .tv-image {
        height: 220px;
    }

    .about-image {
        height: 220px;
    }

    .team-image {
        height: 230px;
    }

    .contact-info-box {
        padding: 28px 20px;
    }

        .contact-info-box h2 {
            font-size: 26px;
        }

        .contact-info-box p {
            font-size: 16px;
        }
}
.television-index {
    margin-bottom: 40px;
}

.page-title {
    font-size: 46px;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 700;
}

.top-actions {
    margin-bottom: 18px;
}

.tv-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    margin-bottom: 40px;
}

.tv-table {
    width: 100%;
    border-collapse: collapse;
    background: #dcdcdc;
    border-radius: 12px;
    overflow: hidden;
}

    .tv-table th,
    .tv-table td {
        border: 1px solid #c6c6c6;
        padding: 12px 10px;
        text-align: left;
        vertical-align: middle;
        font-size: 16px;
    }

    .tv-table th {
        background: #ececec;
        font-weight: bold;
    }

.tv-table-image {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tv-form-card {
    background: #dcdcdc;
    padding: 24px;
    border-radius: 18px;
    margin-bottom: 40px;
}

.tv-form-group {
    margin-bottom: 18px;
}

    .tv-form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 8px;
        font-size: 16px;
    }

.tv-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #bcbcbc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.current-image {
    width: 140px;
    border-radius: 8px;
    margin-top: 10px;
}

.error-text {
    color: #b00020;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

.detail-card {
    background: #dcdcdc;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 30px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

    .detail-table td {
        padding: 12px;
        border-bottom: 1px solid #bdbdbd;
        vertical-align: top;
        font-size: 17px;
    }

        .detail-table td:first-child {
            width: 220px;
            font-weight: bold;
        }

.detail-image {
    width: 260px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.tv-btn-success {
    background: #198754;
    color: #fff;
    border: none;
}

.tv-btn-primary {
    background: #0d6efd;
    color: #fff;
    border: none;
}

.tv-btn-secondary {
    background: #6c757d;
    color: #fff;
    border: none;
}

.tv-btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
}

.tv-btn-outline {
    background: #fff;
    color: #6c757d;
    border: 1px solid #6c757d;
}

    .tv-btn-success:hover,
    .tv-btn-primary:hover,
    .tv-btn-secondary:hover,
    .tv-btn-danger:hover,
    .tv-btn-outline:hover {
        opacity: 0.92;
    }
.order-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    margin-bottom: 40px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background: #dcdcdc;
    border-radius: 12px;
    overflow: hidden;
}

    .order-table th,
    .order-table td {
        border: 1px solid #c6c6c6;
        padding: 12px 10px;
        text-align: left;
        vertical-align: middle;
        font-size: 16px;
    }

    .order-table th {
        background: #ececec;
        font-weight: bold;
    }

.order-table-image {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

.order-form-card {
    background: #dcdcdc;
    padding: 24px;
    border-radius: 18px;
    margin-bottom: 40px;
}

.order-form-group {
    margin-bottom: 18px;
}

    .order-form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 8px;
        font-size: 16px;
    }

.order-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #bcbcbc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .row-2,
    .row-3 {
        grid-template-columns: 1fr;
    }
}
.auth-page {
    padding: 30px 0 60px;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
    padding: 35px 30px;
}

.auth-header h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.auth-header p {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 30px;
}

.auth-form-group {
    margin-bottom: 18px;
}

    .auth-form-group label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
        color: #1e293b;
        font-size: 16px;
    }

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #f8fbff;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        outline: none;
        background: #ffffff;
    }

.auth-checkbox-group {
    margin-bottom: 20px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.auth-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    .auth-btn-primary:hover {
        color: #ffffff;
        opacity: 0.96;
        transform: translateY(-2px);
        box-shadow: 0 14px 24px rgba(59, 130, 246, 0.22);
    }

.auth-links {
    margin-top: 20px;
    text-align: center;
}

    .auth-links p {
        margin-bottom: 8px;
        color: #475569;
        font-size: 15px;
    }

    .auth-links a {
        color: #1d4ed8;
        text-decoration: none;
        font-weight: 700;
    }

        .auth-links a:hover {
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .auth-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .auth-header h1 {
        font-size: 30px;
    }

    .auth-header p {
        font-size: 15px;
    }
}