/**
 * Landi Theme - Premium Custom Styles for Bootstrap 5
 * Landscaping Services Website
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    /* Brand Colors */
    --bs-primary: #2E8B57;
    --bs-primary-rgb: 46, 139, 87;
    --bs-secondary: #D4A574;
    --bs-secondary-rgb: 212, 165, 116;
    --bs-light: #F8F6F3;
    --bs-dark: #1A1A1A;

    /* Extended Palette */
    --color-primary: #2E8B57;
    --color-primary-light: #4a9e73;
    --color-primary-dark: #2d6148;
    --color-accent: #D4A574;
    --color-accent-light: #e4c4a0;
    --color-accent-dark: #c4915f;
    --color-neutral: #F8F6F3;
    --color-neutral-dark: #EDE9E3;
    --color-dark: #1A1A1A;
    --color-text: #2D3436;
    --color-text-light: #636E72;
    --color-text-muted: #9CA3AF;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 30px rgba(46, 139, 87, 0.25);
    --shadow-accent: 0 8px 30px rgba(212, 165, 116, 0.35);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 50rem;
}

/* ========================================
   Container Override (+40px ≈ 1cm wider)
   Bootstrap defaults: 540 / 720 / 960 / 1140 / 1320
======================================== */
@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 760px;
    }
}
@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1000px;
    }
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1180px;
    }
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1210px;
    }
}

/* ========================================
   Base & Typography
======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1, .h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4, .h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5, .h5 { font-size: 1.125rem; }
h6, .h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-light);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* ========================================
   Buttons - Premium Style
======================================== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Primary Button */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button (Accent) */
.btn-secondary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-dark);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

/* Outline Primary */
.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* Outline Light */
.btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* Navigation styles moved to header-twobar.css */

/* ========================================
   Sections - Spacious & Premium
======================================== */
section {
    padding: 5rem 0;
    position: relative;
}

@media (min-width: 992px) {
    section {
        padding: 7rem 0;
    }
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   Backgrounds
======================================== */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-accent) !important;
}

.bg-neutral {
    background-color: var(--color-neutral) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ========================================
   Text Colors
======================================== */
.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-accent) !important;
}

/* ========================================
   Cards - Premium Design
======================================== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--color-primary);
}

.card-text {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Service Cards */
.card-service {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, rgba(46, 139, 87, 0.2), rgba(212, 165, 116, 0.2)) border-box;
    box-shadow: var(--shadow-md);
}

.card-service:hover {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}


/* Service Works List (for service cards) */
/* =============================================
   Service Specs Grid - 2x2 характеристики
============================================= */
.service-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.service-specs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-specs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1.5px solid var(--color-primary);
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.service-specs-icon i {
    color: var(--color-primary);
    font-size: 0.9375rem;
}

.service-specs-content {
    flex: 1;
    min-width: 0;
}

.service-specs-label {
    font-size: 0.6875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.service-specs-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .service-specs {
        grid-template-columns: 1fr;
    }
}

/* Service Specs Full - для детальной страницы с большим кол-вом характеристик */
.service-specs.specs-full {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-specs.specs-full .service-specs-item {
    background: #fff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.service-specs.specs-full .service-specs-icon {
    width: 40px;
    height: 40px;
}

.service-specs.specs-full .service-specs-icon i {
    font-size: 1.125rem;
}

@media (max-width: 991.98px) {
    .service-specs.specs-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .service-specs.specs-full {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Service Specs Vertical - вертикальный список характеристик
============================================= */
.service-specs-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Service Works List */
.service-works-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.service-works-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents;
}

.service-works-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text);
}

.service-works-list li::before {
    content: "\f26a";
    font-family: "bootstrap-icons";
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

@media (max-width: 767.98px) {
    .service-works-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Stats Section - Bold Numbers
======================================== */
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    position: relative;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .display-5 {
    font-weight: 800;
    color: var(--color-accent);
    text-shadow: 0 2px 10px rgba(212, 165, 116, 0.3);
}

/* ========================================
   FAQ Accordion - Refined
======================================== */
.accordion {
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-radius: var(--radius-lg);
    --bs-accordion-inner-border-radius: var(--radius-md);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--color-dark);
    background-color: #fff;
    border-radius: var(--radius-lg) !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-neutral);
    color: var(--color-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem;
    transition: transform var(--transition-base);
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   Badge Tag - Premium
======================================== */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(46, 139, 87, 0.05));
    color: var(--color-primary);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(46, 139, 87, 0.15);
    transition: all var(--transition-base);
}

.badge-tag:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.15), rgba(46, 139, 87, 0.1));
    transform: translateY(-2px);
}

/* ========================================
   Service Price
======================================== */
.service-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

/* ========================================
   Testimonials
======================================== */
.card.shadow-soft {
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.card.shadow-soft:hover {
    box-shadow: var(--shadow-lg);
}

/* Star Rating */
.text-warning {
    color: #F59E0B !important;
}

/* ========================================
   Footer - Elegant Dark
======================================== */
.footer {
    background: linear-gradient(180deg, var(--color-dark) 0%, #0f0f0f 100%);
    color: #fff;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer .btn-outline-secondary {
    border-color: rgba(212, 165, 116, 0.5);
    color: var(--color-accent);
}

.footer .btn-outline-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
}

/* ========================================
   Form Elements - Premium
======================================== */
.form-control {
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

/* ========================================
   Utilities
======================================== */
.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-2xl {
    border-radius: var(--radius-2xl) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-md);
}

.shadow-premium {
    box-shadow: var(--shadow-lg);
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   City Tags
======================================== */
.city-tag {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition-base);
    cursor: default;
}

.city-tag:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.city-tag:hover i {
    color: var(--color-accent) !important;
}

.city-tag:hover span {
    color: #fff;
}

/* ========================================
   Calculator Styles
======================================== */
.service-option {
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid #E5E7EB !important;
    background: #fff;
}

.service-option:hover {
    border-color: var(--color-primary) !important;
    background: var(--color-neutral);
}

.service-option.selected {
    border-color: var(--color-primary) !important;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.08), rgba(46, 139, 87, 0.03));
    box-shadow: var(--shadow-sm);
}

.service-option.selected .check {
    background-color: var(--color-primary);
    border-color: var(--color-primary) !important;
}

.area-preset {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.area-preset:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: var(--color-neutral) !important;
}

/* ========================================
   Portfolio
======================================== */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-img {
    transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portfolio-dot:hover {
    background-color: var(--color-accent-light);
}

.portfolio-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.3);
}

/* ========================================
   Step Numbers
======================================== */
.col.text-center .border-primary,
.col.text-center .bg-primary {
    box-shadow: var(--shadow-md);
}

/* ========================================
   Breadcrumbs
======================================== */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-text-muted);
}

/* ========================================
   Scroll animations
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Mobile Optimizations
======================================== */
@media (max-width: 767.98px) {
    section {
        padding: 3.5rem 0;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   Service Content Tables — .new-table-nice
======================================== */
.new-table-nice-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.new-table-nice {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    font-size: 0.95rem;
    background: #fff !important;
}

/* Шапка таблицы — фон на каждой ячейке */
.new-table-nice thead th,
.new-table-nice thead td {
    padding: 8px 10px !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    color: #fff !important;
    background: #2E8B57 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    line-height: 1.25;
    vertical-align: middle;
}

/* Строки данных */
.new-table-nice tbody td {
    padding: 8px 16px !important;
    border-bottom: 1px solid #e8ede9 !important;
    border-top: none !important;
    color: #2D3436 !important;
    background: #fff !important;
    vertical-align: middle;
    line-height: 1.5;
}
.new-table-nice tbody tr:nth-child(even) td {
    background: #f0f7f2 !important;
}
.new-table-nice tbody tr:hover td {
    background: #e6f2ea !important;
}
.new-table-nice tbody tr:last-child td {
    border-bottom: none !important;
}

/* Последняя строка обычных данных */
.new-table-nice tbody tr.tr-last td {
    border-bottom: 2px solid rgba(46, 139, 87, 0.2) !important;
}

/* Строка примечаний */
.new-table-nice .new-table-notes-row td {
    padding: 10px 16px !important;
    border-bottom: 1px solid #eee5d0 !important;
    font-size: 0.88rem;
    color: #5c4a2a !important;
    background: #fefcf3 !important;
    vertical-align: top;
    line-height: 1.6;
}
.new-table-nice .new-table-note-title {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2E8B57;
    margin-bottom: 4px;
}
.new-table-nice .new-table-note-text {
    font-size: 0.85rem;
    color: #636E72;
}
.new-table-nice .new-table-important-info {
    color: #7a5a1f;
    font-size: 0.85rem;
}
.new-table-nice .new-table-important-info i {
    color: #d4a030;
    margin-right: 6px;
}
.new-table-nice .new-table-important-info strong {
    color: #5c4a2a;
}
.new-table-nice .new-table-notes-row .fa-exclamation-circle {
    color: #d4a030;
    margin-right: 6px;
}

/* Итоговая строка */
.new-table-nice .new-table-summary-row td {
    padding: 10px 16px !important;
    border-bottom: none !important;
    color: #2D3436 !important;
    background: #eef5f0 !important;
    font-size: 0.925rem;
    font-weight: 500;
    vertical-align: middle;
}
.new-table-nice .new-table-summary-row i {
    color: #2E8B57;
    margin-right: 6px;
}
.new-table-nice .new-table-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: #2E8B57 !important;
}

/* Списки внутри таблицы */
.new-table-nice ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.new-table-nice ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 3px;
    font-size: 0.93rem;
    color: #334155;
}
.new-table-nice ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #2E8B57;
}

/* ========================================
   Service Content Tables — .table-green-top
======================================== */
.table-responsive-mobile-cor {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.table-green-top {
    margin: 0 !important;
    font-size: 0.95rem;
    border: none !important;
    background: #fff !important;
}

/* Заголовочная строка — th может быть в thead или в tbody */
.table-green-top th {
    padding: 8px 10px !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    color: #fff !important;
    background: #2E8B57 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    line-height: 1.25;
    vertical-align: middle;
}

.table-green-top tbody td {
    padding: 8px 16px !important;
    border-color: #e8ede9 !important;
    color: #2D3436 !important;
    background: #fff !important;
    vertical-align: middle;
    line-height: 1.5;
}
.table-green-top tbody tr:nth-child(even) td {
    background: #f0f7f2 !important;
}
.table-green-top tbody tr:hover td {
    background: #e6f2ea !important;
}
.table-green-top .td-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: #2E8B57 !important;
}

.table-green-top tbody tr.tr-last td {
    border-bottom: 2px solid rgba(46, 139, 87, 0.2) !important;
}

/* Списки внутри table-green-top */
.table-green-top ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.table-green-top ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 3px;
    font-size: 0.93rem;
    color: #334155;
}
.table-green-top ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #2E8B57;
}

/* Mobile-friendly переносы */
.table-green-top .br-mobile {
    display: none;
}

/* ========================================
   Service Content Tables — .service-table
======================================== */
.service-table {
    margin: 0 !important;
    font-size: 0.95rem;
    border: none !important;
    background: #fff !important;
}

/* Контейнер */
.table-responsive:has(.service-table) {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

/* Шапка */
.service-table thead th {
    padding: 8px 10px !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    color: #fff !important;
    background: #2E8B57 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    line-height: 1.25;
    vertical-align: middle;
}

/* Строки данных */
.service-table tbody td {
    padding: 8px 16px !important;
    border-bottom: 1px solid #e8ede9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: #2D3436 !important;
    background: #fff !important;
    vertical-align: middle;
    line-height: 1.5;
}
.service-table tbody tr:nth-child(even) td {
    background: #f0f7f2 !important;
}
.service-table tbody tr:hover td {
    background: #e6f2ea !important;
}
.service-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ========================================
   Tables — Responsive (mobile)
======================================== */
@media (max-width: 768px) {
    .new-table-nice-container,
    .table-responsive-mobile-cor,
    .table-responsive:has(.service-table) {
        border-radius: 8px;
    }

    .new-table-nice thead th,
    .new-table-nice thead td,
    .table-green-top th,
    .service-table thead th {
        padding: 8px 10px !important;
        font-size: 0.78rem;
        white-space: normal;
    }

    .new-table-nice tbody td,
    .table-green-top tbody td,
    .service-table tbody td {
        padding: 8px 10px !important;
        font-size: 0.88rem;
    }

    .new-table-nice .new-table-notes-row td {
        padding: 8px 10px !important;
        font-size: 0.85rem;
    }

    .new-table-nice .new-table-summary-row td {
        padding: 8px 10px !important;
        font-size: 0.85rem;
    }

    .new-table-nice .new-table-price {
        font-size: 0.95rem;
    }

    .table-green-top .br-mobile {
        display: inline;
    }
}

/* ========================================
   Service Tables — .table-service
   Обёртка: <div class="table-responsive">
   Таблица: <table class="table-service">
======================================== */

/* --- Контейнер --- */
.table-responsive:has(.table-service) {
    margin: 2rem 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(46, 139, 87, 0.06),
        0 4px 16px rgba(46, 139, 87, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.12);
}

/* --- Таблица --- */
.table-service {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    font-size: 0.95rem;
    background: #fff;
}

/* --- Шапка --- */
.table-service th,
.table-service thead th {
    padding: 8px 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    background: #2E8B57;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    line-height: 1.25;
    vertical-align: middle;
}

/* Тонкая акцентная линия под шапкой */
.table-service thead tr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A574, #e4c4a0, #D4A574);
}

/* --- Строки данных --- */
.table-service tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #eef1ed;
    color: #2D3436;
    background: #fff;
    vertical-align: middle;
    line-height: 1.6;
    transition: background 0.2s ease;
}

/* Зебра — мягкое чередование */
.table-service tbody tr:nth-child(even) td {
    background: #f0f7f2;
}

/* Ховер */
.table-service tbody tr:hover td {
    background: #e6f2ea;
}

/* Последняя строка без нижнего бордера */
.table-service tbody tr:last-child td {
    border-bottom: none;
}

/* Разделительная строка перед примечаниями/итогом */
.table-service tbody tr.tr-last td {
    border-bottom: 2px solid rgba(46, 139, 87, 0.15);
}

/* --- Первый столбец (название услуги) --- */
.table-service tbody td:first-child {
    font-weight: 600;
    color: #1e3d29;
}

/* --- Цена --- */
.table-service .td-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: #2E8B57;
    white-space: nowrap;
}

/* --- Единицы измерения (мелкий текст) --- */
.table-service .td-unit {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* --- Строка примечаний --- */
.table-service .tr-note td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee5d0;
    font-size: 0.88rem;
    color: #5c4a2a;
    background: #fefcf3;
    vertical-align: top;
    line-height: 1.6;
}
.table-service .tr-note td i {
    color: #d4a030;
    margin-right: 6px;
}

/* --- Итоговая строка --- */
.table-service .tr-summary td {
    padding: 14px 20px;
    border-bottom: none;
    color: #1e3d29;
    background: linear-gradient(135deg, #eef5f0 0%, #e8f0ea 100%);
    font-weight: 600;
    font-size: 0.92rem;
}
.table-service .tr-summary i {
    color: #2E8B57;
    margin-right: 6px;
}
.table-service .tr-summary .td-price {
    font-size: 1.15rem;
    color: #2E8B57;
}

/* --- Списки внутри ячеек --- */
.table-service ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.table-service ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 3px;
    font-size: 0.93rem;
    color: #334155;
}
.table-service ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #2E8B57;
}

/* --- Mobile-friendly переносы --- */
.table-service .br-mobile {
    display: none;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .table-responsive:has(.table-service) {
        border-radius: 10px;
    }
    .table-service thead th {
        padding: 10px 12px;
        font-size: 0.75rem;
        letter-spacing: 0.03em;
    }
    .table-service tbody td {
        padding: 8px 12px;
        font-size: 0.88rem;
    }
    .table-service .td-price {
        font-size: 0.95rem;
    }
    .table-service .tr-note td,
    .table-service .tr-summary td {
        padding: 10px 12px;
    }
    .table-service .br-mobile {
        display: inline;
    }
}

/* ========================================
   Content Tables — .content-table
   и общие стили для нестилизованных таблиц
======================================== */

/* --- .content-table (используется в контенте услуг) --- */
.content-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.content-table th {
    background: #2E8B57;
    color: #fff;
    font-weight: 600;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 0.925rem;
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.25;
    vertical-align: middle;
}

.content-table td {
    padding: 8px 14px;
    border: none;
    border-top: 1px solid #e8efe8;
    border-right: 1px solid #e8efe8;
    font-size: 0.95rem;
    color: #334155;
}

.content-table td:last-child {
    border-right: none;
}

.content-table tbody tr:first-child td {
    border-top: none;
}

.content-table tbody tr:nth-child(even) td {
    background: #f0f7f2;
}

.content-table tbody tr:nth-child(odd) td {
    background: #fff;
}

.content-table tbody tr:hover td {
    background: #e6f2ea;
}

/* --- Общие стили для таблиц без стилизованных классов в .service-content --- */
.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) th {
    background: #2E8B57;
    color: #fff;
    font-weight: 600;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 0.925rem;
    text-align: center;
    line-height: 1.25;
    vertical-align: middle;
}

.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) td {
    padding: 8px 14px;
    border: none;
    border-top: 1px solid #e8efe8;
    border-right: 1px solid #e8efe8;
    font-size: 0.95rem;
    color: #334155;
}

.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) td:last-child {
    border-right: none;
}

.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) tbody tr:first-child td {
    border-top: none;
}

.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) tbody tr:nth-child(even) td {
    background: #f0f7f2;
}

.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) tbody tr:nth-child(odd) td {
    background: #fff;
}

.service-content table:not(.table-enhanced):not(.table-service):not(.new-table-nice):not(.table-green-top):not(.table-compare):not(.content-table) tbody tr:hover td {
    background: #e6f2ea;
}

/* ========================================
   Variant Cards — подвиды услуг
======================================== */

/* Изображение */
.variant-image-wrap {
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    align-items: flex-start;
}
.variant-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
}

/* Заголовки секций */
.variant-stages__title,
.variant-materials__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.variant-stages__title i,
.variant-materials__title i {
    font-size: 1.1rem;
}

/* Этапы работ */
.variant-stages {
    margin-bottom: 1.25rem;
}
.variant-stages__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
}
.variant-stages__list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}
.variant-stages__list li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-primary);
    font-size: 0.925rem;
    font-weight: 700;
}
.variant-stages__list li .text-danger {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Материалы */
.variant-materials {
    margin-bottom: 1.25rem;
}
.variant-materials__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.variant-materials__list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.variant-materials__list li i {
    color: var(--color-primary);
    font-size: 0.75rem;
}

/* Материалы под фото (в левой колонке) */
.variant-materials--sidebar {
    padding: 12px 20px 20px 20px;
    background: #f8f9fa;
}
.variant-materials--sidebar .variant-materials__title {
    padding-left: 4px;
}
.variant-materials--sidebar .variant-materials__list {
    padding-left: 4px;
}

/* Допустимые нагрузки */
.variant-loads {
    display: flex;
    align-items: center;
    gap: 12px;
}
.variant-loads__title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}
.variant-loads__icons {
    display: flex;
    gap: 8px;
}
.variant-loads__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(46, 139, 87, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.15);
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Адаптив */
@media (max-width: 991px) {
    .variant-image {
        max-height: 280px;
    }
    .variant-image-wrap {
        padding: 12px;
    }
}
@media (max-width: 768px) {
    .variant-stages__list {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .variant-stages__list li {
        font-size: 0.925rem;
    }
    .variant-image {
        max-height: 240px;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
}
