1div {
	border: 1px solid red;
}

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

html,
    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        color: var(--text);
        background: var(--bg);
    }

  a {
        color: inherit;
        text-decoration: none;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        background: rgba(255, 255, 255, .8);
        backdrop-filter: saturate(1.2) blur(6px);
        z-index: 1000;
        border-bottom: 1px solid rgba(0, 0, 0, .05);
    }
	    .logo {
        font-weight: bold;
        font-size: 20px;
    }
.logo img{
         height: 50px;
		  padding: 5px;
        margin: 5px;
    }
    nav ul {
        list-style: none;
        display: flex;
        gap: 26px;
        padding: 0;
        margin: 0;
		
    }
nav {
  position: relative;
}
    nav a {
        color: #333;
        font-weight: 500;
    }
	.dropdown-toggle {
  color: black;
  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: black;
  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: 50px;
    right: 0;
    width: 100%;
    background-color: #3AD10D;
    padding: 20px;
    gap: 10px;
    z-index: 999;
    height: calc(60vh - 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;
    1background-color: rgba(255, 255, 255, 0.3);
  }
  
}
	 section {
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        position: relative;
    }
    /*====== Hero ======= */

    .hero {
        background: #fff;
        text-align: center;
        padding: 600px 20px 200px;
        position: relative;
        1overflow: hidden;
		height: 100vh;
    }

  .flag {
	  display: none;
	  transition: all 0.4s cubic-bezier(0.25, 0.45, 0.45, 0.95);
  }
.flag:hover {
 
  transform: translateX(-20px) rotate(10deg);
}

.hero-center {
	
	display: flex;
        gap: 16px;
        flex-direction: column;
        margin-top: 16px;
      
	
}
.hero h1{
	margin: 0 0 14px;
        font-size: 40px;
        font-weight: 700;
}
.hero p{
	 color: var(--muted);
        max-width: 700px;
        margin: 0 auto 28px;
        font-size: 18px;
		
}
.buttons-container {
    display: flex;
    justify-content: center;
	
    gap: 30px;
    margin-top: 10px;
	flex-wrap: wrap;
}
.1contact-actions {
        display: flex;
        gap: 16px;
        justify-content: center;
        margin-top: 16px;
        flex-wrap: wrap;
    }
/* Замена фона для мобильных устройств (ширина ≤ 768px) */
@media (max-width: 768px) {
  .hero {
    1background: url('../img/evak14.png') no-repeat center/cover;
	padding: 20px 20px 80px;
	height: 30vh;
  }
  .hero h1 {
    font-size: 1.2em;
  }
.hero p {
    font-size: 0.9em;
	text-decoration: none;
	
  }

.flag {
	  display: block;
	  margin: 0 auto;
	  width: 35vh;
	 1box-shadow: 10px 10px 10px rgba(0, 0, 0, .4);
  }
}



.btn {
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
	box-shadow: 10px 10px 10px rgba(0, 0, 0, .4);
	margin: 10px;
}

#order-btn {
    background-color: #4CAF50;
    color: white;
	padding: 15px 46px;
}

#portfolio-btn {
    background-color: #2196F3;
    color: white;
	
}
#mail-btn {
    background-color: #4CAF50;
    color: white;
}
#tel-btn {
    background-color: #4CAF50;
    color: white;
	
}
.btn:hover {
    opacity: 0.9;
}

/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    width: 90%;
    max-width: 800px;
    height: 80%;
    border-radius: 10px;
    overflow: hidden;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    color: #aaa;
}

.close:hover {
    color: black;
}

.slider {
    position: relative; /* Создаёт контекст для абсолютного позиционирования дочерних элементов */
    width: 100%;
    height: 100%;
}

.slides {
    display: flex;
    width: 100%;
    height: calc(100%);
    transition: transform 0.5s ease;
}

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

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.dots {
    position: absolute;
    bottom: 20px; /* Отступ от низа */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Выше слайдеров, но ниже кнопок и крестика */
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); /* Полупрозрачный белый */
    cursor: pointer;
    transition: all 0.3s ease;
	border: 1px solid #000;
}

.dot.active {
    background-color: #00ff00; /* Белый для активной точки */
    transform: scale(1.3);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}


/*Дуга из миниатюр*/
.container {
	
  position: relative;
  background: #fff;
  text-align: center;
  margin-top: 300px; /* Отступ сверху для заголовка */
}

.title {
  position: relative;
  z-index: 10;
  font-size: 3em;
}

.arc-container {
  position: relative;
  width: 100%;
  height: 300px; /* Высота дуги */
}

.miniature {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: #ccc; /* Цвет миниатюр (можно заменить на изображения) */
  border-radius: 8px;
  transform-origin: 50% 50%; /* Центр трансформации */
  transition: transform 0.3s ease;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, .4);
  transition: all 0.4s cubic-bezier(0.25, 0.45, 0.45, 0.95);

  /* Вычисляем положение по дуге через CSS-переменные */
  --radius: 400px; /* Радиус дуги */
  --center-x: 40%; /* Центр по X (относительно контейнера) */
  --center-y: -40%; /* Центр по Y (относительно контейнера) */

  /* Вычисляем координаты через CSS-функции */
  left: calc(var(--center-x) + (var(--radius) * cos(var(--angle))));
  top: calc(var(--center-y) - (var(--radius) * sin(var(--angle))));

  /* Добавляем небольшой наклон для эффекта */
  transform: rotate(calc(var(--angle) - 90deg));
}

/* Стили для изображений (если используете img вместо div) */
.miniature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.miniature:hover {
  transform: translateX(12px) rotate(2deg);
}
  /* About */

    .about {
        background: #fff;
    }

    .card {
        width: 75%;
        max-width: 900px;
        background: #fff;
        padding: 40px;
        border-radius: 12px;
         box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.4);
    }
	.card p{
        text-indent: 1.5em;
    }
	 .card h2 {
       margin-top:0 0 12px;
	   text-align: center;
    }
	h2{
		margin-bottom: 10px;
		
	}
	.card-label {
		text-align: center;
		font-size: 40px;
	}
	  /* Rates */

    .rates {
        padding: 40px 20px;
    }

    .rates h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 28px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        justify-items: center;
    }

    .card-flip {
        width: 260px;
        height: 180px;
        perspective: 1000px;
        cursor: default;
    }

.section-title {
	text-align:center;  
	margin-bottom:24px;
	1display: flex;
  1flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  border-radius: 12px;
  width: 900px;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.4);
}
	.services {
  margin:0 auto 10px;
}
    .card-inner {
        width: 100%;
        height: 100%;
        position: relative;
        transform-style: preserve-3d;
        transition: transform .8s;
    }

    .card-face,
    .card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
       box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
		
    }

    .card-face {
        background: #fff;
        color: #111;
        backface-visibility: hidden;
        border: 1px solid #eee;
    }

    .card-back {
        background: #111;
        color: #fff;
        transform: rotateY(180deg);
        backface-visibility: hidden;
        border: 1px solid #333;
    }

    .card-flip:hover .card-inner {
        transform: rotateY(180deg);
    }

    .flip-label {
        font-weight: 700;
        margin-bottom: 6px;
    }

    .price {
        font-size: 20px;
        font-weight: 700;
    }
    /* Контакты */

    .contacts {
        text-align: center;
    }

    .contact-actions {
        display: flex;
        gap: 16px;
        justify-content: center;
        margin-top: 16px;
        flex-wrap: wrap;
    }

    @media (max-width: 1024px) {
        .grid {
            grid-template-columns: repeat(2, 1fr);
        }
        .modal-content {
            width: 92%;
            height: 70vh;
    
    }
	}

    @media (max-width: 700px) {
        nav ul {
            display: none;
        }
        .thumbs {
            top: -90px;
        }
        .grid {
            grid-template-columns: 1fr;
        }
        .card {
            width: 90%;
        }
        .hero h1 {
            font-size: 15px;
        }
		.hero p {
            font-size: 10px;
        }
		.arc-container {
  display: none;
}
		
	}
	/* === Адаптивность === */
@media (max-width: 992px) {
  
}
  .hero .container1 {
	 max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;  
  }
  /* === Крутилка === */
 .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 : 700px){ .mobile { display: inline; }}

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