:root {
  --bg: #1c1c1e; 
  --surface: #25262b; 
  --surface-2: #30323a; 
  --surface-3: #23262d;
  --text: #ffffff; 
  --accent: #f6c177;
  --blue: #6ea8fe; 
  --muted: #adbac7; 
  --sidebar: rgba(35, 38, 45, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Serif", serif;
  background-color: var(--bg);
  color: #abb2bf;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Спільні контейнери */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 35px);
  box-sizing: border-box;
}

/* ==========================================
   Блок: Header
========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--surface-2);
  border-bottom: 1px solid var(--blue);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 35px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 500;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.header__phone:hover {
  transform: translateY(-3px);
  color: var(--blue);
}

.header__phone-text {
  display: none; /* Сховано на мобільних */
  align-items: center;
  gap: 0.6rem;
}

.header__phone-icon {
  width: 20px;
  height: 20px;
  transform-origin: 25% 75%;
}

.header__phone:hover .header__phone-icon {
  animation: phone-shake 0.6s ease-in-out;
}

@keyframes phone-shake {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-15deg);
  }
  30% {
    transform: rotate(15deg);
  }
  45% {
    transform: rotate(-12deg);
  }
  60% {
    transform: rotate(12deg);
  }
  75% {
    transform: rotate(-8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Бургер меню */
.header__burger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 10;
}

.header__burger-icon,
.header__burger-icon::before,
.header__burger-icon::after {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #abb2bf;
  border-radius: 3px;
  position: relative;
  transition: background 0.3s ease;
}

.header__burger-icon::before,
.header__burger-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.header__burger-icon::before {
  top: -8px;
}
.header__burger-icon::after {
  top: 8px;
}

.header__sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 1000;
  padding: 80px 35px 20px;
  background: var(--sidebar);
}

.header__sidebar--active {
  transform: translateX(0);
}

.header__close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 35px;
  background: none;
  border: none;
  color: #e06c75;
  cursor: pointer;
  line-height: 1;
}

.header__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header__link {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header__link:hover,
.header__link.active {
  color: var(--blue);
}

.header__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 999;
}

.header__overlay--active {
  display: block;
}

/* ==========================================
   Основний контент
========================================== */
main {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
  padding: 0 clamp(16px, 3vw, 35px);
  margin-top: clamp(90px, 10vw, 120px);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vw, 80px);
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero__content {
  flex: 1;
  text-align: center;
  width: 100%;
}

.hero__image {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__image img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
}

.hero__title {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.3;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero__text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero__location {
  color: var(--accent);
}

.hero__communication {
  flex: 0 0 100%;
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  border-radius: 5px;
  padding: 20px 30px;
  position: relative;
  overflow: hidden;
}

.hero__communication-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__phone-btn,
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  margin: 10px 0;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
}

.hero__phone-btn:hover,
.btn-more:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
}

.hero__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; /* Збільшено під мобільні стандарти tap target */
  height: 48px;
  color: #ffffff;
  background-color: var(--accent);
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.hero__social-link:hover {
  background-color: var(--surface-2);
  transform: translateY(-3px);
}

.hero__social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Послуги */
.services {
  padding: clamp(50px, 8vw, 100px) 0;
  background: #1d1d1f;
}

.services__heading {
  max-width: 850px;
  margin: 0 auto clamp(40px, 6vw, 70px);
  text-align: center;
}

.services__subtitle {
  display: block;
  margin-bottom: 15px;
  color: #cfa15c;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.services__title {
  margin-bottom: 30px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #f2c37b;
}

.services__description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: #c6c8d4;
}

.services__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  margin-bottom: clamp(50px, 6vw, 100px);
}

.services__image {
  flex: 1 1 420px;
}

.services__image img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.services__info {
  flex: 1 1 450px;
}

.services__info h2 {
  margin-bottom: 25px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: #f2c37b;
}

.services__info p {
  margin-bottom: 30px;
  line-height: 1.8;
  color: #c6c8d4;
}

.services__info li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 18px;
  color: #c6c8d4;
  line-height: 1.8;
}

.services__info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfa15c;
}

.services__advantages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding-top: 50px;
  border-top: 1px solid rgba(207, 161, 92, 0.3);
}

.advantage {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
}

.advantage span {
  display: block;
  margin-bottom: 15px;
  font-size: clamp(2.3rem, 4vw, 3rem);
  font-weight: 700;
  color: #f2c37b;
}

.advantage p {
  line-height: 1.6;
  color: #c6c8d4;
}

/* Галерея */
.gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.visually-hidden {
  display: none;
}

.gallerySwiper {
  width: 100%;
  height: auto;
}

.gallery .swiper-slide a.glightbox {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.gallery .swiper-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.gallery .swiper-slide a.glightbox:hover img {
  transform: scale(1.05);
}

/* Блог */
.blog__title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent);
}

.blog-card {
  height: 100%;
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
  padding: 24px 24px 0 24px;
  overflow: hidden;
  border-radius: 12px;
}

.blog-card img {
  display: block;
  width: 100%;
  height: clamp(180px, 28vw, 250px);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__content {
  padding: 1.5rem;
  text-align: center;
}

.blog-card__link i,
.contact-card__link i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.blog-card:hover .contact-card__link i,
.blog-card:hover .blog-card__link i {
  transform: translateX(5px);
}

.blogSwiper {
  padding: 1rem 0 4rem;
}

.swiper-slide {
  height: auto;
}

/* ==========================================
   Сторінка статті ( Стаття)
========================================== */
.article {
  background-color: var(--surface);
  color: var(--text);
  padding: clamp(40px, 6vw, 80px) 0;
  border-radius: 12px;
}
.article p + p {
  margin-top: 1.5rem;
}

.article__wrapper {
  max-width: 850px;
  margin: 0 auto;
}
.article h2 {
  position: relative;
  padding-bottom: 0.8rem;
  margin-top: 3rem;
}

.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 2px;
  background: var(--accent);
}
.article__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
}

.article__image {
  display: none;
}
.article__subtitle {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  clear: both;
}

.article__content {
  line-height: 1.8;
}

.article__text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.article__text strong {
  color: #ffffff;
  font-weight: 600;
}
.article p:first-of-type::first-letter {
  font-size: 3rem;
  line-height: 1;
  float: left;
  margin-right: 0.4rem;
  color: var(--accent);
  font-weight: 600;
}
/* Списки у статтях */
.article__list {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  background: rgba(246, 193, 119, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

.article__item {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.article__item:last-child {
  margin-bottom: 0;
}

.article__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.article__link:hover {
  color: #ffffff;
}

.article__sources {
  max-width: 850px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #3b4252;
}

.article__sources-title {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.article__lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 2rem;
}
/* ==========================================
   Навігація між статтями
========================================== */
.article-navigation {
  max-width: 1200px;
  margin: clamp(50px, 8vw, 80px) auto;
  padding: 0 clamp(16px, 3vw, 35px) clamp(60px, 8vw, 100px);
}

.article-navigation .row {
  row-gap: 1.5rem;
}

.article-navigation__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  height: 100%;

  padding: clamp(24px, 3vw, 34px);

  background: rgba(255, 255, 255, 0.05);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(246, 193, 119, 0.18);
  border-radius: 22px;

  text-decoration: none;
  overflow: hidden;
  position: relative;

  transition:
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease;
}

.article-navigation__card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top right,
    rgba(246, 193, 119, 0.12),
    transparent 45%
  );

  opacity: 0;
  transition: opacity 0.45s ease;
}

.article-navigation__card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.07);

  border-color: rgba(246, 193, 119, 0.6);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(246, 193, 119, 0.12);
}

.article-navigation__card:hover::before {
  opacity: 1;
}

.article-navigation__label {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.article-navigation__label i {
  font-size: 1.2rem;
  transition: transform 0.35s ease;
}

.article-navigation__card:hover .bi-arrow-left {
  transform: translateX(-6px);
}

.article-navigation__card:hover .bi-arrow-right {
  transform: translateX(6px);
}

.article-navigation__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.45;
  font-weight: 600;
}

/* ==========================================
   Контакти
========================================== */
.contacts-page {
  background: #1c1c1e;
  color: #adbac7;
  margin-bottom: 80px;
}

.contacts-hero {
  text-align: center;
}

.contacts-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #f6c177;
  margin-bottom: 20px;
}

.contacts-hero__text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2vw, 32px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: #23262d;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(246, 193, 119, 0.15);
  flex: 1 1 250px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: #f6c177;
}

.contact-card i:first-child {
  font-size: 2rem;
  color: #f6c177;
}

.contact-card h2 {
  color: #fff;
  margin-bottom: 15px;
}

.contact-card p {
  line-height: 1.7;
}

.contact-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f6c177;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-card__link:hover {
  color: #fff;
}

.contact-card__status {
  display: inline-block;
  margin-top: auto;
  padding: 8px 14px;
  background: rgba(246, 193, 119, 0.1);
  color: #f6c177;
  border-radius: 999px;
}

.map {
  margin-bottom: 80px;
}

.contacts-map__title {
  text-align: center;
  color: #f6c177;
  margin-bottom: 30px;
}

.contacts-map iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 20px;
}

/* ==========================================
   Footer
========================================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--blue);
  padding-top: 3rem;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px) 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__logo {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer__text {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link,
.footer__address {
  color: var(--text);
  text-decoration: none;
  margin: 0;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__link i,
.footer__address i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.footer__socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer__socials a {
  color: var(--text);
  font-size: 1.4rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer__socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__up {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.footer__bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================
   Адаптив та медіазапити
========================================== */
@media (max-width: 375px) {
  .hero__phone-btn {
    padding: 14px clamp(18px, 5vw, 28px);
  }
}

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

@media (min-width: 768px) {
  .header__phone-text {
    display: inline-flex;
  }

  .header__burger {
    display: none;
  }

  .header__sidebar {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    transition: none;
  }

  .header__close-btn {
    display: none;
  }

  .header__list {
    flex-direction: row;
    gap: 30px;
  }

  a.header__link {
    font-size: 16px;
  }

  .hero {
    gap: 100px;
  }

  .hero__container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
  }

  .hero__content {
    flex: 1;
    text-align: right;
    position: relative;
  }

  .hero__image {
    flex: 1.2;
    justify-content: flex-end;
  }

  /* Для обтікання картинки текстом у блозі */
  .article__image {
    display: none;
  }

  .article__title {
    margin-bottom: 3rem;
  }
  .article-navigation__card {
    min-height: 150px;
    border-radius: 18px;
  }
  .footer__container {
    gap: 35px;
  }
}

@media (min-width: 900px) {
  .hero__content {
    flex: 1;
  }

  .hero__image {
    flex: 1.5;
  }

  .hero__image img {
    max-width: 650px;
  }
}
