/* =========================================================
   BASE / RESET
========================================================= */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (max-width: 1280px) {
  html {
    font-size: calc(16px * (100vw / 1280));
  }
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #0E0A0B;
}

header,
section,
footer {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  padding: 0;
}

/* Links */
a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #47B5FF;
}

a:active {
  color: #2196E4;
}

a.type-2 {
  opacity: 0.7;
}

a.type-2:hover {
  opacity: 1;
}

/* Typography scale (generic) */
h1 {
  font-weight: 400;
  font-size: 120px;
  line-height: 138px;
  letter-spacing: -3%;
  color: inherit;
}

h2 {
  font-weight: 500;
  font-size: 60px;
  line-height: 73px;
  letter-spacing: -3%;
  color: inherit;
}

h3 {
  font-weight: 500;
  font-size: 32px;
  line-height: 39px;
  letter-spacing: -3%;
  color: inherit;
}

p,
.p1 {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: inherit;
}

.p2 {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: inherit;
}

.p3 {
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: -1%;
  color: inherit;
}

/* Tags */
.tag {
  height: 28px;
  padding: 0 20px;
  background-color: #fff;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: -1%;
  color: inherit;
}

/* Buttons */
.button-orange,
a.button-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 0 30px;
  background-color: #F05536;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.button-orange:hover {
  background-color: #FF6344;
}

.button-orange:active {
  background-color: #EC4928;
}

/* Header CTA button */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  border: none;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-white:hover {
  background: #f2f2f2;
  color: #000000;
}

.btn-white:active {
  transform: translateY(1px);
}

.link-default {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: #080607;
  text-decoration: underline;
  transition: color 0.2s;
}

.link-default:active {
  color: #F05536;
}

/* =========================================================
   HEADER / HERO
========================================================= */
.logo,
.sticky-name {
  text-decoration: none;
  color: inherit;
}

.site-header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  background: #F60434;
  overflow: hidden;
  box-sizing: border-box;
  color: #FFFFFF;

}

/* выключаем старый декор через ::before (фон-картинка) */
.site-header::before {
  content: none !important;
}

.site-header .container {
  position: relative;
  max-width: 1280px;

  height: auto;
  padding-top: 60px;
  padding-bottom: 60px;

  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;

}

/* Nav (оставляем старую) */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.header-nav .nav-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.header-nav .nav-right {
  display: flex;
  gap: 30px;
}

.header-nav a,
.header-nav .logo {
  color: #F5F6FB;
  text-decoration: none;
  font-size: 20px;
}

.header-nav .nav-left a:last-child,
.header-nav .logo {
  margin-right: 0;
}

.header-nav .nav-left a {
  color: rgba(255, 255, 255, 0.6);
}

/* HERO layout (new structure) */
.header-content.header-hero {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  align-items: center;
  text-align: center;
  padding-top: 40px;
}

.site-header .header-title {
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 auto;
  margin-top: 20px;
  font-size: clamp(44px, 6.5vw, 120px);
  line-height: 1.05;
  color: #FFFFFF;
}

.header-hero-picture {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(12px, 2vw, 18px);
}

.header-hero-picture img {
  width: min(520px, 70vw);
  height: auto;
  display: block;
}

.header-hero-text {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.6;
  opacity: 0.92;
  color: #FFFFFF;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.header-hero-actions {
  justify-content: center;
  margin-top: clamp(18px, 3vw, 34px);
  position: relative;
  z-index: 10;
}

.link-white {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.link-white:hover {
  opacity: 0.8;
}

/* =========================================================
   UI/UX SECTION (only needed parts)
========================================================= */
.uiux-section {
  background-color: #F5F6FB;
  color: #0E0A0B;
  min-height: 600px;
  height: auto;
}

.uiux-container {
  max-width: 1280px;
  height: auto;
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  padding: 40px 17px;
  box-sizing: border-box;
}

.uiux-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.uiux-left {
  flex: 1 1 calc(30%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.uiux-left-top {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding-top: 40px;
}

.uiux-subheader {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  margin: 0 0 16px;
  color: #0E0A0B;
}

.uiux-header {
  font-weight: 500;
  font-size: 60px;
  line-height: 73px;
  letter-spacing: -3%;
  margin: 0 0 24px;
  color: #0E0A0B;
}

.uiux-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.uiux-right {
  flex: 1 1 calc(45%);
  min-width: 0;
}

/* UIUX portfolio: column flow (final, without duplicates) */
.uiux-portfolio-grid {
  column-count: 2;
  column-gap: 40px;
}

@media (max-width: 860px) {
  .uiux-portfolio-grid {
    column-count: 1;
    column-gap: 24px;
  }
}

.uiux-portfolio-card {
  background: #E7E9F5;
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 40px;
  overflow: hidden;
  height: var(--card-h, 620px);
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 860px) {
  .uiux-portfolio-card {
    margin-bottom: 24px;
  }
}

.uiux-portfolio-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.uiux-portfolio-overlay {
  display: none !important;
}

.uiux-portfolio-meta {
  position: absolute;
  inset: 0;
  padding: 20px;
  z-index: 2;
}

.uiux-portfolio-title {
  position: absolute;
  top: 18px;
  left: 18px;
  max-width: 70%;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  text-shadow: none !important;
}

.uiux-portfolio-chips {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 60%;
}

.uiux-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.uiux-portfolio-card.theme-dark {
  color: #ffffff;
}

.uiux-portfolio-card.theme-light {
  color: #111111;
}

.uiux-card-action {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
}

.uiux-card-action.is-link::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("pics/arrow.svg") center / contain no-repeat;
  mask: url("pics/arrow.svg") center / contain no-repeat;
  transform: rotate(45deg);
}

.uiux-card-action.is-locked {
  font-size: 18px;
  line-height: 1;
}

.uiux-portfolio-card.is-locked {
  cursor: default;
}

/* =========================================================
   ORDER
========================================================= */
.order-section {
  background: linear-gradient(180deg,
      #29282A 0%,
      #F5F6FB 100%);
  color: #0E0A0B;
  padding: 40px 0;
  color: #0E0A0B;
  padding: 40px 0;
}

.order-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 17px;
  box-sizing: border-box;
}

.order-card {
  position: relative;
  background-color: #fff;
  border-radius: 40px;
  height: 600px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.order-bg-img {
  position: absolute;
  z-index: 0;
  width: 500px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
}

#order1_pic {
  top: -150px;
  left: -240px;
  transform: rotate(-205deg) scale(1);
}

#order2_pic {
  bottom: -160px;
  right: -190px;
  transform: rotate(0deg) scale(1);
}

.order-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.order-bottom-link {
  position: absolute;
  bottom: 55px;
  width: 100%;
  text-align: center;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.order-bottom-link .link-default:hover {
  color: #F05536;
}

/* =========================================================
   SOCIALS
========================================================= */
.socials-section {
  background-color: #F5F6FB;
  color: #0E0A0B;
  padding: 60px 0;
}

.socials-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 17px;
  text-align: center;
  margin-top: 80px;
}

.socials-subtitle {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: #F05536;
  margin-bottom: 16px;
}

.socials-header {
  font-weight: 500;
  font-size: 60px;
  line-height: 73px;
  letter-spacing: -3%;
  color: #0E0A0B;
  margin-bottom: 40px;
}

.socials-scroll-wrapper {
  overflow-x: auto;
  display: flex;
  justify-content: center;
  margin-top: 100px;
  margin-bottom: 40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.socials-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.socials-list {
  display: flex;
  gap: 20px;
  padding: 0 17px;
  box-sizing: border-box;
  width: max-content;
}

.socials-item {
  flex: 0 0 auto;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.socials-item:hover {
  opacity: 0.9;
}

.socials-item img {
  width: 100%;
  border-radius: 40px;
  object-fit: cover;
  height: 260px;
  transition: opacity 0.3s;
}

.socials-item p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  transition: color 0.3s;
}

.socials-item p .gray {
  color: #7A7A7A;
}

.socials-item p .black {
  color: #0E0A0B;
  font-weight: 500;
}

.socials-item:hover img {
  opacity: 0.7;
}

.socials-item:hover p {
  color: #F05536;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background-color: #F5F6FB;
  color: #0E0A0B;
  padding: 60px 0 40px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 57px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #0E0A0B;
}

.footer-desc {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #7A7A7A;
  max-width: 400px;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-end;
  flex: 1 1 600px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.footer-col a {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: #0E0A0B;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #F05536;
}

.footer-col:last-child {
  text-align: right;
  align-items: flex-end;
}

.footer-bottom {
  text-align: left;
  font-size: 16px;
  color: #7A7A7A;
}

/* =========================================================
   STICKY HEADER
========================================================= */
.sticky-header {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1246px;
  height: 100px;
  background-color: #ffffff;
  border-radius: 28px;
  box-sizing: border-box;
  display: none;
  z-index: 999;
}

.sticky-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}

.sticky-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sticky-left img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 0;
}

.sticky-name {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #0E0A0B;
}

.sticky-center {
  display: flex;
  gap: 26px;
}

.sticky-center a {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #0E0A0B;
  transition: color 0.2s;
}

.sticky-center a:hover {
  color: #EC4928;
}

.sticky-right .sticky-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 32px;
  background-color: #000000;
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sticky-right .sticky-button:hover {
  background-color: #EC4928;
}

@media (max-width: 767px) {
  .sticky-header {
    display: none !important;
  }
}

/* =========================================================
   RESPONSIVE (only for kept sections)
========================================================= */
@media (min-width: 900px) and (max-width: 1279px) {

  h1,
  .site-header .header-title {
    font-size: 72px;
    line-height: 90px;
  }

  h2,
  .uiux-header,
  .socials-header {
    font-size: 40px;
    line-height: 50px;
  }

  h3 {
    font-size: 24px;
    line-height: 30px;
  }

  p,
  .p1,
  .p2,
  a,
  .header-nav a,
  .header-nav .logo,
  .button-orange,
  .btn-white,
  .footer-col a,
  .footer-title,
  .footer-desc,
  .sticky-name,
  .sticky-center a,
  .sticky-right .sticky-button,
  .uiux-subheader {
    font-size: 16px;
    line-height: 22px;
  }

  .p3 {
    font-size: 10px;
    line-height: 10px;
  }

  .sticky-header {
    width: calc(100% - 34px);
    max-width: 1246px;
  }

  .footer-left {
    flex: 1 1 240px;
  }
}

@media (max-width: 899px) {
  .site-header {
    height: auto;
    max-height: none;
    padding-bottom: 40px;
  }

  /* навигация на мобиле скрыта как было */
  .header-nav {
    display: none;
  }

  .header-content.header-hero {
    padding-top: 28px;
    width: 90%;
    margin: 0 auto 0;
  }

  .header-links {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .btn-white {
    padding: 16px 28px;
  }

  .uiux-container {
    flex-direction: column;
    padding: 20px 16px;
  }

  .button-orange {
    font-weight: 500;
    font-size: 18px;
  }

  /* socials container spacing */
  .socials-header-container {
    margin-top: 40px;
  }

  /* footer mobile layout */
  .site-footer {
    padding: 40px 20px;
    width: auto;
  }

  .footer-container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-right {
    flex-direction: column;
    width: 100%;
    gap: 46px;
    flex: auto;
    justify-content: flex-start;
  }

  .footer-col {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .footer-col a {
    display: block;
    width: 100%;
    text-align: left;
  }

  .footer-bottom {
    margin-top: 32px;
    text-align: left;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .header-hero-picture img {
    width: min(520px, 86vw);
  }
}


/* ТУТ НОВОЕ ПРАВИЛО - ОДИН ЭЛЕМЕНТВ  СТРОКЕ. FORCE: 1 card per row + fixed height 600px */
.uiux-portfolio-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 40px !important;

  /* на всякий случай выключаем multi-column, если он где-то включён */
  column-count: 1 !important;
  column-gap: 0 !important;
}

.uiux-portfolio-card {
  height: 600px !important;
}

/* темный фон */

.uiux-section {
  background-color: #29282A !important;
}

.uiux-portfolio-card {
  background-color: #000000 !important;
}

.uiux-portfolio-card {
  color: #fff;
}

@media (min-width: 900px) {
  .header-hero-picture {
    margin-top: 0;
  }

  .header-hero-picture img {
    transform: translateY(-320px) translateX(-40px);
  }
}

.header-hero-text {
  margin-top: -440px;
}

.header-hero-actions {
  margin-top: 32px;
}

/* NAV выше картинки */
.header-nav{
  position: relative;
  z-index: 50;
}
