/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-hue: 215;
  --primary: hsl(var(--primary-hue), 90%, 55%);
  --primary-hover: hsl(var(--primary-hue), 95%, 45%);
  --primary-light: hsl(var(--primary-hue), 100%, 96%);
  
  --dark: hsl(220, 20%, 10%);
  --dark-soft: hsl(220, 16%, 16%);
  --light: hsl(210, 45%, 98%);
  
  --text-main: hsl(220, 15%, 15%);
  --text-muted: hsl(220, 10%, 45%);
  --text-white: #ffffff;
  
  --border-color: hsl(210, 20%, 90%);
  --bg-white: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 30, 50, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 30, 50, 0.12);
  --shadow-primary: 0 8px 24px rgba(26, 115, 232, 0.25);
  
  /* Layout */
  --container-max: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: hsl(210, 20%, 80%);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(210, 20%, 65%);
}

/* ==========================================================================
   GRID & LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding-block: 100px;
}

@media (max-width: 768px) {
  section {
    padding-block: 60px;
  }
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

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

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 32px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.header-wa-btn,
.header-cta-btn {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
  line-height: 1;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1;
  margin: 0;
  border: none;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

.form-group {
  margin-bottom: 24px;
}

.form-input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--light);
  color: var(--dark);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.form-input.text-area {
  min-height: 120px;
  resize: vertical;
}

/* Custom Checkbox */
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.93rem;
  line-height: 1.4;
  user-select: none;
}

.checkbox-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-white);
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-item input:checked ~ .custom-checkbox {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item input:checked ~ .custom-checkbox::after {
  display: block;
}

.checkbox-item:hover .custom-checkbox {
  border-color: var(--primary);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

/* Sticky Shrinking state controlled by JS class addition */
.header.scrolled {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(28px, 3.8vw, 64px);
  padding-right: clamp(28px, 3.8vw, 64px);
  gap: clamp(16px, 2vw, 32px);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin: 0;
  line-height: 1;
}

.logo-img {
  height: clamp(26px, 1.2vw + 14px, 32px);
  width: auto;
  max-width: clamp(150px, 15vw, 215px);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  transition: height var(--transition-normal), max-width var(--transition-normal);
  display: block;
}

.header.scrolled .logo-img {
  height: clamp(24px, 1vw + 12px, 28px);
  max-width: clamp(140px, 13vw, 188px);
}

@media (max-width: 1150px) {
  .logo-img {
    height: 28px;
    max-width: 188px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 26px;
    max-width: 174px;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 24px;
    max-width: 161px;
  }
}

.footer .logo-img {
  height: 58px;
  max-width: 388px;
  flex-shrink: 0;
}

.logo-icon {
  background-color: var(--primary);
  color: var(--text-white);
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accent-text {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: clamp(12px, 1.8vw, 28px);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: clamp(0.82rem, 0.75rem + 0.35vw, 0.92rem);
  color: var(--text-muted);
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.2vw, 18px);
  white-space: nowrap;
  height: 100%;
  margin: 0;
  flex-shrink: 0;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  line-height: 1.25;
  margin: 0;
}

.phone-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.2;
  display: block;
  margin: 0;
}

.phone-link:hover {
  color: var(--primary);
}

.work-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
  display: block;
  margin: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  z-index: 1010;
  cursor: pointer;
  border: none;
  background: transparent;
  align-self: center;
  margin: 0;
  padding: 0;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Intermediate styles for laptop/medium desktop screens (1151px to 1680px) including Mac 1512px */
@media (min-width: 1151px) and (max-width: 1680px) {
  .header-container {
    padding-left: clamp(24px, 3.5vw, 54px);
    padding-right: clamp(24px, 3.5vw, 54px);
    gap: clamp(12px, 1.8vw, 24px);
  }
  .nav-list {
    gap: clamp(12px, 1.4vw, 22px);
  }
  .nav-link {
    font-size: clamp(0.8rem, 0.72rem + 0.2vw, 0.88rem);
  }
  .header-contacts {
    gap: clamp(10px, 1vw, 16px);
  }
  .contacts-info .work-time {
    display: none;
  }
  .phone-link {
    font-size: 0.96rem;
  }
  .header-wa-btn,
  .header-cta-btn {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 0.85rem;
  }
}

.mobile-menu-contacts {
  display: none;
}

@media (max-width: 1150px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 1005;
    padding: 120px 32px 40px;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  
  .nav-link {
    font-size: 1.15rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Menu icon active state transitions */
  .mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .header-cta-btn,
  .contacts-info {
    display: none;
  }

  .header-contacts {
    gap: 16px;
    align-items: center;
  }

  .lang-switcher {
    padding: 4px;
    gap: 4px;
  }

  .lang-btn {
    padding: 7px 16px;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: auto;
    width: 100%;
  }

  .mobile-menu-contacts .lang-switcher {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5px;
    margin-bottom: 6px;
  }

  .mobile-menu-contacts .lang-btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 1.05rem;
  }

  .mobile-menu-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
    text-decoration: none;
  }

  .mobile-menu-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
  }

  .mobile-menu-btn {
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .header-wa-btn {
    display: none;
  }
  .header-contacts {
    gap: 14px;
  }
  .lang-switcher {
    padding: 4px;
    gap: 4px;
  }
  .lang-btn {
    padding: 8px 18px;
    font-size: 0.98rem;
    font-weight: 800;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding-inline: 12px;
  }
  .checkbox-item span,
  .service-name,
  .results-title {
    word-break: break-word;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  background: url('../images/hero_bg.jpg') center/cover no-repeat;
  color: var(--text-white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.hero-content .badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-white);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  background-color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-image-wrapper {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .card-image-wrapper img {
  transform: scale(1.08);
}

.service-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-name {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.price-from {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-val {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 800;
}

.service-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   BEFORE/AFTER SLIDER
   ========================================================================== */
.before-after-section {
  background-color: var(--bg-white);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  user-select: none;
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.after-image {
  width: 100%;
  z-index: 2;
  clip-path: inset(0 0 0 var(--clip-pos, 50%));
}

.after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.label-badge {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 30px;
  z-index: 3;
}

.before-label {
  left: 20px;
}

.after-label {
  right: 20px;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  z-index: 5;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  border: 4px solid var(--bg-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-md);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-left, .arrow-right {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 7;
  transform: translateY(-50%);
}

.arrow-left {
  left: calc(50% - 12px);
  border-width: 5px 6px 5px 0;
  border-color: transparent white transparent transparent;
}

.arrow-right {
  right: calc(50% - 12px);
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent white;
}

/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */
.calculator-section {
  background-color: var(--light);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.calc-form {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .calc-form {
    padding: 24px;
  }
}

.calc-group {
  margin-bottom: 30px;
}

.calc-group:last-child {
  margin-bottom: 0;
}

.calc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--dark);
}

.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-val {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.calc-select {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--light);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.calc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.custom-select-wrapper::after {
  content: "▼";
  font-size: 0.75rem;
  color: var(--text-muted);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Custom range input slider */
.range-slider {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.checkbox-grid .checkbox-item {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--light);
  transition: all var(--transition-fast);
}

.checkbox-grid .checkbox-item:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

/* Calculator results card */
.calc-results-card {
  background-color: var(--dark);
  color: var(--text-white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 110px;
}

@media (max-width: 768px) {
  .calc-results-card {
    padding: 24px;
    position: relative;
    top: 0;
  }
}

.results-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.total-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
}

.currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.cost-breakdown {
  list-style: none;
  margin-bottom: 24px;
}

.cost-breakdown li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,0.9);
}

.breakdown-price {
  font-weight: 600;
  color: var(--text-white);
}

.calc-note {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin-bottom: 30px;
}

.divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-block: 24px;
}

.form-lead-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.calc-lead-form .form-field {
  margin-bottom: 16px;
}

.calc-lead-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background-color: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.calc-lead-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.calc-lead-form input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--dark-soft);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.25);
}

.agreement-text {
  font-size: 0.725rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  text-align: center;
}

/* ==========================================================================
   PORTFOLIO GALLERY
   ========================================================================== */
.gallery-section {
  background-color: var(--bg-white);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

/* Animated toggle visibility based on category selection */
.gallery-item.hide {
  display: none;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Custom styled generative fallbacks */
.svg-visual-fallback-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.kitchen-bg { background: linear-gradient(135deg, hsl(15, 60%, 40%) 0%, hsl(15, 60%, 20%) 100%); }
.bath-bg { background: linear-gradient(135deg, hsl(200, 70%, 45%) 0%, hsl(200, 70%, 25%) 100%); }
.premium-bg { background: linear-gradient(135deg, hsl(45, 60%, 40%) 0%, hsl(45, 60%, 20%) 100%); }
.minimal-bg { background: linear-gradient(135deg, hsl(260, 50%, 45%) 0%, hsl(260, 50%, 25%) 100%); }

.item-fallback-text {
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

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

.overlay-details {
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.gallery-item:hover .overlay-details {
  transform: translateY(0);
}

.item-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 8px;
}

.item-title {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.item-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ==========================================================================
   WORK PROCESS SECTION
   ========================================================================== */
.process-section {
  background-color: var(--light);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

/* Horizontal line connection */
.process-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

@media (max-width: 992px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .process-timeline::before {
    display: none;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 4px solid var(--border-color);
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.process-step:hover .step-badge {
  background-color: var(--primary);
  border-color: var(--primary-light);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
  transform: scale(1.1);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }
  
  .step-badge {
    flex-shrink: 0;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   REVIEWS & GUARANTEES
   ========================================================================== */
.reviews-section {
  background-color: var(--bg-white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.review-card {
  background-color: var(--light);
  padding: 32px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.user-name {
  font-size: 1.1rem;
}

.project-info {
  display: block;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.rating {
  margin-left: auto;
  color: #ffb703;
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  flex-grow: 1;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

@media (max-width: 768px) {
  .trust-banners {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.trust-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.trust-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACTS SECTION
   ========================================================================== */
.contacts-section {
  background-color: var(--light);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contacts-info-card {
  display: flex;
  flex-direction: column;
}

.contacts-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2px;
}

.contact-value.link:hover {
  color: var(--primary);
}

.contacts-map-wrapper {
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Stylish vector aesthetic map fallback */
.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: hsl(210, 20%, 90%);
  position: relative;
  overflow: hidden;
}

.map-grid-aesthetic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
}

.map-pin {
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border: 3px solid var(--bg-white);
  border-radius: 50%;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-md);
}

.map-pin::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 5px;
  border-width: 8px 5px 0;
  border-style: solid;
  border-color: var(--primary) transparent transparent;
}

.map-card-popup {
  position: absolute;
  top: calc(45% - 60px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.775rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.map-card-popup::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--dark) transparent transparent;
}

.contacts-form-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .contacts-form-card {
    padding: 24px;
  }
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.consent-checkbox {
  align-items: flex-start;
}

.consent-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.privacy-link {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-block: 60px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
}

.footer .logo {
  color: var(--text-white);
}

.footer-moto {
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-moto {
    text-align: center;
  }
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

/* ==========================================================================
   DIALOGS / MODALS
   ========================================================================== */
.modal-dialog {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
  max-width: 450px;
  width: calc(100% - 32px);
  margin: auto;
  outline: none;
  background-color: var(--bg-white);
}

.modal-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content {
  padding: 40px;
  position: relative;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 24px;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
}

.close-modal:hover {
  color: var(--dark);
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-form .form-group {
  margin-bottom: 20px;
}

/* Success modal custom rules */
.success-dialog .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-badge {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 24px;
}

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

.success-dialog .modal-title {
  margin-bottom: 12px;
}

.success-dialog .modal-subtitle {
  margin-bottom: 30px;
}

/* Master Mobile Breakpoint for perfect single-column responsiveness on phones */
@media (max-width: 576px) {
  .services-grid,
  .gallery-grid,
  .reviews-grid,
  .trust-banners {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .slider-wrapper {
    height: 300px;
  }
  
  .calc-form {
    padding: 20px 16px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .contacts-card {
    padding: 24px 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   SCROLL REVEAL / SCROLL DRIVEN ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Native CSS Scroll-driven animations for shrinking header in supported browsers */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrinkHeader {
    to {
      height: 65px;
      background-color: rgba(255, 255, 255, 0.95);
      border-bottom: 1px solid var(--border-color);
      box-shadow: var(--shadow-md);
    }
  }

  @keyframes shrinkLogo {
    to {
      height: clamp(24px, 1vw + 12px, 28px);
      max-width: clamp(140px, 13vw, 188px);
    }
  }

  .header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }

  .logo-img {
    animation: shrinkLogo auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

/* Motion preference rules */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

.trust-section {
  background-color: var(--bg-white);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.85rem;
}

.footer-contact a,
.footer-contact span {
  color: var(--text-muted);
}

.footer-contact a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-contact {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
  }
}
