/*
Theme Name: FLAME
Theme URI: https://flame-theme.com
Author: FLAME Team
Author URI: https://flame-theme.com
Description: Профессиональная тема WordPress для монтажа систем отопления
Version: 1.1.8
License: GNU General Public License v2 or laterю
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flame
*/

/* Normalize and Base Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css');

:root {
  --primary: #ff9a56;
  --primary-dark: #e87d3e;
  --accent: #ffb380;
  --bg-gray: #f2f2f2;
  --text: #212121;
  --muted: #5f5f5f;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --container: 1170px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-up.animated {
  transform: translateY(0);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-left.animated {
  transform: translateX(0);
}

.fade-in-right {
  transform: translateX(30px);
}

.fade-in-right.animated {
  transform: translateX(0);
}

.scale-in {
  transform: scale(0.9);
}

.scale-in.animated {
  transform: scale(1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

#page {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border-radius: 10em;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 154, 86, 0.35);
}

.btn--outline:hover {
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 154, 86, 0.25);
}

.btn:active {
  transform: translateY(0);
}

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

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10em;
  background: rgba(255, 154, 86, 0.12);
  color: var(--primary);
  font-weight: bold;
  font-size: 14px;
  max-width: 200px;
  text-align: center;
}

.tag::before {
  content: "*";
  font-size: 18px;
  margin-right: 10px;
  text-align: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
  padding: 20px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 30px;
  row-gap: 6px;
  min-height: 70px;
}

/* Right side wrapper for nav and actions */
.main-nav {
  grid-column: 2;
  justify-self: end;
}

.header__actions {
  grid-column: 2;
  justify-self: end;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  grid-row: 1 / span 2;
  align-self: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 14px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

nav li+li::before {
  content: "•";
  color: #6b6b6b;
  margin-right: 8px;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
  width: 100%;
}

nav a {
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.header__right {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.phone::before {
  content: "\f095";
  font-family: FontAwesome;
  font-size: 15px;
  color: #000;
}

.social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #151515;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.social a:hover::before {
  width: 100%;
  height: 100%;
}

.social a i,
.social a svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.social a:hover i,
.social a:hover svg {
  transform: scale(1.2);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  transition: var(--transition);
}

.burger__icon {
  display: block;
}

.burger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Hide mobile phones on desktop */
/* Mobile phones hidden by default */
.header__phones-mobile {
  display: none;
  position: absolute;
}

/* Hide mobile menu footer on desktop */
.mobile-menu-footer {
  display: none;
}

/* Mobile Header */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  /* Mobile phones */
  .header__phones-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: 1;
    position: static;
  }

  .header__phones-mobile a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
  }

  .header__phones-mobile a::before {
    content: "\f095";
    font-family: FontAwesome;
    font-size: 10px;
    color: var(--primary);
  }

  /* Hide desktop elements */
  .header__actions .phone,
  .header__actions .social,
  .header__actions .btn,
  .header__right {
    display: none;
  }

  .header__actions {
    display: flex;
  }

  .logo img {
    max-width: 80px;
    height: auto;
  }

  /* Simple burger button - 3 lines */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
  }

  .burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
  }

  .burger.active {
    background: var(--primary);
    border-color: var(--primary);
  }

  .burger.active span {
    background: #fff;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile navigation dropdown */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    z-index: 1000;
  }

  .main-nav.open {
    max-height: 600px;
    opacity: 1;
    overflow-y: auto;
  }

  .main-nav ul {
    display: flex !important;
    flex-direction: column !important;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: static !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  .main-nav li {
    border-bottom: none;
  }

  .main-nav li::before {
    display: none;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: linear-gradient(90deg, rgba(255, 154, 86, 0.1), transparent);
    color: var(--primary);
    border-left-color: var(--primary);
  }

  .main-nav a::after {
    display: none;
  }

  /* Mobile menu footer with contacts */
  .mobile-menu-footer {
    display: block;
    padding: 16px 20px 20px;
    background: linear-gradient(180deg, #f8f8f8, #fff);
    border-top: 1px solid #eee;
  }

  .mobile-menu-phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
  }

  .mobile-menu-phone i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
  }

  .mobile-menu-phone:hover {
    color: var(--primary);
  }

  .mobile-menu-social {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
  }

  .mobile-menu-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    border: none;
  }

  .mobile-menu-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
  }

  .mobile-menu-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
  }

  /* Overlay */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  body.menu-open {
    overflow: hidden;
  }
}

.hero {
  position: relative;
  padding: 140px 0;
  background-size: cover;
  background-position: 90% 20%;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45));
  animation: fadeIn 1.5s ease-out;
}

.hero__inner {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__title {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__subtitle {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero__actions {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
}

.hero__inner {
  max-width: 720px;
  display: grid;
  gap: 24px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 20px;
  margin: 0;
  color: #f4f4f4;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

section {
  padding: 90px 0;
  transition: padding 0.3s ease;
}

section:nth-of-type(even) {
  background: var(--bg-gray);
}

.section-title {
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
  transition: font-size 0.3s ease;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 18px;
  transition: font-size 0.3s ease;
}

.about {
  display: flex;
  align-items: center;
  gap: 30px;
}

#about .section-title,
#about .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

#about .section-title {
  margin-bottom: 18px;
}

#about .section-subtitle {
  margin-bottom: 28px;
}

.about__text {
  display: grid;
  gap: 14px;
}

.about__text p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.about__media {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  overflow: hidden;
}

/* About Advantages Block */
.about__advantages {
  margin-top: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 154, 86, 0.08) 0%, rgba(255, 179, 128, 0.12) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 154, 86, 0.15);
  position: relative;
  overflow: hidden;
}

.about__advantages::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 154, 86, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about__advantages-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.about__advantages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.about__advantages-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.about__advantages-list li i {
  font-size: 15px;
  color: var(--primary);
}

@media (max-width: 600px) {
  .about__advantages-list {
    grid-template-columns: 1fr;
  }
}

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

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.card__img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.card__price {
  font-weight: 700;
  font-size: 18px;
}

.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.benefit__icon {
  transition: var(--transition);
}

.benefit:hover .benefit__icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 154, 86, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.benefit__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.benefit__text {
  margin: 0;
  color: var(--muted);
}

/* Benefits Section Styles */
#benefits .section-title {
  font-size: 60px;
  margin-bottom: 20px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.benefit-stat {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 154, 86, 0.08) 0%, rgba(255, 179, 128, 0.12) 100%);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 154, 86, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-stat::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 154, 86, 0.15) 0%, transparent 70%);
  transition: var(--transition);
}

.benefit-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 154, 86, 0.2);
  border-color: rgba(255, 154, 86, 0.3);
}

.benefit-stat:hover::before {
  top: -30%;
  right: -30%;
}

.benefit-stat__number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: 0;
  position: relative;
  z-index: 1;
}

.benefit-stat__text {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.benefits-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 auto;
}

.benefit-feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.benefit-feature__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255, 154, 86, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 28px;
  transition: var(--transition);
}

.benefit-feature:hover .benefit-feature__icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-feature__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.benefit-feature__text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Mobile Styles */
@media (max-width: 720px) {
  .advantages {
    justify-content: center;
    align-items: center;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
  }

  .benefit-stat__number {
    font-size: 24px;
  }

  .benefit-stat__text {
    font-size: 16px;
  }

  .benefits-features {
    grid-template-columns: 1fr;
  }

  .benefit-feature {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .benefit-feature__icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .benefit-feature__title {
    font-size: 18px;
  }

  .benefit-feature__text {
    font-size: 15px;
  }
}


.steps {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: flex-start;
  column-gap: 40px;
  padding: 24px 0;
  min-height: 100px;
}

.step__line {
  position: absolute;
  top: 68px;
  left: 90px;
  height: calc(100% - 50px);
  width: 1px;
  background: var(--primary);
}

.step:last-child .step__line {
  display: none;
}

.step__left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.step__num {
  font-weight: 400;
  font-size: 16px;
  color: #000;
  white-space: nowrap;
  width: 50px;
}

.step__bullet {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 12px solid var(--primary);
  background: #fff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: var(--transition);
  animation: pulse 2s ease-in-out infinite;
}

.step:hover .step__bullet {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 154, 86, 0.4);
}

.step__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.step__text {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.team-card {
  text-align: center;
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.team-card__img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__img {
  transform: scale(1.05);
}

.team-card__name {
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
}

.team-card:hover .team-card__name {
  color: var(--primary);
}

.team-card__role {
  margin: 0;
  color: var(--muted);
}

.cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.timer__item {
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}

.timer__value {
  font-size: 28px;
  font-weight: 700;
}

.timer__label {
  font-size: 13px;
  letter-spacing: 0.3px;
}

.form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.form label {
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  font-family: inherit;
  font-size: 15px;
}

.form textarea {
  height: 60px;
}

.form small {
  color: var(--muted);
  line-height: 1.4;
}

.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
}

.review:hover {
  transform: translateX(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.review__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.review:hover .review__avatar {
  transform: scale(1.1);
}

.review__name {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 20px;
  transition: color 0.3s ease;
}

.review:hover .review__name {
  color: var(--primary);
}

.review__text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.contacts {
  position: relative;
  min-height: 520px;
  padding: 0;
}

#contacts {
  padding: 0;
}

#contacts .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

#contacts .section-title,
#contacts .section-subtitle {
  display: none;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contacts__card {
  position: absolute;
  left: 30%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 88%);
  background: var(--white);
  padding: 32px 38px;
  border-radius: 10px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 10px;
}

.contacts__card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contacts__card strong {
  color: var(--text);
}

footer {
  background: #f5f5f5;
  color: #111;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo img {
  display: block;
  height: auto;
  max-width: 140px;
}

.footer__info {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #5f5f5f;
}

.footer__info .title {
  font-weight: 700;
  font-size: 16px;
  color: #212121;
  margin-bottom: 4px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.footer__contact .phone-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #000;
  font-size: 18px;
  transition: var(--transition);
}

.footer__contact .phone-line:hover {
  color: var(--primary);
}

.footer__contact .phone-line::before {
  content: "\f095";
  font-family: FontAwesome;
  font-size: 16px;
  color: var(--primary);
}

.footer__contact .email-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  transition: var(--transition);
}

.footer__contact .email-line:hover {
  color: var(--primary);
}

.footer__contact .email-line::before {
  content: "\f0e0";
  font-family: FontAwesome;
  font-size: 14px;
  color: var(--primary);
}

.footer__contact a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.footer__note {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

.footer__privacy {
  margin-top: 4px;
}

.footer__privacy a {
  font-size: 13px;
  color: #5f5f5f;
  text-decoration: underline;
  transition: var(--transition);
}

.footer__privacy a:hover {
  color: var(--primary);
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  padding-top: 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 50;
  backdrop-filter: blur(4px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

/* Блокировка прокрутки страницы при открытой модалке */
body.modal-open {
  overflow: hidden;
}

.modal__content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  width: min(520px, 100%);
  position: relative;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 40px;
  flex-shrink: 0;
}

.modal--open .modal__content {
  transform: scale(1);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.modal-form .wpcf7-form {
  display: contents;
  /* Чтобы форма не ломала grid структуру */
}

.modal-form .wpcf7-spinner {
  display: none;
  /* Скрыть стандартный спиннер */
}

.modal-form .wpcf7-response-output {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
}

.modal-form .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #d32f2f;
  margin-top: 4px;
}

.modal-form .wpcf7-validation-errors {
  background: #ffebee;
  border: 1px solid #ef5350;
  color: #c62828;
}

.modal-form .wpcf7-mail-sent-ok {
  background: #e8f5e9;
  border: 1px solid #66bb6a;
  color: #2e7d32;
}

/* Убрать обводку у невалидных полей (опционально) */
.modal-form .wpcf7-not-valid {
  border-color: #d32f2f;
}

@media (max-width: 960px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 220px;
    max-width: calc(100vw - 32px);
    display: none;
  }

  nav ul.open {
    display: flex;
  }

  .burger {
    display: inline-flex;
  }

  .header__actions .btn {
    display: none;
  }

  .about {
    flex-direction: column;
    gap: 24px;
  }

  .about__media {
    width: 100%;
    height: 360px;
    max-width: 100%;
  }

  .steps {
    max-width: 100%;
    padding: 0 8px;
  }

  .step {
    grid-template-columns: 120px 1fr;
    column-gap: 24px;
    max-width: 100%;
  }

  .step__line {
    left: 70px;
    top: 60px;
  }
}

@media (max-width: 720px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .hero {
    padding: 110px 0 90px;
  }

  .hero__inner {
    text-align: center;
    align-items: center;
  }

  .hero__actions {
    justify-content: center;
  }

  section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .about__media {
    height: 280px;
    max-width: 100%;
  }

  .grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 2fr));
  }

  .card__title {
    font-size: 16px;
  }

  .steps {
    padding: 0;
    max-width: 100%;
  }

  .step {
    grid-template-columns: 1fr;
    row-gap: 12px;
    column-gap: 0;
    padding: 18px 0;
    min-height: auto;
    max-width: 100%;
  }

  .step__line {
    display: none;
  }

  .step__left {
    gap: 12px;
  }

  .step__num {
    width: auto;
    font-size: 15px;
  }

  .step__bullet {
    margin-left: 0;
  }

  .contacts__card {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 0 auto;
  }

  /* Prevent horizontal scroll */
  * {
    max-width: 100%;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .about__media {
    max-width: 100%;
    width: 100% !important;
  }

  nav ul {
    max-width: calc(100vw - 32px);
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea,
select {
  transition: var(--transition);
}

/* Loading animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
  background-size: 1000px 100%;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Services Section Styles */
#services {
  padding: 90px 0;
  background: var(--bg-gray);
}

#services .section-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
}

#services .section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 18px;
}

/* Services Scroll Container */
.services-scroll {
  position: relative;
  margin-bottom: 20px;
}

.services-scroll__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-height: 800px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #e0e0e0;
}

/* Custom Scrollbar */
.services-scroll__wrapper::-webkit-scrollbar {
  width: 8px;
}

.services-scroll__wrapper::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.services-scroll__wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.services-scroll__wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Service Card Image */
.service-card__img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.1);
}

/* Shine effect on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.service-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
  color: var(--primary);
}

.service-card__price {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

/* Small button variant */
.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

/* Scroll hint */
.services-scroll__hint {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.services-scroll__hint i {
  color: var(--primary);
  animation: slideDown 1.5s ease-in-out infinite;
  transform: rotate(90deg);
}

@keyframes slideDown {

  0%,
  100% {
    transform: rotate(90deg) translateX(0);
  }

  50% {
    transform: rotate(90deg) translateX(5px);
  }
}

/* Tablet Styles */
@media (max-width: 960px) {
  #services {
    padding: 70px 0;
  }

  .services-scroll__wrapper {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    max-height: 700px;
  }
}

/* Mobile Styles */
@media (max-width: 720px) {
  #services {
    padding: 64px 0;
  }

  #services .section-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  #services .section-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .services-scroll__wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    max-height: 600px;
  }

  .service-card {
    padding: 16px;
  }

  .service-card__img {
    height: 180px;
  }

  .service-card__title {
    font-size: 16px;
  }

  .service-card__price {
    font-size: 18px;
  }

  .services-scroll__hint {
    font-size: 13px;
  }
}

/* Print styles */
@media print {
  .services-scroll__wrapper {
    max-height: none;
    overflow: visible;
  }

  .service-card {
    break-inside: avoid;
  }

  .services-scroll__hint {
    display: none;
  }
}

.tag--clickable {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Блок с информацией */
#benefits-info {
  padding: 80px 0;
  background: #f8f9fa;
}

.benefits-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.benefit-info-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.benefit-info-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary, #ff6b35);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.benefit-info-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.benefit-info-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Статистика внизу */
.benefits-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-stat {
  text-align: center;
}

.benefit-stat__number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary, #ff6b35);
  margin-bottom: 10px;
}

.benefit-stat__text {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Адаптив */
@media (max-width: 768px) {
  .benefits-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-info-card {
    padding: 25px;
  }

  .benefits-stats-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
  }

  #benefits-info {
    padding: 50px 0;
  }
}

.about__text .highlight {
  color: var(--primary);
  font-weight: 600;
}

.about__text .highlight-primary {
  color: var(--primary);
  font-weight: bold;
}

/* Попап уведомление */
.notification-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-popup--show {
  opacity: 1;
  visibility: visible;
}

.notification-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.notification-popup__content {
  background: var(--white, #fff);
  border-radius: var(--radius, 12px);
  padding: 40px 32px 32px;
  width: min(440px, 100%);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-popup--show .notification-popup__content {
  transform: scale(1);
  animation: popupScaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupScaleIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.notification-popup__icon {
  margin: 0 auto 24px;
  animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.notification-popup__title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.notification-popup__message {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.notification-popup__button {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
}

/* Стили для разных типов */
.notification-popup--error .notification-popup__icon-success {
  display: none;
}

.notification-popup--error .notification-popup__icon-error {
  display: block !important;
}

/* Адаптив */
@media (max-width: 480px) {
  .notification-popup__content {
    padding: 32px 24px 24px;
  }

  .notification-popup__title {
    font-size: 20px;
  }

  .notification-popup__message {
    font-size: 14px;
  }

  .notification-popup__icon svg {
    width: 56px;
    height: 56px;
  }
}

/* Скрыть все стандартные уведомления Contact Form 7 */
.wpcf7-response-output {
  display: none !important;
}

.wpcf7-not-valid-tip {
  display: none !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok,
.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked {
  display: none !important;
}

/* Убрать красную обводку у невалидных полей (опционально) */
.wpcf7-not-valid {
  border-color: #ddd !important;
}

/* Или если хотите оставить красную обводку для невалидных полей */
.wpcf7-not-valid {
  border-color: #f44336 !important;
}


@media (max-width: 960px) {
  footer {
    padding: 32px 0;
  }

  .footer__inner {
    grid-template-columns: auto 1fr;
    gap: 30px;
  }

  .footer__contact {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
  }

  .footer__info {
    font-size: 13px;
  }

  .footer__contact .phone-line {
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  footer {
    padding: 28px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__logo img {
    max-width: 120px;
  }

  .footer__info {
    text-align: center;
    gap: 6px;
    font-size: 13px;
  }

  .footer__info .title {
    font-size: 15px;
  }

  .footer__contact {
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer__contact .phone-line {
    font-size: 16px;
  }

  .footer__contact .email-line {
    font-size: 14px;
  }

  .footer__note {
    font-size: 12px;
  }

  .footer__privacy a {
    font-size: 12px;
  }
}

.marg30 {
  margin-left: 30px;
}

/* Floating Call Widget */
.call-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  transform: translateY(-40px);
}

.main-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
  animation: pulse 2s infinite;
}

.main-button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.main-button svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: all 0.3s ease;
}

/* Phone Icon State */
.phone-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Close Icon State */
.close-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0) rotate(-90deg);
}

/* Active State: Swap Icons */
.main-button.active .phone-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0) rotate(90deg);
}

.main-button.active .close-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.main-button.active {
  animation: none;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: absolute;
  bottom: 80px;
  right: 5px;
  /* Center 50px icon in 60px button (10px diff / 2) */
  z-index: 1;
}

.call-widget.active .menu-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-label {
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.call-widget.active .menu-label {
  opacity: 1;
  transform: translateX(0);
}

.menu-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  color: #fff;
  flex-shrink: 0;
  /* Prevent collapsing */
  position: relative;
  /* Ensure z-index works if needed */
  z-index: 5;
}

.menu-icon:hover {
  transform: scale(1.1);
}

.menu-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.w-icon-1 {
  background: #0088cc;
}

.w-icon-2 {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  background: #6a11cb;
  background: linear-gradient(45deg, #2575fc 0%, #6a11cb 100%);
}

.text-block {
  background: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
  position: absolute;
  bottom: -2px;
  /* Center with button (height ~64px vs 60px) */
  right: 75px;
  width: max-content;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.call-widget:not(.active):hover .text-block {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.text-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.text-block p:first-child {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 154, 86, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 154, 86, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 154, 86, 0);
  }
}

/* Mobile Adaptation */
@media (max-width: 720px) {
  .call-widget {
    right: 20px;
    bottom: 20px;
    transform: none;
  }

  .text-block {
    display: none !important;
  }

  .main-button {
    width: 50px;
    height: 50px;
  }

  .main-button svg {
    width: 22px;
    height: 22px;
  }

  .menu-icon {
    width: 45px;
    height: 45px;
  }

  .menu-items {
    bottom: 60px;
    right: 2.5px;
    /* Center 45px icon within 50px button */
  }

  /* Hide labels on mobile - icons are self-explanatory */
  .menu-label {
    display: none;
  }
}