/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

button,
input,
textarea,
select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
body {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #303a4d;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(44, 44, 44, 0.98);
  z-index: 1000;
  padding: 15px 0;
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 2.25rem;
  color: white;
  font-weight: 400;
  z-index: 1001;
  position: relative;
  line-height: 1.2;
}

.menu__body {
  display: flex;
  align-items: center;
}

.menu__list {
  display: flex;
  gap: 25px;
}

.menu__link {
  color: white;
  font-weight: 400;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s;
  font-size: 1.05rem;
}

.menu__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Кнопка гамбургера */
.icon-menu {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.icon-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  left: 0;
}

.icon-menu span:nth-child(1) {
  top: 0;
}

.icon-menu span:nth-child(2) {
  top: 10px;
}

.icon-menu span:nth-child(3) {
  top: 20px;
}

body.menu-open .icon-menu span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

body.menu-open .icon-menu span:nth-child(2) {
  opacity: 0;
}

body.menu-open .icon-menu span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* ===== MAIN секции ===== */
.main {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 70px;
}

.main_home {
  background-image: url("../img/home/background_placeholder.png");
}

.main_about {
  background-image: url("../img/about/background_placeholder_about.png");
}

.main_services {
  background-image: url("../img/services/background_placeholder.png");
}

.main_contact {
  background-image: url("../img/contact/background_placeholder.png");
}

.main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.main__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.main__content {
  padding: 4rem 2rem;
  max-width: 90%;
  width: 100%;
}

.main__title {
  font-size: 3.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.2;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.3;
}

.main__text {
  max-width: 800px;
  color: #ffffff;
  font-size: 1.6rem;
}

/* ===== Кнопки ===== */
.button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: #343a40;
  color: white;
  border-radius: 30px;
  font-weight: 400;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.button:hover {
  background: #495057;
  transform: translateY(-2px);
}

/* ===== ABOUT секции ===== */
.about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 15px;
  display: flex;
  gap: 60px;
  align-items: center;
}

.about__image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__content {
  flex: 1;
}

.title {
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: #2c2c2c;
  line-height: 1.2;
}

.about__text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 35px;
  color: #555;
}

.about__text p:not(:last-child) {
  margin-bottom: 20px;
}

/* ===== SERVICES секции (на главной) ===== */
.services {
  background-color: #f5f6fa;
  width: 100%;
}

.services__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 15px;
}

.services__title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 60px;
  color: #2c2c2c;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.item-services {
  background: white;
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-services:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.item-services__image {
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
  height: 220px;
}

.item-services__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.item-services:hover .item-services__image img {
  transform: scale(1.1);
}

.item-services__title {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 15px;
  color: #2c2c2c;
  line-height: 1.3;
}

.item-services__text {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
  font-size: 1rem;
}

.item-services__button {
  background: transparent;
  border: 2px solid #343a40;
  color: #343a40;
  align-self: flex-start;
  padding: 10px 25px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.item-services__button:hover {
  background: #343a40;
  color: white;
}

/* ===== SERVICES PAGE (Каталог) ===== */
.services-page__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 15px;
}

.services-page__item {
  margin-bottom: 100px;
}

.services-page__item:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 100px;
}

.services-page__column {
  display: flex;
  gap: 60px;
  align-items: center;
}

.services-page__content {
  flex: 1;
}

.services-page__title {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: #2c2c2c;
  line-height: 1.2;
}

.services-page__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 35px;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 15px;
}

.services-page__img {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-page__img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* ===== PRODUCT PAGE (Страница товара) ===== */
.product {
  padding: 100px 0;
  background: #fff;
  margin-top: 70px;
}

.product__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.product__header {
  margin-bottom: 50px;
}

.product__title {
  font-size: 3.5rem;
  font-weight: 400;
  color: #2c2c2c;
  margin-bottom: 20px;
  line-height: 1.2;
}

.product__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.product__main-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product__main-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.product__thumbnails {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product__thumbnail {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product__thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product__thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.product__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.product__specs {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 20px;
}

.product__specs-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list .spec-name {
  color: #666;
  font-weight: 400;
}

.specs-list .spec-value {
  color: #2c2c2c;
  font-weight: 500;
}

.product__price-block {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product__price {
  font-size: 3rem;
  color: #2c2c2c;
  margin-bottom: 20px;
  font-weight: 400;
}

.product__price small {
  font-size: 1.2rem;
  color: #888;
}

.product__features {
  margin: 30px 0;
}

.product__features p {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #555;
}

.product__features p::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #343a40;
  font-weight: bold;
}

.product__actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.product__button {
  flex: 1;
  padding: 15px 30px;
  font-size: 1.1rem;
}

.product__button_outline {
  background: transparent;
  border: 2px solid #343a40;
  color: #343a40;
}

.product__button_outline:hover {
  background: #343a40;
  color: white;
}

.product__description {
  background: #f8f9fa;
  padding: 60px;
  border-radius: 20px;
  margin-bottom: 60px;
}

.product__description-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.product__description-text {
  color: #555;
  line-height: 1.8;
  font-size: 1.1rem;
}

.product__description-text p {
  margin-bottom: 20px;
}

.product__equipment {
  margin-bottom: 60px;
}

.product__equipment-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: #2c2c2c;
  text-align: center;
}

.equipment__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.equipment__item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.equipment__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.equipment__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #f0f2f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment__icon img {
  width: 30px;
  height: 30px;
}

.equipment__name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.equipment__desc {
  font-size: 0.9rem;
  color: #666;
}

/* ===== OUTRO секции ===== */
.outro_home,
.outro_about,
.outro_services {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.outro_home {
  background-image: url("../img/home/hero_placeholder.jpg");
}

.outro_about {
  background-image: url("../img/about/hero_placeholder.jpg");
}

.outro_services {
  background-image: url("../img/services/hero_placeholder.jpg");
}

.outro_home::before,
.outro_about::before,
.outro_services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.outro__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.outro__title {
  font-size: 3.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #ffffff;
  line-height: 1.2;
}

.outro__text {
  margin-bottom: 3.5rem;
  max-width: 800px;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.4;
}

.outro__button {
  font-size: 1.375rem;
  padding: 1.25rem 3rem;
  margin-bottom: 30px;
}

/* ===== CONTACT PAGE ===== */
.contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 15px;
  display: flex;
  gap: 50px;
}

.contact__contacts,
.contact__info {
  flex: 1;
}

.contact__title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.connect-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
}

.connect-contact__item:hover {
  background: #e9ecef;
}

.connect-contact__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #343a40;
  border-radius: 50%;
  flex-shrink: 0;
}

.connect-contact__icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.connect-contant__type {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 1rem;
  color: #2c2c2c;
  line-height: 1.4;
}

.contact__links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.contact__link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 50%;
  transition: all 0.3s;
}

.contact__link:hover {
  background: #343a40;
}

.contact__link:hover img {
  filter: brightness(0) invert(1);
}

.contact__link img {
  width: 20px;
  height: 20px;
}

.contact__text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #343a40;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #2c2c2c;
  color: white;
  padding: 40px 0;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer__logo {
  color: white;
  font-size: 2rem;
  font-weight: 400;
  margin: 10px 0;
  line-height: 1.2;
}

.footer__policy {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer__policy:hover {
  color: white;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
  .services__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__container,
  .contact__container,
  .services-page__column {
    flex-direction: column;
    gap: 40px;
  }

  .title,
  .services__title,
  .services-page__title {
    font-size: 2.3rem;
  }

  .main__title,
  .outro__title {
    font-size: 3rem;
  }

  .about__content {
    text-align: center;
  }

  .about__button {
    display: inline-block;
  }

  /* Адаптация страницы товара */
  .product__gallery {
    grid-template-columns: 1fr;
  }

  .product__info {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .equipment__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
  .icon-menu {
    display: block;
  }

  .menu__body {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(44, 44, 44, 0.98);
    backdrop-filter: blur(10px);
    padding: 80px 20px 30px;
    flex-direction: column;
    justify-content: flex-start;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  body.menu-open .menu__body {
    right: 0;
  }

  .menu__list {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .menu__link {
    display: block;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }

  .header__logo {
    font-size: 1.8rem;
  }

  .main {
    margin-top: 60px;
  }

  .main__content {
    padding: 3rem 1.5rem;
  }

  .main__title {
    font-size: 2.5rem;
  }

  .main__caption {
    font-size: 1.5rem;
  }

  .outro__title {
    font-size: 2.5rem;
  }

  .title,
  .services__title,
  .services-page__title {
    font-size: 2rem;
  }

  .about__container,
  .services__container,
  .services-page__container,
  .contact__container {
    padding: 60px 15px;
  }

  .services__row {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .item-services__button {
    align-self: center;
    width: 100%;
    max-width: 200px;
  }

  .services-page__content {
    text-align: center;
  }

  .outro__text {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  .outro__button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  /* Адаптация страницы товара */
  .product {
    margin-top: 60px;
  }

  .product__title {
    font-size: 2.5rem;
  }

  .product__main-image img {
    height: 350px;
  }

  .product__thumbnail img {
    height: 150px;
  }

  .product__specs,
  .product__price-block,
  .product__description {
    padding: 30px 20px;
  }

  .product__price {
    font-size: 2.5rem;
  }

  .product__actions {
    flex-direction: column;
  }

  .equipment__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .header__logo {
    font-size: 1.5rem;
  }

  .main__title,
  .outro__title {
    font-size: 2rem;
  }

  .main__caption {
    font-size: 1.2rem;
  }

  .main__text {
    font-size: 1rem;
  }

  .title,
  .services__title,
  .services-page__title {
    font-size: 1.8rem;
  }

  .about__container,
  .services__container,
  .services-page__container,
  .contact__container {
    padding: 40px 15px;
  }

  .about__text,
  .services-page__text,
  .contact__text {
    font-size: 0.95rem;
  }

  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .item-services__image {
    height: 180px;
  }

  .item-services__title {
    font-size: 1.3rem;
  }

  .services-page__img img {
    height: 250px;
  }

  .connect-contact__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .connect-contact__icon {
    margin-bottom: 10px;
  }

  .contact__links {
    justify-content: center;
  }

  .footer__logo {
    font-size: 1.5rem;
  }

  .footer__policy,
  .footer__copyright {
    font-size: 0.8rem;
  }

  /* Адаптация страницы товара */
  .product__title {
    font-size: 2rem;
  }

  .product__main-image img {
    height: 250px;
  }

  .product__thumbnail img {
    height: 120px;
  }

  .product__specs-title,
  .product__description-title,
  .product__equipment-title {
    font-size: 1.5rem;
  }

  .product__price {
    font-size: 2rem;
  }

  .specs-list li {
    flex-direction: column;
    gap: 5px;
  }
}