* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
 
}
/* hero контейнер */
/* ======= Общие стили ======= */
header {
  min-height: 100vh;
  background: url('main_picture.webp') no-repeat center center/cover;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

.hero-image img {
  position: absolute;
  top: 20px;
  left: 60px;
  width: 60px;
}

/* Навигация */
.underline {
  padding: 25px 0;
  border-top: 0.1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 0.1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 1em;
  transition: 0.3s;
  font-weight: 100;
}

nav a span {
  color: #f57c00 !important;
}

nav a:hover {
  color: #f57c00;
}

/* ======= Герой ======= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ======= Заголовок (ранее .content) ======= */
.heading {
  position: relative;
  z-index: 2;
  border-left: 4px solid #ff9604;
  padding: 0px 20px;
  text-align: justify;
  transform: translateX(-200px);
  margin-bottom: 150px;
}

.heading h1 {
  font-size: 4.3em;
  text-transform: uppercase;
  color: white;
}

.heading h1 span {
  color: #ff9604;
}

.heading p {
  font-size: 2em;
  margin-top: 10px;
  font-weight: 100;
  color: white;
}

/* ======= Соцсети ======= */
.social-icons {
  position: absolute;
  bottom: 100px;
  right: 40px;
  display: flex;
  gap: 60px;
  z-index: 2;
}

.social-icons img {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}
.transparent-img {
    opacity: 0.5; /* Полупрозрачное изображение (50%) */
}

.social-icons img:hover {
  filter: invert(54%) sepia(93%) saturate(2801%) hue-rotate(18deg)
    brightness(100%) contrast(102%);
}

/* ======= Бургер ======= */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 10000;
  gap: 6px;
}

.burger span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* ======= Меню по умолчанию ======= */
/* ======= Меню по умолчанию ======= */
.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px; /* управляет расстоянием */
  position: relative;
}

/* Телефон в правом углу */
.header-phone {
  position: absolute;
  right: 40px;
  top: 45px;
  transform: translateY(-50%);
  margin: 0;
}

.header-phone a {
  color: #FD7E14;
  font-size: 1.2em;
  font-weight: 400;
  text-decoration: none;
}

.header-phone a:hover {
  color: white;
}

/* Показываем телефон только до 1080px */
@media (max-width: 1080px) {
  .header-phone {
    position: absolute;
    left: 50px;
    top: 300px;
    transform: translateY(-50%);
    margin: 0;
    display: block;
  }

  .header-phone a {
    color: #f57c00;
    font-size: 1.2em;
    font-weight: 400;
    text-decoration: none;
  }

  .header-phone a:hover {
    color: white;
  }

   .header-phone img {
    display: none;
  }
}

/* УБРАТЬ телефон на 768px и ниже */
@media (max-width: 768px) {
  .header-phone {
    display: none !important;
  }
}

/* УБРАТЬ телефон на 480px и ниже */
@media (max-width: 480px) {
  .header-phone {
    display: none !important;
  }
}

/* ==============================
   АДАПТАЦИЯ 769–1080
============================== */
@media (min-width: 769px) and (max-width: 1080px) {
  .burger {
    display: flex;
  }

  .underline {
    border: none;
  }

  nav.underline {
    display: none;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 80px 20px;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 9999;
  }

  .nav-menu.active {
    left: 0;
    display: flex;
  }

  .nav-menu .underline {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu a {
    color: white;
    font-size: 1.1em;
    text-decoration: none;
  }

  .nav-menu a:hover {
    color: orange;
  }

  .hero-image img {
    left: 30px;
    width: 50px;
  }

  .heading {
    transform: none;
    margin-bottom: 100px;
    padding: 15px;
  }

  .heading h1 {
    font-size: 3.2em;
    text-align: center;
  }

  .heading p {
    font-size: 2.2em;
    text-align: center;
  }
}

/* ==============================
   АДАПТАЦИЯ ДО 768
============================== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .underline {
    border: none;
  }

  .nav-menu {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
    transition: top 0.4s ease;
    z-index: 9999;
  }

  .nav-menu.active {
    top: 0;
  }

  .nav-menu .underline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .nav-menu a {
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    transition: color 0.3s;
  }

  .nav-menu a:hover {
    color: #f57c00;
  }

  .heading {
    transform: none;
    margin-bottom: 100px;
    padding: 10px;
  }

  .heading h1 {
    font-size: 2.5em;
    text-align: center;
  }

  .heading p {
    font-size: 1.2em;
    text-align: center;
  }

  .social-icons {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    bottom: 60px;
    right: 0;
  }

  .hero-image img {
    left: 25px;
    width: 50px;
  }
}

/* ==============================
   ДО 480px
============================== */
@media (max-width: 480px) {
  .hero-image img {
    left: 20px;
    width: 40px;
  }

  .nav-menu {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0;
  }

  .nav-menu a {
    font-size: 1em;
  }

  .heading h1 {
    font-size: 2em;
  }

  .heading p {
    font-size: 1em;
  }

  .social-icons img {
    width: 32px;
    height: 32px;
  }
}

@supports (-webkit-touch-callout: none) {
  header {
    background-attachment: scroll !important;
  }
}
/* ============================= */


    .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    padding: 50px 50px;
  }

  .card {
    background-color: #fff;
    width: 380px;
    height: 480px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
  flex-direction: column;
  align-items: center; /* Центрирование элементов по горизонтали */
  justify-content: space-between;
  }

  .card:hover {
    transform: translateY(-10px);
    transition: 0.5s;
  }

  .image-placeholder_one {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("photo_one.webp");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  .image-placeholder_two {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("photo_two.webp");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  .image-placeholder_three {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("photo_three.jpg");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  .image-placeholder_four {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("photo_four.jpg");
    background-size: cover; /* Изображение охватывает весь экран */
  }

   .image-placeholder_five {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("lance_for_article.jpg");
    background-size: cover; /* Изображение охватывает весь экран */
  }

   .image-placeholder_six {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("scheme.jpg");
    background-size: cover; /* Изображение охватывает весь экран */
  }

   .image-placeholder_seven {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("controller_for_blog.jpg");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  .image-placeholder_eight {
    width: 50%;
    height: 200px;
    background-color: #ccc;
    background-image: url("../motioncut/cutting_mashines/sensor.webp");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  .image-placeholder_nine {
    width: 100%;;
    height: 200px;
    background-color: #ccc;
    background-image: url("../motioncut/stanki/item7.webp");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  .image-placeholder_ten {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("../main/photo_13.webp");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  
  .image-placeholder_11 {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("../main/photo_10.webp");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  
  .image-placeholder_12 {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("chapaev.webp");
    background-size: cover; /* Изображение охватывает весь экран */
  }

  .image-placeholder_13 {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    background-image: url("remont.jpg");
    background-size: cover; /* Изображение охватывает весь экран */
  }


   .image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ccc;
  
  }

  .content {
    padding: 25px;
    text-align: center;
    
    
  }

  .title {
    font-weight: 200;
    margin-bottom: 10px;
    font-size: 1em;
  }

  .headline {
    font-size: larger;
  }

  .description {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
  }

  .button {
    display: flex;
  justify-content: center;
  margin: 0 auto;
    padding: 10px 25px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    
  }

  .button a {
    text-decoration: none;
    color: #ffffff;
  }

  .read-more {
    background-color: #EF8413;
    color: #fff;
  }

  .read-more:hover {
    background-color: #d37007;
    transition: 0.5s;
  }

@media (max-width: 480px) {
  .container {
    grid-template-columns: 1fr; /* Одна колонка на маленьких экранах */
    gap: 20px; /* Меньший зазор */
    padding: 20px; /* Меньшие отступы */
  }
  .card {
    width: 100%; /* Карточка занимает всю ширину контейнера */
    height: auto; /* Высота автоматически подстраивается */
  }
  .image-placeholder {
    height: 150px; /* Меньшая высота изображений */
  }
  .content {
    padding: 15px;
  }
  .title {
    font-size: small;
  }
  .headline {
    font-size: large;
  }
  .description {
    font-size: 13px;
  }
  .button {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  /* Планшеты */
  .container {
    grid-template-columns: repeat(2, 1fr); /* Две колонки */
    gap: 40px;
    padding: 30px;
  }
  .card {
    width: 100%;
    height: auto;
  }
  .image-placeholder {
    height: 180px;
  }
  .content {
    padding: 20px;
  }
  .title {
    font-size: small;
  }
  .headline {
    font-size: large;
  }
  .description {
    font-size: 13px;
  }
  .button {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (min-width: 769px) and (max-width: 1080px) {
  /* Средние экраны */
  .container {
    grid-template-columns: repeat(3, 1fr); /* Три колонки */
    gap: 60px;
    padding: 40px;
  }
  .card {
    width: 100%;
    height: auto;
  }
  .image-placeholder {
    height: 200px;
  }
  .content {
    padding: 20px;
  }
  .title {
    font-size: small;
  }
  .headline {
    font-size: larger;
  }
  .description {
    font-size: 14px;
  }
  .button {
    padding: 10px 25px;
    font-size: 14px;
  }
}



        /* Footer Styles */
.footer {
    background-color: #333;
    color: #eee;
    padding: 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    
}

.footer-section {
    width: 23%; /* 4 колонки */
    padding: 10px;
    text-align: left;
    box-sizing: border-box;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-family: "Roboto", sans-serif;
}

.footer-section a {
    color: #eee;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    font-family: "Roboto", sans-serif;
    line-height: 30px;
    font-weight: 300;
}

.footer-section a:hover {
    color: #f57c00;
}

.footer-section p {
    line-height: 26px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 25px;
    font-size: 0.8em;
}


.footer-bottom a {
    color:#f57c00;
    text-decoration: none;
}

/* Tablets — 2 колонки */
@media (max-width: 768px) {
    .footer-section {
        width: 48%;
        text-align: center;
    }
}

/* Phones — 1 колонка */
@media (max-width: 480px) {
    .footer-section {
        width: 100%;
        text-align: left;
    }
    .footer-section a,
    .footer-section p {
        font-size: 0.9em;
    }
}

/* ===== БАЗОВАЯ КНОПКА ===== */
.tg-question-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;

  display: flex;
  align-items: center;
  gap: 10px;

  background-color: #0088cc;
  color: #fff;

  padding: 14px 18px;
  border-radius: 50px;

  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* появление */
.tg-question-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== ИКОНКА ===== */
.tg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-icon img {
  width: 100%;
  height: 100%;
  display: block;
    transition: transform 0.3s ease;
}

/* ===== ТЕКСТ ===== */
.tg-text {
  white-space: nowrap;
}

/* Поворот иконки при hover */
@media (hover: hover) {
  .tg-question-btn:hover .tg-icon img {
    transform: rotate(-12deg) scale(1.05);
  }
}

/* ===== HOVER (desktop) ===== */
@media (hover: hover) {
  .tg-question-btn:hover {
    background-color: #0095e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
}

/* ================================================= */
/* ===== MOBILE ≤ 480px : ИДЕАЛЬНЫЙ КРУГ ===== */
/* ================================================= */

@media (max-width: 480px) {

  .tg-question-btn {
    right: 14px;
    bottom: 14px;

    width: 56px;
    height: 56px;
    padding: 0;

    border-radius: 50%;

    justify-content: center;
  }

  .tg-text {
    display: none;
  }

  .tg-icon {
    width: 20px;
    height: 20px;
  }
}


/* PAGES */

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination .page {
  padding: 8px 14px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.page:hover {
background:#ff9604;
color: white;
transition: 0.3s;
}
.pagination .page.active {
  background:#ff9604;
  color: #fff;
  cursor: default;
  transition: 0.3s;
}

.pagination .page:hover {
  background:#f57c00;
}
