﻿@media (max-width: 1790px) {
  .in_right_item span {
    font-size: 15px;
  }
  .serv_item h3 {
    font-size: 16px;
  }
  h3,
  :where(main) h2:not(:where(.service_section h2)) {
    font-size: 30px;
  }
  .w_heights_text p {
    font-size: 14px;
  }
  .in_right_item {
    min-width: 353px;
  }

  .w_400,
  .w_820,
  .h_560px {
    max-width: none;
  }
}

@media (min-width: 1000px) and (max-width: 1790px) {
  .w_400,
  .w_820,
  .h_560px {
    flex: 400 1 0;
    min-width: 0;
    max-width: none;
    height: auto;
  }
  .w_820,
  .h_560px {
    flex-grow: 820;
  }
  .w_400,
  .w_820 {
    min-height: clamp(240px, 19.792vw, 380px);
    max-height: clamp(240px, 19.792vw, 380px);
  }
  .h_560px {
    min-height: clamp(320px, 29.167vw, 560px);
    max-height: clamp(320px, 29.167vw, 560px);
  }
  .gallery_item {
    min-width: 0;
  }
  .gallery_info {
    gap: clamp(12px, 0.99vw, 19px);
  }
  .gallery_text {
    min-width: 0;
  }

  .gallery::after {
    width: clamp(500px, 39.896vw, 766px);
    height: clamp(500px, 39.896vw, 766px);
  }
}
@media (max-width: 1125px) {
  .btn_orange,
  .btn_transp {
    padding: 12px 28px;
  }
  .calc_info p {
    text-align: center;
  }
  .about_item span {
    font-size: 12px;
  }
  .about_info {
    flex: 1 1;
  }
}
@media (max-width: 1360px) {
  .w_heights_img img {
    max-width: 476px;
  }
}
@media (max-width: 1367px) {
  .serv_item h3 {
    font-size: 14px !important;
  }
  .size_80 {
    font-size: 55px !important;
    min-height: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
  }
  .about_img img {
    max-width: 415px;
    max-height: 667px;
  }
}
@media (min-width: 1200px) {
  .nav-toggle,
  .nav-toggle-label,
  .nav-backdrop {
    display: none;
  }
  .logo {
    display: flex;
    align-items: center;
    max-width: min(440px, 22.9vw);
    max-height: none;
  }
  .logo img {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) {
  :root {
    --nav-panel-width: 320px;
    --nav-cta-padding-y: 18px;

    --burger-w: 28px;
    --burger-h: 22px;
    --burger-bar-h: 3px;
    --burger-bar-w: 26px;
    --burger-shift: calc((var(--burger-h) - var(--burger-bar-h)) / 2);
  }

  .nav-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
  }
  .nav-toggle-label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--burger-w);
    height: var(--burger-h);
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle:checked + .nav-toggle-label {
    position: fixed;
    top: 24px;
    right: 30px;
  }

  .nav-backdrop {
    display: none;
  }
  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 25, 44, 0.65);
    z-index: 999;
    cursor: pointer;
  }

  body:has(.nav-toggle:checked) {
    overflow: hidden;
  }

  .nav-toggle-label span {
    display: block;
    width: var(--burger-bar-w);
    height: var(--burger-bar-h);
    background-color: var(--grey);
    margin: 0;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .head_list {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--nav-panel-width);
    max-width: 90vw;
    height: 100vh;
    margin: 0;
    padding: 90px 30px 110px;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    background: var(--blue);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
  }
  .head_list li {
    font-size: 18px;
  }
  .nav-toggle:checked + .nav-toggle-label + .head_list {
    right: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(var(--burger-shift)) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(calc(-1 * var(--burger-shift))) rotate(-45deg);
  }

  .intro > header.head {
    position: relative;
    z-index: 30;
  }

  .head_btn {
    display: none;
  }
  .nav-toggle:checked ~ .head_btn {
    display: block;
    position: fixed;
    bottom: 30px;
    left: 0;
    width: var(--nav-panel-width);
    max-width: 90vw;
    padding: 0 30px;
    z-index: 1001;
  }
  .nav-toggle:checked ~ .head_btn .btn_orange {
    width: 100%;
    text-align: center;
    padding: var(--nav-cta-padding-y) 12px;
    font-size: 15px;
  }

  .w_400,
  .w_820,
  .h_560px {
    flex: 400 1 0;
    min-width: 0;
    max-width: none;
    height: auto;
  }
  .w_820,
  .h_560px {
    flex-grow: 820;
  }
  .w_400,
  .w_820 {
    min-height: clamp(240px, 19.792vw, 380px);
    /* max-height: clamp(240px, 19.792vw, 380px); */
  }
  .h_560px {
    min-height: clamp(320px, 29.167vw, 560px);
    /* max-height: clamp(320px, 29.167vw, 560px); */
  }
  .gallery_item {
    min-width: 0;
  }
  .gallery_info {
    gap: clamp(12px, 0.99vw, 19px);
  }
  .gallery_text {
    min-width: 0;
  }

  .gallery::after {
    width: clamp(500px, 39.896vw, 766px);
    height: clamp(500px, 39.896vw, 766px);
  }
}

@media (min-width: 1366px) {
  .footer_list {
    flex-shrink: 0;
  }
}

@media (max-width: 1365px) {
  .container,
  .container_1300 {
    padding-left: 60px;
    padding-right: 60px;
  }

  .main_bg {
    max-width: 100%;
    height: auto;
  }

  .head {
    padding-top: 28px;
  }
  .head_list {
    gap: 16px;
  }
  .head_list li {
    font-size: 16px;
  }
  .btn_orange.btn_head {
    padding: 20px 28px;
  }
  .logo img {
    max-width: 100%;
    height: auto;
  }
  .footer_top img {
    max-width: min(250px, 100%);
    height: auto;
  }

  .intro_info {
    margin-top: 80px;
  }
  .intro_left :is(h1, h2) {
    font-size: 40px;
  }
  .intro_left p {
    font-size: 22px;
  }
  .in_left_item span {
    font-size: 17px;
  }
  .in_right_item span {
    font-size: 12px;
  }
  .in_right_item {
    min-width: 340px;
    max-width: 340px;
  }
  .in_right_item img {
    max-width: 96px;
    max-height: 96px;
  }
  .in_left_item i,
  .in_right_item i,
  .intro_private i {
    flex: 0 0 auto;
  }
  .in_left_item .size_80,
  .in_right_item .size_80 {
    font-size: 54px !important;
    width: 54px !important;
    height: 54px !important;
  }
  .intro_private {
    width: 100%;
    min-width: 0;
    max-width: min(622px, 100%);
  }
  .serv_item h3 {
    font-weight: 600;
    font-size: 16px;
  }
  .intro_private .size_72 {
    font-size: 60px !important;
    width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
  }
  /* .in_left_items {
    flex-wrap: wrap;
  } */
  .btn_white {
    font-size: 16px;
  }

  .serv_item img,
  .serv_car_item img {
    width: 100%;
    height: 278px;
    object-fit: cover;
  }
  .btn_white {
    min-width: 0;
    max-width: min(384px, 100%);
    width: 100%;
    min-height: clamp(56px, 3.75vw, 72px);
    max-height: none;
    padding: 22px 12px;
    text-align: center;
  }

  .w_heights_items {
    gap: 60px;
  }

  .about {
    gap: 60px;
  }

  .portf_item img {
    max-width: min(290px, 100%);
  }
  .portf_categories {
    flex-wrap: wrap;
    gap: 12px;
  }
  .portf_category {
    gap: clamp(10px, 1.042vw, 20px);
    flex-wrap: wrap;
  }
  .btn_portf {
    padding: 8px clamp(14px, 1.25vw, 24px);
  }

  .rev_items {
    gap: clamp(16px, 2.083vw, 40px);
  }
  .rev_item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 527px;
  }

  .contacts {
    gap: clamp(40px, 8.333vw, 160px);
  }
  .contacts_info {
    min-width: 0;
  }
  .contacts_img {
    flex: 0 1 678px;
    min-width: 0;
  }
  .contacts_img img {
    width: 100%;
    min-width: 0;
    max-width: 678px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  /* Footer */
  .footer_center {
    gap: 50px;
  }
  .footer_top {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
  }
  .white {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 1199px) {
  .container,
  .container_1300 {
    padding-left: 30px;
    padding-right: 30px;
  }
  .stages_items {
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 16px;
    gap: 28px 16px;
  }
  /* Header */
  .head {
    padding-top: 24px;
  }
  .logo {
    max-width: 220px;
  }
  .head_list {
    gap: 12px;
  }
  .head_list li {
    font-size: 15px;
  }

  .intro_info {
    gap: 40px;
    margin-top: 60px;
  }
  .intro_left {
    width: 100%;
  }

  .intro_left p {
    width: 57%;
    font-size: 17px;
  }

  .intro_left :is(h1, h2) {
    font-size: 48px;
  }
  /* .in_left_items {
    flex-wrap: wrap;
  } */
  .in_left_item {
    padding: 8px 16px 8px 8px;
  }
  .intro_private {
    min-width: 100%;
    max-width: 100%;
  }

  .in_right_item {
    min-width: 265px;
    max-width: 100%;
  }
  .in_right_item img {
    max-width: 68px;
    max-height: 116px;
  }

  .serv_items {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    margin: 0 auto;
  }
  .serv_item img,
  .serv_car_item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .btn_white {
    min-width: auto;
    max-width: 100%;
    max-height: none;
    padding: 18px 20px;
    font-size: 15px;
  }
  .btn_orange {
    font-size: 16px;
    padding: 19px 20px;
  }
  .btn_transp {
    font-size: 16px;
    padding: 17px 44px;
  }
  .w_heights {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .w_heights_items {
    gap: 40px;
    align-items: center;
  }
  .w_heights_text p {
    width: 100%;
  }
  .w_heights_text,
  .w_heights_img {
    flex: 1 1;
  }
  .w_heights_img img {
    max-width: 100%;
    max-height: none;
  }

  .portf_items {
    grid-template-columns: 1fr;
  }
  .portf_item img {
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    max-width: min(290px, 100%);
    height: auto;
    max-height: none;
  }
  .portf_text p {
    font-size: 13px;
  }
  .about_info {
    flex: 1 1;
  }
  .about {
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .about_img img {
    max-width: 100%;
  }
  .about_info p {
    width: 100%;
  }

  .contacts {
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .contacts_img img {
    max-width: 100%;
  }

  .rev_item {
    min-width: auto;
    max-width: 100%;
  }

  /* Calc */
  .calc {
    padding-top: 60px;
    padding-bottom: 60px;
    background-position: bottom center;
  }

  .footer_top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .footer_center {
    gap: 80px;
  }
  .footer_btns {
    align-items: center;
  }
}
@media (max-width: 1199px) {
  .tape_item h3 {
    font-weight: 600;
    font-size: 18px;
  }
  .tape_item p {
    font-weight: 600;
    font-size: 15px;
  }
  .tape_top {
    gap: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .btn_portf {
    font-size: 16px !important;
    padding: 9px 40px !important;
  }
}
@media (max-width: 1160px) {
  .tape_items {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 1000px) {
  .btn_portf {
    min-width: 140px !important;
  }
  .tape_item {
    padding-bottom: 35px;
  }
}
@media (max-width: 760px) {
  .tape_item img {
    max-width: 400px;
    max-height: 190px;
  }
}
@media (max-width: 1000px) {
  :is(h1, h2) {
    font-size: 40px;
  }
  h3,
  :where(main) h2:not(:where(.service_section h2)) {
    font-size: 28px;
  }
  .size_100 {
    font-size: 80px !important;
    width: 80px !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
  }
  .worth_item {
    max-width: none;
  }
  .worth {
    padding-bottom: 60px;
    padding-top: 60px;
  }
  /* Header */
  .head_list {
    gap: 10px;
  }
  .head_list li {
    font-size: 14px;
  }
  .intro_left :is(h1, h2) {
    font-size: 40px;
    line-height: 115%;
  }

  .in_left_item span {
    font-size: 16px;
  }
  .in_right_item span {
    font-size: 14px;
  }

  .intro_left p {
    font-size: 15px;
    width: 70%;
  }
  .btn_transp {
    padding: 10px 30px;
  }
  .size_60 {
    font-size: 46px !important;
    width: 45px !important;
    height: 45px !important;
  }
  .in_right_item {
    min-width: 250px;
    max-width: 100%;
    padding: 4px 0px 4px 5px;
  }
  .main_bg {
    max-width: none;
  }
  /* Services */
  .serv_item h3 {
    font-size: 22px;
  }

  /* Portfolio */
  .portf_category {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .btn_portf {
    padding: 6px 20px;
    font-size: 14px;
  }
  .portf_text h3 {
    font-size: 17px;
  }

  /* Contacts */
  .contacts_text a,
  .contacts_text p {
    font-size: 20px;
  }
  .contacts_item i {
    font-size: 50px !important;
  }
  .contacts_item .size_63 {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .in_left_item .size_80,
  .in_right_item .size_80,
  .about_item .size_80,
  .intro_private .size_72 {
    font-size: 56px !important;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
  .contacts_text span {
    font-size: 16px;
  }

  /* Reviews */
  .rev_text {
    font-size: 16px;
  }

  /* Footer */
  .footer_list li {
    font-size: 14px;
  }
  .footer_contacts p,
  .footer_contacts a {
    font-size: 14px;
  }
  .white {
    width: 45px;
    height: 45px;
  }
}

@media (min-width: 1366px) and (max-width: 1919px) {
  .container {
    padding-left: clamp(48px, 6.771vw, 130px);
    padding-right: clamp(48px, 6.771vw, 130px);
  }
  .container_1300 {
    padding: 40px 130px;
  }

  .main_bg {
    max-width: 100%;
    height: 100%;
  }

  .logo {
    max-width: min(440px, 22.9vw);
  }
  .head_list {
    gap: clamp(10px, 1.042vw, 20px);
  }
  .btn_orange.btn_head {
    padding: clamp(18px, 1.198vw, 23px) clamp(20px, 1.667vw, 32px);
  }

  .intro_left {
    min-width: 0;
  }
  .in_left_items {
    flex-wrap: wrap;
  }
  .in_left_item i,
  .in_right_item i,
  .intro_private i {
    flex: 0 0 auto;
  }
  .in_left_item .size_80,
  .in_right_item .size_80 {
    font-size: clamp(56px, 4.167vw, 80px) !important;
    width: clamp(56px, 4.167vw, 80px);
    height: clamp(56px, 4.167vw, 80px);
  }
  .intro_private .size_72 {
    font-size: clamp(50px, 3.75vw, 72px) !important;
    width: clamp(50px, 3.75vw, 72px);
    min-width: clamp(50px, 3.75vw, 72px);
    height: clamp(50px, 3.75vw, 72px);
    min-height: clamp(50px, 3.75vw, 72px);
  }
  .intro_private {
    width: 100%;
    min-width: 0;
    max-width: min(622px, 100%);
  }
  .intro_right {
    flex: 0 0 auto;
    width: clamp(300px, 22.083vw, 424px);
  }
  .in_right_item {
    width: 100%;
    max-width: 100%;
  }
  .in_right_item img {
    max-width: clamp(84px, 6.042vw, 116px);
    max-height: clamp(84px, 6.042vw, 116px);
  }
  .in_right_item span {
    margin-right: clamp(8px, 1.042vw, 20px);
  }

  .serv_item img,
  .serv_car_item img {
    width: 100%;
    height: clamp(196px, 14.479vw, 278px);
    object-fit: cover;
  }
  .btn_white {
    min-width: 0;
    max-width: min(384px, 100%);
    width: 100%;
    min-height: clamp(56px, 3.75vw, 72px);
    max-height: none;
    padding: 22px 12px;
    text-align: center;
  }

  .w_heights_items,
  .about {
    gap: clamp(32px, 4.167vw, 80px);
  }
  .w_heights_text,
  .about_info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .w_heights_img,
  .about_img {
    flex: 0 0 clamp(420px, 32.083vw, 616px);
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .w_heights_img img,
  .about_img img {
    width: 100%;
    max-width: 616px;
    height: auto;
    align-self: flex-start;
  }

  /* --- Portfolio --- */
  .portf_item img {
    max-width: min(290px, 100%);
  }
  .portf_category {
    gap: clamp(10px, 1.042vw, 20px);
  }
  .btn_portf {
    padding: clamp(6px, 0.417vw, 8px) clamp(14px, 1.25vw, 24px);
  }

  .rev_items {
    gap: clamp(16px, 2.083vw, 40px);
  }
  .rev_item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 527px;
  }

  .contacts {
    gap: clamp(40px, 8.333vw, 160px);
  }
  .contacts_info {
    min-width: 0;
  }
  .contacts_img {
    flex: 0 1 678px;
    min-width: 0;
  }
  .contacts_img img {
    width: 100%;
    min-width: 0;
    max-width: 678px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  /* --- Stages --- */
  .stages {
    padding-top: clamp(56px, 4.167vw, 80px);
    padding-bottom: clamp(56px, 4.167vw, 80px);
    gap: clamp(12px, 1.042vw, 20px);
  }
  .stages .orange_tag {
    font-size: clamp(18px, 1.25vw, 24px);
  }
  .stages .custom-dash {
    width: clamp(24px, 2.083vw, 40px);
    margin-right: clamp(12px, 1.042vw, 20px);
  }
  .stages_items {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: clamp(12px, 1.042vw, 20px);
    gap: clamp(28px, 2.083vw, 40px) clamp(12px, 1.042vw, 20px);
  }
  .stages_item {
    flex: 1 1 300px;
    width: auto;
    max-width: 332px;
    min-width: 0;
  }
  .stages_text {
    gap: clamp(8px, 0.625vw, 12px);
    padding-top: clamp(8px, 0.625vw, 12px);
  }
  .stages .num {
    padding: clamp(3px, 0.208vw, 4px) clamp(9px, 0.625vw, 12px);
    font-size: clamp(17px, 0.938vw, 18px);
  }
  .stages_item h3 {
    font-size: clamp(22px, 1.25vw, 24px);
  }
  .stages_item p {
    font-size: clamp(17px, 0.938vw, 18px);
  }

  /* --- Footer --- */
  .footer_top img {
    max-width: clamp(210px, 15.26vw, 293px);
  }
  .footer_center {
    gap: clamp(32px, 4.167vw, 80px);
  }
  .white {
    width: clamp(44px, 3.125vw, 60px);
    height: clamp(44px, 3.125vw, 60px);
  }
}

@media (min-width: 1200px) and (max-width: 1365px) {
  .stages {
    padding-top: clamp(48px, 4.167vw, 60px);
    padding-bottom: clamp(48px, 4.167vw, 60px);
    gap: 16px;
  }
  .stages .orange_tag {
    font-size: 18px;
  }
  .stages .custom-dash {
    width: 28px;
    margin-right: 14px;
  }
  .stages_items {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    gap: 28px 16px;
  }
  .stages_item {
    flex: 1 1 300px;
    width: auto;
    max-width: 332px;
    min-width: 0;
  }
  .stages_text {
    gap: 10px;
    padding-top: 10px;
  }
  .stages .num {
    padding: 3px 10px;
    font-size: 17px;
    max-width: 46px;
  }
  .stages_item h3 {
    font-size: 22px;
  }
  .stages_item p {
    font-size: 17px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .nav-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
  }

  .intro > header.head {
    position: relative;
    z-index: 30;
  }
  .nav-toggle-label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle:checked + .nav-toggle-label {
    position: fixed;
    top: 24px;
    right: 30px;
  }

  .nav-backdrop {
    display: none;
  }
  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 25, 44, 0.65);
    z-index: 999;
    cursor: pointer;
  }

  body:has(.nav-toggle:checked) {
    overflow: hidden;
  }
  .nav-toggle-label span {
    display: block;
    width: var(--burger-bar-w);
    height: var(--burger-bar-h);
    background-color: var(--grey);
    margin: 0;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }
  .head_list {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--nav-panel-width);
    max-width: 90vw;
    height: 100vh;
    margin: 0;
    padding: 90px 30px 110px;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    background: var(--blue);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
  }
  .head_list li {
    font-size: 18px;
  }
  .nav-toggle:checked + .nav-toggle-label + .head_list {
    right: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(var(--burger-shift)) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(calc(-1 * var(--burger-shift))) rotate(-45deg);
  }

  .head_btn {
    display: none;
  }
  .nav-toggle:checked ~ .head_btn {
    display: block;
    position: fixed;
    bottom: 30px;
    left: 0;
    width: var(--nav-panel-width);
    max-width: 90vw;
    padding: 0 30px;
    z-index: 1001;
  }
  .nav-toggle:checked ~ .head_btn .btn_orange {
    width: 100%;
    text-align: center;
    padding: var(--nav-cta-padding-y) 12px;
    font-size: 15px;
  }
}

.footer_top img {
  flex: 0 0 auto;
  align-self: flex-start;
  height: auto;
  max-height: none;
}

@media (min-width: 1366px) and (max-width: 1919px) {
  .gallery {
    --gallery-gap: clamp(12px, 0.99vw, 19px);
    padding-top: clamp(56px, 4.167vw, 80px);
    padding-bottom: clamp(56px, 4.167vw, 80px);
    gap: clamp(14px, 1.042vw, 20px);
  }
  .gallery_img {
    gap: var(--gallery-gap);
    justify-content: center;
  }
  .gallery_one,
  .gallery_two {
    gap: var(--gallery-gap);
  }

  .w_400,
  .w_820,
  .h_560px {
    flex: 400 1 0;
    min-width: 0;
    max-width: none;
    height: auto;
  }
  .w_820,
  .h_560px {
    flex-grow: 820;
  }
  .w_400,
  .w_820 {
    min-height: clamp(240px, 19.792vw, 380px);
    max-height: clamp(240px, 19.792vw, 380px);
  }
  .h_560px {
    min-height: clamp(320px, 29.167vw, 560px);
    max-height: clamp(320px, 29.167vw, 560px);
  }
  .gallery_item {
    min-width: 0;
  }
  .gallery_info {
    gap: var(--gallery-gap);
  }
  .gallery_text {
    min-width: 0;
    gap: clamp(14px, 1.042vw, 20px);
  }
  .gallery_year span {
    font-size: clamp(14px, 0.938vw, 18px);
  }
  .gallery_text_bott {
    gap: clamp(14px, 1.042vw, 20px);
  }
  .gallery_text_bott h4 {
    font-size: clamp(18px, 1.25vw, 24px);
  }
  .gallery_text_bott p {
    font-size: clamp(14px, 0.938vw, 18px);
  }
  .gallery::after {
    width: clamp(500px, 39.896vw, 766px);
    height: clamp(500px, 39.896vw, 766px);
  }
}

@media (min-width: 1200px) and (max-width: 1365px) {
  .gallery {
    --gallery-gap: 12px;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 16px;
  }
  .gallery_img {
    gap: var(--gallery-gap);
    justify-content: center;
  }
  .gallery_one,
  .gallery_two {
    gap: var(--gallery-gap);
  }
  .w_400,
  .w_820,
  .h_560px {
    flex: 400 1 0;
    min-width: 0;
    max-width: none;
    height: auto;
  }
  .w_820,
  .h_560px {
    flex-grow: 820;
  }
  .w_400,
  .w_820 {
    min-height: 300px;
    max-height: 250px;
  }
  .h_560px {
    min-height: 360px;
    max-height: 360px;
  }
  .gallery_item {
    min-width: 0;
  }
  .gallery_info {
    padding: 16px;
    gap: var(--gallery-gap);
  }
  .gallery_text {
    min-width: 0;
    gap: 16px;
  }
  .gallery_year span {
    font-size: 15px;
  }
  .gallery_text_bott {
    gap: 16px;
  }
  .gallery_text_bott h4 {
    font-size: 19px;
  }
  .gallery_text_bott p {
    font-size: 15px;
  }
  .gallery::after {
    width: 560px;
    height: 560px;
  }
}

@media (max-width: 1700px) {
  .clients_i {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    gap: 30px;
  }
}
@media (max-width: 1780px) {
  .tape_items {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }
  .tape_item img {
    max-width: 100%;
    object-fit: cover;
  }
  .tape_items > * {
    flex: 0 0 calc((100% - 2 * 20px) / 3);
    box-sizing: border-box;
  }
}
@media (max-width: 1620px) {
  .worth_items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    gap: 20px;
    justify-content: center;
  }
  .worth_item {
    max-width: 100%;
  }
}
@media (max-width: 1200px) {
.footer_btns {
  align-items: center;
}
}
@media (max-width: 1155px) {
  .gallery_img {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(
      240px,
      19.792vw,
      380px
    ); 
    gap: 8px; 
  }

  .gallery_item {
    position: relative; 
    overflow: hidden; 
    min-height: 0; 
  }

 
  .gallery_item img,
  .gallery_img > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;

    
    flex: none;
    min-width: 0;
    max-width: none;
    min-height: 0;
  }
}

.br_470 {
  display: none;
}

.serv_car_arrow:hover {
  color: var(--orange);
  transform: translateY(-50%) scale(1.08);
}

/* .conn_footer {
  display: none;
} */
@media (max-width: 1000px) {
  .intro_btns {
    flex-wrap: wrap;
    gap: 22px;
  }
  .btn_orange,
  .btn_transp {
    padding: 12px 26px;
    min-width: 280px;
    text-align: center;
  }
  .intro_private {
    min-width: 288px;
    max-width: 82%;
  }
  .clients_logo img {
    max-width: 230px;
  }
}
@media (max-width: 850px) {
  .btn_white {
    padding: 18px 16px;
  }
  .intro_left p {
    font-size: 15px;
    width: 87%;
  }
  .dn_850 {
    display: none;
  }
  .w_heights_items {
    flex-direction: column;
  }
  .w_heights_img img {
    max-width: 400px;
  }
  .dn_850 {
    display: none;
  }
  .about_item .size_80 {
    font-size: 25px !important;
    min-height: 22px !important;
    min-width: 20px !important;
    height: 25px !important;
    max-width: 25px !important;
  }
  .about_img {
    flex: 1 1;
  }
  .rev_items {
    flex-direction: column;
  }
  .intro_left {
    gap: 25px;
  }
}
@media (max-width: 800px) {
  .intro_left {
    gap: 25px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .in_right_item {
    justify-content: center;
  }
  .in_right_item:nth-child(3) {
    margin: 0 50% !important;
    align-self: center !important;
  }
}
@media (max-width: 780px) {
  :root {
    --nav-panel-width: 325px;
    --nav-cta-padding-y: 13px;
  }

  .nav-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
  }
  .nav-toggle-label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--burger-w);
    height: var(--burger-h);
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle:checked + .nav-toggle-label {
    position: fixed;
    top: 24px;
    right: 30px;
  }

  .nav-backdrop {
    display: none;
  }
  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 25, 44, 0.65);
    z-index: 999;
    cursor: pointer;
  }

  body:has(.nav-toggle:checked) {
    overflow: hidden;
  }
  .nav-toggle-label span {
    display: block;
    width: var(--burger-bar-w);
    height: var(--burger-bar-h);
    background-color: var(--grey);
    margin: 0;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .head_list {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--nav-panel-width);
    max-width: 90vw;
    height: 100vh;
    margin: 0;
    padding: 80px 30px 110px;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    background: var(--blue);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
  }
  .nav-toggle:checked + .nav-toggle-label + .head_list {
    right: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(var(--burger-shift)) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(calc(-1 * var(--burger-shift))) rotate(-45deg);
  }

  .head_btn {
    display: none;
  }
  .nav-toggle:checked ~ .head_btn {
    display: block;
    position: fixed;
    bottom: 30px;
    left: 0;
    width: var(--nav-panel-width);
    max-width: 90vw;
    padding: 0 30px;
    z-index: 1001;
  }
  .nav-toggle:checked ~ .head_btn .btn_orange {
    width: 100%;
    text-align: center;
    padding: var(--nav-cta-padding-y) 12px;
    font-size: 14px;
  }

  .intro > header.head {
    position: relative;
    z-index: 30;
    padding-top: 20px;
  }

  /* --- Intro --- */

  .intro_info {
    flex-direction: column;
    justify-content: flex-start;
  }
  .intro_left :is(h1, h2) {
    font-size: 34px;
  }
  .intro_left p {
    font-size: 17px;
    width: 100%;
  }
  .intro_btns {
    gap: 15px;
  }
  .portfolio_btns {
    align-items: center;
  }
  .intro_btn_p {
    padding: 12px 60px;
    text-align: center;
  }
  .in_left_items {
    flex-direction: column;
    gap: 10px;
  }
  .in_left_item {
    flex: none;
    width: 100%;
    padding: 8px 12px 8px 8px;
  }
  .in_left_item i {
    min-width: 56px;
  }

  .in_left_item .size_80,
  .in_right_item .size_80,
  .about_item .size_80,
  .intro_private .size_72 {
    font-size: 50px !important;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
  .in_left_item span {
    font-size: 15px;
  }
  .intro_private {
    min-width: 100%;
    max-width: 100%;
    padding: 10px;
  }
  .intro_right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .in_right_item {
    min-width: 100%;
    max-width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding: 4px 8px;
  }
  .in_right_item img {
    max-width: 80px;
    max-height: 80px;
  }
  .in_right_item span {
    font-size: 15px;
  }

  .in_right_item:hover,
  .serv_item:hover,
  .rev_item:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .serv_items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
  }
  .serv_item img,
  .serv_car_item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .serv_item h3 {
    font-size: 20px;
  }

  .w_heights {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .serv_car_arrow_prev {
    left: -23px;
  }
  .serv_car_arrow_next {
    right: -23px;
  }

  .portf_item {
    gap: 15px;
  }
  .portf_item img {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .portf_text h3 {
    font-size: 16px;
  }
  .portf_text p {
    font-size: 11px;
  }
  .gallery_top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  /* --- About --- */
  .about {
    padding-top: 50px;
    padding-bottom: 50px;
    flex-direction: column-reverse;
  }
  .about_img img {
    max-width: 400px;
  }
  .about_item {
    gap: 8px;
  }
  .about_item .size_80 {
    font-size: 50px !important;
    min-height: 50px !important;
    min-width: 50px !important;
  }
  .about_item span {
    font-size: 15px;
  }

  /* --- Contacts --- */
  .contacts {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .contacts_text a,
  .contacts_text p {
    font-size: 17px;
  }
  .contacts_item {
    gap: 8px;
  }
  .contacts_item i {
    font-size: 40px !important;
  }
  .contacts_item .size_63 {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  /* --- Reviews --- */
  .rev_items {
    gap: 16px;
  }
  .rev_item {
    padding: 16px;
  }
  .rev_text {
    font-size: 15px;
    max-height: 150px;
  }
  .rev_text.expanded {
    max-height: 1000px;
  }
  .rev_autor span {
    font-size: 11px;
  }

  /* --- Footer --- */
  .footer_top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  footer .footer_top img {
    align-self: center;
  }
  .footer_center {
    flex-direction: column;
    gap: 15px;
    text-align: start;
  }
  .footer_list li {
    font-size: 14px;
  }
  .footer_btns {
    align-items: center;
    gap: 20px;
  }
  .footer_social {
    justify-content: center;
  }
  .white {
    width: 40px;
    height: 40px;
  }
  .footer_bott {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer_bott span {
    font-size: 11px;
  }
}
@media (max-width: 750px) {
  .worth_items {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .stages_item {
  width: 100%;
}

}
.db_720 {
  display: none;
}
@media (max-width: 720px) {
  .intro_left p {
    width: 100% !important;
  }
  .gallery {
    align-items: center;
  }

  .news_item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: var(--white);
    max-width: 409px;
    max-height: 486px;
  }
  .news_item h3 {
    font-weight: 600;
    font-size: 14px;
  }
  .news_item p {
    font-weight: 600;
    font-size: 14px;
  }
  .dn_720 {
    display: none;
  }
  .db_720 {
    display: block;
  }
  .intro_btn_p {
    padding: 9px 60px;
    text-align: center;
  }
  .clients h2 {
    text-align: center;
  }
  .clients {
    padding-bottom: 60px;
    padding-top: 60px;
  }
}

@media (max-width: 675px) {
  .btn_portf {
    min-width: 100px !important;
    padding: 6px 20px !important;
  }
}
@media (max-width: 650px) {
  .intro_right {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .intro_info {
    align-items: center;
  }
  .in_right_item:nth-child(3) {
    margin: 0 !important;
    align-self: center !important;
  }
  .serv_car_item h3 {
    font-size: 19px;
  }
}
@media (max-width: 630px) {
  .intro_btns {
    justify-content: center;
  }
  .gallery {
    padding-bottom: 45px;
    padding-top: 45px;
  }
}
@media (max-width: 600px) {
  .tape_items {
    grid-template-columns: repeat(1, 1fr) !important;
    justify-content: center;
    align-items: center;
  }
  .tape {
    justify-content: center;
    align-items: center;
    padding-bottom: 45px;
    padding-top: 45px;
  }
  .tape_item {
    max-width: 400px;
  }
}

@media (max-width: 575px) {
  .container,
  .container_1300 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .news_items .serv_car_arrow_prev {
    left: 7px !important;
  }
  .news_items .serv_car_arrow_next {
    right: 7px !important;
  }
  :is(h1, h2) {
    font-size: 28px;
  }
  h3,
  :where(main) h2:not(:where(.service_section h2)) {
    font-size: 18px;
  }
  /* Header */
  .logo {
    max-width: 180px;
  }
  .head_list li {
    font-size: 15px;
  }

  /* Intro */
  .intro_left :is(h1, h2) {
    font-size: 28px;
  }
  .intro_left p {
    font-size: 16px;
  }
  .intro_btns {
    gap: 12px;
  }
  .intro_btn_p {
    padding: 12px 30px;
    font-size: 14px;
  }
  .in_left_item i {
    min-width: 48px;
  }

  .in_left_item .size_80,
  .in_right_item .size_80,
  .about_item .size_80 {
    font-size: 48px !important;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .intro_private .size_72 {
    height: 49px !important;
    min-height: 51px !important;
  }
  .in_left_item span {
    font-size: 14px;
    text-align: start;
  }
  .in_right_item img {
    max-width: 64px;
    max-height: 64px;
  }
  .in_right_item span {
    font-size: 12px;
  }

  /* Services */
  .serv_item img,
  .serv_car_item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  .serv_item h3 {
    font-size: 12px !important;
  }
  .btn_white {
    padding: 12px 16px;
    font-size: 13px;
    max-height: none;
    min-height: 44px;
  }
  .serv_item .btn_white,
  .serv_car_item .btn_white {
    font-size: 13px;
  }

  /* w_heights text */
  .w_heights_text p {
    font-size: 16px;
  }
  .w_heights_img img {
    max-width: 335px;
  }

  /* Portfolio */
  .orange_tag {
    font-size: 18px;
  }
  .portf_text h3 {
    font-size: 15px;
  }
  .portf_text p {
    font-size: 10px;
  }
  .portf_item img {
    width: 40%;
    height: 100%;
    max-height: 100%;
  }
  /* About */
  .about_info p {
    font-size: 16px;
  }
  .about_item span {
    font-size: 14px;
  }
  .about_img img {
    max-width: 320px;
  }

  /* Contacts */
  .contacts_info p {
    font-size: 12px;
  }
  .contacts_text a,
  .contacts_text p {
    font-size: 16px;
  }
  .contacts_item i {
    font-size: 36px !important;
  }
  .contacts_item .size_63 {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .contacts_img {
    display: none;
  }

  /* Reviews */
  .rev_text {
    font-size: 14px;
    max-height: 140px;
  }
  .rev_items {
    flex-direction: column;
  }
  /* Footer */
  .footer_list li {
    font-size: 14px;
  }
  .footer_contacts p,
  .footer_contacts a {
    font-size: 14px;
  }
  .white {
    width: 35px;
    height: 35px;
  }
  .footer_bott span {
    font-size: 10px;
  }
  .contacts_info {
    margin-top: 0px !important;
  }
}
@media (max-width: 571px) {
  .serv_car_arrow_prev {
    left: 32px;
  }
  .serv_car_arrow_next {
    right: 32px;
  }
  .stages_item h3 {
  font-size: 18px;
  }
  /* .stages {
  align-items: flex-start;
  } */
  .stages_items {
    justify-content: flex-start;
  }
  .stages_item {
  width: 100%;
  }
  .stages_item p {
  font-weight: 600;
  font-size: 15px;
  line-height: 140%;
  color: var(--grey);
  width: 100%;
  }
  .dn_570 {
    display: none;
  }
   .serv_items {
    width: 100%;
}
}
@media (max-width: 550px) {
  .size_63 {
    font-size: 40px !important;
    min-height: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    width: 30px !important;
  }
  .size_63 {
    color: var(--orange);
  }
  .conect_item {
    gap: 15px;
  }
}

@media (max-width: 531px) {
  .serv_car_arrow_prev {
    left: 18px;
  }
  .serv_car_arrow_next {
    right: 18px;
  }
  .news_item {
    max-width: 360px;
  }
}
@media (max-width: 520px) {
  .clients_i {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 15px !important;
  }
  .portf_item img {
    width: 36%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 490px) {
  .serv_car_arrow_prev {
    left: 5px;
  }
  .serv_car_arrow_next {
    right: 5px;
  }
  .stages_top {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--dark);
  }
  .stages_item h3 {
    border-top: none;
    margin-top: 0px;
  }
  .dn_480 {
    display: none;
  }
  .conn_footer {
    display: flex;
    align-items: center;
    gap: 30px;
  }
 .conn_footer .conect_text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
 }
  .conn_footer span {
    color: var(--white);
    font-size: 14px;
  }
  .conn_footer .orange {
    color: var(--orange);
    font-size: 14px;
  }
  .contacts_item {
    gap: 12px !important;
  }
  .conn_footer .conect_item {
  align-items: center;
  gap: 12px;
  }

}
@media (max-width: 470px) {
  .in_right_item {
    align-items: center;
    justify-content: space-between;
  }
  .in_right_item span {
    font-size: 14px !important;
  }
  .btn_white {
    padding: 12px 16px;
  }
  .serv_item h3 {
    font-size: 14px !important;
    text-align: center;
  }
  .br_470 {
    display: block;
  }
  .serv_car_item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
}
@media (max-width: 450px) {
  /* .portf_item img {
    width: 36%;
    height: 60%;
  } */
  .news_item {
    max-width: 390px;
    max-height: 479px;
  }
  .news_item h3 {
    font-weight: 600;
    font-size: 12px;
  }
  .news_item p {
    font-weight: 600;
    font-size: 12px;
  }
}
@media (max-width: 441px) {
  .btn_white {
    padding: 12px 16px;
    font-size: 13px;
    max-height: 100%;
  }
  .head_submenu li {
    white-space: break-spaces;
  }
  .head_submenu {
    min-width: 200px;
  }
  .gallery_img {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 410px) {
  .portf_item img {
   width: 38%;
  }

  .worth_item p {
    font-weight: 600;
    font-size: 15px;
  }
}
@media (max-width: 400px) {
  :is(h1, h2) {
    font-size: 24px;
  }
  h3,
  :where(main) h2:not(:where(.service_section h2)) {
    font-size: 20px;
  }

  /* Intro */
  .intro_left :is(h1, h2) {
    font-size: 24px;
  }
  .in_left_item span {
    font-size: 13px;
  }

  /* Services */
  .serv_item h3 {
    font-size: 17px;
  }

  /* About */
  .about_item span {
    font-size: 13px;
  }

  /* Contacts */
  .contacts_info h2 {
    font-size: 22px;
  }
  .contacts_text a,
  .contacts_text p {
    font-size: 15px;
  }

  /* Portfolio */
  .portf_text h3 {
    font-size: 14px;
  }
  .portf_text p {
    font-size: 9px;
  }
  .serv_item img,
  .serv_car_item img {
    width: 100%;
    height: 125px;
    object-fit: cover;
  }
   .conn_footer .orange,
   .conn_footer span {
    font-size: 12px;
  }
   .conn_footer .size_63 {
    font-size: 30px !important;
    min-height: 18px !important;
    min-width: 13px !important;
    height: 30px !important;
    width: 20px !important;
  }
}
@media (max-width: 381px) {
  .news_item {
    max-width: 360px;
    max-height: 385px;
  }
}

@media (max-width: 379px) {
  .serv_items {
    grid-template-columns: repeat(1, 1fr);
  }
  .calc_info a {
    font-size: 15px;
  }
   .footer_top {
    text-align: start;
  }
}

@media (max-width: 361px) {
  .about_img img {
    max-height: 340px;
  }
}

@media (max-width: 1100px) {
  .gallery_archive .gallery_projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .gallery_modal_pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery_modal_photos img {
    height: auto;
    max-height: 55vh;
    max-height: 55dvh;
  }
}
@media (max-width: 600px) {
  .gallery_archive {
    padding-bottom: 40px;
  }
  .gallery_archive .gallery_projects {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .gallery_archive .gallery_filters {
    gap: 8px;
  }
  .gallery_archive .gallery_filters button {
    padding: 10px 12px;
    font-size: 14px;
    min-height: 44px;
  }
  .gallery_archive .gallery_project_text {
    padding: 20px;
  }
  .gallery_archive .gallery_project_text h3 {
    font-size: 20px;
  }
  .gallery_modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .gallery_modal_shell {
    padding: 12px 16px 24px;
  }
  .gallery_modal_text h3 {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .callback-toggle.btn_orange {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }
  .callback-modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .callback-shell {
    padding: 60px 20px 24px;
  }
  .callback-form h2 {
    font-size: 22px;
  }
}

@media (max-width: 1199px) {
  .nav-toggle {
    width: 1px;
    height: 1px;
    margin: 0;
  }
  .nav-toggle-label {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 11px 8px;
  }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
  }
  .head_list {
    max-width: 90vw;
    height: 100dvh;
    visibility: hidden;
    overscroll-behavior: contain;
  }
  .nav-toggle:checked + .nav-toggle-label + .head_list {
    visibility: visible;
  }
  .head_list > .head_li {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .head_list > .head_li > a,
  .head_list .head_li_trigger {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .head_list .head_submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    box-shadow: none;
    transform: none;
  }
  .head_list .head_li.is-open .head_submenu {
    display: block;
  }
  .head_list .head_submenu li {
    padding: 0;
    white-space: normal;
  }
  .head_list .head_submenu a {
    min-height: 44px;
    padding: 12px 8px;
    overflow-wrap: anywhere;
  }
  .nav-toggle:checked ~ .head_btn {
    right: 0;
    left: auto;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  }
  .nav-toggle:checked ~ .head_btn .btn_orange {
    display: block;
    min-width: 0;
    min-height: 44px;
  }
  body:has(.callback-toggle:not([hidden])) .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 781px) and (max-width: 900px) {
  .main .intro_info {
    flex-direction: column;
    align-items: stretch;
  }
  .main .intro_right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1600px) {
  .head {
    gap: 16px;
  }
  .head .logo {
    flex-basis: 180px;
    max-width: 180px;
  }
  .head .head_list {
    gap: 16px;
  }
  .head .head_list > li {
    font-size: 15px;
  }
  .head.is-fixed .head_list {
    gap: 12px;
  }
  .head_contacts {
    font-size: 15px;
  }
  .head_email {
    font-size: 13px;
  }
  .head .btn_head {
    font-size: 14px;
  }
}
@media (min-width: 1366px) and (max-width: 1919px) {
  .intro > header.head.is-fixed {
    padding-right: clamp(48px, 6.771vw, 130px);
    padding-left: clamp(48px, 6.771vw, 130px);
  }
}
@media (max-width: 1365px) {
  .intro > header.head.is-fixed {
    padding-right: 60px;
    padding-left: 60px;
  }
}
@media (max-width: 1199px) {
  .head {
    gap: 16px;
  }
  .head .logo {
    flex-basis: 180px;
    max-width: 180px;
  }
  .head_contacts {
    order: 1;
    margin-left: auto;
    font-size: 14px;
  }
  .head_email {
    font-size: 12px;
  }
  .head .nav-toggle-label {
    order: 2;
  }
  .head:has(.nav-toggle:checked) .head_contacts {
    visibility: hidden;
  }
  .intro > header.head.is-fixed {
    padding: 8px 30px;
  }
  .head.is-fixed .logo {
    flex-basis: 150px;
    max-width: 150px;
  }
  .head.is-fixed .head_list > li {
    font-size: 15px;
  }
  .head.is-fixed .head_list {
    top: var(--head-top, 0px);
    height: calc(100dvh - var(--head-top, 0px));
  }
  .head.is-fixed .nav-toggle:checked + .nav-toggle-label {
    top: calc(24px + var(--head-top, 0px));
  }
}
@media (max-width: 575px) {
  .head {
    gap: 8px;
  }
  .head .logo {
    flex-basis: 132px;
    max-width: 132px;
  }
  .head .head_contacts {
    gap: 2px;
    font-size: 12px;
  }
  .head .head_email {
    font-size: 11px;
  }
  .intro > header.head.is-fixed {
    padding-right: 15px;
    padding-left: 15px;
  }
  .head.is-fixed .logo {
    flex-basis: 110px;
    max-width: 110px;
  }
}
