/* =========================================================
   responsive.css
   Чиста мобільна + планшетна адаптація
   ========================================================= */

/* ---------------------------------------------------------
   iPad / планшет
   Піднімаємо hero-блок вище
   --------------------------------------------------------- */
@media only screen and (min-width: 768px) and (max-width: 1180px) {
  header {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 26px !important;
  }

  header::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 350px;
    height: 2px;
    background: rgba(0, 0, 0, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  header .logo {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    position: relative !important;
    left: 8px !important;
  }

  header .logo img {
    max-width: 72px !important;
    height: auto !important;
    display: block !important;
  }

  .burger-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-left: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 1002 !important;
    position: relative !important;
    right: 8px !important;
  }

  .burger-btn span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    background: #000 !important;
    transition: 0.25s ease !important;
  }

  header .menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    z-index: 1001 !important;
  }

  header .menu.open {
    display: block !important;
  }

  header .menu ul {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
  }

  header .menu ul li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }

  header .menu ul li:last-child {
    border-bottom: none !important;
  }

  header .menu ul li a {
    display: block !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
  }

  header .menu ul li span {
    display: none !important;
  }

  .burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .burger-btn.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .sec-1 .content {
    position: relative !important;
    left: 90px !important;
    transform: translateY(-250px) !important;
  }

  .sec-1 .ttl {
    margin-bottom: 30px !important;
  }

  .sec-1 p.light {
    margin-top: 40px !important;
    max-width: 560px !important;
  }

  .service-button {
    margin-top: 50px !important;
  }
}
/* ---------------------------------------------------------
   Базова мобільна адаптація до 768px
   --------------------------------------------------------- */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
  }

  header {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
  }

  header .logo {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
  }

  header .logo img {
    max-width: 110px !important;
    height: auto !important;
    display: block !important;
  }

  .burger-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-left: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 1002 !important;
  }

  .burger-btn span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    background: #000 !important;
    transition: 0.25s ease !important;
  }

  header .menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    z-index: 1001 !important;
  }

  header .menu.open {
    display: block !important;
  }

  header .menu ul {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
  }

  header .menu ul li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }

  header .menu ul li:last-child {
    border-bottom: none !important;
  }

  header .menu ul li a {
    display: block !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
  }

  header .menu ul li span {
    display: none !important;
  }

  .burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .burger-btn.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .content {
    box-sizing: border-box;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sec-1 {
    min-height: auto;
    background-position: center center;
    background-size: cover;
  }

  .sec-1 .content {
    padding: 210px 20px 50px;
  }

  .sec-1 .ttl {
    max-width: 100%;
  }

  .sec-1 .ttl h1 {
    font-size: 64px;
    line-height: 0.9;
    margin: 0 0 6px 0;
  }

  .sec-1 .ttl h2 {
    font-size: 30px;
    line-height: 0.95;
    margin: 0 0 18px 0;
  }

  .sec-1 p.light {
    max-width: 100%;
    width: 100%;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
    margin-top: 16px;
  }

  .service-button,
  .bot-button {
    display: inline-block;
    font-size: 15px;
    line-height: 1.2;
    padding: 12px 18px;
    margin-top: 18px;
  }

  .title h2 {
    font-size: 30px;
    line-height: 1.1;
  }

  .team,
  .grid,
  .equip-list,
  .photo-gallery,
  .topics {
    display: block;
  }

  .info,
  .photos,
  .left,
  .right,
  .column,
  .single-album,
  .album-grid {
    width: 100%;
  }

  .photos img,
  .album-grid img,
  .photo-gallery .right img {
    width: calc(50% - 8px);
    margin-bottom: 12px;
  }

  .photo-gallery .left img,
  .single-album img {
    width: 100%;
    height: auto;
  }

  .contacts {
    display: block;
    margin-bottom: 14px;
  }

  .contacts p,
  .contacts span {
    display: block;
  }

  .soc-net {
    margin-bottom: 12px;
  }

  .minimalism img,
  .bot-logo {
    max-width: 120px;
    height: auto;
  }

  .sec-2-sec .content,
  .sec-3 .content,
  .sec-4 .content,
  .sec-5 .content,
  .sec-6 .content,
  .sec-7 .content {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* ---------------------------------------------------------
   Телефон до 480px
   --------------------------------------------------------- */
@media (max-width: 480px) {
  header {
    padding: 18px 18px !important;
  }

  header .logo {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  header .logo img {
    max-width: 50px !important;
    height: auto !important;
    display: block !important;
  }

  .sec-1 {
    position: relative;
    overflow: hidden;
  }

  .sec-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.34) 42%,
      rgba(0, 0, 0, 0.16) 72%,
      rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .sec-1 .content {
    position: relative;
    z-index: 2;
    padding: 15px 1px 40px 1px !important;
  }

  .sec-1 .ttl {
    margin-left: -6px !important;
    max-width: 50% !important;
  }

  .sec-1 .ttl h1 {
    font-size: 10px !important;
    line-height: 0.9 !important;
    margin: 0 0 6px 0 !important;
    text-shadow:
      0 2px 10px rgba(0,0,0,0.45),
      0 1px 2px rgba(0,0,0,0.55);
  }

  .sec-1 .ttl h2 {
    font-size: 30px !important;
    line-height: 0.80 !important;
    margin: 0 0 16px 0 !important;
    text-shadow:
      0 2px 10px rgba(0,0,0,0.45),
      0 1px 2px rgba(0,0,0,0.55);
  }

  .sec-1 p.light {
    width: 80vw !important;
    max-width: 80vw !important;
    font-size: 16px !important;
    line-height: 1.42 !important;
    letter-spacing: 0 !important;
    margin-top: 18px !important;
    text-shadow:
      0 1px 8px rgba(0,0,0,0.50),
      0 1px 2px rgba(0,0,0,0.60);
  }

  .service-button {
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    font-size: 14px !important;
    padding: 11px 16px !important;
    margin-top: 18px !important;
  }
}
@media (min-width: 1181px) {
  header::after {
    width: 120px !important;
    height: 1px !important;
    left: 50% !important;
    background: rgba(0, 0, 0, 0.18) !important;
  }
}