/* Современные CSS переменные */
:root {
  --primary-color: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;

  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #bdc3c7;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #2c3e50;

  --border-color: #e9ecef;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

  --border-radius: 12px;
  --border-radius-large: 20px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --container-max-width: 1200px;
  --container-padding: 1rem;

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Прелоадер */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Кнопка "Наверх" */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 1000;
}

.scroll-to-top.visible {
  transform: translateY(0);
  opacity: 1;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-base);
}

/* .hide_header{
  height: 80px;
} */

.navbar {
  padding: 1rem 0;
}

.navbar__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar__logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: inherit;
}

.navbar__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.navbar__content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.navbar__contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-large);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.navbar__contact:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.navbar__phone {
  color: white;
  text-decoration: none;
  font-size: var(--font-size-lg);
}

.navbar__phone-icon {
  stroke: currentColor;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.navbar__toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Стили для мобильного меню */
@media (max-width: 768px) {
  .navbar__content {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
  }

  .navbar__content.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__social {
    margin-bottom: 1.5rem;
    justify-content: center;
  }

  .navbar__contact {
    width: 100%;
    justify-content: center;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1001;
  }

  .navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Предотвращение скролла при открытом меню */
  body.menu-open {
    overflow: hidden;
  }
}

/* Основные стили контейнеров */
.hero__container,
.stats__container,
.pricing__container,
.services__container,
.gallery__container,
.footer__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.services__container {
  background: url('/src/img/dop_fon.jpg');
  background-size: cover;
  padding-bottom: 5rem;
  background-position: center;
}

/* Секция Hero */


.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2rem var(--container-padding);
}

.hero__content {
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--success-color);
  color: white;
  border-radius: var(--border-radius-large);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero__title-accent {
  color: var(--primary-color);
  display: block;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero__features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-lg);
}

.hero__feature span {
  text-align: left;
}

.hero__feature-icon {
  min-width: 24px;
  height: 20px;
  background: url(/src/img/knowledge-svgrepo-com.svg);
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__actions a {
  flex-wrap: wrap;
}

.hero__actions-phone {
  font-size: var(--font-size-base);
}

.hero__image {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: auto;
  /* max-width: 500px; */
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Кнопки */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--primary-color);
  color: white;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Статистика */
.stats {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stats__item {
  padding: 2rem 1rem;
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  transition: all var(--transition-base);
}

.stats__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stats__number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stats__label {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Заголовки секций */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle-large {
  font-size: var(--font-size-2xl);
  font-weight: 500;
  
}

.price-footer-text{
  font-size: var(--font-size-3xl);
  color: var(--primary-color);
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-top: 2rem;
}

/* Цены */
.pricing {
  padding: 3rem 0;
  background: var(--bg-secondary);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing__card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pricing__card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.pricing__card--popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing__card--popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.pricing__icon {
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pricing__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pricing__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.pricing__price {
  margin-bottom: 1.5rem;
}

.pricing__amount {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--primary-color);
}

.pricing__currency {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  font-weight: 600;
  margin-left: 0.25rem;
}

/* Услуги */
.services {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services__card {
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  border-left: 4px solid var(--primary-color);
}

.services__card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-medium);
}

.services__card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.services__card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 600;
}

/* Галерея */
.gallery {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-base);
}

.gallery__item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}

.gallery__item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all var(--transition-base);
}

.gallery__item:hover img {
  transform: scale(1.1);
}

/* Футер */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__info h3,
.footer__details h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 1rem;
  color: white;
}

.footer__info p,
.footer__details p {
  color: var(--text-light);
  line-height: 1.6;
}

.footer__brand {
  color: var(--primary-color);
  font-weight: 600;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social .social-link {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer__social .social-link:hover {
  background: var(--primary-color);
  color: white;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero__image {
    order: -1;
  }

  .pricing__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {

  .navbar__toggle {
    display: flex;
  }

  .hero {
    padding-top: 80px;
  }

  .hero__container {
    padding: 1rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-sm);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stats__item {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing__card {
    padding: 1.5rem;
  }

  .services__card {
    padding: 1.5rem;
  }
  .price-footer-text{
  font-size: var(--font-size-lg);
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-top: 1rem;
}
}

/* Анимации появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Применение анимаций */
.hero__content {
  animation: fadeInLeft 0.8s ease-out;
}

.hero__image {
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.stats__item {
  animation: fadeInUp 0.6s ease-out;
}

.pricing__card {
  animation: fadeInUp 0.6s ease-out;
}

.services__card {
  animation: fadeInUp 0.6s ease-out;
}

/* Улучшения для доступности */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-to-top {
    animation: none;
  }
}

/* Фокус для клавиатурной навигации */
.btn:focus,
.social-link:focus,
.navbar__contact:focus,
.scroll-to-top:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Улучшенная типографика */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

/* Состояния загрузки */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Утилитарные классы */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Стили для слайдера */

.gallery__container {
  position: relative;
  padding-bottom: 5rem;
}

.gallery_tittle {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.itc-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.itc-slider-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.itc-slider-items {
  display: flex;
  transition: transform 0.5s ease;
}

.itc-slider-item {

  flex: 0 0 50%;
  max-width: 50%;
}

.itc-slider-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.itc-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-light);
}

.itc-slider-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.itc-slider-btn-prev {
  left: 20px;
}

.itc-slider-btn-next {
  right: 20px;
}

.itc-slider-btn-prev::before {
  content: '‹';
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.itc-slider-btn-next::before {
  content: '›';
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.itc-slider-btn-hide {
  display: none !important;
}

.itc-slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.itc-slider-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
}

.itc-slider-indicator-active,
.itc-slider-indicator:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

.itc-slider-transition-none {
  transition: none !important;
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
  .itc-slider-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .itc-slider-item img {
    height: 300px;
  }

  .itc-slider-btn {
    width: 40px;
    height: 40px;
  }

  .itc-slider-btn-prev {
    left: 10px;
  }

  .itc-slider-btn-next {
    right: 10px;
  }

  .itc-slider-indicators {
    bottom: 10px;
  }

  .itc-slider-indicator {
    width: 10px;
    height: 10px;
  }
}

/* Плавающая кнопка телефона */
.floating-phone {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
}

.floating-phone.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-phone__btn {
  width: 50px;
  height: 50px;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
}

.floating-phone__btn:hover {
  background: #219a52;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.floating-phone__btn.active {
  background: var(--danger-color);
  transform: rotate(180deg);
}

.floating-phone__content {
  position: absolute;
  bottom: 0;
  right: 0;
  background: white;
  border-radius: 25px;
  padding: 0.75rem 1.5rem 0.75rem 1rem;
  box-shadow: var(--shadow-heavy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: bottom right;
  border: 2px solid var(--success-color);
}

.floating-phone__content.active {
  transform: scale(1);
  opacity: 1;
}

.floating-phone__number {
  color: var(--success-color);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.floating-phone__number:hover {
  color: #219a52;
}

.floating-phone__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.floating-phone__close:hover {
  background: var(--bg-secondary);
  color: var(--danger-color);
}

/* Адаптивность */
@media (max-width: 768px) {
  .floating-phone {
    bottom: 6rem;
    right: 1rem;
  }

  .floating-phone__btn {
    width: 45px;
    height: 45px;
  }

  .floating-phone__content {
    min-width: 180px;
    /* padding: 0.5rem 0.75rem 0.5rem 3rem; */
    border-radius: 20px;
  }

  .floating-phone__number {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .floating-phone {
    bottom: 4.25rem;
    right: 1rem;
  }

  .floating-phone__content {
    min-width: 160px;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  }

  .floating-phone__number {
    font-size: 0.8rem;
  }
}

/* Состояние при открытом меню телефона */
.floating-phone.expanded .scroll-to-top {
  transform: translateY(-60px);
}