/* ================================================ */
/* ШРИФТЫ */
/* ================================================ */

@font-face {
    font-family: 'medium';
    src: url(./fonts/InterTight-Medium.woff2);
    font-weight: 500;
}

@font-face {
    font-family: 'regular';
    src: url(./fonts/InterTight-Regular.woff2);
    font-weight: 400;
}


body {
    overflow-x: hidden;
}

html {
    font-size: 16px !important;
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
}

html {
    font-size: 16px !important;
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
    touch-action: pan-x pan-y;
}
/* ================================================ */
/* ГЛОБАЛЬНЫЕ СТИЛИ */
/* ================================================ */

.desktop { display: block; }
.mobile { display: none; }

.project-item {
    cursor: none;
}
a.arr, a.arrow-but {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.loader {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1rem, 2.08vw, 2.5rem);
    transition: opacity 0.6s ease;
}

.loader-center {
    position: absolute;
    bottom: 7rem;
    left: clamp(1rem, 2.08vw, 2.5rem);
    right: clamp(1rem, 2.08vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.loader-percent {
    font-family: 'medium';
    font-size: clamp(3rem, 8vw, 7rem);
    color: #F9F9F9;
    line-height: 1;
}

.loader-title {
    font-family: 'medium';
    font-size: clamp(3rem, 8vw, 7rem);
    color: #F9F9F9;
    line-height: 1;
}

.loader-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loader-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
}

.loader-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 1vw, 1rem);
    font-family: 'regular';
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D04200;
    display: inline-block;
}

.loader-bar-wrap {
    width: 100%;
    height: 1px;
    background: rgba(249,249,249,0.2);
}

.loader-bar {
    height: 1px;
    background: #D04200;
    width: 0%;
    transition: width 0.1s linear;
}

:root {
    --grid-offset: 19.2vw;
    --text3-current: 2.5vw;
    
    --brbr-current: 19vw;
    --right-col: 25.5vw;   /* ← добавить */
    --about-offset: 7.5vw
}



.sixth-title {
    margin-left: calc(var(--grid-offset) - var(--sixth-title-current));
    text-align: left;
}



/* cookie-banner.css */

#cookie-banner {
    display: block;
  position: fixed;
  bottom: 20px;           /* ← изменили top на bottom */
  right: 20px;
  left: auto;             /* центрируем по горизонтали */
  
  width: 25.875rem;       /* или max-width: 414px; */
  max-width: 90vw;        /* чтобы не вылезал на очень узких экранах */
  
  background: #1a1a1a;
  color: #ddd;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  font-family: 'medium';
  
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;   /* изменили transition */
  
  
}

#cookie-banner.show {
  opacity: 1;
  pointer-events: all;
}

#cookie-banner h1 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 550;
  line-height: 130%;
  letter-spacing: -0.0175rem;
  color: #ffffff;
  text-align: left;
  font-family: "medium";
}

#cookie-banner p {

  margin: 0 0 28px 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #ddd;
  letter-spacing: -0.015rem;
}

#cookie-banner a {
    display: inline; /* не block! */
  color: #ff6a00;
  
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.cookie-buttons button {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 11rem;
}

.byt {
    
    text-decoration: none !important;
}

.cookie-buttons #reject-btn {
  background: #ffffff;
  color: #1a1a1a;
}

.cookie-buttons #reject-btn:hover {
  background: #f0f0f0;
}

.cookie-buttons #accept-btn {
  background: #ff6a00;
  color: #ffffff;
}

.cookie-buttons #accept-btn:hover {
  background: #ff8533;
}



*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #F9F9F9;
    background-color: black;
    overflow-x: hidden;
}

.screen {
    margin-bottom: clamp(3rem, 6vw, 10rem);
}


/* ================================================ */
/* ТИПОГРАФИКА */
/* ================================================ */

h1 {
    font-size: clamp(2rem, 4.17vw, 5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 400;
    font-family: 'medium';
}

h2 {
    font-size: clamp(2rem, 3.44vw, 4.125rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 400;
    font-family: 'medium';
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 400;
    font-family: 'medium';
}

p, a {
    
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 300;
    font-family: 'regular';
}

span {
    
    
    letter-spacing: -0.01em;
    font-weight: 300;
    font-family: 'regular';
}


/* ================================================ */
/* УГЛОВЫЕ ДЕКОРАТОРЫ (corner-box) */
/* ================================================ */

.corner-box::before {
    content: '';
    position: absolute;
    top: 0px; left: 0px;
    width: 6px; height: 6px;
    border-top: 1px solid rgba(249,249,249,0.7);
    border-left: 1px solid rgba(249,249,249,0.7);
}

.corner-box::after {
    content: '';
    position: absolute;
    bottom: 0px; right: 0px;
    width: 6px; height: 6px;
    border-bottom: 1px solid rgba(249,249,249,0.7);
    border-right: 1px solid rgba(249,249,249,0.7);
}

.corner-box i {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.corner-box i::before {
    content: '';
    position: absolute;
    top: 0px; right: 0px;
    width: 6px; height: 6px;
    border-top: 1px solid rgba(249,249,249,0.7);
    border-right: 1px solid rgba(249,249,249,0.7);
}

.corner-box i::after {
    content: '';
    position: absolute;
    bottom: 0px; left: 0px;
    width: 6px; height: 6px;
    border-bottom: 1px solid rgba(249,249,249,0.7);
    border-left: 1px solid rgba(249,249,249,0.7);
}


/* ================================================ */
/* АККОРДЕОН (service-item) */
/* ================================================ */
.services .service-item {
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    
    border-top: 1px solid rgba(249, 249, 249, 0.20);
}

.services .service-item:last-child {
    border-bottom: 1px solid rgba(249, 249, 249, 0.20);
}

.services .service-header {
    display: contents;
    border-top: none;
    border-bottom: none;
}

.services .service-body {
    display: none;
    grid-column: 2;
    padding: 0 0 2rem;
    border-bottom: none;
}

.services .service-body.open {
    display: block;
}

.services .num,
.services .title {
    padding: 2rem 0;
}
.services .num{
    font-size: 1.5rem;
}
.services .icon {
    padding: 2rem 0;
    align-self: start;
}


.service-header {
    display: flex;
    align-items: center;
    padding: 2rem 0;
    
    cursor: pointer;
    font-weight: 400;
    letter-spacing: -0.015rem;
    line-height: 100%;
    border-top: 1px solid rgba(249, 249, 249, 0.20);
    border-bottom: 1px solid rgba(249, 249, 249, 0.20);
}


.services3 .num {
    padding-right: 2rem;
}
.services3 .service-header {
    display: contents !important;
}
.services3 .service-item {
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    gap: 0; /* без gap */
    border-top: 1px solid rgba(249, 249, 249, 0.20);
}

.services3 .num {
    padding: 2rem 2rem 2rem 0; /* справа gap вместо column-gap */
}

.services3 .title {
    padding: 2rem 0;
}

.services3 .icon {
    padding: 2rem 0 2rem 2rem; /* слева gap */
    align-self: start;
}
.services3 .icon {
    padding-left: 2rem;
}

.num {
    color: #D04200;
    min-width: 4rem;
}

.title {
    font-size: 1.5rem;
    flex: 1;
    color: rgba(249, 249, 249, 0.6);
    transition: color 0.3s ease;
}

.service-header.active .title {
    color: rgba(249, 249, 249, 1);
}


.service-header.active {
    border-bottom: none;
}

.icon-g {
    opacity: 0.6;
}

.icon-close {
    display: none;
}

.service-header.active .icon-plus {
    display: none;
}

.service-header.active .icon-close {
    display: block;
}


    


.service-body {
    
    display: none;
    
    color: rgba(249, 249, 249, 0.6);
    line-height: 1.3;
    border-bottom: 1px solid rgba(249, 249, 249, 0.20);
}

.service-body p {
    
    line-height: 1.6;
    margin: 0;
    
}

.service-body.open {
    display: block;
}


/* ================================================ */
/* FIRST SCREEN — хедер и герой */
/* ================================================ */

.first-screen {
    position: relative;
    width: 100%;
    background-image: url(./img/Photo.png);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



.first2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 34rem;
    height: 28.842rem;
    object-fit: cover;
    z-index: 0;
}

/* ================================================ */
/* FIRST SCREEN — ХЕДЕР (обновлённый грид) */
/* ================================================ */
.header {
    flex: 0 0 auto; /* ← не растягивается */
    padding: clamp(1rem, 2.08vw, 2.5rem);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.header-text-grid {
    width: 100%;
}

.header-buttons {
    display: grid;
    grid-template-columns: var(--right-col) auto 1fr auto;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    width: 100%;
    min-height: 100%;
}

/* Лого — строка 1, колонка 1 */
.header-buttons .logo {
    grid-column: 1;
    grid-row: 1;
}

/* Design studio — строка 1, колонка 2 */
.header-buttons .pup {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

/* brbr — строка 2, колонка 2 — ровно под Design studio */
.header-buttons .brbr {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    grid-column: 2;
    grid-row: 2; /* ← верни на row 2 */
    align-self: center;
    margin-top: 40%;
    top: 50%;
}


.header-buttons {
    grid-template-rows: auto 1fr auto;
}

/* Язык — строка 1, колонка 4 */
.header-buttons .language {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    margin-left: var(--right-col); /* убрать */
}

/* Бургер — строка 1, колонка 5 */
.header-buttons .burger {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
}
.brbr p {
    display: flex;
    flex-direction: row;
    font-size: 1.5rem;
    line-height: 130%;
    margin: 0;
}

.brbr svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}
/* Кнопки справа (язык + бургер) */


/* Если у тебя ещё остались старые стили button.language и .burger — они работают */


.LAO {
    
    width: clamp(2.5rem, 3.5vw, 5.8125rem);
height: clamp(2.25rem, 3vw, 5.125rem);
    transform: rotate(0deg);
    opacity: 1;
}

button.language {
    display: flex;
    margin-right: 0;
    margin-left: 0; /* убрать var(--right-col) */
    align-items: center;
    gap: 0.65rem;
    border: none;
    outline: none;
    background: none;
    color: #F9F9F9;
}

.burger {
    margin-left: auto;
    position: relative;
    
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    transition: background 0.2s;
    border-radius: 0.56944rem;
}

.burger.active {
    background: white;
}

.burger:hover {
    background: white;
}

.line {
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
}


.burger:hover .line,
.burger.active .line {
    background: black;
}


.hero {
    flex: 1; /* ← растягивается */
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: clamp(1rem, 2.08vw, 2.5rem);
    
    width: 100%;
}

.structure {
    font-size: clamp(5rem, 7.17vw, 8.75rem);
    margin-top: 0;
    margin-bottom: -2rem;
    align-items: flex-start;
}





.description {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3.125vw, 3.75rem);
    align-items: flex-end;
    z-index: 1;
}

.parent {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    margin-bottom: -0.5rem;
}


.parent.btn-group {
  display: flex;
  gap: 0.38rem;
  max-width: 520px;           /* максимальная ширина на больших экранах */
  width: 100%;                /* занимает всю ширину родителя */
  margin-top:auto;             /* центрируем */
}

/* Основная кнопка с текстом */
.arr.corner-box {
  flex: 1;                    /* занимает всё доступное место */
  padding: 16px 24px;
  font-size: 17px;
  white-space: nowrap;
}

/* Кнопка со стрелкой */
.arrow-but.corner-box {
  flex-shrink: 0;             /* не сжимается */
  height:clamp(4.625rem, 3vw, 5.125rem);
  width:clamp(4.625rem, 3vw, 5.125rem);               /* фиксированная ширина */
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


.arr {
    color: #F9F9F9;
    border-radius: 0.625rem;
    background: rgba(249, 249, 249, 0.14);
    min-width: 14rem;
    height:clamp(4.625rem, 3vw, 5.125rem);
    position: relative;
    border: none;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.arrow-but {
    
    height:clamp(4.625rem, 3vw, 5.125rem);
    border-radius: 0.625rem;
    background: rgba(249, 249, 249, 0.14);
    position: relative;
    border: none;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.arrow {
    width: 1.09375rem;
    height: 0.875rem;
    stroke-width: 3px;
    stroke: var(--Orange, #D04200);
}

.arrow path {
    transition: stroke 0.3s ease;
}

.btn-group:hover .arr,
.btn-group:hover .arrow-but {
    background: rgba(208, 66, 0, 0.8);
    color: #fff;
}

.btn-group:hover .arrow path {
    stroke: #fff;
}


/* ================================================ */
/* SECOND SCREEN — про нас + услуги */
/* ================================================ */

.second-screen {
    display: grid;
    grid-template-columns: var(--right-col) 1fr;
    align-items: flex-start;
    padding: clamp(1rem, 2.08vw, 5rem);
}

.about-us {
    grid-column: 1;
    position: relative;
    min-height: 10rem;
}

.ab-text {
    position: absolute;
    opacity: 0.3;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.015rem;
    white-space: nowrap;
}

.photo1 {
    margin-left: 2rem;
    width: 35.5rem;
    height: 35.875rem;
    flex-shrink: 0;
}

.about {
    grid-column: 2;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    height: clamp(1.5rem, 3vw, 2.5rem);
    
}


.about-inner {
    margin-left: var(--right-col);
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--right-col)); /* чтобы не вылезал */
}

.text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text h3 {
    margin: 0;
}

.text p {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.services {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 4rem;
}


/* ================================================ */
/* THIRD SCREEN — процессы */
/* ================================================ */

.third-screen {
    display: grid;
    grid-template-columns: var(--right-col) 1fr;
    align-items: flex-start;
    padding: clamp(1rem, 2.08vw, 5rem);
}

.process {
    grid-column: 1;
    position: relative;
    min-height: 10rem;
}

.text3 h2 {
    margin-top: -0.5rem;
    line-height: 120%;
    letter-spacing: -0.04125rem;
}

.about3 {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    
}



.services3 {
    display: flex;
    flex-direction: column;
    
}

.services3 .service-header {
    width: 100%;
}

.services3 .title {

    font-size: clamp(1.75rem, 2.8vw, 3.375rem);
}

.services3 .num {
    white-space: nowrap;
    font-size: clamp(1.75rem, 2.8vw, 3.375rem);
}

.services3 .service-body p {
    padding:  0  0 2rem 0;
    font-size: clamp(1.25rem, 1.67vw, 2rem);
}


/* ================================================ */
/* FOURTH SCREEN — лого */
/* ================================================ */

.fourth-screen {
    position: relative;
    padding: clamp(1rem, 2.08vw, 2.5rem);
}

.fourth-screen {
    padding: var(--section-padding);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.video-screen {
    position: relative;
    width: 100%;
    max-width: 1200px;           /* ← размер большого блока */
    height: 680px;               /* ← высота большого блока (можно clamp) */
    border-radius: 1.5rem;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Само видео — меньше блока */
.background-video {
    width: 85%;                  /* ← здесь регулируешь размер видео */
    height: 85%;
         /* или contain, если не хочешь обрезки */

}

.imglogo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.imglogo img {
    width: 25%;
    height: 25%;
    object-fit: cover;
}

.imglogo::before,
.imglogo::after {
    width: 9px;
    height: 9px;
}

.imglogo i::before,
.imglogo i::after {
    width: 9px;
    height: 9px;
}

/* ================================================ */
/* FIFTH SCREEN — проекты */
/* ================================================ */

.fifth-screen {
    
    padding: clamp(1rem, 2.08vw, 2.5rem);
   
}

.fifth-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.fifth-header h3 {
    margin: 0;
}

.fifth-label {
    opacity: 0.3;
    font-size: 1rem;
    white-space: nowrap;
}

.projects-grid {
    display: flex;
    gap: 1rem;

}

.projects-grid section {
    flex: 1;
}

.projects-grid section .project-item {
    width: 100%;
    
}

.fifth-bottom {
    display: flex;
    
    gap: 1rem;
}

.fifth-bottom section {
    flex: 1;
}

.fifth-bottom section .project-item {
    width: 100%;
    
}

.project-item {
    border-radius: 0.625rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.project-item img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.625rem;
    flex: 1;
}

.project-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0 0 0;
}

.project-num {
    color: #D04200;
    font-size: clamp(1.25rem, 1vw, 1.25rem);
    white-space: nowrap;
}

.project-name {
    color: rgba(249, 249, 249, 0.7);
    font-size: clamp(1.25rem, 1vw, 1.25rem);
}

.line-divider {
margin: clamp(2.5rem, 6vw, 3rem) 0 clamp(1.5rem, 4vw, 3rem) 0;
    width: 100%;
    height: 0.0625rem;
    opacity: 0.2;
    background: #F9F9F9;
    
}

.fifth-footer {
    margin-top: 5rem;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: 0.7rem;
    column-gap: 4.5rem;
    margin-left: clamp(2rem, 5vw, 3rem);
}






/* ================================================ */
/* SIXTH SCREEN — контакты + футер */
/* ================================================ */
.social-btn svg {
    width: 25px;
    height: 25px;
}

.sixth-screen {
    position: relative;
    padding: clamp(1rem, 2.08vw, 2.5rem);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sixth-top {
    display: grid;
    grid-template-columns: var(--right-col) 1fr auto;
    align-items: flex-start;
    margin-bottom: 2rem;
    z-index: 1;
}

.sixth-top .ab-text {
    grid-column: 1;
}


.sixth-top .sixth-title {
    grid-column: 2;
    margin: 0;
}

.sixth-top .icon-plus-contact {
    grid-column: 3;
}


.sixth-title {
    margin-top: 0;
    
    text-align: left;
    flex: unset;

}

.icon-plus-contact {
    opacity: 0.6;
}

.sixth-contacts {
    margin-top: 4.5rem;
    display: grid;
    grid-template-columns: var(--right-col) 1fr;
    align-items: center;
    margin-bottom: 4rem;
    
    z-index: 1;
}
.sixth-contacts {
    display: grid;
    grid-template-columns: var(--right-col) auto 1fr;
    align-items: center;
   
}

.sixth-label {
    grid-column: 1;
}

.sixth-links {
    grid-column: 2;
    margin-left: 0;
    margin-top: 0;
}
.sixth-contacts {
    display: grid;
    grid-template-columns: var(--right-col) 1fr;
    
    
}

.sixth-label {
    grid-column: 2;
    grid-row: 1;
}

.sixth-links {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    margin-top: 0;
}
.sixth-links {
    margin-left: 0;
    margin-top: 0;
}
.sixth-label {
    grid-column: 2;
    margin-left: 0; /* убрать старый margin-left */
    opacity: 0.4;
    white-space: nowrap;
}

.sixth-links {
    grid-column: 2;
    margin-left: var(--right-col);
    display: flex;
    gap: 3.5rem;
    
}

.sixth-links a {
    position: relative;
    color: #F9F9F9;
    text-decoration: none;
    font-size: clamp(0.875rem, 1.15vw, 1.375rem);
    transition: color 0.3s ease;
}

.sixth-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D04200;
    transition: width 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.sixth-links a:hover::after {
    width: 100%;
}

.sixth-links a:hover {
    color: #D04200;
}

.sixth-image {
    position: static;
    transform: none;
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: calc(-1 * clamp(1rem, 2.08vw, 2.5rem));
    margin-right: calc(-1 * clamp(1rem, 2.08vw, 2.5rem));
    width: calc(100% + 2 * clamp(1rem, 2.08vw, 2.5rem));
}

.sixth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sixth-footer {
    display: grid;
    grid-template-columns: var(--right-col) 1fr auto;
    align-items: center;
    padding-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.sixth-copy {
    grid-column: 1;
    opacity: 0.3;
    white-space: nowrap;
}

.sixth-nav {
    grid-column: 2;
    margin-left: var(--right-col); /* под кнопку языка */
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.sixth-socials {
    grid-column: 3;
    display: flex;
    gap: 0.5rem;
}

.sixth-nav a {
    position: relative;
    color: rgba(249, 249, 249, 0.6);
    text-decoration: none;
    font-size: clamp(0.75rem, 1vw, 1rem);
    transition: color 0.3s ease;
    display: inline-block;
}

.sixth-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F9F9F9;
    transition: width 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.sixth-nav a:hover {
    color: #F9F9F9;
}

.sixth-nav a:hover::after {
    width: 100%;
}



.social-btn {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 249, 249, 0.1);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

.social-btn:hover {
    background: rgba(208, 66, 0, 0.8);
}

.sixth-screen .line-divider {
    margin: 0;
    
    position: relative;
    z-index: 1;
    margin-left: calc(-1 * clamp(1rem, 2.08vw, 2.5rem));
    margin-right: calc(-1 * clamp(1rem, 2.08vw, 2.5rem));
    width: calc(100% + 2 * clamp(1rem, 2.08vw, 2.5rem));
}

.services3 .service-item {
    border-top: 1px solid rgba(249, 249, 249, 0.20);
}

.services3 .service-item:last-child {
    border-bottom: 1px solid rgba(249, 249, 249, 0.20);
}

.services3 .service-header {
    border-top: none;
    border-bottom: none;
}

.services3 .service-body {
    border-bottom: none;
}



.cursor-btn {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #D04200;
    color: #fff;
    font-family: 'regular';
    font-size: clamp(0.75rem, 0.9vw, 1rem);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: none;
}

.cursor-btn.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cursor-btn.clicking {
    transform: translate(-50%, -50%) scale(0.9);
}


.burger-menu {
    position: fixed;
    top: clamp(1rem, 2.08vw, 2.5rem);
    right: clamp(1rem, 2.08vw, 2.5rem);
    width: 26rem;
    height: auto;
    background: #111;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 2.08vw, 2.5rem);
    border-radius: 1rem;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1),
                opacity 0.3s ease;
}

.burger-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
    border-radius: 1rem;
}

.bm-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.bm-label {
    font-family: 'regular';
    font-size: 12px;
    color: rgba(249,249,249,0.4);
}

/* КНОПКА ЗАКРИТТЯ — X через псевдоелементи */
.bm-close {
    position: relative;
    width: 52px;
    height: 52px;
    background: white;
    border: none;
    border-radius: 0.56944rem;
    cursor: pointer;
    flex-shrink: 0;
}

.bm-close::before,
.bm-close::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 18px;
    height: 2px;
    background: black;
    border-radius: 2px;
}

.bm-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.bm-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Кутові декоратори для кнопки закриття */
.bm-close .bm-corner {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bm-close .bm-corner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0.0285rem;
height: 0.22775rem;
    border-top: 1px solid rgba(249,249,249,0.7);
    border-right: 1px solid rgba(249,249,249,0.7);
}

.bm-close .bm-corner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0.0285rem;
height: 0.22775rem;
    border-bottom: 1px solid rgba(249,249,249,0.7);
    border-left: 1px solid rgba(249,249,249,0.7);
}

.bm-close {
    overflow: visible !important;
}

.bm-close .bm-corner {
    overflow: visible;
}


.bm-close {
    background: #F9F9F9 !important;
}

.bm-close::before,
.bm-close::after {
    background: #000 !important;
}



.bm-nav {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(249,249,249,0.1);
    border-radius: 0;
    overflow: hidden;
    margin-top: clamp(5rem, 7vh, 10rem);
    margin-bottom: clamp(7.5rem, 8vh, 15rem);
    flex: 1;
}


.first2 {
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.first2.visible {
    opacity: 1;
    transform: translateY(0);
}



.burger-menu {
    height: calc(100vh - clamp(1rem, 2.08vw, 2.5rem) * 2);
}

.bm-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;  /* відступ зверху і знизу */
    font-family: 'medium';
    font-size: 1.6rem;
    color: #F9F9F9;
    text-decoration: none;
    border-bottom: 1px solid rgba(249,249,249,0.1);
    transition: background 0.3s;
    letter-spacing: -0.02em;
}

.bm-link:last-child {
    border-bottom: none;
}

.bm-link:hover {
    background: rgba(249,249,249,0.05);
}

.bm-num {
    font-family: 'regular';
    font-size: 10px;
    color: #D04200;
    flex-shrink: 0;
}




.bm-social {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    background:#111;
    border-radius: 0.25rem;
border: 1px solid rgba(249, 249, 249, 0.20);
    text-decoration: none;
    padding: 0.625rem 2.4375rem;
    transition: background 0.3s ease;
}

.bm-social img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}



.bm-social:hover {
    background: rgba(208, 66, 0, 0.6);
}


.bm-social:hover {
    background: rgba(208,66,0,0.6);
}

.services3 .service-item {
    display: grid;
    grid-template-columns: 7rem 1fr auto;
    
    border-top: 1px solid rgba(249, 249, 249, 0.20);
}

.services3 .service-item:last-child {
    border-bottom: 1px solid rgba(249, 249, 249, 0.20);
}

.services3 .service-header {
    display: contents; /* дети участвуют в гриде item */
    border-top: none;
    border-bottom: none;
}

.services3 .service-body {
    display: none;
    grid-column: 2; /* строго под .title */
    
    border-bottom: none;
}

.services3 .service-body.open {
    display: block;
}

/* padding у .num и .title вместо padding у хедера */
.services3 .num,
.services3 .title {
    padding: 3rem 0;
}

.services3 .icon {
    padding: 3rem 0;
    align-self: start;
}


