* {
  font-family: "Inter", sans-serif;
}

html, body {
  overflow-y: auto !important;
}

.highlighted-section {
  outline: 2px solid #3F20FB;
  background-color: rgba(63, 32, 251, 0.1);
}

.edit-button {
  position: absolute;
  z-index: 1000;
}

:root {
  /* Base colors */
  --color-base: #ffffff;
  --color-base-50: #f9fafb;
  --color-base-100: #f3f4f6;
  --color-base-200: #e5e7eb;
  --color-base-300: #d1d5db;
  --color-base-400: #9ca3af;
  --color-base-500: #6b7280;
  --color-base-600: #4b5563;  
  --color-base-700: #374151;
  --color-base-800: #1f2937;  
  --color-base-900: #111827;
  --color-base-content: #1f2937;

  /* Primary colors */
  --color-primary: #3b82f6;
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;
  --color-primary-focus: #2563eb;
  --color-primary-content: #ffffff;

  /* Secondary colors */
  --color-secondary: #8b5cf6;
  --color-secondary-50: #f5f3ff;
  --color-secondary-100: #ede9fe;
  --color-secondary-200: #ddd6fe;
  --color-secondary-300: #c4b5fd;
  --color-secondary-400: #a78bfa;
  --color-secondary-500: #8b5cf6;
  --color-secondary-600: #7c3aed;
  --color-secondary-700: #6d28d9;
  --color-secondary-800: #5b21b6;
  --color-secondary-900: #4c1d95;
  --color-secondary-focus: #7c3aed;
  --color-secondary-content: #ffffff;

  /* Accent colors */
  --color-accent: #f472b6;
  --color-accent-50: #fdf2f8;
  --color-accent-100: #fce7f3;
  --color-accent-200: #fbcfe8;
  --color-accent-300: #f9a8d4;
  --color-accent-400: #f472b6;
  --color-accent-500: #ec4899;
  --color-accent-600: #db2777;
  --color-accent-700: #be185d;
  --color-accent-800: #9d174d;
  --color-accent-900: #78350f;
  --color-accent-focus: #db2777;
  --color-accent-content: #ffffff;

  /* Neutral colors */
  --color-neutral: #6b7280;
  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #4b5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2937;
  --color-neutral-900: #111827;
  --color-neutral-focus: #4b5563;
  --color-neutral-content: #ffffff;

  /* Info colors */
  --color-info: #3b82f6;
  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-200: #bfdbfe;
  --color-info-300: #93c5fd;
  --color-info-400: #60a5fa;
  --color-info-500: #3b82f6;
  --color-info-600: #2563eb;
  --color-info-700: #1d4ed8;
  --color-info-800: #1e40af;
  --color-info-900: #1e3a8a;
  --color-info-focus: #2563eb;
  --color-info-content: #ffffff;

  /* Success colors */
  --color-success: #10b981;
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-200: #a7f3d0;
  --color-success-300: #6ee7b7;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;
  --color-success-800: #065f46;
  --color-success-900: #064e3b;
  --color-success-focus: #059669;
  --color-success-content: #ffffff;

  /* Warning colors */
  --color-warning: #f59e0b;
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-300: #fcd34d;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-warning-800: #92400e;
  --color-warning-900: #78350f;
  --color-warning-focus: #d97706;
  --color-warning-content: #ffffff;

  /* Error colors */
  --color-error: #ef4444;
  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-200: #fecaca;
  --color-error-300: #fca5a5;
  --color-error-400: #f87171;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-error-800: #991b1b;
  --color-error-900: #7f1d1d;
  --color-error-focus: #dc2626;
  --color-error-content: #ffffff;
}

/* Dark theme */
.dark {
  /* Base colors */
  --color-base: #1f2937;
  --color-base-50: #111827;
  --color-base-100: #1f2937;
  --color-base-200: #374151;
  --color-base-300: #4b5563;
  --color-base-400: #6b7280;
  --color-base-500: #9ca3af;
  --color-base-600: #d1d5db;
  --color-base-700: #e5e7eb;
  --color-base-800: #f3f4f6;
  --color-base-900: #f9fafb;
  --color-base-content: #f9fafb;

  /* Primary colors */
  --color-primary: #60a5fa;
  --color-primary-50: #1e3a8a;
  --color-primary-100: #1e40af;
  --color-primary-200: #1d4ed8;
  --color-primary-300: #2563eb;
  --color-primary-400: #3b82f6;
  --color-primary-500: #60a5fa;
  --color-primary-600: #93c5fd;
  --color-primary-700: #bfdbfe;
  --color-primary-800: #dbeafe;
  --color-primary-900: #eff6ff;
  --color-primary-focus: #3b82f6;
  --color-primary-content: #1f2937;

  /* Secondary colors */
  --color-secondary: #a78bfa;
  --color-secondary-50: #4c1d95;
  --color-secondary-100: #5b21b6;
  --color-secondary-200: #6d28d9;
  --color-secondary-300: #7c3aed;
  --color-secondary-400: #8b5cf6;
  --color-secondary-500: #a78bfa;
  --color-secondary-600: #c4b5fd;
  --color-secondary-700: #ddd6fe;
  --color-secondary-800: #ede9fe;
  --color-secondary-900: #f5f3ff;
  --color-secondary-focus: #8b5cf6;
  --color-secondary-content: #1f2937;

  /* Accent colors */
  --color-accent: #f472b6;
  --color-accent-50: #831843;
  --color-accent-100: #9d174d;
  --color-accent-200: #be185d;
  --color-accent-300: #db2777;
  --color-accent-400: #ec4899;
  --color-accent-500: #f472b6;
  --color-accent-600: #f9a8d4;
  --color-accent-700: #fbcfe8;
  --color-accent-800: #fce7f3;
  --color-accent-900: #fdf2f8;
  --color-accent-focus: #ec4899;
  --color-accent-content: #1f2937;

  /* Info colors */
  --color-info: #60a5fa;
  --color-info-50: #1e3a8a;
  --color-info-100: #1e40af;
  --color-info-200: #1d4ed8;
  --color-info-300: #2563eb;
  --color-info-400: #3b82f6;
  --color-info-500: #60a5fa;
  --color-info-600: #93c5fd;
  --color-info-700: #bfdbfe;
  --color-info-800: #dbeafe;
  --color-info-900: #eff6ff;
  --color-info-focus: #3b82f6;
  --color-info-content: #1f2937;

  /* Success colors */
  --color-success: #34d399;
  --color-success-50: #064e3b;
  --color-success-100: #065f46;
  --color-success-200: #047857;
  --color-success-300: #059669;
  --color-success-400: #10b981;
  --color-success-500: #34d399;
  --color-success-600: #6ee7b7;
  --color-success-700: #a7f3d0;
  --color-success-800: #d1fae5;
  --color-success-900: #ecfdf5;
  --color-success-focus: #10b981;
  --color-success-content: #1f2937;

  /* Warning colors */
  --color-warning: #fbbf24;
  --color-warning-50: #78350f;
  --color-warning-100: #92400e;
  --color-warning-200: #b45309;
  --color-warning-300: #d97706;
  --color-warning-400: #f59e0b;
  --color-warning-500: #fbbf24;
  --color-warning-600: #fcd34d;
  --color-warning-700: #fde68a;
  --color-warning-800: #fef3c7;
  --color-warning-900: #fffbeb;
  --color-warning-focus: #f59e0b;
  --color-warning-content: #1f2937;

  /* Error colors */
  --color-error: #f87171;
  --color-error-50: #7f1d1d;
  --color-error-100: #991b1b;
  --color-error-200: #b91c1c;
  --color-error-300: #dc2626;
  --color-error-400: #ef4444;
  --color-error-500: #f87171;
  --color-error-600: #fca5a5;
  --color-error-700: #fecaca;
  --color-error-800: #fee2e2;
  --color-error-900: #fef2f2;
  --color-error-focus: #ef4444;
  --color-error-content: #1f2937;
}

/* Modal Windows */
#contact-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

#contact-modal.visible {
    display: flex;
}

#contact-modal > div {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 42rem;
    width: 100%;
    margin: 0 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#thank-you-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

#thank-you-modal.visible {
    display: flex;
}

#thank-you-modal > div {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    margin: 0 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.visible {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mobile menu button */
.menu-icon, .close-icon {
    color: #4B5563;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.menu-icon.active {
    display: none;
}

.close-icon.active {
    display: flex;
}

/* Mobile menu container */
.mobile-menu {
  display: none;
  opacity: 1;
  transform: none;
  transition: none;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    z-index: 100;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  }
}

/* Menu items */
.mobile-menu .menu-item {
    display: block;
    padding: 1rem;
    color: #4B5563;
    font-size: 1rem;
    border-bottom: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.mobile-menu .menu-item:last-child {
    border-bottom: none;
}

.mobile-menu .menu-item:hover {
    color: #F59E0B;
    background-color: #F9FAFB;
    padding-left: 1.5rem;
}

/* Header button container */
header .flex.items-center.justify-between {
    position: relative;
}

header button.md\:hidden {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Desktop styles */
@media (min-width: 768px) {
    header button.md\:hidden {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Desktop menu */
.desktop-menu {
    display: none;
}

@media (min-width: 769px) {
    .desktop-menu {
        display: flex;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* Desktop menu styles */
.desktop-menu {
    display: none;
}

@media (min-width: 769px) {
    .desktop-menu {
        display: flex !important;
        align-items: center;
        margin-left: 3rem;
        gap: 2rem;
    }
    .desktop-menu .menu-item,
    .desktop-menu a {
        color: #4B5563;
        font-size: 1rem;
        transition: color 0.3s;
        text-decoration: none;
        padding: 0.5rem 0;
        border-bottom: 2px solid transparent;
    }
    .desktop-menu .menu-item:hover,
    .desktop-menu a:hover {
        color: #f59e0b;
        border-bottom: 2px solid #f59e0b;
    }
}

/* Mobile menu */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Container and layout */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Header */
    header {
        padding: 1rem 0;
        position: fixed;
        width: 100%;
    }

    header .container {
        padding: 0 1rem;
    }

    /* Hero section */
    #hero {
        padding-top: 6rem;
        margin-top: 0;
        min-height: auto;
    }

    #hero .container {
        padding: 0 1rem;
    }

    #hero .flex {
        flex-direction: column;
        gap: 2rem;
    }

    #hero .max-w-2xl {
        width: 100%;
        padding: 0;
        order: 1;
    }

    #hero .w-full {
        width: 100%;
        padding: 0;
        order: 2;
    }

    #hero h1 {
        font-size: 2rem;
        line-height: 2.5rem;
        margin-bottom: 1rem;
    }

    #hero p {
        font-size: 1rem;
        line-height: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #hero .flex.flex-col {
        order: 3;
    }

    /* Benefits section */
    #benefits .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    #benefits .grid > div {
        width: 100%;
        padding: 1rem;
        margin: 0;
    }

    #benefits h3,
    #advantages h3 {
        font-size: 1rem;
        line-height: 1.1rem;
        margin-bottom: 0.5rem;
    }

    #benefits p {
        font-size: 0.85rem;
        line-height: 1.3rem;
    }

    /* Сетка "Переваги" — по 2 в ряд на мобильных */
    #benefits .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 0px;
    }

    /* Stages section */
    #stages .flex {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    #stages .flex > div {
        width: 100%;
        padding: 0;
    }

    /* Advantages section */
    #advantages .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    /* Portfolio section */
    #portfolio .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    #portfolio img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    /* FAQ section */
    .faq-item {
        width: 100%;
        padding: 0 1rem;
    }

    .faq-item button {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .faq-item .content {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Contact section */
    #contact .container {
        padding: 0 1rem;
    }

    /* Form elements */
    input, textarea {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        box-sizing: border-box;
    }

    button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Base font sizes */
    h1 {
        font-size: 2rem;
        line-height: 2.5rem;
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 2.25rem;
        padding: 0 1rem;
    }

    h3 {
        font-size: 0.8rem;
        line-height: 1.1rem;
    }

    p, li, a, button, input, textarea {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    /* Modal adjustments */
    #contact-modal > div,
    #thank-you-modal > div {
        margin: 0.5rem;
        padding: 1rem;
        width: calc(100% - 1rem);
    }

    /* Testimonials section */
    .testimonials-carousel {
        padding: 0 1rem;
    }

    .testimonial-item {
        width: 100%;
    }

    #scroll-to-top {
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #f59e0b !important;
        color: #fff !important;
        box-shadow: 0 4px 16px 0 rgba(0,0,0,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s, box-shadow 0.3s;
        z-index: 100;
        border: none;
        bottom: 1rem;
        right: 1rem;
    }
    #scroll-to-top:hover {
        background: #d97706 !important;
        box-shadow: 0 8px 24px 0 rgba(0,0,0,0.18);
    }
    #scroll-to-top i {
        font-size: 1.5rem !important;
    }
    #scroll-to-top {
        bottom: 1rem;
        right: 1rem;
    }
    
    #scroll-to-top i {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #scroll-to-top {
        position: fixed !important;
        bottom: 1rem;
        right: 1rem;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Testimonials Carousel */
.testimonials-carousel {
  position: relative;
  padding: 0 2.5rem; /* Add padding to prevent content from being hidden behind arrows */
  max-width: 100%;
  margin: 0 auto;
}

.testimonials-container {
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  padding: 1rem 0; /* Add some vertical padding */
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 1.5rem;
}

.testimonials-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.testimonial-item {
  flex: 0 0 calc(25% - 1.125rem); /* 4 items with gap */
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  min-width: 0; /* Prevent flex item from overflowing */
}

/* Adjust for tablets */
@media (max-width: 1024px) {
  .testimonial-item {
    flex: 0 0 calc(50% - 0.75rem); /* 2 items with gap */
  }
}

/* Adjust for mobile */
@media (max-width: 640px) {
  .testimonial-item {
    flex: 0 0 85%; /* 1 item with partial next visible */
  }
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: #f3f4f6;
  transform: translateY(-50%) scale(1.1);
}

/* Header Menu Items */
.menu-item {
    position: relative;
    color: var(--color-base-700);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-warning-500);
    transition: width 0.3s ease;
}

.menu-item:hover {
    color: var(--color-warning-600);
}

.menu-item:hover::after {
    width: 100%;
}

/* Header Layout Adjustments */
@media (min-width: 768px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    
    .header-logo {
        margin-right: 4rem; /* Increased space after logo */
    }
	
	.header-container > div {
		margin-left:auto;
	}
	
	.header-container > div > nav {
		margin-right: 30px;
	}
}

@media (max-width: 767px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .header-logo {
        position: static;
        transform: none;
        flex-shrink: 0;
    }
    
    .mobile-menu-btn,
    .mobile-phone {
        flex-shrink: 0;
    }
}

/* Hero Section */
#hero {
    min-height: 600px;
    padding-top: 4rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    #hero {
        height: 800px;
        padding-top: 6rem;
        margin-top: 0;
    }
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    padding: 0 2rem;
}

.testimonials-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    transition: transform 0.3s ease;
}

.carousel-prev,
.carousel-next {
    display: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #f3f4f6;
}

@media (min-width: 768px) {
    .carousel-prev,
    .carousel-next {
        display: block;
    }
}

/* Testimonials section */
#testimonials {
    background-color: #ffffff;
    padding: 4rem 0;
}

#testimonials h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

#testimonials .grid {
    margin: 0 auto;
}

#testimonials .rounded-full {
    border: 2px solid #f3f4f6;
}

#testimonials .text-yellow-500 {
    color: #f59e0b;
}

@media (max-width: 768px) {
    #testimonials h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    #testimonials p.text-gray-600 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    #testimonials .grid {
        gap: 1.5rem;
    }

    #testimonials .bg-white {
        padding: 1.5rem;
    }
}

#consultation-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

#consultation-modal.visible {
    display: flex;
}

#consultation-modal > div {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 42rem;
    width: 100%;
    margin: 0 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#scroll-to-top {
    z-index: 100;
}

/* Центрирование модальных окон */
#contact-modal,
#consultation-modal,
#thank-you-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

#contact-modal > div,
#consultation-modal > div,
#thank-you-modal > div {
  position: relative;
  z-index: 10000;
}

#contact-modal.hidden,
#consultation-modal.hidden,
#thank-you-modal.hidden {
  display: none;
}

.visible {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Крестик (иконка закрытия) всегда в правом верхнем углу модального окна */

#consultation-modal button[data-close-modal],
#thank-you-modal button[onclick^="closeModal"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10100;
}

#image-modal button[onclick^="closeImageModal"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10100;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
  #benefits .flex.items-start {
    flex-direction: column;
    align-items: center;
    padding: 0.7rem 0.1rem 0.7rem 0.1rem;
    gap: 0.3rem;
  }
  #benefits .flex-shrink-0 i {
    font-size: 1.7rem !important;
  }
  #benefits h3 {
    font-size: 0.85rem !important;
    margin: 0.50rem 0 !important;
  }
  #benefits .flex.items-start > div:last-child {
    margin-left: 1.2rem !important;
  }
}

@media (max-width: 767px) {
    #advantages .flex.items-start {
      flex-direction: column;
      align-items: center;
      padding: 0.7rem 0.1rem 0.7rem 0.1rem;
      gap: 0.3rem;
    }
    #advantages .flex-shrink-0 i {
      font-size: 1.7rem !important;
    }
    #advantages h3 {
      font-size: 0.85rem !important;
      margin: 0.50rem 0 !important;
    }
    #advantages .flex.items-start > div:last-child {
      margin-left: 1.2rem !important;
    }
  }

/* Этапы реализации: по 2 блока в ряд на мобильных (обновлено под новую разметку) */
@media (max-width: 767px) {
  #stages .stages-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0.5rem;
    justify-items: center;
    align-items: stretch;
  }
  #stages .stage-block {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  #stages .stage-arrow {
    display: none !important;
  }
}

/* Calculator Chart Styles */
#monthly-chart {
    position: relative;
    width: 100% !important;
    min-height: 300px;
    margin: 0 auto;
}

#calculator .w-full.lg\:w-3\/5 {
    overflow: hidden;
}

#calculator .w-full.lg\:w-3\/5 .flex-1 {
    overflow: visible;
    width: 100%;
}

/* Prevent layout shifts on hover */
#calculator .bg-white.rounded-xl.shadow-lg {
    transition: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* Disable hover effects that cause layout shifts */
#calculator .bg-white.rounded-xl.shadow-lg:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Ensure chart container doesn't change size */
.apexcharts-canvas {
    position: relative !important;
    width: 100% !important;
    min-height: 300px !important;
}

/* Fix for mobile view */
@media (max-width: 768px) {
    #monthly-chart {
        min-height: 250px;
        width: 100% !important;
    }
    
    #calculator .flex-1.min-h-0 {
        min-height: 300px;
        overflow: visible;
    }
}

/* Floating label for placeholder style (appears only on focus) */
.floating-label-form .floating-label {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  color: #f59e0b;
  background: #fff;
  padding: 0 0.25rem;
  pointer-events: none;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  z-index: 2;
}
.floating-label-form input:focus + .floating-label,
.floating-label-form textarea:focus + .floating-label {
  opacity: 1;
  top: -0.7rem;
  left: 0.8rem;
  font-size: 0.85rem;
  color: #f59e0b;
  background: #fff;
  z-index: 3;
  transform: translateY(0);
}
.floating-label-form .relative {
  margin-bottom: 0.7rem;
}

.station-benefits-list .benefit-item:last-child {
  margin-bottom: 0;
}

.station-benefits-list .benefit-item:hover {
  border-color: #ffd600;
  box-shadow: 0 4px 16px 0 rgba(255, 214, 0, 0.14);
}

.station-benefits-list {
  gap: 1.1rem !important;
}

@media (max-width: 767px) {
  /* Крестик закрытия в правом верхнем углу на мобильных для contact-modal */
  #contact-modal > div > button[onclick^="closeModal"] {
    position: absolute;
    left: 7em;
    z-index: 10100;
    transform: none;
  }
}

.project-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
  }
  
/* Glide.js Slider Styles */
.glide {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glide__track {
  overflow: hidden;
  height: 100%;
}

.glide__slides {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  touch-action: pan-Y;
  overflow: hidden;
  padding: 1rem 0;
  margin: 0;
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
  align-items: center;
}

.glide__slide {
  width: 100%;
  flex-shrink: 0;
  white-space: normal;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glide__slide img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.glide__bullets {
  -webkit-touch-callout: none;
  user-select: none;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0.75rem 0 0 0;
  list-style: none;
  gap: 0.125rem;
}

.glide__bullet {
  transition: all 0.3s ease;
  cursor: pointer;
}

.glide__bullet--active {
  background-color: #f59e0b !important;
  transform: scale(1.2);
}

/* Navigation arrows styles */
.glide__arrow {
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.glide__arrow:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.glide__arrow:focus {
  outline: none;
}

.glide__arrow i {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .glide__arrow {
    width: 2rem !important;
    height: 2rem !important;
  }
  .glide__arrow i {
    font-size: 1rem;
  }
}
#image-modal {
    margin: 0 !important;
}
.wpcf7-response-output {
  display: none !important;
}
