/*
  styles.css
  Базові стилі темної тематики з акцентним смарагдовим кольором.
  Адаптивні сітки, картки, кнопки, інпут-контроли. Високий контраст, приємні тіні.
*/

:root {
  --bg: #0b1220;
  --bg-soft: #0e1628;
  --bg-muted: rgba(255, 255, 255, 0.05);
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e7ecf2;
  --muted: #a7b1c2;
  --ok: #e28d48;
  --ok-strong: #2ecc71;
  --accent: #f87000; /* emerald-400 */
  --accent-2: #8b5cf6; /* violet-500 */
  --shadow: rgba(228, 140, 68, 0.616);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, Helvetica Neue, Arial, Apple Color Emoji,
    Segoe UI Emoji;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.logo {
  max-width: 100%;
  display: block;
  height: 50px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  color: #000000;
}
.icon_header {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  color: #ffffff;
}
.icon--xs {
  width: 14px;
  height: 14px;
}
.icon--ok {
  color: #0051ff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
}
@media (min-width: 481px) {
  .header__inner {
    gap: 1px;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bg);
}
.brand__logo {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  max-width: 100%;
  display: flex;
  gap: 10px;
}
.brand__name {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #000000;
  font-size: 16px;
}
@media (max-width: 480px) {
  .brand__name {
    font-size: 13px;
  }
}
.nav {
  display: none;
  gap: 20px;
}
.nav__link {
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
}
.nav__link:hover {
  color: var(--bg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
@media (min-width: 481px) {
  .footer__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }
}

/* Мобільна версія: кнопка під політикою */
@media (max-width: 480px) {
  .btn {
    gap: 1px;
    padding: 5px 7px;
    font-size: 13px;
  }
}
.btn--primary {
  background: #f87000;
  color: #ffffff;
}
.btn--primary:hover {
  background: #e28d48;
}
.btn--accent {
  background: #f87000;
  color: #0a0f1c;
}
.btn--accent_contact {
  background: #3b69cc;
  color: #000000;
  padding: 10px;
}
@media (max-width: 480px) {
  .btn--accent_contact {
    padding: 5px 10px;
  }
}
.btn--accent:hover {
  filter: brightness(1.05);
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--bg-muted);
}

.lang-button {
  background: orange;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 25px;
  align-self: center;
  order: 4;

  /* Адаптивні розміри */
  font-size: clamp(14px, 2.5vw, 16px);
  padding: clamp(6px, 1.8vw, 8px) clamp(12px, 3vw, 16px);
  min-height: 34px; /* мінімальний розмір для тапа на мобільному */
}

.lang-button:hover {
  background: darkorange;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
  z-index: -1;
}
.hero__grid {
  display: flex;
  text-align: -webkit-center;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
  }
}
.hero__gridbio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 48px;
  background: cornflowerblue;
}
.hero__bgbio {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
  z-index: -1;
}
.hero__bgniches {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
  z-index: -1;
}
.hero__bgcontacts {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
  z-index: -1;
}
.hero__bghero {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
  z-index: -1;
}
.hero__content {
  padding-top: 35px;
}
.biography__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  padding-top: 35px;
}
.section__service {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__block {
  display: flex;
  flex-direction: column;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}
.badge__ok {
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__title {
  margin: 12px 0 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #070b14;
  display: flex;
  justify-content: space-evenly;
  text-align: -webkit-center;
}
.hero__titleeng {
  margin: 12px 0 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #070b14;
  display: flex;
  justify-content: space-evenly;
  text-align: -webkit-center;
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
}

.hero__titleniches {
  margin: 12px 0 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #070b14;
  display: flex;
  justify-content: space-evenly;
  background: cornflowerblue;
}
.badge__title {
  margin: 12px 0 0;
  font-size: 50px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #070b14;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}
@media (max-width: 481px) {
  .badge__title {
    font-size: 40px;
    padding-right: 18px;
    padding-left: 20px;
  }
}
.subbadge__title {
  margin: 12px;
  font-size: 20px;
  color: #070b14;
  justify-content: flex-start;
}

@media (max-width: 481px) {
  .subbadge__title {
    text-align: -webkit-center;
  }
}
.subbadge__titlehero {
  position: relative;
  display: inline-block;
  color: #070b14;
  transition: color 0.3s ease;
}

.subbadge__titlehero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #000000;
  transition: width 0.4s ease;
}

.subbadge__titlehero:hover {
  color: #000000;
}

.subbadge__titlehero:hover::after {
  width: 100%;
}

/* === Success popup === */
.success-popup {
  position: fixed;
  top: 50%;
  left: 100%;                 /* стартує за правим краєм */
  transform: translateY(-50%);
  background: #ffffff;
  color: #0f5132;
  border: 2px solid #198754;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;       /* не ловить кліки, поки прихований */
  transition:
    left .7s cubic-bezier(0.4,0,0.2,1),
    transform .7s cubic-bezier(0.4,0,0.2,1),
    opacity .7s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  font-weight: 600;
  max-width: 320px;
}

.success-popup__icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  color: #0f5132;
}

/* коли показуємо (в центрі) */
.success-popup.show {
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;       /* можна закрити кліком */
}

/* коли зникає (їде за лівий край) */
.success-popup.hide {
  left: -100%;
  opacity: 0;
}

/* (необов'язково) гачок для аналітики/стилів після відправки */
form.form--sent { outline: 0; }

/* (опційно) на дуже вузьких екранах показувати як тост внизу */
@media (max-width: 480px) {
  .success-popup,
  .success-popup.show {
    top: auto;
    bottom: 16px;
    left: 100%;
    transform: translateY(0);
  }
  .success-popup.show {
    left: 50%;
    transform: translateX(-50%);
  }
  .success-popup.hide {
    left: -100%;
  }
}

.hero__subtitle {
  color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  text-align: -webkit-center;
}
.hero__subtitleinfo {
  color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  padding-left: 1px;
  margin-left: 5px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  align-items: center;
}
.hero__ctahero {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  padding-left: 10px;
}
.hero__ctaservices {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero__partners {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.highlight {
  font-weight: bold;
}
.language-selector {
  position: relative;
  display: inline-block;
}

#lang-btn {
  background-color: #ff7f00; /* помаранчевий */
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

#lang-btn:hover {
  background-color: #e67300;
}

#lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 40px;
  left: 0;
  background-color: #ff7f00;
  border-radius: 5px;
  overflow: hidden;
  min-width: 60px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#lang-list li {
  padding: 8px 12px;
  color: white;
  cursor: pointer;
  text-align: center;
}

#lang-list li:hover {
  background-color: #e67300;
}

.hidden {
  display: none;
}

.chip__img {
  width: 16px;
  height: 16px;
  object-fit: cover;
  opacity: 0.9;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: space-evenly;
}
.hero__glow {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 260px;
  border-radius: 999px;
  filter: blur(40px);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(52, 211, 153, 0.25),
    transparent 60%
  );
}
.media-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px #bfbab6;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  flex-direction: column;
}
.media-card_bio {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px #bfbab6;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  flex-direction: column;
}
/* === Hover Zoom для біографії === */
.media-card_bio {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px #bfbab6;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.media-card_bio img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
}

/* ефект при наведенні */
.media-card_bio:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* легкий відкат при кліку */
.media-card_bio:active img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

.media-card_niches {
  border: 1px solid var(--border);
  overflow: hidden;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 25px;
}
.media-card_services {
  border: 1px solid var(--border);
  overflow: hidden;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 30px;
  padding-top: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
}
.media-card__img {
  object-fit: cover;
}
.hero__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.messenger {
  font-weight: 700;
    font-size: 20px;
    color: #070b14;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.thumb {
  height: 92px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding-block: 56px;
  color: #070b14;
  background: white;
}
.section--strip {
  background: rgb(255, 255, 255);
  border-block: 1px solid var(--border);
}
.section--muted {
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
  border-block: 1px solid var(--border);
}
.section--mutedcontacts {
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
  border-block: 1px solid var(--border);
}
.section__head {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__title {
  font-size: 28px;
  margin: 0;
}
.section__titles {
  font-size: 28px;
  margin: 0;
}
.section__subtitle {
  color: var(--bg);
  margin: 8px 0 0;
  text-align: -webkit-center;
}
.section__subtitles {
  color: var(--bg);
  margin: 8px 0 0;
}
/* Partners strip */
.strip {
  display: flex;
  gap: 24px;
  align-items: center;
  overflow: auto;
  padding: 8px 0;
}
.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
}
.strip__logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  opacity: 0.85;
}
.strip__name {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: nowrap; /* ✅ головне: не дозволяємо перенос у другий ряд */
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3f4f6, #e8ebef);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  flex-shrink: 0; /* не стискається навіть при вузькому екрані */
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 14px rgba(0,0,0,0.15);
}

.icon--gallery {
  width: 28px;
  height: 28px;
  color: #000000;
  transition: color 0.3s ease;
}

.social-icon:hover .icon--gallery {
  color: #000000;
}

/* Cards / grid */
.grid {
  display: grid;
  gap: 16px;
}
.grid--3 {
  grid-template-columns: 1fr;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.grid--5 {
  grid-template-columns: 1fr;
  justify-content: space-evenly;
}
.hero__div {
  display: flex;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
}
@media (max-width: 480px) {
  .btn--accent_contact {
    padding: 1 px;
  }
}
.card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.card--solid {
  background: rgba(255, 255, 255, 0.03);
}
.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.card__title {
  margin: 10px 0 0;
  font-weight: 600;
}
.card__text {
  color: var(--bg);
  font-size: 14px;
}

.link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #000000;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.telega_st {
  color: var(--bg);
  margin: 5px;
}

.sand_st {
  color: #000000;
  margin: 5px;
}

.icon_item {
  margin: 5px;
  width: 100px;
}
.icon_item {
  margin: 5px;
  width: 100px;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* Плавний масштаб */
.icon_item:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Ефект натискання */
.icon_item:active {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
.list {
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 20px;
  text-align: -webkit-center;
  margin-right: 40px;
}

.link--muted {
  color: var(--muted);
}

/* Panels */
.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
}
.panel__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.panel__title {
  margin: 0;
  font-weight: 600;
}
.panel__text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Stats */
.stats {
  margin-top: 16px;
}
.stat {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
}
.stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  display: grid;
  place-items: center;
}
.stat__value {
  font-size: 22px;
  font-weight: 700;
}
.stat__label {
  color: var(--muted);
  font-size: 14px;
}

/* Cases */
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.case--card .case__body {
  padding: 16px;
}
.case__img {
  width: 100%;
  object-fit: cover;
}
.case__body {
  padding: 14px;
}
.case__title {
  margin: 10px 0 0;
  font-weight: 600;
}
.case__text {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.case__note {
  color: var(--bg);
  font-size: 14px;
  margin-top: 6px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 4px 8px;
}

/* Steps */
.step {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
}
.step__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.step__num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
}
.step__title {
  margin: 0;
  font-weight: 600;
}
.step__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.step__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact__grid {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.contact__cols {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.form__grid {
  display: grid;
  gap: 12px;
  padding-top: 36px;
  grid-template-columns: 1fr 1fr;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__field--full {
  grid-column: 1 / -1;
}
.form__label {
  font-size: 13px;
  color: var(--bg);
}
.input,
.textarea {
  width: 100%;
  background: #ffffff;
  color: var(--bg);
  border: 1px solid #5279ce;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus,
.textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.contacts {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bg);
  text-decoration: underline;
}
.contact__number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bg);
  text-decoration: none;
}
.contact:hover {
  color: #0051ff;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}

.gallery__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f4f6, #e6e9ef);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.gallery__icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.icon--gallery {
  width: 28px;
  height: 28px;
  color: #000000;
  transition: color 0.3s ease;
}

.gallery__icon:hover .icon--gallery {
  color: #007aff;
}


/* Footer */
.footer {
  background: linear-gradient(180deg, #ffffff 0%, #f0e1e1 50%, #ffffff 100%);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center; /* центр по горизонталі на мобі */
  justify-content: center;
  text-align: center;
  padding: 24px 0;
}
.footer__innerlogo {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

/* Для ширших екранів */
/* Десктоп/планшет — як є (можеш лишити свої правила) */
@media (min-width: 480px) {
  .footer__inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }
}

/* Мобільна версія: кнопка під політикою */
@media (max-width: 767px) {
  .footer__inner {
    display: flex;
    flex-direction: column; /* все в колонку */
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  /* Щоб кнопка виглядала охайно по центру */
  .lang-button {
    margin-top: 6px;
    align-self: center;
    padding-right: 15px;
    padding-left: 15px; /* на всяк випадок */
  }
}
.footer__brand {
  display: flex;
  gap: 10px;
  align-items: center;
  order: 1;
}
@media (max-width: 767px) {
  .footer__brand {
    flex-direction: column;
  }
}
.footer__note {
  color: var(--bg);
  font-size: 13px;
}
.footer__copy {
  color: var(--bg);
  font-size: 14px;
  order: 4;
}
.footer__copy_privacy {
  color: var(--bg);
  font-size: 14px;
  padding-right: 10px;
  order: 3;
}

/* Responsive */
@media (min-width: 640px) {
  .hero__title {
    font-size: 50px;
  }
  .footer {
    font-size: 50px;
  }
}
@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    padding-block: 72px;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__cols {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* СЕКЦІЯ */
#cases {
  position: relative;
  overflow: visible;
}

/* СЛАЙДЕР */
#cases .slider {
  position: relative;
  width: min(100%, 800px); /* замість жорстких 800px */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  isolation: isolate; /* створює свій стек шарів */
  z-index: 1;
}

/* Стрічка слайдів */
#cases .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
  z-index: 1;
}

/* Слайд */
#cases .slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  text-align: center;
}

#cases .slide img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 2px solid #ddd;
}

/* КНОПКИ */
#cases .prev,
#cases .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  display: grid;
  place-items: center;
  z-index: 3; /* ВАЖЛИВО: над усім всередині слайдера */
}

#cases .prev {
  left: 10px;
}
#cases .next {
  right: 10px;
}

/* АДАПТИВ */
@media (max-width: 768px) {
  #cases .prev,
  #cases .next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  #cases .prev {
    left: 8px;
  }
  #cases .next {
    right: 8px;
  }

  /* дрібніший текст у картці */
  #cases .slide p {
    font-size: 14px;
    line-height: 1.45;
    margin: 6px 10px;
  }
}

@media (max-width: 380px) {
  #cases .prev,
  #cases .next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  #cases .prev {
    left: 6px;
  }
  #cases .next {
    right: 6px;
  }
}
