@import url(https://fonts.googleapis.com/css?family=Raleway);
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}
.small_txt {
    font-size: 15px;
    line-height: 40px;
    text-align: center;
    color: #137333;
    
     font-family: Arial, sans-serif;
}
/* ================== NAVBAR & HERO ================== */
.navbar {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
}

.logo {
  width: 180px;
  height: 40px;
  background: url('https://zapisvai.com/logo_zapisvai5.png') no-repeat center/contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text { font-weight: 700; color: #0f766e; }
.logo i { color: #14b8a6; font-size: 1.75rem; }



.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px 355px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}

.hero-overlay h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.location { font-size: 1.1rem; opacity: 0.95; }
.rating {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
}
.rating i { color: #fbbf24; }

@media (max-width: 768px) {
  .hero-overlay { padding: 30px 20px; }
  .hero-overlay h1 { font-size: 2.1rem; }
}

/* ================== MAIN GRID ================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.left-column {  width: 550px; }

.right-column {
 
   width: 550px; 

}

/* ================== УСЛУГИ ================== */
.form-container {
    max-width: 1220px; 
    margin: 0 auto;
    width: 100%;
    
}
.section h2 {
  font-size: 1.10rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: #000;
}
.section{
     background: #fff;
     padding: 10px;
   border: 1px solid #e3e3e3;
  border-radius: 12px;
  
}
.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
}
.service-items{
    overflow-y: auto ; height:550px;
}
.service-item {
  background: white;
  padding: 1.0rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: block;
 justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: 1px solid #1a73e8;
  transition: all 0.15s ease;
}

.service-item:hover {
  box-shadow: 0 5px 5px rgba(0,0,0,0.1);
  border-color: #a8c7fa;
 
}
.service-item.selected {
  border-color: #a8c7fa;        /* teal бордер */
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
  background-color: #f0fdfa;
}
.about-text {
    color: #000000;
    font-size: 0.88rem;
    line-height: 24px;
    text-align: justify;
    padding: 10px;
    
}

.location-text{
     color: #000000; 
     font-size: 0.93rem;
    line-height: 24px;
    margin-left:5px;
}
.service-info h3 { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 500; margin-bottom: 4px; color: #000000;}
.duration { color: #6b7280; font-size: 0.80rem; }
.price { font-size: 0.90em; font-weight: 600; color: #1f1f1f; }
.more_small_txt { color: #069; font-size: 0.85rem; text-decoration:none; font-weight: 600;}
/* ================== КАЛЕНДАР ================== */
.section-title {
    font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #000000;
  text-align: center;
}

.booking-card {
    
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #14b8a6;
  cursor: pointer;
  padding: 4px 12px;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.92rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  width: 100%;
  max-width: 42px;
  height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.calendar-day.past { color: #9ca3af; background: #f3f4f6; cursor: not-allowed; }
.calendar-day.today { background: #ccfbf1; font-weight: 700; border: 2px solid #14b8a6; }
.calendar-day.selectable:hover { background: #e6f4f3; transform: scale(1.08); }
.calendar-day.selected { background: #14b8a6 !important; color: white !important; font-weight: 700; }

.selected-date {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.25rem 0 1rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 12px;
  min-height: 60px;
}

.time-slot {
  border: 2px solid #99f6e4;
  background: white;
  padding: 7px 8px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s;
  height: 40px;
  
}

.time-slot:hover { background: #f0fdfa; transform: scale(1.05); }
.time-slot.selected { background: #fb923c; color: white; border-color: #fff; }

/* ================== РЕЗЕРВАЦИЯ ================== */
.reservation-box {
  display: none;
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: #f0fdfa;
  border-radius: 24px;
}

.reservation-box.show { display: block; }

.reservation-box h3 { margin-bottom: 1.2rem; color: #0f766e; }

.summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.8rem;
}

.summary > div { display: flex; justify-content: space-between; }
.summary > div span:last-child { font-weight: 600; }

.form-group input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 16px;
}

.form-group input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.error-message {
  color: #ef4444;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: none;
}

.book-button {
  width: 100%;
  padding: 16px;
  background: #14b8a6;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1.18rem;
  font-weight: 600;
  cursor: pointer;
}

.book-button:hover { background: #0f766e; }
.book-button:disabled { background: #9ca3af; cursor: not-allowed; }

/* ================== ГАЛЕРИЯ ================== */
/* ================== ГАЛЕРИЯ, МНЕНИЯ И КАРТА ================== */

.gallery-section,
.reviews-section,
.map-section {
  max-width: 1280px;          
  margin-left: auto;
  margin-right: auto;
  margin-top:20px;        
   background: #fff;
    
   border: 1px solid #e3e3e3;
  border-radius: 12px;
}

.gallery-section h2,
.reviews-section h2 {
  text-align: left;
  font-size: 1.20rem;
  margin: 2rem 1rem 1rem;
  color: #1f2937;
}
.map-section h2 {
   font-size: 1.20rem; 
   margin: 2rem 1rem 1rem;
}
/* ================== ГАЛЕРИЯ ================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1; 
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
  margin:0 10px 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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


.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px;
    opacity: 0; 
    transition: opacity 0.2s ease;
}

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

.img-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}


.delete-img-btn {
    background-color: #ffffff;
    color: #c5221f;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.15s, transform 0.15s;
}

.delete-img-btn:hover {
    background-color: #fce8e6;
    transform: scale(1.1);
}


@media (max-width: 801px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .upload-dropzone {
        width: 100%;
   
             left: 3px;
        right: 3px;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 31, 31, 0.9); /* Тъмен полупрозрачен фон */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}
.lightbox-contentc {
    background-color: #f8fafd;
    border: 1px solid #a8c7fa;
    border-radius: 16px;
    margin-bottom: 24px;
    max-height: 66vh;
    cursor: pointer;
     object-fit: cover;
}
.lightbox-contentc img{
    max-width: 100%;
    max-height: 65vh;
    border-radius: 16px;
    object-fit: none;
  
}
.lightbox-caption {
    color: #ffffff;
    font-size: 16px;
    margin-top: 16px;
    font-weight: 400;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 31, 31, 0.9); 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}
.lightbox-contentc {
    background-color: #f8fafd;
    border: 1px solid #a8c7fa;
    border-radius: 16px;
    margin-bottom: 24px;
    max-height: 66vh;
    cursor: pointer;
     object-fit: cover;
}
.lightbox-contentc img{
    max-width: 100%;
    max-height: 65vh;
    border-radius: 16px;
    object-fit: none;
  
}
.lightbox-caption {
    color: #ffffff;
    font-size: 16px;
    margin-top: 16px;
    font-weight: 400;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================== ОТЗИВИ ================== */
.reviews-grid {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
    
  }
}
  .client-review-card { border: 1px solid #e3e3e3; border-radius: 12px; padding: 16px; background-color: #f8f9fa; margin: 0 10px 10px;}
.review-user-info { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 36px; height: 36px; background-color: #1a73e8; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.review-user-info h3 { font-size: 14px; font-weight: 500; margin: 0; }
.client-stars {  margin-right: auto; color: #f4b400; font-size: 14px; margin-top: 2px; }
.review-comment { font-size: 13px; color: #444746; line-height: 1.4; margin: 0; }
.timeago { color: #6b7280; font-size: 0.75rem; }

/* ================== КАРТА ================== */
.map-container {
  width: 80%;
  height: 420px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);

  margin: 0 auto;
    margin-bottom: 20px;
}

.navigate-button {
  padding: 14px 32px;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  margin-bottom: 24px;
}

.navigate-button:hover {
  background: #ea580c;
}

.text-clip {
 height: 100px;
    overflow: hidden;
  text-overflow: ellipsis;
 
}
.more_less_service {
 height: 100px;
    overflow: hidden;
  text-overflow: ellipsis;
 
}
#expand-link {
  display: block;
  text-decoration: none;
}
/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  .container { padding: 2rem 1rem; }
  .small_txt {
    font-size: 12px;
    line-height: 40px;
    text-align: justify-content;
   
     font-family: Verdana, sans-serif;
}
 
  .review-card { padding: 1.6rem; }
}