/* Reset styles */

body{
    font-family: Arial, sans-serif;
    background-color: #1889c2;
    margin: 0;
    padding: 20px;
}

#projects-gallery{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

#projects-gallery a {
    text-decoration: none;
    color: #000;
    background: #000;
}

ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  text-decoration: none;
  display: inline-block;
}

button {
  border: none;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

address {
  font-style: normal;
}

input,
textarea {
  display: block;
}
input,
textarea:focus-visible{
  outline: none;
  border: none;
}
textarea{
  resize:none;
}
select{
    outline: none;
    border: none;
}
option:hover{
  background-color: none;
}

body {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === Прелоадер === */
/* === Анімація появи === */
body {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === Прелоадер === */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.preloader__logo {
  text-align: center;
}
.preloader__logo img {
  max-width: 200px;
  height: auto;
}
.preloader__spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
.preloader--hidden {
  opacity: 0;
  pointer-events: none;
}

/* === Header === */
.header {
  background-color: var(--main-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  z-index: 100;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.header-logo {
  color: var(--logo-color);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-right: 40px;
}

.header-nav {
  display: flex;
}

.header-list {
  display: flex;
  gap: 2rem;
}

.header-link {
  color: var(--link-color);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.5rem 0.75rem;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-link:is(:hover, :focus) {
  color: var(--logo-color);
}

.header-lang {
  display: flex;
  gap: 20px;
  align-items: center;
}

.lang-select {
  border: none;
  width: auto;
  margin-right: 20px;
}

/* === Бургер кнопка === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.burger span {
  display: block;
  height: 3px;
  background-color: var(--logo-color);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}
.burger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* === Мобільні пристрої до 800px === */
@media screen and (max-width: 799px) {
  .burger {
    display: flex;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--main-color);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
    z-index: 1000;
  }

  .header-nav.open {
    display: flex;
  }

  .header-list {
    flex-direction: column;
    gap: 1rem;
  }

  .header-lang {
    flex-direction: column;
    margin-top: 1rem;
    gap: 10px;
  }

  .burger-menu {
    display: block;
  }

  .nav-links {
    display: none;
  }
}

/* === Від 800px і вище — звичайне меню === */
@media screen and (min-width: 800px) {
  .burger {
    display: none;
  }

  .header-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    position: static;
    background: transparent;
  }

  .header-list {
    flex-direction: row;
    gap: 2rem;
  }

  .header-lang {
    flex-direction: row;
    margin-top: 0;
  }

  .burger-menu {
    display: none;.main{
  margin-top: 68px;
}
  }

  .nav-links {
    display: flex;
  }
}

/* === Hero === */

.hero {
    padding: 5rem 0;
    background-image: linear-gradient(-45deg, var(--gradient-color), var(--linear-gradient-color));
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
}

.container.hero-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; 
    padding: 0 1rem; 
    box-sizing: border-box;
}

.hero-title {
    color: var(--main-color);
    font-weight: 700;
    font-size: 3.75rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-align: center;
    word-break: break-word;
}

.hero-text {
    color: var(--span-color);
}

.hero-subtitle {
    max-width: 768px;
    width: 100%;
    padding: 0 1rem;
    color: var(--main-color);
    text-align: center;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 2rem;
    word-break: break-word;
}

.hero-btn {
    background-color: var(--button-color);
    color: var(--text-color);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
    padding: 1rem 2rem;
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hero-btn:is(:hover, :focus) {
    background-color: var(--span-color);
}


/* === Create === */
.create{
        padding: 5rem 0;
        background-color: var(--section-color);
}
.create-box{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
}
.create-title{
        color: var(--text-color);
        font-size: 2.25rem;
        font-weight: 700;
        line-height: 2.5rem;
        margin-bottom: 1rem;
}
.create-subtitle{
        width: 672px;
        color: var(--paragraf-color);
        font-size: 1.25rem;
        line-height: 1.75rem;
        text-align: center;
        margin-bottom: 4rem;
}
.create-list{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
}
.create-item{
        background-color: var(--main-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        border-radius: 0.75rem;
        box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / 0.1),
                0 4px 6px -4px rgb(0 0 0 / 0.1);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.create-item:is(:hover,:focus){
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.create-icon{
        font-size: 2.25rem;
        line-height: 2.5rem;
        margin-bottom: 1rem;
}
.create-text{
        color: var(--text-color);
        font-size: 1.25rem;
        line-height: 1.75rem;
        margin-bottom: 1rem;
}
.create-info{
        width: 320px;
        color: var(--paragraf-color);
        margin-bottom: 1.5rem;
        text-align: center;
}
.create-btn{
        padding: 0.5rem 1.5rem;
        background-color: var(--logo-color);
        border-radius: 0.5rem;
        color: var(--main-color);
        font-size: 100%;
        font-weight: inherit;
        line-height: inherit;
        transition-property: background-color;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
}
.create-btn:is(:hover,:focus){
        background-color: var(--background-color);
}

/* Планшети — 2 блоки в ряд */
@media (max-width: 960px) {
  .create-subtitle {
    width: 90%;
  }

  .create-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .create-item {
    width: 45%;
  }

  .create-info {
    width: 100%;
  }
}

/* Мобільні — 1 блок у ряд */
@media (max-width: 600px) {
  .create-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .create-item {
    width: 100%;
  }

  .create-subtitle {
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.6rem;
    margin-bottom: 2rem;
  }

  .create-info {
    width: 100%;
    font-size: 1rem;
  }

  .create-btn {
    width: 100%;
    text-align: center;
  }
  
}

.create-subtitle {
  width: 100%;
  max-width: 672px;
  padding: 0 1rem;
}

.create-info {
  width: 100%;
  max-width: 320px;
  padding: 0 1rem;
}

 * {
  box-sizing: border-box;
}

/* Для маленьких екранів */
@media (max-width: 768px) {
  .create-list {
    flex-direction: column;
    gap: 2rem;
  }

  .create-item {
    width: 100%;
    max-width: 90%;
  }

  .create-info,
  .create-subtitle {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* === Team === */
.team{
    padding: 5rem 0;
}
.team-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.team-title{
            color: var(--text-color);
                font-weight: 700;
                font-size: 2.25rem;
                line-height: 2.5rem;
                margin-bottom: 4rem;
}
.team-img{
    margin-bottom: 1rem;
    width: 128px;
    height: 128px;
    border-radius: 50%;
}
.team-list{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.team-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 272px;
    height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-item:is(:hover,:focus){
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.team-name{
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
        line-height: 1.75rem;
        margin-bottom: 0.5rem;
}
.team-subtitle2{
    color: var(--logo-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.team-subtitle{
    width: 280px;
    color: var(--paragraf-color);
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
}

@media (max-width: 900px) {
  .team-list {
    flex-direction: column;
    gap: 2rem;
  }

  .team-item {
    width: 90%;
    max-width: 320px;
    height: auto;
  }

  .team-subtitle {
    width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .team-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .team-img {
    width: 100px;
    height: 100px;
  }
}


/* === Ability === */
.ability{
        padding: 5rem 0;
        background-color: var(--section-color);
}
.ability-box{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
}
.ability-title{
        color: var(--text-color);
        font-size: 2.25rem;
        line-height: 2.5rem;
        margin-bottom: 1rem;
}
.ability-subtitle{
        width: 672px;
        color: var(--paragraf-color);
        font-size: 1.25rem;
        line-height: 1.75rem;
        margin-bottom: 4rem;
        text-align: center;
}
.ability-list{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
}
.ability-item{
        background-color: var(--main-color);
        padding: 1.5rem;
        border-radius: 0.75rem;
        box-shadow:0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / 0.1),
                0 4px 6px -4px rgb(0 0 0 / 0.1);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ability-item:is(:hover,:focus){
        transform: translateY(-5px);
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.ability-icon{
        font-size: 1.875rem;
        line-height: 2.25rem;

}
.ability-text{
        color: var(--text-color);
        font-weight: 600;
        font-size: 1.25rem;
        line-height: 1.75rem;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
}
.ability-info{
        color: var(--paragraf-color);
        width: 232px;
        margin-bottom: 1rem;
}
.ability-subtitle2{
        color: var(--logo-color);
        font-weight: 600;
}

@media (max-width: 768px) {
  .ability-subtitle {
    width: 100%;
    font-size: 1rem;
    padding: 0 1rem;
  }

  .ability-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .ability-item {
    width: 90%;
    max-width: 320px;
    text-align: center;
  }

  .ability-info {
    width: 100%;
  }

  .ability-text {
    font-size: 1.125rem;
  }

  .ability-title {
    font-size: 1.75rem;
    text-align: center;
  }
}

@media (max-width: 1260px) and (min-width: 601px) {
  .ability-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .ability-item {
    flex: 0 1 calc(45% - 1rem); /* 2 в ряд із відступами */
    max-width: 100%;
    text-align: center;
  }

  .ability-info {
    width: 100%;
  }

  .ability-subtitle {
    width: 100%;
    font-size: 1.125rem;
    padding: 0 2rem;
  }

  .ability-title {
    font-size: 2rem;
  }
}

/* === Contact === */
.contact{
        padding: 5rem 0;
}
.contact-box{
        display: flex;
        flex-direction:column ;
        justify-content: center;
        align-items: center;
}
.contact-title{
        color: var(--text-color);
        font-weight: 700;
        font-size: 2.25rem;
        line-height: 2.5rem;
        margin-bottom: 4rem;
}
.contact-text{
        color: var(--text-color);
        font-weight: 600;
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-bottom: 0.5rem;
}
.contact-link{
        color: var(--paragraf-color);
}
.contact-list{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin-bottom: 3rem;
}
.contact-lists{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        gap: 0.5rem;
}
.contact-icon{
        width: 24px;
        height: 24px;
        color: var(--logo-color);
}
.contact-item{
display: flex;
flex-direction: column;
justify-content: center;
align-items:center;
gap: 1rem;
}
.contact-flex{
        display: flex;
        flex-direction: column;
align-items: center;
}
.contact-container{
        padding: 0.75rem;
        background-color: var(--icon-color);
        border-radius: 0.5rem;
}
.contact-form{
        width: 584px;
        padding: 2rem;
        border-radius: 0.75rem;
        background-color: var(--form-color);
}
.contact-title2{
        color: var(--text-color);
        font-weight: 600;
        font-size: 1.5rem;
        line-height: 2rem;
        margin-bottom: 1.5rem;
}
.contact-label{
        color: var(--label-color);
        font-size: 0.875rem;
        line-height: 1.25rem;
        font-weight: 500;
        display: flex;
        flex-direction: column;
        justify-content:center ;
        align-items:start ;
        gap: 0.5rem;
        margin-top: calc(1.5rem * calc(1 - 0));
                margin-bottom: calc(1.5rem * 0);
}
.contact-btn{
        width: 553px;
        padding: 0.75rem 1rem;
        background-color: var(--logo-color);
        color: var(--main-color);
        font-weight: 600;
        border-radius: 0.5rem;
        margin-top: calc(1.5rem * calc(1 - 0));
                margin-bottom: calc(1.5rem * 0);
                transition-property: background-color;
                        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
                                transition-duration: 150ms;
}
.contact-btn:is(:hover,:focus){
background-color: var(--background-color);

}
.contact-input{
        width: 520px;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        border: none;
        outline:1px solid var(--border-color);
                                transition-property: outline;
                                        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
                                        transition-duration: 150ms;
}
.contact-textarea{
        width: 520px;
        height: 122px;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        border: none;
        outline: 1px solid var(--border-color);
                        transition-property: outline;
                                transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
                                transition-duration: 150ms;
}
.contact-input:is(:hover, :focus),
.contact-textarea:is(:hover, :focus){

        outline:3px solid var(--focus-color);
}

@media (max-width: 1024px) {
  .contact-list {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-form {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
  }

  .contact-input,
  .contact-textarea,
  .contact-btn {
    width: 100%;
  }

  .contact-btn {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .contact-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .contact-title2 {
    font-size: 1.25rem;
    text-align: center;
  }

  .contact-form {
    padding: 1rem;
  }

  .contact-input,
  .contact-textarea,
  .contact-btn {
    font-size: 1rem;
  }

  .contact-label {
    font-size: 0.875rem;
  }

  .contact-icon {
    width: 20px;
    height: 20px;
  }

  .contact-text {
    font-size: 1rem;
  }
}

/* === Footer === */
.footer{
        padding: 3rem 0;
        background-color: var(--text-color);
}
.footer-container{
        display: flex;
        justify-content:space-between ;
        align-items: baseline;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--bord-color);
}
.footer-boxes{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
}
.footer-logo{
        color: var(--main-color);
        font-weight: 700;
        font-size: 1.5rem;
        line-height: 2rem;
        margin-bottom: 1rem;
}
.footer-title{
        color: var(--main-color);
        font-weight: 600;
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-bottom: 1rem;
}
.footer-subtitle{
        width: 295px;
        color: var(--footer-color);
}
.footer-link{
        color: var(--footer-color);
        transition-property: color;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
                transition-duration: 150ms;
}
.footer-link:is(:hover,:focus){
color: var(--main-color);
}
.footer-text{
        color: var(--footer-color);
}
.footer-items,
.footer-item1,
.footer-item2{
        margin-top: calc(0.5rem * calc(1 - 0));
        margin-bottom: calc(0.5rem * 0);
}
.footer-list{
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
}

@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-box,
  .footer-box2,
  .footer-box4 {
    width: 100%;
  }

  .footer-subtitle {
    width: 100%;
  }

  .footer-list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 2rem 1rem;
  }

  .footer-logo {
    font-size: 1.25rem;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-link {
    font-size: 0.875rem;
  }

  .footer-text {
    text-align: center;
    font-size: 0.75rem;
  }

  .footer-boxes {
    align-items: center;
    text-align: center;
  }
}

:root{
  --logo-color:rgb(79, 70, 229);
  --link-color:rgb(55, 65, 81);
  --linear-gradient-color:rgb(89, 89, 240);
  --gradient-color:purple;
  --main-color:white;
  --span-color:rgb(253, 224, 71);
  --text-color:rgb(17, 24, 39);
  --button-color:#FACC15;
  --paragraf-color:#4b5563;
  --background-color:#4338ca;
  --section-color:#efefefaf;
  --icon-color:#e0e7ff;
  --form-color:#f9fafb;
  --label-color:#374151;
  --border-color:#d1d5db;
  --focus-color:#6366f1;
  --footer-color:#9ca3af;
  --bord-color:#4b556386;
}
body {
    font-family: Arial, sans-serif;
    background: none;
    margin: 0;
    padding: 0;
}

/* === Контейнер адаптивний === */
.container {
  width: 1280px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media screen and (max-width: 799px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }
}
@media screen and (min-width: 800px) and (max-width: 1319px) {
  .container {
    width: 768px;
  }
}
@media screen and (min-width: 1320px) {
  .container {
    width: 1200px;
  }
}


.main{
  margin-top: 68px;
}