:root {
  --orange: #f42020;
  --black: #111;
  --white: #fff;
  --line: #e8e8e8;
  --sidebar-width: 235px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: #f6f6f6;
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 30px 24px;
  color: var(--white);
  background: var(--black);
  transition: transform 0.3s ease;
}

.logo {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1px;
}

.logo span {
  color: var(--orange);
}

.side-title,
select {
  margin: 55px 0 14px;
  color: #999;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background-color: #000000;
}

nav a {
  display: block;
  padding: 12px 0;
  color: var(--white);
  font-size: 15px;
  line-height: 50px;
  text-decoration: none;
  border-bottom: 1px solid #292929;
}

nav ul {
  margin: 0 0 0 5px;
  padding: 0;
  list-style: none;
}

nav a:hover {
  color: var(--orange);
}

.side-foot {
  margin-top: auto;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}

.sidebar-social {
  display: flex;
  gap: 18px;
  margin-top: 35px;
}

.sidebar-social img {
  display: flex;
  margin-left: 30px;
  width: 34px;
  height: 34px;
  transition: .3s;
}

.QRcode {
  margin: 30px 0 0 40px;
}

.sidebar-social img:hover {
  transform: scale(1.15);
}

/* Menu button */

.menu-toggle {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 250px;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  background: var(--orange);
  border: 0;
  transition: left 0.3s ease;
}

main,
footer {
  margin-left: var(--sidebar-width);
  transition: margin-left .3s ease;
}

body.menu-closed main,
body.menu-closed footer {
  margin-left: 0;
}

body.menu-closed .sidebar {
  transform: translateX(calc(-100% - 5px));
}

body.menu-closed .menu-toggle {
  left: 15px;
}

details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  line-height: 50px;
  color: #fff;
  border-bottom: 1px solid #292929;
  user-select: none;
}

details summary:hover {
  color: var(--orange);
}

/* Убираем стандартную стрелку */
details summary::-webkit-details-marker {
  display: none;
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 15px;
  text-align: center;
}

.dropdown-list a {
  display: block;
  padding: 8px 0;
  line-height: 30px;
  border: none;
}

.menu-container summary::-webkit-details-marker {
    display: none;
}

.menu-container summary::before {
    content: "▾";
    margin-right: 8px;
    transition: transform 0.3s ease;
}

/* При открытии поворачиваем стрелку влево */
.menu-container details[open] summary::before {
    transform: rotate(90deg);
}


/* Main content */

section {
  padding: 80px 70px;
  background: var(--white);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 690px;
  overflow: hidden;
  background: #222;

}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(30%);

}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.775);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
  color: var(--white);
}

.tag {
  display: inline-block;
  padding: 8px 12px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--orange);
}

h1 {
  margin: 20px 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  margin: 10px 0 35px;
  font-size: 42px;
}

.hero p {
  max-width: 520px;
  color: #eee;
  font-size: 20px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 15px 22px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  background-color: var(--orange);
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #bb2727;

}

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;

}

/* Services */

.services {
  background: #f4f4f4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 180px;
  padding: 28px;
  background: var(--white);
  border-top: 5px solid var(--orange);
  line-height: 1.6;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.special-cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #dbdbdb;
  border-radius: 10px;
  box-shadow: 0px 2px black;
  padding: 25px 20px;
  min-height: 240px;
  transition: .3s;
}

.special-cards img {
  width: 90px;
  height: 90px;
  margin-bottom: 18px;
}

.special-cards p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.special-cards:nth-child(2) {
  margin-left: 50%;
}

.special-cards:hover {
  box-shadow: 2px 2px black;
}

.delivery-card {
  grid-column: 2;
}

.elevator-card:hover {
  transform: translateY(-5px);
}

.elevator-card a {
  color: #000000;
}

.info {
  color: #535353;
  text-align: center;
  font-size: 20px;
}

/* Gallery */

.production-item {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
}

.production-item img {
  width: 30%;
  height: 300px;
  object-fit: cover;

}

.production-text {
  width: 50%;
}

.production-text h3 {
  margin-bottom: 20px;
  font-size: 25px;
  color: var(--orange);
}

.production-text p {
  font-size: 25px;
  line-height: 1.8;
  color: #000000;
}

.production-item.reverse {
  flex-direction: row-reverse;
}

.advantages {
  display: flex;
  gap: 30px;
  margin: 40px;
  align-items: stretch;
}

.info-section {
  display: flex;
  gap: 30px;
  align-items: stretch;
  margin: 40px;
}

.work,
.cards {
  flex: 1;
  background: #fff;
  border: 4px solid #bcbcbc;
  padding: 30px;
}

.cards {
  border: 4px solid #bcbcbc;
  padding: 30px;
  background: #fff;
}

.cards h3 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
}

.why-grid {
  display: flex;
  gap: 20px;
}

.why-card {
  flex: 1;
  background: #f5f5f5;
  padding: 25px;
  text-align: center;
  transition: .3s;
}

.why-video {
  width: 100%;
  height: 250px;
  margin-top: 30px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.why-card h2 {
  margin-bottom: 15px;
  color: #f42020;
  font-size: 28px;
}

.work {
  border: 4px solid #bcbcbc;

  padding: 30px;
  background: #fff;
}

.work h3 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 25px;
}

.step {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.step span {
  min-width: 45px;
  height: 45px;
  background: #f42020;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
}

.step p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 35px;
  padding: 50px 70px 25px;
  background: #111;
  color: #fff;

}

.contacts a {
  text-decoration: none;
  color: #ffffff;
}

.contact-list b {
  color: rgb(255, 0, 0);
}

.contact-list a {
  color: #fff;
  transition: color .3s ease-in-out;
}

.contact-list a:hover {
  color: red;
}

.social a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  gap: 0 10px;
  transition: color 0.3s ease-in-out;
  padding: 0 5px;
}

.social a:hover {
  color: rgb(38, 0, 255);
}

.map {
  min-height: 220px;
}

.map iframe {
  width: 100%;
  height: 220px;
  min-height: 220px;
}

.footer-production {
  background: #111;
  color: #fff;

  display: flex;
  text-align: center;
  justify-content: space-between;
  gap: 40px;

  margin-top: 20px;
  padding-top: 20px;
  padding-left: 50px;
  padding-bottom: 20px;
  border-top: 1px solid #2b2b2b;
}

.footer-production h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.footer-production ul {
  margin: 0;
  padding: 0;
  list-style: none;

}

.footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px 25px;
  color: #747474;
}

.footer-list-service {
  line-height: 30px;
}

.footer-production li {
  color: #ddd;
  font-size: 15px;
  line-height: 1.4;

}

.footer-production a {
  color: #ddd;
  text-decoration: none;
}

.footer-production a {
  color: #fff;
  text-decoration: none;
  transition: .3s;
}

.footer-production a:visited {
  color: #fff;
}

.footer-production a:hover {
  color: var(--orange);
}

.footer-production a:hover {
  color: var(--orange);
}

footer {
  background: #ff0000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 10px 0;
}

/* Sidebar */

.sidebar-social {
  justify-content: center;
}

.sidebar-social img {
  margin: 0;
}

.QRcode {
  display: flex;
  justify-content: center;
  margin: 25px 0 0;
}

.QRcode img {
  width: 90px;
}

/*tell*/
.tell {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  padding-top: 12px;
  padding-right: 18px;
  font-weight: bold;
  border-radius: 60px;
}

.lang {
  position: fixed;
  z-index: 9999;
  top: 10px;
  right: 10px;

  background-color: red;
  color: white;
  text-align: var(--white);
  padding: 2px 2px 2px 2px;
  font-size: 30px;
  text-align: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;

}

/* МОБИЛЬНАЯ ВЕРСИЯ*/

@media (max-width:768px){

    .sidebar{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding: 30px 20px;
        overflow-y: auto;
        z-index: 1000;
    }

    .menu-closed .sidebar{
        transform: translateX(-100%);
    }

    .menu-toggle{
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1100;
    }

    main{
        margin-left: 0;
    }


    section{
        padding:50px 20px;
    }
    .grid{
        display:flex;
        flex-direction:column;
        gap:20px;
    }

    .card,
    .special-cards{
        width:100%;
        margin:0 !important;
        min-height:auto;
    }

    .special-cards img{
        width:70px;
        height:70px;
    }

    /* Производство */
    .production-item,
    .production-item.reverse{
        flex-direction:column;
        gap:20px;
        margin-bottom:50px;
    }

    .production-item img{
        width:100%;
        height:250px;
        object-fit:cover;
    }

    .production-text{
        width:100%;
        order:2;
    }

    .production-item img{
        order:1;
    }

    .production-text h3{
        font-size:24px;
        text-align:center;
    }

    .production-text p{
        font-size:18px;
        text-align:center;
    }

    /* Блок "Как мы работаем" и "Почему мы" */
    .info-section{
        flex-direction:column;
        margin:20px 0;
    }

    .work,
    .cards{
        width:100%;
    }

    .why-grid{
        display:flex;
        flex-direction:column;
    }

    /* Контакты */
    .contacts{
        grid-template-columns:1fr;
    }

    .map iframe{
        height:280px;
    }

    /* Футер */
    .footer-production{
        flex-direction:column;
        text-align:center;
        padding:20px;
    }

    .footer-list{
        grid-template-columns:1fr;
    }
  }