@import url(./reset.css);
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Poppins:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

/* 
font-family: 'DM Sans', sans-serif;
font-family: 'Poppins', sans-serif; 
font-family: "Ubuntu", sans-serif;
*/


/* 
* {
    border: 1px solid red;
}
 */

:root {
    --blacpure: #000;
    --black: #171718;
    --black-border: #26292D;
    --white: #fff;
    --purple: #5C62EC;
    --gold: #CBB26A;

    --text-color: var(--black);
    --dark-bg: var(--black);
    --dark-border: var(--black-border);
    --header-text: var(--white);
    --accent: var(--purple);

    /* LIGHT MODE */

    --page-bg: var(--white);
    --text-color: var(--black);

    --title-1: var(--accent);
    --title-3: var(--accent);
    --project-card-bg: var(--white);
    --project-card-text:var(--black);
    --box-shadow: 0 5px 35px rgba(0, 0, 0, 0.25);
    --form:var(--black);
}

.dark {

    /* DARK MODE */

    --page-bg: #252526;
    --text-color: var(--white);
    --title-1:var(--gold);
    --title-3:var(--gold);
    --project-card-bg: var(--black);
    --project-card-text:var(--white);
    --box-shadow: 0 5px 35px rgba(0, 0, 0, 0.8);
    --form:var(--white);
}

html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    letter-spacing: -0.5px;
    font-family: "Lexend Deca", sans-serif;
    scroll-behavior: smooth;

    /* Light mode */
    background-color: var(--page-bg);
    color: var(--text-color);
}

body.pl {
    font-family: "Lexend Deca", sans-serif;
}

/* Русская версия — Ubuntu */
body.ru {
    font-family: 'Ubuntu', sans-serif;
}

.sticky {
    position: sticky;
    top: 0;
}

   menu {
    --size: 2.5rem;
    --radius: 60px; /* расстояние между элементами */
    --padding-right: 3rem;
    --padding-bottom: 3rem;
    --bg-color: rgba(255, 255, 255, 0.9);
    --fg-color: rgba(0, 0, 0, 0.7);
    --hi-color: #c22eff;

    position: fixed;
    bottom: var(--padding-bottom);
    right: var(--padding-right);
    z-index: 1000;
}

menu > * {
    position: absolute;

    display: grid;
    place-content: center;

    border-radius: 50%;

    background: var(--bg-color);
    color: var(--fg-color);

    text-decoration: none;

    box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* === Элементы выдвигаются строго вверх === */
menu > .action {
    --factor: 0;
    --index: 1;

    width: var(--size);
    height: var(--size);
    right: calc(0.35 * var(--size));
    bottom: calc(0.35 * var(--size));

    opacity: 0;

    transform: translateY(calc(-1 * var(--radius) * var(--factor) * var(--index)));

    transition: transform 250ms ease-in-out, opacity 250ms ease-in-out, box-shadow 250ms ease-in-out, color 250ms ease-in-out;
}

menu.open > .action {
    --factor: 1;
    opacity: 1;
}

/* Индексы для красивой цепочки */
menu > .action:nth-child(1) { --index: 1; transition-delay: 0ms; }
menu > .action:nth-child(2) { --index: 2; transition-delay: 50ms; }
menu > .action:nth-child(3) { --index: 3; transition-delay: 100ms; }
menu > .action:nth-child(4) { --index: 4; transition-delay: 150ms; }
menu > .action:nth-child(5) { --index: 5; transition-delay: 200ms; }

menu > .action:hover, menu > .trigger:hover {
    color: var(--hi-color);
    box-shadow: 0px 0px 0px 0.35rem rgba(0, 0, 0, 0.2);
}

menu > .trigger {
    width: calc(1.6 * var(--size));
    height: calc(1.6 * var(--size));
    bottom: 0;
    right: 0;

    font-size: 2rem;
    transition: box-shadow 250ms ease-in-out, color 250ms ease-in-out;
}

menu > .trigger > i {
    transition: transform 250ms ease-in-out;
}

menu.open > .trigger > i {
    transform: rotate(-135deg);
}

.strong {
    font-weight: bold;
}

/* === Пульс триггера === */
.pulse::after,
.pulse::before {
    content: '';
    position: absolute;
    border: 2px solid #CBB26A;
    left: -5px;
    opacity: 0;
    right: -5px;
    top: -5px;
    bottom: -5px;
    border-radius: 50%;
    animation: pulse 2.5s linear infinite;
}

.pulse::after {
    animation-delay: 1.25s;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

strong {
    font-weight: 500;
    color: var(--gold);
}

.container {
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1200px;
}

.none {
    display: none !important;
}

/* GENERAL */

.section {
    padding: 50px 0;
}
.title-1 {
    margin-bottom: 40px;
    font-size: 60px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--title-1);
    text-align: center;
}

.title-2 {
    margin-bottom: 20px;
    
    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
}

.content {
    display: flex;
    justify-content: space-between;
    column-gap: 50px;
    row-gap: 10px;
}

/* Базовый стиль перед появлением */
.scroll-animate {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

/* Вариации направления */
.scroll-left {
  transform: translateX(-60px);
}
.scroll-right {
  transform: translateX(60px);
}
.scroll-up {
  transform: translateY(60px);
}

/* Когда появляется */
.scroll-animate.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* NAV */

.nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--dark-border); 
    background-color: var(--dark-bg);
    color: var(--header-text);
    letter-spacing: normal;
    z-index: 3;
}

.nav-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 30px;
    row-gap: 20px;
    flex-wrap: wrap;
}

.logo {
    margin-right: auto;
    color: var(--header-text);
    font-family: 'ubuntu', sans-serif;
    font-size: 24px;
}

.logo strong {
    font-weight: 700;
}

.nav-list {
    display: flex;
    align-items: center;
    column-gap: 40px;
    row-gap: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'ubuntu', sans-serif;
}

.nav-list__link {
    color: var(--header-text);
    transition: opacity 0.2s ease-in;
}

.nav-list__link:hover {
    opacity: 0.8;
}

.nav-list__link--active {
    position: relative;
}

.nav-list__link--active::before {
    content: "";

    position: absolute;
    left: 0;
    top: 100%;

    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--gold);
}

/* DARK MODE BTN */

.dark-mode-btn {
    order: 9;
    display: flex;
    justify-content: space-between;

    position: relative;

    width: 51px;
    height: 26px;
    padding: 5px;

    border-radius: 50px;
    background-color: #272727;
}

.dark-mode-btn::before {
    content: "";
    display: block;

    position: absolute;
    top: 1px;
    left: 1px;

    width: 24px;
    height: 24px;

    border-radius: 50%;
    background-color: #fff;

    transition: left 0.2s ease-in;
}

.dark-mode-btn--active::before {
    left: 26px;
}

.dark-mode-btn__icon {
    position: relative;
    z-index: 9;
}

/* HEADER */

.header {
    padding: 40px 0;
    min-height: 395px;

    display: flex;
    justify-content: center;
    align-items: center;


    background-image: url('./../img/welcome.jpg');
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center center;


    color: var(--header-text);
    text-align: center;
}

.header__wrapper {
    padding: 0 15px;
    max-width: 660px;
}

.header__title {
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
}

.header__title strong {
    font-size: 60px;
    font-weight: 500;
    /* color: #CBB26A; */
    background: linear-gradient(90deg,rgba(185, 137, 71, 1) 0%, rgba(250, 240, 161, 1) 100%);
    color: transparent;
    background-clip: text;
}

.header__title em {
    font-style: normal;
    color: var(--accent);
}

.header__text {
    margin-bottom: 40px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 300;
}

.header__text p + p {
    margin-top: 0.5em;
}

/* BTN */

.btn {
    display: inline-block;
    height: 48px;
    padding: 12px 28px;

    border-radius: 5px;

    background: linear-gradient(90deg,rgba(185, 137, 71, 1) 0%, rgba(250, 240, 161, 1) 100%);
    color: black;

    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.15px;

    transition: opacity 0.2s ease-in;
}


.btn-place {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn__down {
    margin-top: 40px;
}

.btn:hover {
    opacity: 0.8;
}

.btn:active {
    position: relative;
    top: 1px;
}

/* BTN OUTLINE */

.btn-outline {
    display: flex;
    column-gap: 10px;
    align-items: center;

    height: 48px;
    border-radius: 5px;
    padding: 12px 20px;

    border: 1px solid var(--blacpure);
    color: var(--blacpure);
    background-color: var(--white);

    transition: opacity 0.2s ease-in;
}

.btn-outline:hover {
    opacity: 0.8;
}

.btn-outline:active {
    position: relative;
    top: 1px;
}

/* BOX */

.box__section {
    margin: 20px 0;
    padding: 0;
}

.box__container {
    padding: 0;
    width: 100%;
}

.box__row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 0 5px;
    padding: 20px;
    width: 33.3333%;
    height: 100%;
    text-align: center;
}

.box h3 {
    font-weight: 500;
}


/* PROJECTS */

.projects-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 30px;
}

.project {
    max-width: 370px;
    background-color: var(--project-card-bg);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
}

.project__naprawa {
    text-align: center;
    margin-bottom: 50px;
}

.projeect-img {
    border-radius: 10px;
}

.project__title {
    padding: 15px 20px 25px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: var(--project-card-text);
}

/* .devices-carousel {
    overflow: hidden;
    background: var(--bg-color);
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
    cursor: grab;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}


.carousel-track:active {
    cursor: grabbing;
}
.device {
    width: 300px;
    flex: 0 0 300px;
    margin-right: 30px;
}

.device img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: 0.3s;
}

.device img:hover {
    transform: scale(1.05);
    box-shadow: var(--gold);
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
} */

.devices-carousel {
    overflow: hidden;
    padding: 30px 0 0 0;
    background: var(--bg-color);
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: max-content;
    cursor: grab;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.device {
    width: 300px;
    flex: 0 0 200px;
    margin-right: 30px;
}

.device img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    transition: 0.3s;
}

.device img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
}

.before-after {
    padding: 20px 0;
    background: var(--bg-color);
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
}

/* GRID */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */
.ba-item {
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--black);
    transition: 0.3s;
}

.ba-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px var(--black);
}

/* КАРТИНКИ */
.ba-item img {
    width: 50%;
    height: 220px;
    object-fit: cover;
    float: left;
}

/* LABELS */
.ba-labels {
    display: flex;
}

.ba-labels span {
    width: 50%;
    text-align: center;
    background: #00ffff;
    color: #000;
    font-weight: bold;
    padding: 6px 0;
    font-size: 12px;
}

/* TEXT */
.ba-item h3 {
    clear: both;
    padding: 20px 20px 5px;
    font-size: 18px;
}

.ba-item p {
    padding: 0 20px 25px;
    color: #bbb;
    font-size: 14px;
}
/* PROJECTS DETAILS */

.project-details{
    margin: 0 auto;
    max-width: 865px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.project-details__cover {
    max-width: 100%;
    margin-bottom: 40px;
    box-shadow: 0px 5px 35px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.project-details__desc {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 30px;
}

/* SKILLS */

.content-list {
    /* max-width: 570px; */
    margin: 0 auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* align-items: center; */

    row-gap: 40px;
    text-align: center;
}

.content-list a {
    color: var(--title-3);
}

.content-list__item {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
}

.content-list__item p + p {
    margin-top: 0.5em;
}

.title-2 {
    margin-bottom: 30px;

    font-size: 40px;
    font-weight: 300;
    line-height: 1.3;
}

/* Section Parallax */

.page-section-ptb {
    position: relative;
    padding: 100px 0; /* Отступы сверху и снизу */
    overflow: hidden;
    color: #626262; /* Белый цвет текста по умолчанию */
}

/* Стили для контейнера с контентом */
.page-section-ptb .container {
    position: relative;
    z-index: 2; /* Контент будет выше фона */
}

/* Стили для заголовка секции */
.page-section-ptb .section-title {
    margin-bottom: 30px;
}

.page-section-ptb h6 {
    margin-bottom: 20px;

    font-size: 26px;
    font-weight: 600;
    line-height: 20px;
    color: var(--white)
}

.page-section-ptb h3 {
    margin-bottom: .5rem;
    font-size: 32px;
    font-weight: 400;
    line-height: 35px;
    color: var(--white)
}

/* Стили для списка */
.page-section-ptb ul {
    padding-left: 3rem;
}

.page-section-ptb ul li {
    font-size: 26px;
    font-weight: 400;
    line-height: 40px;
    color: #ffffff;
    list-style-image: url(/img/icons/dot.svg);
}

/* Стили для фонового изображения */
.jarallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Высота для полного покрытия секции */
    background-size: cover;
    background-position: center;
    z-index: 1; /* На заднем плане */
}

.key {
    display: flex;
    justify-content: space-between;
    column-gap: 50px;
}

.key__img {
    margin-top: 30px;
    width: 800px;
}

.key__content a {
    margin: 20px;
}

.key__content p {
    padding-left: 20px;
    font-weight: 300;
    font-size: 26px;
}

.key__list {
    margin-bottom: 26px;
    padding-left: 20px;
}

.key__list li {
    font-size: 26px;
    font-weight: 300;
}

.key__list-item {
    padding-left: 20px;
}

.title-3 {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 26px;
    color: var(--title-3);
}


.row {
    display: flex;
    text-align: center;
}

.row__item-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.row__item-list li {
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    padding-top: 20px;
    margin: 0 20px;
    list-style-image: url(/img/icons/key.svg);
    text-transform: capitalize;
}

.pdf-download {
    padding: 40px 20px;
    background: rgb(22, 22, 22);
    color: #fff;
    text-align: center;
    margin: 0;
}

.pdf-download h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.pdf-download p {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 30px;
}

.btn-download {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.btn-download:hover {
    background: #ffffff;
    transform: translateY(-3px);
}


.process {
    font-size: 34px;
    font-weight: 300;
    margin-bottom: 30px;
    text-align: center;
}

.process__list {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    align-items: center;
    column-gap: 50px;
}

.process__info-number {
    text-align: left;
    font-size: 60px;
    font-weight: 700;
    line-height: 50px;
    margin-top: 20px;
}

.process__info-title {
    text-align: left;
    font-size: 28px;
    font-family: 500;
    line-height: 36px;
    margin: 0 0 10px;
}

.process__info-text {
    font-weight: 300;
}

.container__faq {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #CBB26A;
  background-color: #171718b3;
}

/* Элемент FAQ */
.faq__item {
  padding: 10px 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Заголовок */
.faq__item h3 {
  font-size: 30px;
  text-align: left;
  margin-bottom: 0px;
}

/* Кнопка */
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 0;
  font: inherit;
  transition:
    background-color 0.3s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover эффект */
.faq__question:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Стрелка */
.faq__arrow {
  font-size: 30px;
  padding-left: 10px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item.active .faq__arrow {
  transform: rotate(180deg);
}

/* Ответ */
.faq__answer {
    font-size: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* Активный ответ — плавное появление */
.faq__item.active .faq__answer {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

/* ✨ Мягкое смещение вопроса вниз при раскрытии */
.faq__item.active .faq__question {
  transform: translateY(5px);
}

/* FOOTER */

.footer {
    margin-top: auto;
    background-color: var(--dark-bg);
    padding: 60px 0 50px;
    color: var(--white);
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 27px;
}

.social {
    display: flex;
    column-gap: 15px;
    align-items: center;
}

.copyright {
    font-size: 16px;
}

.container p + p {
    margin-top: 0.5em;
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #CBB26A;
  background-color: #171718b3;
  border-radius: 20px;
  padding: 30px;

  max-width: 700px;
  margin: 0 auto;
}

.contact h2.title-1 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form__title {
  text-align: center;
  margin-bottom: 30px;
}

form#contactForm {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Имя и телефон в одной строке */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form {
  padding: 15px;
  border: 1px solid #CBB26A;
  border-radius: 10px;
  font-size: 16px;
  flex: 1;
}

.custom-select {
  position: relative;
  width: 100%;
  border: 1px solid #CBB26A;
  border-radius: 10px 10px 0 0;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: border-radius 0.3s ease; /* плавный переход углов */
}

.select-selected {
  padding: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-selected:hover,
.select-selected.active {
    border-color: #bfa050;
}


/* Сам список — закругляем только снизу */

.select-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #CBB26A;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background-color: #252526;
  max-height: 0;
  overflow-y: auto;  /* вертикальный скролл при переполнении */
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  z-index: 99;
}

.select-items::-webkit-scrollbar {
  width: 6px;
}

.select-items::-webkit-scrollbar-thumb {
  background-color: #CBB26A;
  border-radius: 3px;
}

.select-items::-webkit-scrollbar-track {
  background: #252526;
  border-radius:20px 20px 100px 0;
}


.select-items div {
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.select-items div:hover {
  background-color: #CBB26A;
}

.select-items.show {
  max-height: 200px;
  opacity: 1;
}
/* select и галочка */

.consent {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin:20px 0;
}

.consent input {
  margin-right: 8px;
}

/* Кнопка */
button.btn {
  padding: 15px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background-color: #CBB26A;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.btn:hover {
  background-color: #bfa050;
}

/* Сообщение об успехе */
.success-message {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.success-message.show {
  display: block;
  opacity: 1;
}

.inst__sub {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0px;
  padding: 0px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.inst__title {
    padding-bottom: 10px;
}

/* При появлении на экране */
.inst__sub.visible {
  opacity: 1;
  transform: translateY(0);
}

.inst__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(203, 178, 106, 0.2);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  max-width: 400px;
}

.inst__screen img {
  width: 100%;
  display: block;
  border-radius: 20px;
  transition: transform 0.6s ease;
}

/* Hover эффект — лёгкое увеличение */
.inst__screen:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(203, 178, 106, 0.4);
}

.inst__screen:hover img {
  transform: scale(1.05);
}

/* 🔥 Лёгкая “покачивающая” анимация */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.inst__screen {
  animation: float 6s ease-in-out infinite;
}

/* SEO текст — для Google, но скрыт для людей */
.seo-text {
  position: absolute;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Визуальные карточки для пользователей */
.faq-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.faq-card {
  flex: 1 1 calc(33.333% - 10px); /* 3 карточки в ряд */
  background: #171718b3;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-5px);
  background: rgba(203,178,106,0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/* MOBILE */

@media (max-width: 800px) {
    .key__img {
        display: none;
    }

    .row__item-list li {
        font-size: 16px;
        padding-top: 10px;
        margin-top: 0px;
    }
    .process__list {
        flex-wrap: wrap;
    }
    .faq-card {
    flex: 1 1 100%;
  }
  .box h3 {
    font-size: 22px;
  }
    
}


@media (max-width: 620px) {

    menu {
        bottom: 3rem;
        right: 2rem;
    }

    /* HEADER*/

    /* .header {
        min-height: 80vh;
    } */

    .header__title {
        font-size: 30px;
    }

    .header__title strong {
        font-size: 40px;
    }
    .form-row {
    flex-direction: column;
  }
  .form-row input {
    margin: 0;
  }

  .inst__sub {
    flex-direction: column;
    gap: 20px;
  }

  .ba-grid {
    display: block;
    flex-direction: column;
  }
  
  .ba-item {
    margin-top: 20px;
  }


    /* NAV */

    .nav-row {
        justify-content: space-between;
    }

    .dark-mode-btn {
        order: 0;
    }

    /* GENERAL */

    .section {
        padding: 40px 0;
    }

    .box__section {
        padding: 0;
    }

    .title-1 {
        margin-bottom: 30px;
        font-size: 40px;
    }

    .title-2 {
        margin-bottom: 10px;
        font-size: 30px;
    }

    .box h3 {
        font-size: 18px;
    }

    /* PROJECTS */

    .project__title {
        font-size: 22px;
    }

    .project-details__desc {
        font-size: 22px;
        margin-bottom: 20px;
    }

    /* CONTENT LIST */

    .content-list {
        row-gap: 20px;
        justify-content: center;
    }

    .content-list__item {
        font-size: 16px;
    }

    /* FOOTER */

    .footer {
        padding: 40px 0 30px;
    }

    .footer__wrapper {
        row-gap: 20px;
    }

    /* SOCIAL */

    .social {
        column-gap: 20px;
    }

    .social__item {
        width: 28px;
    }
    /* .process__list {
        flex-wrap: wrap;
    } */

    .contact {
        column-gap: 20px;
        flex-wrap: wrap;
    }
    .form {
        margin: 20px;
    }
    .faq__question {
    flex-direction: row;
    text-align: left;
    }
    .faq__item h3 {
        font-size: 24px;
    }

}

@media (max-width: 420px) {
    menu {
        right: 1rem;
    }
    .page-section-ptb h3 {
        font-size: 26px;
    }
    .page-section-ptb ul li {
        font-size: 18px;
    }
    .header__title strong {
        font-size: 32px;
    }
    .box h3 {
    font-size: 14px;
    }
    .key__content p {
        font-size: 18px;
    }
    .process {
        font-size: 20px;
    }
    .process__info h2 {
        margin-bottom: 0;
    }
    .btn__down {
        padding: 15px;
    }
    .form {
        margin: 5px;
    }
    .faq__item {
        padding: 0;
    }
    .faq__item h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }
    .faq__arrow {
        font-size: 20px;
    }
    .faq__answer {
        font-size: 16px;
    }
    .title-1 {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .title-2 {
        margin-bottom: 5px;
        font-size: 22px;
    }
    .title-3 {
        font-size: 20px;
    }
    .key__list li {
        font-size: 18px;
    }
    .contact-form__title {
        margin-bottom: 0;
    }
}