/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  min-width: 280px;
  max-width: 360px;
  pointer-events: all;
  animation: toast-in 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}

.toast--success {
  background: #023D4D;
  color: white;
  border-left: 4px solid #FDC16C;
}

.toast--error {
  background: #7A1C2E;
  color: white;
  border-left: 4px solid #F17C3F;
}

.toast__icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.toast__text { flex: 1; }
.toast__title { font-family: var(--font-heading); font-weight: 700; margin-bottom: 2px; }
.toast__desc { color: rgba(255,255,255,0.75); font-size: 12px; }

.toast.toast--out {
  animation: toast-out 0.3s ease forwards;
}

/* ===== FIELD VALIDATION ===== */
.field-error {
  border-color: #E53E3E !important;
  background: #FFF5F5 !important;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 480px) {
  .toast-container { top: auto; bottom: 80px; right: 12px; left: 12px; }
  .toast { min-width: unset; max-width: unset; }
}

/* ===== MINI ORDER POPUP ===== */
.order-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,34,51,0.55);
  backdrop-filter: blur(3px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.order-popup-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.order-popup {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 437px;
  transform: scale(0.93) translateY(12px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-xl);
}

.order-popup__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  position: relative;
}

.order-popup-overlay.is-active .order-popup {
  transform: scale(1) translateY(0);
}

@media (max-width: 480px) {
  .order-popup-overlay {
    padding: 16px;
  }

  .order-popup {
    max-height: 92vh;
  }

  .op-service-card {
    padding: 16px;
    gap: 12px;
  }

  .order-popup__body {
    padding: 16px;
  }
}

.order-popup__head {
  background: var(--grad-dark);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-popup__head-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  color: white;
}

.order-popup__head-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.order-popup__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.order-popup__close:hover { background: rgba(255,255,255,0.2); }

.order-popup__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.op-service-card {
  background: #fff;
  border: none;
  padding: 4px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin-bottom: -6px;
}


/* ── Custom Select ── */
.cs-wrap { position: relative; }

.cs {
  position: relative;
  user-select: none;
  outline: none;
  z-index: 10;
}

.cs__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  min-height: 48px;
  transition: var(--transition);
  gap: 8px;
}

.cs--open .cs__trigger,
.cs__trigger:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,149,153,0.1);
}

.cs__value {
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs__arrow {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}
.cs--open .cs__arrow { transform: rotate(180deg); }

.cs__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(15,34,51,0.14);
  z-index: 999;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.cs--open .cs__dropdown { display: block; }

.cs__option {
  padding: 11px 16px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cs__option:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.cs__option--selected {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.cs__option--selected::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23009599' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.cs__option + .cs__option {
  border-top: 1px solid rgba(0,0,0,0.05);
}

.op-service-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-light);
  border: 1.5px solid rgba(0,149,153,0.3);
  color: var(--color-primary-dark);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.op-service-tag svg {
  flex-shrink: 0;
  color: var(--color-primary);
  width: 14px;
  height: 14px;
}

.op-service-tag span {
  flex: 1;
}

.op-service-tag button {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  transition: var(--transition);
}
.op-service-tag button:hover { color: var(--color-text); }

.op-service-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.op-service-card .service-card__icon {
  overflow: hidden;
  flex-shrink: 0;
}

.op-service-card .service-card__title {
  padding-left: 5px;
}

#order-popup-form {
  display: flex;
  flex-direction: column;
}

#order-popup-form [type="submit"] {
  font-size: calc(var(--text-sm) * 1.15);
  min-height: 55px;
  padding: 16px 28px;
  margin-top: 35px;
}


.op-service-card__price {
  display: inline;
  white-space: nowrap;
}

.op-service-card__price strong {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary-dark);
}

.order-popup__success {
  padding: 32px 20px;
  text-align: center;
  display: none;
}
.order-popup__success.is-active { display: block; }

.order-popup__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.order-popup__privacy {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn--primary {
  background: var(--color-accent);
  color: #023D4D;
  border-color: var(--color-accent);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253,193,108,0.4);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

.btn--dark {
  background: #0D2D3A;
  color: white;
  border-color: #0D2D3A;
}
.btn--dark:hover {
  background: #071E26;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7,30,38,0.4);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.btn--telegram {
  background: #229ED9;
  color: white;
  border-color: #229ED9;
}
.btn--telegram:hover {
  background: #1b8ec2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,158,217,0.35);
}

.btn--phone {
  background: #F1F5F9;
  color: var(--color-text);
  border-color: #E2E8F0;
}
.btn--phone:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
  min-height: 40px;
}

.btn--lg {
  padding: 17px 36px;
  font-size: var(--text-md);
}

.btn--full { width: 100%; }

/* ===== CARDS ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,154,170,0.12);
}

.form-input.is-valid { border-color: var(--color-success); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
}

/* ===== SINGLE FLOATING ACTION BUTTON ===== */
.fab-single {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 800;
}

.fab-single__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #B84E08 0%, #D4690F 45%, #E8871E 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,149,153,0.45), 0 4px 14px rgba(2,61,77,0.3);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.fab-single__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.fab-single__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0,149,153,0.55), 0 6px 20px rgba(2,61,77,0.35);
}

.fab-single__pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  animation: fab-pulse 2.5s infinite;
  z-index: -1;
}

@keyframes fab-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.08); }
}

/* ===== MOBILE STICKY BAR ===== */
.mobile-sticky-bar {
  display: none;
  position: sticky;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 8px 10px;
  z-index: 450;
  gap: 6px;
}

.msb__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: 0.1px;
  min-height: 44px;
}

.msb__btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.msb__btn--icon {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

.msb__btn--phone {
  background: #EAF6F7;
  color: #007A7E;
  border: 1.5px solid #B2DEE0;
}
.msb__btn--phone:active { background: #D0EFF1; }

.msb__btn--wa {
  background: #E8F9EF;
  color: #1A9E52;
  border: 1.5px solid #A8E6BF;
}
.msb__btn--wa:active { background: #D0F2DF; }

.msb__btn--tg {
  background: #E6F3FC;
  color: #1678B0;
  border: 1.5px solid #A8D4F0;
}
.msb__btn--tg:active { background: #CDE7F8; }

.msb__btn--order {
  background: linear-gradient(135deg, #D95A10 0%, #F17C3F 55%, #F5962A 100%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  animation: msb-breathe 4s ease-in-out infinite;
}

@keyframes msb-breathe {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(241,100,40,0.3);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 4px 24px rgba(241,100,40,0.75);
    filter: brightness(1.22);
  }
}

.msb__btn--order:active {
  animation: none;
  background: #D96830;
  box-shadow: none;
}

@media (max-width: 768px) {
  .fab-single { display: none; }
  .mobile-sticky-bar { display: flex; }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,30,38,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.is-active .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  color: var(--color-text-muted);
}
.modal__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.modal__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.modal__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.modal__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.55;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__or {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  margin: 4px 0;
}
.modal__or::before, .modal__or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}
.modal__or::before { left: 0; }
.modal__or::after  { right: 0; }

.modal__quick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal__privacy {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

.modal__privacy a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.modal__privacy a:hover {
  opacity: 0.75;
}

.modal__success {
  text-align: center;
  padding: 16px 0;
  display: none;
}
.modal__success.is-active { display: block; }

.modal__success-icon {
  width: 64px;
  height: 64px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

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

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== OVERLAY ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,30,38,0.5);
  z-index: 400;
  opacity: 0;
  transition: opacity var(--transition);
}
.overlay.is-active {
  display: block;
  opacity: 1;
}

.hidden { display: none !important; }
