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

}
html, body {
  height: 100%;
  margin:0;
  padding:0;
}
body {
 color: #333;
  padding-top: 40px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}
body.custom-background {
	
	
	background-color: #f8f9fa;
 background-attachment: fixed;
	height: 100vh;
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 30px;
}

.main-header {
   position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #E53D32;
  color: white;
  z-index: 1000;
  font-size: 0.7em;
  1box-shadow: 0 20px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  
}
.logo img{
  width: 30px;
 margin: 5px;
 padding-top:5px;
}

.logo a {
  color: white;
  font-size: 1.6em;
  font-weight: bold;
  text-decoration: none;
}
.nav {
  position: relative;
}

.menu {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.menu > li {
  position: relative;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 10px;
  display: block;
}




.dropdown-toggle {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-stretch: ultra-condensed;
  text-transform: uppercase;
  
  transition: color 0.3s;
}




/* Эффекты при наведении */
.menu a:hover {
  color: #96C14C;
}


/* Стили гамбургера */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 30px;
  height: 22px;
  overflow: hidden;
}
/* Общие стили для полосок */
.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s 0.2s ease, bottom 0.3s 0.2s ease;
}/* Расположение полосок */
.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.bar:nth-child(3) { bottom: 0; }

/* Анимация: полоски → крестик */
.hamburger.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}


/* Стили для мобильной версии */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: #E53D32;
    padding: 20px;
    gap: 10px;
    z-index: 999;
    height: calc(100vh - 60px);
    overflow-y: auto;

    /* Начальное состояние */
    opacity: 0;
    transform: translateY(0); /* Точно на месте */
    pointer-events: none;

    /* Плавный переход с cubic-bezier */
    transition: 
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s ease;
  }

  .menu.active {
    /* Конечное состояние */
    opacity: 1;
    transform: translateY(0); /* Остаётся на месте */
    pointer-events: auto;
  }


  .menu > li {
    width: 100%;
  }


  .menu a {
    color: white;
  }

  .menu a:hover {
   1 color: red;
    background-color: rgba(255, 255, 255, 0.3);
  }
}
/* === Главный экран (hero) === */
.hero {
 
 background: url('../img/school_311.png') no-repeat center/cover;
 
  color: white;
  text-align: center;
  padding: 50px 20px 350px;
  margin-top: 0;
  width: 100%;
 
}


.lead {
  font-size: 1.8em;
  margin-bottom: 30px;
  
}
.hero h1 {
  font-size: 2.8em;
  margin-bottom: 15px;
}
/* Замена фона для мобильных устройств (ширина ≤ 768px) */
@media (max-width: 768px) {
  .hero {
    1background: url('../img/school_312.png') no-repeat center/cover;
	padding: 20px 20px 80px;
	
  }
  .hero h1 {
    font-size: 1.2em;
  }
  .lead {
    font-size: 0em;
  }
}
/* === Адаптивность === */
@media (max-width: 992px) {
  
}
  .hero-container {
	 max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;  
  }




/* Услуги основной лист */
.services-section {
  padding: 80px 0;
  
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8em;
  color: #2243e8;
  padding: 0 30px;
}
@media only screen and (max-width: 600px) {
    .section-title {
        font-size: 1.2em;
		padding: 0 10px;
}
    }
.contents {
	margin: 0 20px 20px;
}

.services {
  display: flex;
  1flex-wrap: wrap;
  1gap: 20px;
  justify-content: center;
}

.card {
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 25px;
  width: 100%;
  max-width: 650px;
}

.card h3 {
  margin-bottom: 12px;
  color: #2c3e50;
  font-size: 1.4em;
  text-align: center;
}

.card p {
  color: #555;
  font-size: 1em;
  line-height: 1.6;
  text-align: left;
  text-indent: 25px; 
  
}

 

/* Подвал */
footer {
  text-align: center;
  padding: 10px 20px;
  background: #E53D32;
  color: white;
  font-size: 0.8em;
  
}
footer  .container {
	display: flex;
	justify-content: center;
}
.sprint {
	margin-left: 50px;
}
footer p {
  margin: 15px 0;
  
}
footer a {
  
  color: white;
  text-decoration: none;
}



/* === Фотогалерея === */
.gallery-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: avto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

  .gallery img {
    1height: 200px;
  }
}
/* === Крутилка === */
 .btnchik {
    background: url("../img/icon-256x256.png") center/contain no-repeat;
    width: 15%;
    height:15%;
	position: fixed;
    top: 85%;
    left: 80%;
	animation: animate 7s  linear infinite ;	
}

 @keyframes animate
{
0%
{transform: rotateY(-180deg);}
100%
{transform: rotateY(180deg);}
}
.mobile { display: none; }
@media only screen and (min-device-width : 320px)
and (max-device-width : 600px){ .mobile { display: inline; }}






 /* Контакты */
 .contacts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
  background-color: #f8f9fa; 
  1color: white;
}

.contacts__info {
  text-align: center;
  margin-bottom: 20px;
}

.contacts__map {
  width: 50%;
  height: 400px; /* Высота карты */
  margin: 0px 0 80px;
}


