


.about-wrapper {
  background-color: var(--cloud-gray);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  width: 100%;
  padding: 0 20px;
}

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  
  }

.about-text-block {
  text-align: center;
  color: var(--charcoal-black);
  padding-bottom: 60px;
  background-color: var(--stone-gray);
  padding-top: 60px;
  
  
}

.about-heading {
  font-family: 'Lora', serif;
 font-size: clamp(1.4rem, 3vw, 2.5rem); 
  font-weight: 400;
  margin-bottom: 20px;
}

.about-subheading {
  font-family: 'Lora', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  max-width: 920px;
  margin: 0 auto;
}


.about-info-block {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.about-info-image {
  flex: 1 1 50%;
  min-width: 300px;
}

.about-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-info-text {
  flex: 1 1 50%;
  min-width: 300px;
  background-color: var(--white-0);
  border: 1px solid black;
  box-sizing: border-box;
  padding: 40px;
  font-family: 'Lora', serif;
  font-size: clamp(1.1rem, 1.7vw, 1.25rem); 
  text-align: justify;
  display: flex;
  align-items: center;
}

.about-info-text p {
  margin: 0;
  line-height: 1.5;
}

.about-cards-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--stone-gray);
}

.about-cards-inner {
  width: 100%;
  display: flex;
  gap: 35px;
  justify-content: center;
  align-items: flex-start;
  padding: 0 20px;
  flex-wrap: wrap; 
  box-sizing: border-box;
}

.about-card {
  width: 300px;
  height: 500px;
  padding: 20px 25px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: var(--black-0);
  
}


.about-card a {
  margin-top: auto; 
  align-self: center; 
}

.about-card img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
}


.about-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  align-items: center;
}


.about-card-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center; 
  gap: 10px;
}

.about-card h3 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.95rem 1.9vw, 1rem);
  font-weight: 700;
  color: var(--white-0);
  text-shadow: 1px 1px 0 black;
  text-align: center;
  min-height: 48px; 
  margin-bottom: 10px;
}

.about-card-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.8125rem, 1.3vw, 0.95rem);
  font-weight: 400;
  color: var(--gray94);
  margin-top: -10px;
  text-align: justify;
  text-justify: inter-word;
}

.about-btn {
  width: 210px;
  height: 40px;
   border-radius: 12px;
  background-color: var(--electric-pink);
  color: var(--white-0);
    box-shadow: none;      
  border: none;          
  outline: none;         
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 0.95vw, 1.09rem);
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 300ms ease-out;
}

.about-btn:hover {
   background-color: var(--neon-orange);
  border: 3px solid var(--electric-pink);
}


.about-description-section {
  background-color: var(--white-0);
  padding: 60px 20px;
}

.about-description-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: justify;
}

.about-description-heading {
  font-family: 'Lora', serif;
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  text-align: center;
  color: var(--charcoal-black);
  margin-bottom: 30px;
}

.about-description-text {
  font-family: 'Lora', serif;
  font-size: clamp(0.72rem, 1.4vw, 1.2rem);
  color: var(--charcoal-black);
  line-height: 1.3;
  margin-bottom: 40px;
  padding: 0 60px;
}

/* ------------------------- СЛАЙДЕР----------------------------------- */


.gallery-slider {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 0;
  box-sizing: border-box;
  background-color: var(--midnight-purple);
}

.gallery-track-wrapper {
  overflow: hidden;
  width: 100%;
  height: auto;
}

.gallery-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
}

.gallery-track img {
  max-width: 350px;       /* максимальная ширина фото */
  max-height: 320px;      /* максимальная высота фото */
  width: auto;            /* ширина под пропорцию фото */
  height: auto;           /* высота под пропорцию фото */
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  cursor: pointer;

  /* минимальные боковые отступы для узких фото */
  padding-left: 20px;
  padding-right: 20px;
  background-color: transparent; /* фон под боковые отступы, если нужен можно заменить */
}

/* Стрелки */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s;
}

.arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: var(--white-0);
  cursor: pointer;
}

/*   МОДАЛЬНОЕ ОКНО В СЛАЙДЕРЕ    */



#image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

#image-modal.active {
  display: flex;
}


#modal-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}


.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white-0);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  font-size: 2.5rem;
  color: var(--white-0);
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 1000;
}

.modal-left {
  left: 30px;
}

.modal-right {
  right: 30px;
}

.modal-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}



.services-cta-about {
  padding-top: 100px; 
  padding-bottom: 100px;
  display: flex;    
  justify-content: center; 
    position: relative;
  z-index: 1;
  background-color: var(--gray94);
  
}

.cta-button-about {
  width: 600px;
  height: 60px;
  border-radius: 25px;
  background-color: var(--electric-pink);
  color: var(--white-0);
  border: none;
  font-family: 'Lato', sans-serif;
font-weight: 500;
font-size: clamp(1.1rem, 1.3vw, 1.5rem);
text-transform: uppercase;
  cursor: pointer;
 transition: all 300ms ease-out;
}

.cta-button-about:hover {
  background-color: var(--neon-orange);
  border: 3px solid var(--electric-pink);
}




@media (max-width: 1024px) {
  .about-info-block {
    flex-direction: column;
		background-color: var(--white-0);
		border-top: 1px solid black;
  border-left: 1px solid black;
  border-right: 1px solid black;
  }
  .about-info-image {
  flex: 0 0 auto; 
  max-width: 75%; 
  margin: 0 auto;
  min-width: auto; 

  }
 
  
  
  .about-info-text {
	flex: 1 1 100%;
    min-width: 100%;
    padding: 20px;
    font-size: 1rem;
	 border-left: none;
    border-right: none;
  }
}


@media (max-width: 630px) {
  .about-text-block {
    padding: 40px 10px;
  }
  .about-heading {
    font-size: 1.4rem;
  }
  .about-subheading {
    font-size: 0.9rem;
  }

  .about-info-text {
    padding: 15px;
    font-size: 0.95rem;
  }
}


@media (max-width: 480px) {
  .about-heading {
    font-size: 1.2rem;
  }
  .about-subheading {
    font-size: 0.85rem;
  }
}


@media (max-width: 1120px) {
  .about-card {
    width: 260px;  
    height: 433px; 
	gap: 10px;
  }

.about-cards-inner {
  gap: 25px; 
}


.about-card-text {
	gap: 5px;
}

  .about-card img {
    width: 182px;  
    height: 182px;
  }

  .about-card h3 {
    font-size: 0.9rem;
  }

  .about-card-subtitle {
    font-size: 0.78rem;
  }

  .about-btn {
    width: 182px; 
    height: 36px;   
    font-size: 0.75rem;
  }
}

@media (max-width: 970px) {
  .about-card {
    width: 220px;    
    height: 370px;   
    gap: 5px;
    padding: 15px 20px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .about-card-text {
    gap: 10px;
    flex-grow: 1; 
  }

  .about-card img {
    width: 155px;
    height: 155px;
    border-radius: 10px;
  }

  .about-card h3 {
    font-size: 0.8rem;
  }

  .about-card-subtitle {
    font-size: 0.7rem;
  }

.about-btn {
  font-size: 0.6rem;       
  padding: 0 15px;       
  height: 32px;        
  min-width: auto;      
  width: auto;    
  max-width: none;     
  box-sizing: border-box; 
  align-self: center; 
}

  
  .about-cards-inner {
    gap: 20px;
  }
}



@media (max-width: 840px) {
  .about-card {
    width: 100%; 
    height: auto;
  }

  .about-card-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px; 
  }

  .about-card-content img {
    flex-shrink: 0;
    width: 150px;
    height: auto;
  }

  .about-card-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1; 
  }

  .about-card-subtitle {
    flex-grow: 1;
    margin-bottom: 10px;
	font-size: 0.8rem;
  }

  .about-card-text a {
    align-self: center; 
  }

  .about-btn {
    width: auto; 
    padding: 6px 16px;
    font-size: 0.8rem;
  }
}


@media (max-width: 530px) {
  .about-cards-inner {
    display: flex;
    flex-wrap: nowrap;      
    gap: 6px;
    justify-content: center;
    overflow-x: visible;     
    padding: 0 10px;         
  }

  .about-card {
    flex-shrink: 1;          
    width: 130px;            
    height: fit-content;
    padding: 15px 6px;
    gap: 6px;
  }

  .about-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
  }

  .about-card img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
  }

  .about-card h3 {
    font-size: 0.65rem;
    margin: 0;
    text-align: center;
    min-height: auto;
  }

  .about-card-subtitle {
    display: none !important; 
  }

  .about-btn {
    margin-top: auto;
    width: auto;
    height: 24px;
    font-size: 0.5rem;
    padding: 0 10px;
    border-radius: 16px;
  }
}

@media (max-width: 900px) {
  .about-description-section {
    padding: 40px 10px;
  }

  .about-description-container {
    max-width: 90%;
    margin: 0 auto;
  }

  .about-description-heading {
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    margin-bottom: 20px;
  }

  .about-description-text {
    font-size: clamp(0.65rem, 2vw, 1rem);
    margin-bottom: 30px;
    padding: 0 30px;
    line-height: 1.4;
  }
}


@media (max-width: 480px) {
  .about-description-section {
    padding: 25px 10px;
  }

  .about-description-heading {
    font-size: clamp(0.8rem, 4vw, 1.2rem);
    margin-bottom: 15px;
  }

  .about-description-text {
    font-size: clamp(0.6rem, 3vw, 0.9rem);
    margin-bottom: 20px;
    padding: 0 15px;
    line-height: 1.3;
  }
}

@media (max-width: 1100px) {
  .gallery-slider {
    padding: 30px 0; 
  }

  .gallery-track img {
    max-width: 250px;    /* чуть меньше стандартной ширины */
    max-height: 220px;   /* увеличенная высота относительно старого значения */
    padding-left: 15px;  /* оставляем для узких фото */
    padding-right: 15px; 
  }

  .arrow {
    font-size: 1.8rem;
    padding: 6px;
  }
}

@media (max-width: 800px) {
	

  .gallery-slider {
    padding: 20px 0; 
  }
	
  .gallery-track img {
    max-width: 200px;    /* чуть меньше стандартной ширины */
    max-height: 175px;   /* увеличенная высота относительно старого значения */
    padding-left: 10px;  /* оставляем для узких фото */
    padding-right: 10px; 
  }
  
  
  .arrow {
    font-size: 1.2rem;
    padding: 4px;
  }
}

@media (max-width: 650px) {
  .gallery-slider {
    padding: 15px 0;
  }

  .gallery-track img {
    max-width: 150px;
    max-height: 130px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .arrow {
    font-size: 1rem;
    padding: 3px;
  }
}



@media (max-width: 1000px) {
  .services-cta-about {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cta-button-about {
    width: 400px;
    height: 50px;
    font-size: 0.9rem;
  }
}

@media (max-width: 650px) {
  .services-cta-about {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cta-button-about {
    width: 380px;
    height: 45px;
    font-size: 0.80rem; 
    white-space: nowrap; 
  }
}

@media (max-width: 400px) {
  .services-cta-about {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .cta-button-about {
    width: 350px;
    height: 40px;
    font-size: 0.7rem; 
    white-space: nowrap;
  }
}
