@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  vertical-align: top;
  outline: none;
  list-style: none;
  font-family: "Fira Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
}

ul {
  padding: 0;
  margin: 0;
}

html,
body {
  padding: 0;
  margin: 0;
  width: 100%;
  background: #eaeaea;
}

.lightswitch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  gap: 10px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

/* иконки */
.lightswitch .moon svg,
.lightswitch .sun svg {
  color: #444;
}

.inside_scrollline {
  display: none;
}

.scrollline {
  -webkit-transition: 0.5s;
  transition: 0.5s;
  -webkit-transform: translateY(-100px);
          transform: translateY(-100px);
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 15px 30px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 100px;
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: #eaeaea;
  border-bottom: 1px solid #b5b5b5;
}
.scrollline.show {
  -webkit-transform: translateY(0px);
          transform: translateY(0px);
}
.scrollline .logo_hor svg {
  color: #444;
  width: 40px;
  height: 40px;
}
.scrollline .nav:hover a {
  opacity: 0.5;
}
.scrollline .nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
}
.scrollline .nav ul a {
  -webkit-transition: 0.4s;
  transition: 0.4s;
  color: #444;
  text-decoration: none;
}
.scrollline .nav ul a:hover {
  opacity: 1;
}

.lightswitch .moon svg,
.lightswitch .sun svg {
  display: block;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

/* трек */
.lightswitch .switch {
  position: relative;
  width: 40px;
  height: 14px;
  border: 1px solid #ccc;
  border-radius: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  padding: 1px;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.lightswitch .bubble {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  -webkit-transition: background 0.3s ease, -webkit-transform 0.3s ease;
  transition: background 0.3s ease, -webkit-transform 0.3s ease;
  transition: transform 0.3s ease, background 0.3s ease;
  transition: transform 0.3s ease, background 0.3s ease, -webkit-transform 0.3s ease;
}

/* состояние dark */
.lightswitch.dark .switch {
  background: -webkit-gradient(linear, left top, right top, from(#333), to(#111));
  background: linear-gradient(to right, #333, #111);
}

.lightswitch.dark .bubble {
  -webkit-transform: translateX(25px);
          transform: translateX(25px);
  /* смещение вправо */
  background: #fff;
}

/* прозрачность иконок */
.lightswitch.dark .moon svg {
  opacity: 0.3;
  color: #ccc;
}

.lightswitch.dark .sun svg {
  opacity: 1;
  color: #fff;
}

.lightswitch:not(.dark) .moon svg {
  opacity: 1;
}

.lightswitch:not(.dark) .sun svg {
  opacity: 0.3;
}

footer {
  margin-top: 100px;
  height: 200px;
  background: black;
}

section {
  margin-top: 200px;
}
section.portfolio .list ul {
  display: -ms-grid;
  display: grid;
  gap: 40px;
  -ms-grid-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
section.portfolio .list ul a {
  color: black;
  text-decoration: none;
}
section.portfolio .list ul li .tags {
  padding-left: 8px;
  position: relative;
}
section.portfolio .list ul li .tags:before {
  position: absolute;
  left: 0;
  content: "#";
}
section.portfolio .list li {
  /* 1, 5, 9, 13... (справа скругления) */
  /* 4, 8, 12, 16... (слева скругления) */
}
section.portfolio .list li .img {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  aspect-ratio: 9/12;
}
section.portfolio .list li .img .ongoing-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #FF4E84;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
section.portfolio .list li .img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: inherit;
}
section.portfolio .list li .img::after {
  -webkit-transition: 0.5s;
  transition: 0.5s;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  -webkit-box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.4);
          box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
section.portfolio .list li .img:hover::after {
  -webkit-box-shadow: inset 0 0 0 30px rgba(255, 255, 255, 0.4);
          box-shadow: inset 0 0 0 30px rgba(255, 255, 255, 0.4);
}
section.portfolio .list li:nth-child(4n+1) h3,
section.portfolio .list li:nth-child(4n+1) .tags {
  -webkit-transform: translateX(20px);
          transform: translateX(20px);
}
section.portfolio .list li:nth-child(4n+1) .img,
section.portfolio .list li:nth-child(4n+1) .img img,
section.portfolio .list li:nth-child(4n+1) .img::after {
  border-radius: 0 40px 40px 0;
}
section.portfolio .list li:nth-child(4n) .img,
section.portfolio .list li:nth-child(4n) .img img,
section.portfolio .list li:nth-child(4n) .img::after {
  border-radius: 40px 0 0 40px;
}
section.portfolio h2 {
  text-align: center;
  width: 100%;
  font-size: 300%;
  padding: 25px 0 10px 0;
  background: rgba(234, 234, 234, 0.8);
  backdrop-filter: blur(20px);
  margin: 0;
  position: sticky;
  top: 50px;
  z-index: 100;
  font-weight: lighter;
}
section.aboutus {
  display: -ms-grid;
  display: grid;
  --gap-old: 240px;
  --gap-new: 100px;
  --left-col: calc((100% - var(--gap-old)) / 2);
  gap: var(--gap-new);
  -ms-grid-columns: var(--left-col) var(--gap-new) 1fr;
  grid-template-columns: var(--left-col) 1fr;
  /* Рамка поверх фото */
}
section.aboutus .text {
  max-width: 500px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-size: 120%;
  line-height: 1.6;
}
section.aboutus .text h2 {
  font-size: 300%;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-weight: lighter;
}
section.aboutus .imgwrap {
  position: relative;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  overflow: hidden;
  /* чтобы радиусы срезали всё */
}
section.aboutus .imgwrap img {
  width: 100%;
  height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
section.aboutus .imgwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  /* растягивается по всей картинке */
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  -webkit-box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.4);
          box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.4);
  /* белая прозрачная рамка 40px */
  pointer-events: none;
}

.page_clients {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 50px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.page_clients img {
  opacity: 0.5;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  max-width: 300px;
}
.page_clients img:hover {
  opacity: 1;
}

.contact-grid a {
  color: black;
  text-decoration: none;
}

.project .header h1 {
  text-align: center;
  font-weight: lighter;
  margin-bottom: 40px;
}
.project .button a {
  background: #000;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  color: white;
  text-decoration: none;
  padding: 20px 50px;
  margin-top: 80px;
  display: inline-block;
}
.project .button a:hover {
  background: #fff;
  color: black;
}
.project .gal_block {
  max-width: 900px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 3px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.project .gal_block a {
  display: block;
  /* верхний левый угол всегда */
  /* нижний правый угол — только если количество элементов чётное */
}
.project .gal_block a:first-child img {
  border-top-left-radius: 50px;
}
.project .gal_block a:last-child:nth-child(2n) img {
  border-bottom-right-radius: 50px;
}
.project .gal_block a img {
  width: 100%;
  height: 300px;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
  -webkit-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
}
.project .gal_block a img:hover {
  -webkit-filter: grayscale(0);
          filter: grayscale(0);
}
.project .pr_info_block {
  max-width: 1000px;
  margin: auto;
}
.project .pr_grid {
  font-size: 120%;
  margin: 60px 0;
  line-height: 1.6;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 2.2fr 70px 1fr;
  grid-template-columns: 2.2fr 1fr;
  gap: 70px;
}
.project .pr_grid .data .vflex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 30px;
  font-size: 80%;
}
.project .pr_grid .data .vflex b {
  font-size: 250% !important;
}
.project .pr_grid .data .vflex span {
  font-size: 90%;
  margin-bottom: -10px;
  display: block;
}
.project .mainimage img {
  width: calc(100% - 40px);
  border-radius: 50px;
  max-height: 70vh;
  -o-object-fit: cover;
     object-fit: cover;
}

.bx-pager {
  position: absolute;
  top: -60px;
  right: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 1000;
  gap: 30px;
}
.bx-pager .bx-pager-item a {
  text-indent: -100000px;
  width: 20px;
  height: 20px;
  background: url("../images/pod.svg") no-repeat center;
  background-size: contain;
  display: block;
  opacity: 0.2;
}
.bx-pager .bx-pager-item a.active {
  opacity: 1;
}

.content .text {
  padding: 40px;
}
.content .text p {
  max-width: 900px;
  display: block;
  font-size: 120%;
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: justify;
}
.content .text h2 {
  font-size: 300%;
  font-weight: lighter;
  padding: 0;
  margin: 0;
  margin-top: 15px;
}

.logo_fly {
  pointer-events: none;
}

.img_sketch {
  pointer-events: none;
  position: absolute;
  bottom: 60px;
  right: 0;
}
.img_sketch img {
  width: 700px;
  opacity: 0.7;
}

.logo_fly {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100vh;
  opacity: 0.1;
}

/* фон страницы */
body {
  -webkit-transition: background 0.3s ease, color 0.3s ease;
  transition: background 0.3s ease, color 0.3s ease;
}

.main_container {
  padding-top: 40px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 200px 1fr;
  grid-template-columns: 200px 1fr;
  min-height: 100vh;
}
.main_container .logo {
  opacity: 1 !important;
}
.main_container .tabs .tabs_line {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 0 45px 0;
}
.main_container .tabs .tabs_line a {
  -webkit-transition: 0.3s;
  transition: 0.3s;
  text-transform: uppercase;
  color: black;
  opacity: 0.5;
  text-decoration: none;
}
.main_container .tabs .tabs_line a.selected {
  font-weight: bold;
  opacity: 1;
}
.main_container .list ul {
  display: -ms-grid;
  display: grid;
  gap: 40px;
  -ms-grid-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main_container .list ul a {
  color: black;
  text-decoration: none;
}
.main_container .list li {
  /* 1, 5, 9, 13... (справа скругления) */
  /* 4, 8, 12, 16... (слева скругления) */
}
.main_container .list li .img {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
}
.main_container .list li .img .ongoing-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #FF4E84;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.main_container .list li .img img {
  width: 100%;
  height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: inherit;
}
.main_container .list li .img::after {
  -webkit-transition: 0.5s;
  transition: 0.5s;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  -webkit-box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.4);
          box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.main_container .list li .img:hover::after {
  -webkit-box-shadow: inset 0 0 0 30px rgba(255, 255, 255, 0.4);
          box-shadow: inset 0 0 0 30px rgba(255, 255, 255, 0.4);
}
.main_container .list li:nth-child(4n+1) .img,
.main_container .list li:nth-child(4n+1) .img img,
.main_container .list li:nth-child(4n+1) .img::after {
  border-radius: 0 40px 40px 0;
}
.main_container .list li:nth-child(4n) .img,
.main_container .list li:nth-child(4n) .img img,
.main_container .list li:nth-child(4n) .img::after {
  border-radius: 40px 0 0 40px;
}
.main_container .navholder nav {
  position: sticky;
  top: 105px;
  width: 200px;
  -ms-flex-item-align: start;
      align-self: flex-start;
}
.main_container .navholder li.selected a {
  opacity: 1;
  font-weight: bold;
}
.main_container .navholder a {
  opacity: 0.5;
}

.burger {
  display: none;
}

.scrollline .nav ul a {
  color: black;
}

.burger div {
  background: #000;
}

.scrollline .nav {
  background: #eaeaea !important;
}

.langs a {
  color: black !important;
}

body.darkmode {
  background: #3F3F3F;
  color: #eee;
}
body.darkmode .contact-grid a {
  color: white;
  text-decoration: none;
}
body.darkmode .main_container .list ul a, body.darkmode section.portfolio .list ul a {
  color: white !important;
}
body.darkmode .langs a {
  color: white !important;
}
body.darkmode .logo_fly {
  opacity: 0.2;
}
body.darkmode .scrollline .nav {
  background: #444 !important;
}
body.darkmode .scrollline .nav ul a {
  color: white;
}
body.darkmode .burger div {
  background: #fff;
}
body.darkmode section.portfolio h2 {
  background: rgba(63, 63, 63, 0.8);
}
body.darkmode .tabs a {
  color: white !important;
}
body.darkmode .scrollline {
  border-bottom: 1px solid #111;
  background: #444 !important;
}
body.darkmode .scrollline a {
  color: white;
}
body.darkmode .scrollline path {
  background: #ccc;
  color: #ccc;
}
body.darkmode nav .nav ul li a {
  color: white;
}
body.darkmode nav .nav ul li a:before {
  color: white;
  background: white;
}

.inside .langs {
  width: 70px;
  margin: 0 !important;
}
.inside nav {
  min-height: inherit !important;
  height: auto !important;
}
.inside header {
  display: none;
}

header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 40px;
}

nav {
  top: 0;
  height: 80vh;
  min-height: 600px;
  pointer-events: none;
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 1000;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
}
nav .container {
  gap: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: auto;
}
nav .container .logo {
  pointer-events: all;
}
nav .container .logo svg path {
  color: #9B9A9A;
  -webkit-transition: 0.8s;
  transition: 0.8s;
}
nav .container .logo svg path.act {
  color: #ccc;
}
nav .langs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: auto;
  max-width: 200px;
  width: 100%;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  pointer-events: all !important;
}
nav .langs a {
  opacity: 0.5;
  text-decoration: none;
}
nav .langs a:hover {
  opacity: 1;
}
nav .nav {
  pointer-events: all !important;
}
nav .nav ul:hover a {
  opacity: 0.6;
}
nav .nav ul li a {
  position: relative;
  display: block;
  padding: 12px 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  color: black;
  text-decoration: none;
}
nav .nav ul li a:before {
  position: absolute;
  content: "";
  width: 20px;
  /* максимальная ширина */
  right: auto;
  left: -30px;
  /* фиксируем слева */
  height: 1px;
  background: black;
  top: 22px;
  /* ключ! */
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: right;
          transform-origin: right;
  /* анимация идёт справа налево */
  -webkit-transition: -webkit-transform 0.4s;
  transition: -webkit-transform 0.4s;
  transition: transform 0.4s;
  transition: transform 0.4s, -webkit-transform 0.4s;
}
nav .nav ul li a:hover {
  opacity: 1;
}
nav .nav ul li a:hover:before {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}
nav img {
  max-width: 200px;
  height: auto;
}

.mainbanner {
  min-height: 800px;
  position: relative;
}
.mainbanner .grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 240px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 240px;
}
.mainbanner .img_one {
  position: relative;
}
.mainbanner .img_one::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-box-shadow: inset -30px 30px 60px rgba(0, 0, 0, 0.3);
          box-shadow: inset -30px 30px 60px rgba(0, 0, 0, 0.3);
  border-radius: inherit;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  pointer-events: none;
}
.mainbanner .img_one .tagline {
  position: absolute;
  bottom: 30px;
  right: 50px;
  color: #444;
}
.mainbanner .img_one .tagline h1 {
  padding: 0;
  margin: 0;
  font-weight: lighter;
}
.mainbanner .img_one img {
  -webkit-box-shadow: inset 20px 20px 45px rgb(0, 0, 0);
          box-shadow: inset 20px 20px 45px rgb(0, 0, 0);
  width: 100%;
  height: 80vh;
  min-height: 600px;
  -o-object-fit: cover;
     object-fit: cover;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
}
.mainbanner .img_two {
  position: relative;
}
.mainbanner .img_two::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-box-shadow: inset 30px 30px 60px rgba(0, 0, 0, 0.3);
          box-shadow: inset 30px 30px 60px rgba(0, 0, 0, 0.3);
  border-radius: inherit;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
  pointer-events: none;
}
.mainbanner .img_two img {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  -o-object-fit: cover;
     object-fit: cover;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
}

.pages ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.pages li {
  cursor: pointer;
  width: 20px;
  height: 20px;
  background: url("../images/pod.svg") no-repeat center;
  background-size: contain;
  opacity: 0.4;
  padding: 0 20px;
}
.pages li.selected {
  opacity: 1 !important;
}
.pages li:hover {
  opacity: 0.7;
}

@media (max-width: 1200px) {
  section {
    margin-top: 200px;
  }
  section.portfolio .list ul {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 40px 1fr 40px 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
  section.portfolio .list ul li {
    /* 🧹 сбрасываем остатки от старых 4n */
    /* ✅ левая колонка — 1, 4, 7, 10... */
    /* ✅ правая колонка — 3, 6, 9, 12... */
  }
  section.portfolio .list ul li .img,
  section.portfolio .list ul li .img img,
  section.portfolio .list ul li .img::after {
    border-radius: 40px;
    -webkit-transition: 0.4s;
    transition: 0.4s;
  }
  section.portfolio .list ul li:nth-child(4n) .img,
  section.portfolio .list ul li:nth-child(4n) .img img,
  section.portfolio .list ul li:nth-child(4n) .img::after, section.portfolio .list ul li:nth-child(4n+1) .img,
  section.portfolio .list ul li:nth-child(4n+1) .img img,
  section.portfolio .list ul li:nth-child(4n+1) .img::after {
    border-radius: 40px !important;
  }
  section.portfolio .list ul li:nth-child(3n+1) .img,
  section.portfolio .list ul li:nth-child(3n+1) .img img,
  section.portfolio .list ul li:nth-child(3n+1) .img::after {
    border-radius: 0 40px 40px 0 !important;
  }
  section.portfolio .list ul li:nth-child(3n) .img,
  section.portfolio .list ul li:nth-child(3n) .img img,
  section.portfolio .list ul li:nth-child(3n) .img::after {
    border-radius: 40px 0 0 40px !important;
  }
}
/* =============================
   📱 Планшет — 2 колонки
   ============================= */
@media (max-width: 767px) {
  section.portfolio .list ul {
    -ms-grid-columns: 1fr 30px 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  section.portfolio .list ul li {
    /* левая колонка — 1, 3, 5... */
    /* правая колонка — 2, 4, 6... */
  }
  section.portfolio .list ul li .img,
  section.portfolio .list ul li .img img,
  section.portfolio .list ul li .img::after {
    border-radius: 40px !important;
  }
  section.portfolio .list ul li:nth-child(2n+1) .img,
  section.portfolio .list ul li:nth-child(2n+1) .img img,
  section.portfolio .list ul li:nth-child(2n+1) .img::after {
    border-radius: 0 40px 40px 0 !important;
  }
  section.portfolio .list ul li:nth-child(2n) .img,
  section.portfolio .list ul li:nth-child(2n) .img img,
  section.portfolio .list ul li:nth-child(2n) .img::after {
    border-radius: 40px 0 0 40px !important;
  }
}
/* =============================
   📱 Мобильный — 1 колонка
   ============================= */
@media (max-width: 500px) {
  .mainbanner {
    min-height: 500px;
  }
  .tabs_line {
    padding-bottom: 0 !important;
  }
  .project .pr_grid .data .vflex {
    gap: 50px;
  }
  .project .pr_grid .data .vflex b {
    font-size: 190% !important;
    line-height: 1;
    margin-top: 10px;
    display: inline-block;
  }
  .content .text {
    padding: 15px 30px;
  }
  .content .text h2 {
    margin-top: 0;
    font-size: 200% !important;
  }
  section.portfolio h2 {
    font-size: 140%;
    padding: 30px 0 10px 0;
  }
  .inside .scrollline {
    top: 100px !important;
  }
  .img_sketch {
    display: none;
  }
  .langs {
    position: fixed;
    bottom: 0;
    left: 0;
    max-width: 100vw !important;
    width: 100vw !important;
    background: #444;
    padding: 4px 20px;
  }
  .inside_scrollline {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-transform: none !important;
            transform: none !important;
  }
  .navholder {
    display: none;
  }
  .main_container {
    padding-top: 0;
    -ms-grid-columns: 1fr !important;
    grid-template-columns: 1fr !important;
  }
  .main_container .project .header h1 {
    margin: 20px !important;
  }
  .main_container .project .mainimage img {
    width: calc(100% - 20px);
    border-radius: 20px;
    margin: 10px;
  }
  .main_container .button a {
    width: 100%;
    text-align: center;
  }
  .main_container .vflex {
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
            flex-direction: row !important;
  }
  .main_container .gal_block {
    -ms-grid-columns: 1fr !important;
    grid-template-columns: 1fr !important;
  }
  .main_container .gal_block img {
    border-radius: 0 !important;
    -webkit-filter: grayscale(0) !important;
            filter: grayscale(0) !important;
  }
  .main_container .pr_grid {
    gap: 20px;
    margin: 30px;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .main_container .pr_grid .text {
    text-align: justify;
  }
  .main_container .list li {
    margin-bottom: 40px;
  }
  .main_container .list .header h3, .main_container .list .tags h3 {
    margin: 0;
    padding: 0;
    font-weight: lighter;
    font-size: 150%;
    margin-top: 15px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
  }
  .main_container .content {
    padding-top: 70px;
  }
  .main_container .tabs {
    padding: 20px 10px 0 10px;
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* скрываем полосу скролла */
  }
  .main_container .tabs::-webkit-scrollbar {
    display: none;
  }
  .main_container .tabs .tabs_line {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
    padding: 0 20px 45px 20px;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
  }
  .main_container .tabs .tabs_line a {
    -webkit-transition: 0.3s;
    transition: 0.3s;
    text-transform: uppercase;
    color: black;
    opacity: 0.5;
    text-decoration: none;
    white-space: nowrap;
  }
  .main_container .tabs .tabs_line a.selected {
    font-weight: bold;
    opacity: 1;
  }
  .mobile .scrollline .nav {
    top: 70px;
    opacity: 1;
    pointer-events: all;
  }
  .scrollline {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .scrollline .nav {
    position: absolute;
    opacity: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    left: 0;
    top: 60px;
    width: 100%;
    right: 0;
    pointer-events: none;
    height: calc(100vh - 70px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .scrollline .nav ul {
    font-size: 150%;
    padding: 0px 0;
    gap: 30px !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .scrollline .nav ul li {
    text-align: center;
  }
  .burger {
    width: 30px;
    height: 22px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
    /* анимация при открытии меню */
  }
  .burger div {
    height: 3px;
    width: 100%;
    border-radius: 2px;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
  }
  body.mobile .burger div:nth-child(1) {
    -webkit-transform: translateY(9px) rotate(45deg);
            transform: translateY(9px) rotate(45deg);
  }
  body.mobile .burger div:nth-child(2) {
    opacity: 0;
  }
  body.mobile .burger div:nth-child(3) {
    -webkit-transform: translateY(-9px) rotate(-45deg);
            transform: translateY(-9px) rotate(-45deg);
  }
  .aboutus {
    gap: 30px !important;
    font-size: 80%;
    margin: 70px 20px 20px 20px;
    -ms-grid-columns: 1fr !important;
    grid-template-columns: 1fr !important;
  }
  .aboutus h2 {
    font-size: 180% !important;
  }
  .aboutus .imgwrap {
    border-radius: 40px !important;
  }
  .aboutus .imgwrap:after {
    border-radius: 40px !important;
  }
  nav {
    height: 500px;
    min-height: 500px;
    width: 160px;
    right: 0;
  }
  nav .nav li {
    text-align: right;
  }
  nav .logo {
    height: 150px;
  }
  nav .logo svg {
    width: 92px;
    height: 150px;
  }
  .mainbanner .grid {
    -ms-grid-columns: 1fr 0px 160px;
    grid-template-columns: 1fr 160px;
    gap: 0px;
  }
  .mainbanner .grid .img_two:after {
    content: none;
  }
  .mainbanner .grid .img_two img {
    height: 500px;
    min-height: 500px;
    border-top-right-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
  }
  .mainbanner .grid .img_one {
    display: none;
  }
  section.portfolio, .main_container {
    margin-top: 0px;
  }
  section.portfolio .list ul, .main_container .list ul {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  section.portfolio .list ul li .img,
  section.portfolio .list ul li .img img,
  section.portfolio .list ul li .img::after, .main_container .list ul li .img,
  .main_container .list ul li .img img,
  .main_container .list ul li .img::after {
    border-radius: 40px !important;
  }
}