/* ==========================================
   KyivBurMash Industrial Design System (CSS3)
   Brand Color Palette Integration
   ========================================== */

:root {
    /* Brand Color Palette from Image */
    --brand-earth: #925B28;        /* Deep Earth Brown */
    --brand-ocher: #D28800;        /* Industrial Amber Ocher */
    --brand-amber: #FFA500;        /* Construction Safety Yellow/Amber */
    --brand-light: #ECECEC;        /* Crisp Off-White */
    --brand-steel: #A6A6A6;        /* Slate Steel Gray */

    /* Extended UI Colors (Light Theme Default) */
    --bg-dark: #f4f6f8;
    --bg-darker: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-input: #f4f6f8;
    
    --primary: var(--brand-amber);
    --primary-hover: var(--brand-ocher);
    --primary-glow: rgba(255, 165, 0, 0.2);

    --accent: var(--brand-earth);
    --accent-hover: #7a4b1f;
    
    --text-main: #12161a;
    --text-muted: #5f6368;
    --text-dark: #12161a;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: var(--brand-amber);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-dark: #12161a;
        --bg-darker: #0b0e11;
        --bg-card: rgba(26, 31, 38, 0.85);
        --bg-card-hover: rgba(35, 42, 52, 0.95);
        --bg-input: rgba(11, 14, 17, 0.85);
        
        --text-main: #f8fafc;
        --text-muted: var(--brand-steel);
        
        --border-color: rgba(255, 255, 255, 0.12);
        --primary-glow: rgba(255, 165, 0, 0.35);
    }
}

:root[data-theme="dark"] {
    --bg-dark: #12161a;
    --bg-darker: #0b0e11;
    --bg-card: rgba(26, 31, 38, 0.85);
    --bg-card-hover: rgba(35, 42, 52, 0.95);
    --bg-input: rgba(11, 14, 17, 0.85);
    
    --text-main: #f8fafc;
    --text-muted: var(--brand-steel);
    
    --border-color: rgba(255, 255, 255, 0.12);
    --primary-glow: rgba(255, 165, 0, 0.35);
}



/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Cards */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 12px 40px 0 rgba(255, 165, 0, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-amber) 0%, var(--brand-ocher) 100%);
    color: #12161a;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffb733 0%, var(--brand-amber) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 165, 0, 0.5);
}

.btn-accent {
    background: var(--brand-earth);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-steel);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--brand-amber);
    color: var(--brand-amber);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Form inputs */
.form-group {
    margin-bottom: 16px;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 12px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
    transition: var(--transition);
}

.header .logo {
    color: #fff;
}

.header.scrolled .logo, .footer .logo {
    color: var(--text-main);
}

.logo-title {
    display: flex;
    align-items: center;
}

.header.scrolled .logo {
    color: var(--text-main);
}

.logo-accent {
    color: var(--brand-amber);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--brand-steel);
    letter-spacing: 1px;
    margin-top: 4px;
}

.nav-list {
    display: flex;
    gap: 16px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff; /* Initial state over dark hero */
    transition: var(--transition);
}

.header.scrolled .nav-list a {
    color: var(--text-muted);
}

.nav-list a:hover {
    color: var(--brand-amber);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phones {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.phone-link {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    transition: var(--transition);
}

.header.scrolled .phone-link {
    color: var(--text-main);
}

.phone-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.header.scrolled .phone-sub {
    color: var(--text-muted);
}

/* Hero */
.hero {
    padding: 140px 0 80px; /* Increased top padding to clear fixed header */
    background: 
        linear-gradient(to right, rgba(11, 14, 17, 0.95) 20%, rgba(11, 14, 17, 0.5) 100%),
        url('images/hero_bg.jpg') center/cover no-repeat;
    position: relative;
    color: #ffffff; /* Force white text over dark background */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 165, 0, 0.15);
    border: 1px solid rgba(255, 165, 0, 0.35);
    color: var(--brand-amber);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--brand-amber);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--brand-steel);
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--brand-amber);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-card {
    padding: 32px;
    border-top: 3px solid var(--brand-amber);
}

.hero-card h3 {
    margin-bottom: 12px;
}

.hero-card p {
    color: var(--brand-steel);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.form-note {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--brand-steel);
    margin-top: 12px;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-darker);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-amber);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--brand-steel);
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--brand-steel);
    font-size: 1.05rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    border-top-color: var(--brand-amber);
}

.service-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 2rem;
    color: var(--brand-amber);
    flex-shrink: 0;
}

.service-card h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card p {
    color: var(--brand-steel);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-list {
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--brand-steel);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: "\2713"; /* Checkmark */
    position: absolute;
    left: 0;
    color: var(--brand-amber);
    font-weight: bold;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.price-from {
    font-weight: 700;
    color: var(--brand-amber);
}

/* Calculator */
.calculator-card {
    padding: 40px;
    border-top: 3px solid var(--brand-ocher);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.calc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
    margin: 15px 0;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-amber);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.5);
    border: 3px solid #ffffff;
    transition: var(--transition);
}

.range-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-amber);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.5);
    border: 3px solid #ffffff;
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(255, 165, 0, 0.7);
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(255, 165, 0, 0.7);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.radio-card:hover {
    border-color: var(--brand-amber);
}

.calc-summary {
    padding: 32px;
    background: rgba(11, 14, 17, 0.95);
    border-top: 3px solid var(--brand-amber);
    color: #f8fafc;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.price-highlight {
    font-size: 1.8rem;
    color: var(--brand-amber);
    font-family: var(--font-heading);
}

.summary-features {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.summary-features p {
    font-weight: 600;
    margin-bottom: 12px;
}

.summary-features ul li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

/* Depths Table */
.table-responsive {
    overflow-x: auto;
    padding: 24px;
}

.depths-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.depths-table th, .depths-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.depths-table th {
    color: var(--brand-amber);
    font-family: var(--font-heading);
}
.depths-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    padding: 36px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.adv-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 165, 0, 0.25);
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 49px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 24px;
}

.step-badge {
    width: 50px;
    height: 50px;
    background: var(--brand-amber);
    color: #12161a;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    z-index: 1;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Quiz Modal Styles
   ========================================================================== */
.modal-content.quiz-modal-content {
    max-width: 800px;
    width: 95%;
}

.quiz-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.quiz-header h3 {
    margin-bottom: 16px;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--brand-amber);
    width: 25%;
    transition: width 0.3s ease;
}

.quiz-step-text {
    font-size: 0.85rem;
    color: var(--brand-steel);
    text-align: right;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-step h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .quiz-options {
        grid-template-columns: 1fr !important;
    }
}

.quiz-option {
    cursor: pointer;
}

.quiz-option input[type="radio"] {
    display: none;
}

.quiz-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    height: 100%;
}

.quiz-card i {
    font-size: 2.5rem;
    color: var(--brand-steel);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.quiz-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

.quiz-option:hover .quiz-card {
    border-color: rgba(255, 179, 0, 0.5);
    background: rgba(255, 179, 0, 0.05);
}

.quiz-option input[type="radio"]:checked + .quiz-card {
    border-color: var(--brand-amber);
    background: rgba(255, 179, 0, 0.1);
}

.quiz-option input[type="radio"]:checked + .quiz-card i {
    color: var(--brand-amber);
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quiz-footer button {
    min-width: 120px;
}


/* Theme Switch - Smooth Fly 9 */
.ui-switch {
  /* switch */
  --switch-bg: rgb(135, 150, 165);
  --switch-width: 48px;
  --switch-height: 20px;
  /* circle */
  --circle-diameter: 32px;
  --circle-bg: rgb(232, 89, 15);
  --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}

.ui-switch input {
  display: none;
}

.slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.slider .circle {
  top: calc(var(--circle-inset) * -1);
  left: 0;
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  position: absolute;
  background: var(--circle-bg);
  border-radius: inherit;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
}

.slider .circle::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: inherit;
  -webkit-transition: all 500ms;
  -o-transition: all 500ms;
  transition: all 500ms;
  opacity: 0;
}

.ui-switch input:checked+.slider .circle {
  left: calc(100% - var(--circle-diameter));
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
  background-color: rgb(0, 56, 146);
}

.ui-switch input:active+.slider .circle::before {
  -webkit-transition: 0s;
  -o-transition: 0s;
  transition: 0s;
  opacity: 1;
  width: 0;
  height: 0;
}

/* Selected Radio Card Highlight */
.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--brand-amber);
    background: rgba(255, 165, 0, 0.05); /* very light amber tint */
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--brand-steel);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--brand-amber);
    transition: var(--transition);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--brand-steel);
    font-size: 0.9rem;
    margin-top: 16px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem !important;
}

.footer-contacts h4, .footer-form h4 {
    margin-bottom: 20px;
    color: var(--brand-amber);
}

.footer-contacts p {
    margin-bottom: 12px;
    color: var(--brand-steel);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: var(--brand-steel);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: var(--brand-amber);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    border-top: 3px solid var(--brand-amber);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--brand-steel);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--brand-amber);
}


/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    padding: 24px;
    text-align: center;
    border-left: 3px solid var(--brand-amber);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--brand-amber);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 4/3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18,22,26,0.2), transparent);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container, .calc-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid, .advantages-grid, .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .nav {
        display: none;
    }
}




/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 30px 40px;
    box-sizing: border-box;
}

.carousel-slide .about-image {
    width: 100%;
    max-height: 400px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--brand-amber);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: var(--brand-amber);
    border-color: var(--brand-amber);
}



/* Engineering Approach Grid */
.engineering-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 768px) { .engineering-grid { grid-template-columns: 1fr; } }


/* CRM Grid */
@media (max-width: 768px) { .crm-grid { grid-template-columns: 1fr !important; } }


/* Prep Grid */
@media (max-width: 768px) { .prep-grid { grid-template-columns: 1fr !important; } }

