/* variables.css */
:root {
  --font-montserrat: 'Montserrat', sans-serif;
  --fz-45: 45px;
  --fz-40: 40px;
  --fz-20: 20px;
  --fz-18: 18px;
  --fz-16: 16px;
  --fz-14: 14px;
  --fz-12: 12px;
  --color-primary: #dbe2ff; /* Ніжно-блакитний */
  --color-golden: #d4a017; /* Золотистий */
  --color-dark-primary: #ced5f4;
  --color-light-primary: #f9faff;
  --color-btn: #544cac;
  --color-secondary: #fff;
}

/* style.css */
@import url('variables.css');
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
#toTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  font-size: 18px;
  border: none;
  background: #d89ca1;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}
#toTop img {
  width: 20px;
  height: auto;
}
#toTop:hover {
  background: #c47f85;
}
.section {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s;
}

.section--hidden {
  opacity: 0;
  transform: translateY(80px);
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-montserrat);
  font-size: var(--fz-16);
  background-color: var(--color-primary);
  line-height: 1.5;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

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

a {
  text-decoration: none;
  color: var(--color-golden);
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--color-btn);
}

/* Header */
.header {
  position: relative;
  background-color: var(--color-primary); /* Запасний фон */
  height: 100vh;
  overflow: hidden;
}

.header__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.9;
}

.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.header__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 10px 10px; */
  padding: 5px 10px;
  /* background-color: var(--color-light-primary); */
  border-radius: 20px;
  margin-top: 20px;
}
.header__top.fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  /* background-color: var(--color-light-primary); */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  z-index: 100;
}
.logo-blur {
  position: relative;
  width: 60px; height: 60px; /* круглая плашка под лого */
  border-radius: 14px;       /* можно 50% для круга */
  overflow: hidden;
}

.logo-blur::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 0;
}

.logo-blur img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
}

.header__content {
  position: relative;
  z-index: 3; /* чтобы текст был поверх видео и overlay */
  text-align: left;
  color: white;
  padding-top: 100px;
}
.header .header__content h1 {
  color: white;
}
.header__content p {
  font-family: var(--font-Inter);
  margin-bottom: 20px;
  max-width: 600px;
}
.about__quote {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9;
  color: var(--color-secondary);
}
.header__content .btn-primary__container {
  width: 100%;
  text-align: left;
  margin-top: 50px;
}
.header__content .btn-primary {
  padding: 14px 20px;
  border: 1px solid var(--color-golden);
  border-radius: 20px;
  background-color: var(--color-light-primary);
  margin: 0 auto;
  transition: all 0.3s linear;
}
.header__content .btn-primary:active {
  transform: translateY(-2px);
}
/* Гамбургер-меню */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 20px;
  cursor: pointer;
  z-index: 5;
  pointer-events: auto;
  transform: rotate(180deg);
  cursor: pointer;
}

.header__hamburger span {
  background-color: var(--color-golden);
  width: 40px;
  height: 4px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: block; /* Додано для вертикального розташування */
  /* margin-bottom: 8px; Відстань між лініями */
}

.header__hamburger span:nth-child(2) {
  width: 28px;
}

.header__hamburger span:last-child {
  margin-bottom: 0; /* Без відступу для останньої лінії */
}

.header__hamburger:active span {
  width: 40px; /* Усі спани мають ширину 40px при натисканні */
}
/* aктивний гамбургер */
/* .header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
} */

/* Навігація */
.header__nav {
  position: fixed;
  top: 120px;
  left: -100%;
  width: 96%;
  height: 100%;
  background-color: var(--color-light-primary);
  padding: 60px 20px 20px;
  transition: left 0.3s ease;
  pointer-events: auto;
  border-radius: 0 40px 0 0;
  z-index: 10;
}
.header__desktop {
  display: none;
}
.header__nav.active {
  left: 0;
}

.header__nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.header__nav a {
  font-size: var(--fz-18);
  display: block;
  padding: 10px;
}

/* Соціальні мережі */
.header__socials {
  margin-top: 20px;
  display: flex;
  gap: 35px;
  transition: all 0.5s ease;
}
.header__socials a:hover {
  transform: scale(1.2);
}

.social-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: cover;
}

.social-icon.instagram::before {
  content: '📷'; /* Замініть на SVG */
}

.social-icon.facebook::before {
  content: '📘'; /* Замініть на SVG */
}

.social-icon.telegram::before {
  content: '✈️'; /* Замініть на SVG */
}
/* about start  */

.about {
  padding: 40px 0;
  background-color: #fff;
}
.about h2 {
  font-size: 36px;
  margin-bottom: 60px;
  font-weight: 600;
  color: #1f2235;
  margin-bottom: 40px;
  text-align: center;
}
.about__wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.about__left img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
/* about end */
/* choose-me start  */

.choose-me {
  padding: 40px 0;
  background-color: #fafafa;
  text-align: center;
}

.choose-me__title {
  font-size: 36px;
  margin-bottom: 60px;
  font-weight: 600;
  color: #1f2235;
}

.choose-me__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.choose-me__item {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.choose-me__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.choose-me__item img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.choose-me__item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

.choose-me__item p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

/* choose-me send */

/* services start  */
.services {
  background: linear-gradient(to bottom, #f8f8f8, #fff);
  padding: 40px 0;
  text-align: center;
}

.services__title {
  font-size: 36px;
  margin-bottom: 60px;
  color: #1f2235;
  font-weight: 600;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.service__item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  height: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service__item:hover {
  transform: translateY(-5px);
}

.service__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service__item:hover img {
  transform: scale(1.05);
}

.service__overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: all 0.4s ease;
  border-radius: 20px;
}

.service__item:hover .service__overlay {
  bottom: 0;
}

.service__overlay h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.service__overlay p {
  font-size: 15px;
  line-height: 1.4;
  color: #e0e0e0;
}

/* services end */

/* portfolio start  */
.portfolio {
  padding: 40px 0;
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
}

.portfolio__title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 60px;
  color: #1f2235;
}

.portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.portfolio__item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio__item:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.portfolio__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  padding: 25px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  text-align: left;
}

.portfolio__caption h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.portfolio__caption p {
  font-size: 15px;
  color: #ddd;
}

.swiper {
  padding-bottom: 50px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #1f2235;
}

.swiper-pagination-bullet-active {
  background: #1f2235;
}

/* portfolio end  */

/* consult start  */
.consult {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f9f9f9);
}

.consult__title {
  font-size: 36px;
  font-weight: 600;
  color: #1f2235;
  margin-bottom: 15px;
}

.consult__subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.consult__form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.consult__input {
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 16px;
  width: 320px;
  transition: all 0.3s ease;
}

.consult__input:focus {
  outline: none;
  border-color: #1f2235;
  box-shadow: 0 0 10px rgba(31, 34, 53, 0.15);
}

.consult__btn {
  width: 100%;
  background: #1f2235;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  max-width: 320px;
  transition: all 0.3s ease;
}

.consult__btn:hover {
  background: #2c3060;
  transform: translateY(-2px);
}

/* consult end */
/* Акордеон start */
.accordion {
  padding: 40px 0;
  background: #fff;
}

.accordion__title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: #1f2235;
  margin-bottom: 50px;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: #1f2235;
  font-weight: 500;
}
.accordion__top span {
  max-width: 380px;
}
.accordion__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  transition: all 0.4s ease;
}

.accordion-item.active .accordion__content {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

.arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #1f2235;
  border-bottom: 2px solid #1f2235;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
  transform: rotate(-135deg);
}

/* Акордеон end */

/* contact start  */

.contact {
  padding: 40px 0;
  background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
  text-align: center;
}

.contact__title {
  font-size: 36px;
  font-weight: 600;
  color: #1f2235;
  margin-bottom: 10px;
}

.contact__subtitle {
  color: #555;
  font-size: 18px;
  margin-bottom: 50px;
}

.contact__form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 2px solid #ddd;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  resize: none;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: #1f2235;
  box-shadow: 0 0 10px rgba(31, 34, 53, 0.15);
}

.contact__btn {
  width: 100%;
  background: #1f2235;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact__btn:hover {
  background: #2c3060;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(31, 34, 53, 0.2);
}

/* contact end  */

/* footer start  */
.footer {
  text-align: center;
  padding: 40px 0;
}
.footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: all 0.3s linear;
}
.footer__socials a:hover {
  transform: translateY(-2px);
}
/* footer end */
