@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
}

html,
body {
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol,
li {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

input,
textarea,
button,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:root {
  --clr-text: #667799;
  --clr-heading: #1a202c;
  --clr-accent: #00B8D4;
  --clr-dark-bg: #282E3D;
  --clr-card-bg: #fff;
  --clr-site-bg: #F8F9FA;
  --ff-main: "Inter Tight", -apple-system, sans-serif;
  --ff-head: "Inter Tight", -apple-system, sans-serif;
  --container-width: 1504px;
  --section-padding: 64px 0;
  --border-radius: 30px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
}

html,
body {
  min-height: 100vh;
}

body {
  font-family: var(--ff-main);
  color: var(--clr-text);
  background: var(--clr-site-bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--clr-heading);
  margin: 0;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}
/* --- Кастомный скроллбар (Закругленные края и ваши цвета) --- */
/* Для Chrome, Safari, и Opera */
::-webkit-scrollbar {
  width: 12px;
  /* Ширина полосы прокрутки */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Цвет фона трека */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--clr-accent);
  /* Цвет ползунка, используем акцентный цвет */
  border-radius: 10px;
  /* Закругленные края */
  border: 3px solid #f1f1f1;
  /* Добавляем отступ от края трека */
}

::-webkit-scrollbar-thumb:hover {
  background: #0096b0;
  /* Более темный акцент при наведении */
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}
/* ====================================================================== */
/* СТИЛИ ПРЕЛОАДЕРА (ОБНОВЛЕНО: Позиционирование в правый нижний угол) */
/* ====================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  /* Используем Flexbox для позиционирования в угол */
  display: flex;
  justify-content: flex-end;
  /* Выравнивание вправо */
  align-items: flex-end;
  /* Выравнивание вниз */
  padding: 40px;
  /* Отступ от углов */
  /* Z-index и переходы */
  z-index: 9999;
  transition: opacity 0.5s ease;
  pointer-events: all;
}

.loader-percentage {
  /* Фирменный стиль: крупный шрифт и бирюзовый цвет */
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--clr-accent);
  font-family: inherit;
  /* Анимация появления */
  animation: bounce-in 1s forwards;
  min-width: 160px;
  text-align: right;
  /* Прижимаем текст к правому краю, чтобы проценты "бежали" ровно */
}

@keyframes bounce-in {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  80% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
/*
|======================================================================
| 4. СТИЛИ ЗАГОЛОВКОВ (Section Headings)
|======================================================================
*/
/* --- Контейнер заголовка --- */
.section-heading {
  text-align: left;
  margin-bottom: 2.5rem;
  /* --- Модификатор темного режима (Вложенный) --- */
}
.section-heading--dark .section-title,
.section-heading--dark .section-subtitle {
  color: white;
}
.section-heading--dark .section-subtitle::before {
  background: white;
}
.section-heading--dark .highlight {
  color: var(--clr-accent);
  /* Highlight остается акцентным */
}

/* --- Общий Подзаголовок (Subtitle) --- */
.section-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--clr-accent);
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1rem;
  /* Адаптация для мобильных (max-width: 768px) */
}
.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 1px;
  background: var(--clr-accent);
}
@media (max-width: 768px) {
  .section-subtitle {
    padding-left: 2.5rem;
  }
  .section-subtitle::before {
    width: 2rem;
  }
}

/* --- Общий Заголовок (Title) --- */
.section-title {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
  color: var(--clr-heading);
  /* Адаптация для маленьких мобильных (max-width: 480px) */
}
@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }
}

/* --- Заголовки проекта (Project Headings) --- */
.section-project {
  text-align: left;
  /* Если это только контейнер, то стилей здесь больше нет */
}

/* Подзаголовок проекта (Отличия: font-size и margin-bottom) */
.project-intro__subtitle {
  font-size: 0.8rem;
  /* Отличие от .section-subtitle */
  font-weight: 500;
  text-transform: uppercase;
  color: var(--clr-accent);
  position: relative;
  padding-left: 4rem;
  margin-bottom: 0rem;
  /* Отличие от .section-subtitle */
  /* Адаптация для мобильных (max-width: 768px) */
}
.project-intro__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 1px;
  background: var(--clr-accent);
}
@media (max-width: 768px) {
  .project-intro__subtitle {
    padding-left: 2rem;
  }
  .project-intro__subtitle::before {
    width: 1.5rem;
  }
}

/* Заголовок проекта (Почти идентичен .section-title) */
.project-intro__title {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
  color: var(--clr-heading);
  /* Адаптация для маленьких мобильных (max-width: 480px) */
}
@media (max-width: 480px) {
  .project-intro__title {
    font-size: 1.8rem;
  }
}

/* --- Общий класс для подсветки --- */
.highlight {
  color: var(--clr-accent);
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--clr-accent);
  border-radius: 12px;
}
.icon-box i {
  font-size: 24px;
  color: var(--clr-heading);
}
.icon-box--dark {
  background: rgba(255, 255, 255, 0.08);
}
.icon-box--dark i {
  color: white;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
}

.global-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 16px 32px;
  /* ========== АДАПТИВНОСТЬ: Планшеты и ниже (max-width: 960px) ========== */
}
@media (max-width: 960px) {
  .global-header__inner {
    border-radius: 16px;
    padding: 16px 20px;
  }
}

.global-header__logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--clr-heading);
  flex-shrink: 0;
}
.global-header__logo-accent {
  color: var(--clr-accent);
}

.global-header__nav {
  margin-left: auto;
  margin-right: 32px;
  /* АДАПТИВНОСТЬ: Скрываем навигацию при 960px */
}
.global-header__nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-header__nav-link {
  color: var(--clr-heading);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}
.global-header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, #1a202c 100%);
  transition: width 0.4s ease;
  z-index: 1;
}
.global-header__nav-link:hover, .global-header__nav-link:focus {
  color: var(--clr-heading);
}
.global-header__nav-link:hover::after, .global-header__nav-link:focus::after {
  width: 100%;
}
@media (max-width: 960px) {
  .global-header__nav {
    display: none;
  }
}

.global-header__telegram {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s;
  flex-shrink: 0;
  /* АДАПТИВНОСТЬ: Скрываем Telegram при 960px */
}
.global-header__telegram i {
  color: white;
  font-size: 20px;
  transition: transform 0.3s;
}
.global-header__telegram:hover {
  transform: translateY(-2px);
}
.global-header__telegram:hover i {
  transform: rotate(90deg);
}
@media (max-width: 960px) {
  .global-header__telegram {
    display: none;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--clr-heading);
  cursor: pointer;
  flex-shrink: 0;
  /* АДАПТИВНОСТЬ: Показываем бургер при 960px */
}
@media (max-width: 960px) {
  .mobile-menu-btn {
    display: block;
  }
}

.hero {
  height: 90vh;
  position: relative;
  margin: 0 auto;
  max-width: var(--container-width);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  overflow: hidden;
  /* === ДЕСКТОПНЫЙ КОНТЕНТ === */
  /* === СКРЫТИЕ МОБИЛЬНОГО КОНТЕНТА НА ДЕСКТОПЕ (Базовый стиль) === */
  /* ===================================================
     * 1. АДАПТАЦИЯ (≤1024px)
     * =================================================== */
  /* ===================================================
     * 2. АДАПТАЦИЯ (≤768px): Переход на мобильную верстку и 100vh
     * =================================================== */
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://artanna.handydev.ru/img/promo/fon1.jpg") center/cover no-repeat;
  border-radius: 30px;
  z-index: -1;
}
.hero__container {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 32px;
  position: relative;
  z-index: 1;
}
.hero__content {
  margin-top: auto;
  display: flex;
  gap: 40px;
  align-items: flex-end;
  padding-bottom: 12px;
}
.hero__text {
  flex: 1;
}
.hero__graphics {
  flex: 0 0 auto;
  width: -moz-max-content;
  width: max-content;
  text-align: right;
  margin-left: auto;
}
.hero__title, .hero__title-alt {
  font-weight: 900;
  font-size: 90px;
  line-height: 1;
  margin: 0 0 24px;
  background: linear-gradient(to bottom, #1a202c, #4C6BAD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}
.hero__title {
  max-width: 500px;
}
.hero__title-alt {
  margin: 0;
}
.hero__subtitle {
  font-size: 24px;
  color: #4a5568;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  max-width: 560px;
}
.hero__mobile {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero {
    height: 80vh;
  }
  .hero__content {
    gap: 20px;
  }
  .hero__title, .hero__title-alt {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .hero__title {
    max-width: 400px;
  }
  .hero__subtitle {
    font-size: 20px;
    margin: 0 0 24px;
    max-width: 400px;
  }
  .hero__buttons {
    gap: 12px;
    max-width: 450px;
  }
}
@media (max-width: 768px) {
  .hero {
    height: 100dvh;
    min-height: 100vh;
    /* Фоллбэк */
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    /* ===================================================
         * 3. АДАПТАЦИЯ (≤510px): Узкий мобильный
         * =================================================== */
  }
  .hero::before {
    border-radius: 0;
    background: url("https://artanna.handydev.ru/img/promo/fon2.jpg") center/cover no-repeat;
  }
  .hero__container {
    padding: 0;
    justify-content: space-between;
  }
  .hero__content {
    display: none !important;
  }
  .hero__mobile {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh;
    min-height: 100vh;
    width: 100%;
  }
  .hero__mobile-top {
    padding: 0 32px;
    margin-top: 20px;
    width: 100%;
  }
  .hero__mobile-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(to bottom, #1a202c, #4C6BAD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
  .hero__mobile-subtitle {
    font-size: 16px;
    color: #4a5568;
    margin: 12px 0 0;
  }
  .hero__mobile-bottom {
    margin-bottom: 32px;
    width: 100%;
    padding: 0 32px;
  }
  .hero__mobile-buttons {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
  }
  .hero__mobile-buttons .btn {
    width: auto;
    flex-grow: 0;
    flex-shrink: 1;
    display: inline-flex;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) and (max-width: 510px) {
  .hero__mobile-title {
    font-size: 28px;
  }
  .hero__mobile-top, .hero__mobile-bottom {
    padding: 0 20px;
  }
  .hero__mobile-buttons {
    flex-direction: column;
    gap: 16px;
  }
  .hero__mobile-buttons .btn {
    width: 100%;
    flex-grow: 1;
    justify-content: flex-start;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 85%;
  max-width: 320px;
  background: white;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--clr-heading);
  cursor: pointer;
}
.mobile-menu__close i {
  color: var(--clr-heading);
}
.mobile-menu__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 2rem;
}
.mobile-menu__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu__nav-item {
  margin-bottom: 1.2rem;
}
.mobile-menu__nav-link {
  color: var(--clr-heading);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}
.mobile-menu__nav-link:hover {
  color: var(--clr-accent);
}
.mobile-menu__social {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
}
.mobile-menu__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s;
  margin-top: 10px;
}
.mobile-menu__social a:hover {
  transform: translateY(-2px);
}
.mobile-menu__social a:hover i {
  transform: rotate(90deg);
}
.mobile-menu__social a i {
  color: white;
  font-size: 20px;
  transition: transform 0.3s;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================================
 * 1. About / Обо мне (старая секция, неактуальна)
 * =================================================== */
.about {
  padding: 64px 0;
  background: var(--clr-site-bg);
}
@media (max-width: 768px) {
  .about {
    padding: 32px 0;
  }
}

.about__inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* ===================================================
 * 2. ОБО МНЕ И ОПЫТ (about-skills)
 * =================================================== */
.about-skills {
  padding: var(--section-padding);
  background: var(--clr-site-bg);
  /* --- Маркер + текст (Intro) --- */
  /* --- Левая часть: Заголовок ("Обо мне") --- */
  /* ✅ НОВЫЙ СТИЛЬ: Убираем нижний отступ у подзаголовка "Обо мне" на мобилке */
  /* --- Правая часть: Основной текст --- */
}
@media (max-width: 768px) {
  .about-skills {
    padding: 32px 0;
  }
}
.about-skills__intro {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
  /* Адаптация intro (≤768px) */
}
@media (max-width: 768px) {
  .about-skills__intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
}
.about-skills__intro .section-heading {
  flex: 0 0 25%;
  min-width: 150px;
}
@media (max-width: 768px) {
  .about-skills__intro .section-heading {
    flex: 1 1 auto;
    min-width: auto;
  }
}
.about-skills__intro-subtitle {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .about-skills__intro-subtitle {
    margin-bottom: 0 !important;
  }
}
.about-skills .about__content {
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .about-skills .about__content {
    flex: 1 1 auto;
  }
}
.about-skills .about__content p {
  margin-bottom: 1.3rem;
}
.about-skills .about__content strong {
  color: var(--clr-accent);
  font-weight: 700;
}

/* --- Утилита для сброса отступа на мобильных (из предыдущего шага) --- */
@media (max-width: 768px) {
  .u-no-gap-bottom-md {
    margin-bottom: 0 !important;
  }
}

/* ===================================================
 * 3. СТИЛИ ДЛЯ БЛОКА НАВЫКОВ (skills)
 * =================================================== */
.skills__heading {
  text-align: center;
  margin-bottom: 3rem;
}

.skills__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 0.5rem;
}

.skills__subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Сетка карточек (skills__grid) --- */
.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

.skill__category-card {
  padding: 0;
}

.skill__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.skill__icon-wrapper {
  background: var(--clr-accent);
  color: var(--clr-white);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.skill__title-card {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--clr-heading);
  margin: 0;
}
@media (max-width: 768px) {
  .skill__title-card {
    font-size: 1.2rem;
  }
}

.skill__subtitle-card {
  color: var(--clr-accent);
  font-weight: 400;
  font-size: 1rem;
  margin: 0;
}

.skill__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* --- Элемент навыка (skill__item) --- */
.skill__item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
  /* ✅ ИСПРАВЛЕНО: Запрещаем перенос бейджа */
  transition: all 0.3s ease;
  /* Стили для внутреннего DIV, который содержит h4 и p */
  /* Адаптация самого элемента навыка */
}
.skill__item > div:first-child {
  flex-grow: 1;
  /* ✅ Позволяем этому блоку занимать все место */
  flex-shrink: 1;
  min-width: 0;
}
.skill__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}
.skill__item:last-child {
  margin-bottom: 0;
}
.skill__item h4 {
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  color: var(--clr-heading);
  font-weight: 500;
}
@media (max-width: 768px) {
  .skill__item h4 {
    font-size: 1.1rem;
    min-width: 100%;
  }
}
.skill__item p {
  font-size: 0.95rem;
  color: var(--clr-text);
  margin: 0;
}
@media (max-width: 768px) {
  .skill__item p {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .skill__item {
    padding: 16px;
    margin-bottom: 15px;
    gap: 10px;
  }
}

/* --- Бейджи --- */
.badge {
  flex-shrink: 0;
  /* ✅ Бейдж не сжимается */
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge--expert, .badge--advanced {
  background: #1e293b;
  color: white;
}
.badge--specialist {
  background: var(--clr-accent);
  color: var(--clr-heading);
}
.badge--basic {
  background: rgba(174, 192, 224, 0.5);
  color: var(--clr-heading);
}

.services {
  padding: 64px 0;
  background: var(--clr-site-bg);
}
@media (max-width: 768px) {
  .services {
    padding: 32px 0;
  }
}
.services__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  /* Адаптация (≤900px): одна колонка */
}
@media (max-width: 900px) {
  .services__inner {
    grid-template-columns: 1fr;
  }
}
.services__list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 0;
  margin: 0;
}
.services__image-container {
  height: 100%;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  /* Скрываем на планшетах/мобильных (≤900px) */
}
@media (max-width: 900px) {
  .services__image-container {
    display: none;
  }
}
.services__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  display: block;
  z-index: 0;
}
.services__image.active {
  opacity: 1;
  z-index: 1;
}

/* --- Элемент услуги (service-item) --- */
.service-item {
  position: relative;
  padding-bottom: 1.5rem;
  cursor: pointer;
  transition: padding-left 0.3s, background-color 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  /* Адаптив (≤420px) */
}
.service-item:hover {
  padding-left: 12px;
}
.service-item__divider {
  order: 2;
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin-top: 1.25rem;
}
@media (max-width: 420px) {
  .service-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.service-item .service-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  order: 1;
}
@media (max-width: 420px) {
  .service-item .service-text {
    min-width: 0;
    width: 100%;
  }
}
.service-item__title {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--clr-heading);
  margin: 0;
  line-height: 1.3;
  /* Фикс: Убираем акцентный цвет для .highlight внутри заголовка услуги */
}
.service-item__title .highlight {
  color: inherit;
}
.service-item__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--clr-text);
  margin: 0;
}

.advantages {
  padding: 64px 0;
  background: var(--clr-site-bg);
}
@media (max-width: 768px) {
  .advantages {
    padding: 32px 0;
  }
}

.advantages__container {
  background: url("https://artanna.handydev.ru/img/promo/advantages.jpg") center/cover no-repeat;
  background-size: cover;
  /* Убеждаемся, что фон покрывает всю область */
  color: white;
  border-radius: 24px;
  padding: 3rem;
}
@media (max-width: 480px) {
  .advantages__container {
    border-radius: 16px;
    padding: 1.5rem;
    /* Немного увеличенный padding для лучшего вида */
  }
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  /* =================================
     * АДАПТАЦИЯ (≤1024px): 2 колонки
     * ================================= */
}
.advantages__grid .advantage-card--pos1 {
  grid-column: 1;
  grid-row: 1;
}
.advantages__grid .advantage-card--pos3 {
  grid-column: 3;
  grid-row: 1;
}
.advantages__grid .advantage-card--pos4 {
  grid-column: 4;
  grid-row: 1;
}
.advantages__grid .advantage-card--pos6 {
  grid-column: 2;
  grid-row: 2;
}
.advantages__grid .advantage-card--pos8 {
  grid-column: 4;
  grid-row: 2;
}
@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
    /* =================================
         * АДАПТАЦИЯ (≤768px): 1 колонка
         * (Вложено в 1024px для компактности)
         * ================================= */
  }
  .advantages__grid .advantage-card--pos1,
  .advantages__grid .advantage-card--pos3,
  .advantages__grid .advantage-card--pos4,
  .advantages__grid .advantage-card--pos6,
  .advantages__grid .advantage-card--pos8 {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 1024px) and (max-width: 768px) {
  .advantages__grid {
    grid-template-columns: 1fr;
  }
}

.advantage-card {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 180px;
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px) {
  .advantage-card {
    padding: 1rem;
    min-height: auto;
    /* На узких экранах лучше убрать min-height */
  }
}
.advantage-card__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: white;
}
.advantage-card__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  flex-grow: 1;
}

.portfolio {
  background: #EFF8FF;
  padding: 64px 0;
  /* ——— ТАБЫ ——— */
  /* --- СЕТКА КАРТОЧЕК --- */
  /* --- КАРТОЧКА (portfolio__link) --- */
}
@media (max-width: 768px) {
  .portfolio {
    padding: 32px 0;
  }
}
.portfolio__tabs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .portfolio__tabs {
    gap: 8px;
    margin-bottom: 1.5rem;
  }
}
.portfolio .tab-btn {
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: 2px solid var(--clr-accent);
  color: var(--clr-accent);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.portfolio .tab-btn--active {
  background: var(--clr-accent);
  color: white;
  border-color: var(--clr-accent);
}
.portfolio .tab-btn:hover:not(.portfolio .tab-btn--active) {
  background: rgba(0, 184, 212, 0.06);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 2.5rem;
}
@media (max-width: 768px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 1.5rem;
  }
}
.portfolio__link {
  display: block;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.portfolio__link:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.portfolio__link:hover .portfolio__img img {
  transform: scale(1.05);
}
.portfolio__link:hover .portfolio__link-icon {
  transform: translateY(-3px) rotate(90deg);
  background: #0096b0;
}
.portfolio__img {
  position: relative;
  overflow: hidden;
  height: 300px;
  /* ✅ ОБЪЕДИНЕННЫЕ МЕДИА-ЗАПРОСЫ ДЛЯ ВЫСОТЫ ИЗОБРАЖЕНИЯ */
  /* При max-width: 420px высота остается 200px (наследуется от 768px) */
}
@media (max-width: 1200px) {
  .portfolio__img {
    height: 250px;
  }
}
@media (max-width: 768px) {
  .portfolio__img {
    height: 200px;
  }
}
.portfolio__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--clr-heading);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
}
.portfolio__link-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: var(--clr-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 2;
  color: white;
}
.portfolio__link-icon .portfolio__icon {
  color: white;
}
.portfolio__info {
  padding: 20px;
}
.portfolio__info h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--clr-heading);
  line-height: 1.4;
}
.portfolio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio__tags span {
  background: transparent;
  border: 1px solid var(--clr-text);
  color: var(--clr-text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* --- КОНТЕЙНЕР КНОПКИ --- */
.show-more-container {
  text-align: center;
  margin-top: 40px;
}

/* --- ГЛОБАЛЬНЫЕ СТИЛИ КНОПОК (.btn) --- */
/* В идеале, эти стили должны быть в отдельном файле _buttons.scss. 
   Здесь они оставлены для полноты вашего блока. */
.btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 56px;
  padding: 0 60px 0 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Модификатор Primary */
}
.btn__text {
  position: relative;
  z-index: 3;
  transition: color 0.3s ease;
  margin-right: 8px;
}
.btn__icon-wrapper {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s;
}
.btn__icon {
  font-size: 18px;
  transition: transform 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.btn:hover .btn__icon {
  transform: rotate(90deg);
}
.btn--primary {
  background: var(--clr-accent);
  color: white !important;
}
.btn--primary .btn__text {
  color: white;
}
.btn--primary .btn__icon {
  color: var(--clr-accent);
}
.btn--primary .btn__icon-wrapper {
  background: white;
}
@media (max-width: 600px) {
  .btn {
    padding: 0 40px 0 24px;
    justify-content: center;
    width: auto;
  }
}

.testimonials {
  padding: 64px 0;
}
@media (max-width: 768px) {
  .testimonials {
    padding: 32px 0;
  }
}
.testimonials__container {
  background: url("https://artanna.handydev.ru/img/promo/advantages.jpg") center/cover no-repeat;
  background-size: cover;
  color: white;
  border-radius: 24px;
  padding: 3rem;
}
@media (max-width: 480px) {
  .testimonials__container {
    border-radius: 16px;
    padding: 1.5rem;
    /* Немного увеличенный padding для лучшего вида */
  }
}
.testimonials__header {
  position: relative;
  z-index: 1;
  text-align: left;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  /* --- ФИКСИРОВАННЫЕ ПОЗИЦИИ ДЛЯ ДЕСКТОПА (≥1025px) --- */
  /* =================================
       * АДАПТАЦИЯ (≤1024px): Планшет / 2 колонки
       * ================================= */
}
.testimonials__grid > div:empty {
  display: none;
}
.testimonials__grid .testimonial-card--pos1 {
  grid-column: 2;
  grid-row: 1;
}
.testimonials__grid .testimonial-card--pos2 {
  grid-column: 3;
  grid-row: 2;
}
.testimonials__grid .testimonial-card--pos3 {
  grid-column: 4;
  grid-row: 2;
}
@media (max-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    /* =================================
           * АДАПТАЦИЯ (≤768px): Мобильный / 1 колонка
           * ================================= */
  }
  .testimonials__grid .testimonial-card--pos1,
  .testimonials__grid .testimonial-card--pos2,
  .testimonials__grid .testimonial-card--pos3 {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 1024px) and (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    /* Увеличен с 0.5rem до 1rem для лучшей читаемости */
  }
}

/* --- КАРТОЧКА ОТЗЫВА (testimonial-card) --- */
.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 180px;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px) {
  .testimonial-card {
    padding: 1rem;
    min-height: auto;
    /* На узких экранах лучше убрать min-height */
  }
}
.testimonial-card__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: white;
}
.testimonial-card__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  flex-grow: 1;
}
.testimonial-card__position {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.gallery {
  padding: 64px 0;
  margin-bottom: 80px;
  /* --- Кастомные стрелки навигации --- */
  /* --- Слайдер Tiny-Slider: Внешний контейнер --- */
}
@media (max-width: 768px) {
  .gallery {
    padding: 32px 0;
    margin-bottom: 20px;
  }
}
.gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) {
  .gallery__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.gallery__nav {
  display: flex;
  gap: 20px;
}
@media (max-width: 768px) {
  .gallery__nav {
    display: none;
  }
}
.gallery__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  padding: 0;
}
.gallery__nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gallery__nav-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.gallery__nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  pointer-events: none;
}
.gallery__slider {
  margin-top: 30px;
  /* ✅ ФИКС: Применяем закругление и обрезку к самой внешней обертке слайдера */
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
  overflow: hidden !important;
}

/* ===================================================
 * ФИКСЫ ДЛЯ TINY SLIDER (ВНУТРЕННИЕ ОБЕРТКИ)
 * =================================================== */
/* 1. Контейнер, который управляет видимой областью (Viewport Hidden) */
.tns-ovh {
  /* Принудительно обрезаем */
  overflow: hidden !important;
}

/* 2. Внутренняя обертка слайдера */
.tns-inner {
  /* Принудительно задаем обрезку и закругление углов, чтобы перекрыть скрипт */
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
  overflow: hidden !important;
}

/* 3. Слайды (ОБЯЗАТЕЛЬНО СБРАСЫВАЕМ ЛИШНИЕ СТИЛИ) */
.tns-slide {
  /* Сброс, чтобы не мешать внешней обрезке */
  border-radius: 0 !important;
  overflow: visible !important;
}
.tns-slide a {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  /* Сбрасываем border-radius с ссылки */
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #f0f0f0;
}
.tns-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.contacts {
  background: var(--clr-site-bg);
  padding: 64px 0;
}
@media (max-width: 768px) {
  .contacts {
    padding: 32px 0;
  }
}

.contacts__container {
  background: linear-gradient(135deg, var(--clr-heading) 0%, #1a2536 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  /* Адаптация контейнера (max-width: 480px) */
}
@media (max-width: 480px) {
  .contacts__container {
    border-radius: 16px;
    padding: 1rem;
  }
}

.contacts__title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
  text-align: center;
  /* Адаптация заголовка */
}
@media (max-width: 768px) {
  .contacts__title {
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
  .contacts__title {
    font-size: 1.8rem;
  }
}

.contacts__subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #ccc;
  text-align: center;
}

.contacts__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Центрирование на десктопе */
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .contacts__buttons {
    flex-direction: column;
    /* Переход в колонку на мобильных */
    align-items: center;
    gap: 16px;
  }
  .contacts__buttons .btn {
    width: 100%;
    padding-left: 32px;
    padding-right: 60px;
    justify-content: flex-start;
  }
}

.contacts__bg-word {
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  font-size: 18rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  /* Адаптация (Вложенные @media) */
}
@media (max-width: 1200px) {
  .contacts__bg-word {
    font-size: 14rem;
    bottom: -40px;
  }
}
@media (max-width: 768px) {
  .contacts__bg-word {
    font-size: 9rem;
    bottom: -20px;
  }
}
@media (max-width: 480px) {
  .contacts__bg-word {
    font-size: 70px;
    bottom: 0px;
  }
}

.footer {
  background: var(--clr-heading);
  color: white;
  padding: 2rem 0;
  position: relative;
  z-index: 15;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* На десктопе: элементы по краям */
  align-items: center;
  gap: 1rem;
  /* Адаптация для мобильных (max-width: 480px) */
}
@media (max-width: 480px) {
  .footer__inner {
    /*
           * Для центрирования:
           * 1. Выстраиваем элементы в колонку.
           * 2. Центрируем их по горизонтали.
           */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Центрирует элементы (logo, tags, policy) */
    text-align: center;
    /* Центрирует строчный контент внутри (если есть) */
  }
}

.policy {
  color: #ccc;
  text-decoration: none;
  /* Адаптация для мобильных (max-width: 480px) */
}
.policy:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .policy {
    /*
           * Т.к. элемент 'policy' является ссылкой, его нужно
           * центрировать через родительский flex-контейнер (footer__inner),
           * но на всякий случай оставляем text-align: center, если он имеет ширину 100%.
           */
    text-align: center;
  }
}

.footer__tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  /* Центрируем сами теги, даже на десктопе */
}

.tag-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.tag-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/*
|======================================================================
| 1. ШАПКА (Project Header)
|======================================================================
*/
.project-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* Десктопные стили: Скрываем мобильную кнопку по умолчанию */
  /* Адаптивность шапки (Вложенный @media: max-width: 992px) */
}
.project-header .mobile-menu-btn {
  display: none;
}
@media (max-width: 992px) {
  .project-header .project-header__desktop-group {
    display: none;
  }
  .project-header .mobile-menu-btn {
    display: block;
  }
}

.project-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
}

/*
|======================================================================
| 2. ПРОЕКТ: ВВЕДЕНИЕ (Project Intro)
|======================================================================
*/
.project-intro {
  padding: 80px 0 30px;
  background-color: #fff;
}

/* --- Хлебные крошки (Вложенный @media) --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--clr-text);
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 13px;
    margin-bottom: 20px;
  }
}

.breadcrumbs__link {
  color: var(--clr-text);
  transition: color 0.3s ease;
}
.breadcrumbs__link:hover {
  color: var(--clr-accent);
  text-decoration: underline;
}

.breadcrumbs__separator {
  margin: 0 8px;
  color: var(--clr-text);
}

.breadcrumbs__current {
  color: var(--clr-text);
  font-weight: 500;
}

/* КОНТЕЙНЕР ДЛЯ ЗАГОЛОВКА И КНОПКИ (Вложенный @media) */
.project-intro__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .project-intro__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-intro__header .project-intro__title {
    margin-bottom: 0px;
  }
  .project-intro__header .btn--external {
    width: 100%;
  }
}

/*
|======================================================================
| 3. ОСНОВНЫЕ БЛОКИ КОНТЕНТА
|======================================================================
*/
/* 1. Одиночное фото во всю ширину */
.full-width-image__img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Цель проекта (Вложенный @media) */
.case-goal {
  padding: 80px 0;
  background: white;
}
@media (max-width: 768px) {
  .case-goal {
    padding: 20px 0;
  }
}

.case-text {
  font-size: 16px;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 3. Фото в контейнере */
.project-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
}

/* 4. Дизайн-концепция (Вложенный @media) */
.design-concept {
  padding: 60px 0;
  background: white;
}
@media (max-width: 768px) {
  .design-concept {
    padding: 20px 0;
  }
}

/* 5. СТЕК ИЗОБРАЖЕНИЙ: Чередование макетов */
@media (max-width: 768px) {
  .full-width-images-stack {
    margin-bottom: 32px;
  }
}

.full-width-images-stack__container {
  display: flex;
  flex-direction: column;
  /* ✅ Устанавливаем единый отступ между всеми дочерними элементами (одиночными фото и Grid-блоками) */
  width: 100%;
}

/* --- Стиль для одиночных фото во всю ширину (Используется для 1, 2, 5, 6...) --- */
.full-width-images-stack__img {
  width: 100%;
  height: auto;
  display: block;
  /* Убеждаемся, что нет лишних стилей */
  border-radius: 0;
}

/* --- ✅ НОВЫЙ БЛОК: Секция с двумя фото в ряд, ограниченная контейнером --- */
.full-width-images-stack__row-grid {
  margin: 30px 0;
  /* Отступ секции от предыдущего блока */
}
.full-width-images-stack__row-grid .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 колонки на десктопе */
  gap: 30px;
  /* Отступы между фото ВНУТРИ Grid-сетки */
}
@media (max-width: 768px) {
  .full-width-images-stack__row-grid .container {
    grid-template-columns: 1fr;
    /* 1 колонка на мобилке */
    gap: 20px;
  }
}

/* --- Стили для отдельных фото внутри Grid-блока (.full-width-images-stack__row-grid) --- */
.full-width-images-stack__img-grid {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Стили для отдельных фото внутри Grid-блока --- */
.full-width-images-stack__img-grid {
  width: 100%;
  height: auto;
  display: block;
  /* ✅ Закругленные углы и тень */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- 6. Одиночное фото по ширине контейнера с закругленными углами --- */
.project-image--rounded {
  width: 100%;
  height: auto;
  display: block;
  /* ✅ Основные стили: Закругление */
  border-radius: 16px;
  overflow: hidden; /* Если внутри есть элемент, который выходит за границы */
  /* Добавляем отступ, если это не первый элемент в секции */
  margin-top: 30px;
  /* Убираем отступ, если это первый элемент в родительском контейнере */
}
.project-image--rounded:first-child {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 56px;
  padding: 0 60px 0 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none;
  /* --- Hover Эффект (Базовый) --- */
}
.btn:link, .btn:visited, .btn:hover {
  text-decoration: none;
}
.btn__text {
  position: relative;
  z-index: 3;
  transition: color 0.3s ease;
  margin-right: 8px;
}
.btn__icon-wrapper {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s;
}
.btn__icon {
  font-size: 18px;
  transition: transform 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:hover .btn__icon {
  transform: rotate(90deg);
}
.btn--primary, .btn--external {
  background: var(--clr-accent);
  color: white;
}
.btn--primary .btn__text, .btn--external .btn__text {
  color: white;
}
.btn--primary .btn__icon, .btn--external .btn__icon {
  color: var(--clr-accent);
}
.btn--primary .btn__icon-wrapper, .btn--external .btn__icon-wrapper {
  background: white;
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--clr-accent);
  color: var(--clr-accent);
}
.btn--outline .btn__text, .btn--outline .btn__icon {
  color: var(--clr-accent);
}
.btn--outline .btn__icon-wrapper {
  background: white;
}
.btn--outline:hover {
  transform: none;
  background: rgba(0, 184, 212, 0.3);
}
.btn--outline:hover .btn__icon {
  transform: rotate(90deg);
}
.btn--outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
}
.btn--outline-light .btn__text, .btn--outline-light .btn__icon {
  color: var(--clr-accent);
}
.btn--outline-light .btn__icon-wrapper {
  background: rgba(255, 255, 255, 0.8);
}
.btn--outline-light:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: white;
}
.btn--outline-light:hover .btn__icon {
  transform: rotate(90deg);
}
.btn--mobile {
  width: 100%;
  padding: 0 60px 0 32px;
  height: 52px;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--clr-accent);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  /* Адаптив для мобильных (max-width: 768px) */
}
.scroll-to-top i {
  pointer-events: none;
}
.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}/*# sourceMappingURL=main.css.map */