/* === Переменные === */
:root {
  /* Цвета */
  --color-black: #000;
  --color-white: #fff;
  --color-light-gray: #ddd;
  --color-bg: #f9fafc;
  --color-footer-border: #555;
  --color-footer-text: #ccc;
  --color-link-hover: rgba(0, 0, 0, 0.702);

  /* Шрифты */
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-accent: "Playfair";

  /* Размеры */
  --header-height: 80px;
  --footer-min-height: 266px;

  /* Прочее */
  --container-max-width: 1440px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease-in-out;
}

@font-face {
  font-family: "Playfair";
  src: url("../fonts/PlayfairDisplay.ttf");
}

html {
  overflow-x: hidden;
  overscroll-behavior: none;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: var(--color-black);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  overflow-x: hidden;
  transition: opacity var(--transition-slow);
}

.header {
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-white);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: var(--container-max-width);
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 25px;
  text-transform: uppercase;
  font-weight: normal;
  color: var(--color-black);
  font-family: var(--font-accent);
  font-weight: 400;
  cursor: pointer;
}

.menu {
  display: flex;
  gap: 50px;
}

.menu-link {
  font-size: 18px;
  font-weight: 300;
  transition: color var(--transition-fast);
  position: relative;
}

.menu-link:hover::before {
  left: 0;
  right: 0;
  transition: right 0.4s;
}

.menu-link::before {
  background: var(--color-link-hover);
  bottom: 0;
  height: 1px;
  content: "";
  left: 100%;
  right: 100%;
  transition: right 0s 0.4s, left 0.4s;
  position: absolute;
}

.icons-menu {
  display: flex;
  gap: 16px;
}

.icon-link img {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.icon-link:hover img {
  transform: scale(1.1);
}

.menu-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  z-index: 2;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.981);
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-mobile.active {
  display: flex;
}

.menu-mobile-link {
  font-size: 18px;
  font-weight: 300;
  padding: 10px 0;
  text-align: center;
  display: block;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 30px;
  height: 3px;
  background-color: var(--color-black);
  transition: var(--transition-fast);
}

.burger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active div:nth-child(2) {
  opacity: 0;
}

.burger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .menu {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.981);
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  }

  .menu.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .icons-menu {
    display: none;
  }
}

.about {
  width: 100%;
  min-height: calc(100vh - var(--footer-min-height) - var(--header-height));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 30px;
  padding: 20px;
}

.about-container {
  max-width: 850px;
  width: 100%;
}

.about-header-text {
  font-size: 30px;
  text-transform: uppercase;
  text-align: center;
}

.about-description {
  font-size: 20px;
  font-family: var(--font-main);
  font-weight: 300;
  line-height: 33px;
  text-align: left;
}

.about-img {
  margin-top: 10px;
  width: 100%;
  max-width: 850px;
  border-radius: 10px;
}

.our-history h3,
.our-duty h3,
.quality-control h3 {
  font-size: 30px;
  line-height: 33px;
  margin-top: 6px;
  margin-bottom: 10px;
  text-align: left;
  font-family: var(--font-main);
}

.our-duty ul {
  font-size: 20px;
  line-height: 33px;
  margin-left: 40px;
  font-family: var(--font-main);
  font-weight: 300;
}

@media (max-width: 768px) {
  .about {
    margin-top: 10px;
    padding: 15px;
  }

  .about-header-text {
    font-size: 24px;
  }

  .about-description {
    font-size: 18px;
    line-height: 26px;
    text-align: center;
  }

  .about-img {
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
  }

  .our-history h3,
  .our-duty h3,
  .quality-control h3 {
    font-size: 22px;
    line-height: 28px;
    text-align: center;
  }

  .our-duty ul {
    font-size: 18px;
    line-height: 26px;
    margin-left: 15px;
    padding-left: 10px;
  }

  .our-duty ul li {
    margin-bottom: 6px;
  }
}

.footer {
  background: linear-gradient(90deg, #3a3a3a, var(--color-black));
  padding: 30px 0;
  width: 100%;
  min-height: var(--footer-min-height);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.footer-container {
  max-width: var(--container-max-width);
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

.footer-logo,
.fast-links,
.services-links,
.social-links {
  max-width: 270px;
  width: 100%;
}

.footer-logo-head {
  font-family: var(--font-accent);
}

.footer-logo-head,
.fast-link-head,
.service-link-head,
.social-link-head {
  color: var(--color-white);
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: normal;
}

.footer-logo-slogan,
.fast-link,
.service-link {
  font-size: 18px;
  color: var(--color-white);
  display: block;
  margin-bottom: 5px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.social-link:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-footer-text);
  border-top: 1px solid var(--color-footer-border);
  padding-top: 10px;
}

.footer-bottom p {
  color: var(--color-white);
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
    gap: 20px;
    flex-direction: column;
  }
  .service-link {
    text-align: left;
  }
  .service-link-head {
    text-align: left;
  }
  .footer-logo {
    text-align: left;
  }

  .social-link-head {
    text-align: left;
  }
  .fast-links {
    text-align: left;
  }
}
