/* =========================================
   ROOSTERSUP — СТИЛИ
   ========================================= */

:root {
  --blue-deep:  #0A2E52;
  --blue:       #1A5F9E;
  --blue-light: #2E86DE;
  --teal:       #1ABC9C;
  --teal-light: #48D4B8;
  --orange:     #FF6B35;
  --orange-light: #FF8C5A;
  --white:      #FFFFFF;
  --gray-100:   #F4F8FC;
  --gray-200:   #E8F0F8;
  --gray-400:   #9EB3C8;
  --gray-700:   #3D5A73;
  --text:       #1A2D3E;
  --text-light: #5A7A93;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 4px 24px rgba(10,46,82,0.12);
  --shadow-lg: 0 12px 48px rgba(10,46,82,0.18);

  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--sm  { padding: 8px 18px; font-size: 14px; }
.btn--lg  { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.btn--primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.45);
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--blue-light);
  border: 2px solid var(--blue-light);
}
.btn--outline:hover { background: var(--blue-light); color: var(--white); }

.btn--tg   { background: #29B6F6; color: var(--white); }
.btn--tg:hover { background: #039BE5; }
.btn--wa   { background: #25D366; color: var(--white); }
.btn--wa:hover { background: #128C7E; }
.btn--phone { background: var(--gray-200); color: var(--text); }
.btn--phone:hover { background: var(--gray-400); }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10,46,82,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(10,46,82,0.3);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav__logo-icon { font-size: 24px; }
.nav__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(10,46,82,0.97);
  backdrop-filter: blur(12px);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  padding: 12px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__mobile-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(46,134,222,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(26,188,156,0.3) 0%, transparent 55%),
    linear-gradient(145deg, #0A2E52 0%, #0D3B66 40%, #1A5F9E 100%);
  animation: heroBg 12s ease-in-out infinite alternate;
}
@keyframes heroBg {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.05); }
}

.hero__waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  pointer-events: none;
}
.hero__waves svg { width: 100%; height: 100%; }

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}
.hero__badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.7s ease both;
}
.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero__stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.hero__stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero__scroll {
  position: absolute;
  bottom: 140px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeIn 1s 1s ease both;
}
.hero__scroll-arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 96px 0; }
.section--alt { background: var(--gray-100); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26,188,156,0.1);
  color: var(--teal);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__sub {
  font-size: 17px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* =========================================
   SERVICES
   ========================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--teal));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  border-color: transparent;
  color: var(--white);
}
.service-card--featured .service-card__desc { color: rgba(255,255,255,0.75); }
.service-card--featured .service-card__link { color: var(--teal-light); }
.service-card--featured::before { opacity: 1; }

.service-card--new {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff8f5 0%, #fff 100%);
}

.service-card__icon { font-size: 36px; margin-bottom: 16px; }
.service-card__badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.service-card__badge--new { background: var(--teal); }

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card__desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.service-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-light);
  transition: color var(--transition);
}
.service-card__link:hover { color: var(--teal); }

/* ── Service card CTA tooltip (hover) ── */
.service-card__cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,26,50,0.98) 0%, rgba(10,46,82,0.94) 100%);
  padding: 16px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.service-card:hover .service-card__cta {
  transform: translateY(0);
}
.service-card__cta-title {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  text-align: center;
}
.service-card__cta-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.service-card__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.service-card__cta-btn:hover {
  opacity: 0.85;
  transform: scale(1.04);
}
.service-card__cta-btn--tg    { background: #0088CC; }
.service-card__cta-btn--wa    { background: #25D366; }
.service-card__cta-btn--ig    { background: linear-gradient(135deg, #5851DB 0%, #C13584 55%, #F77737 100%); }
.service-card__cta-btn--phone { background: var(--orange); }

/* =========================================
   ABOUT
   ========================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__desc {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.about__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.about__visual { display: flex; justify-content: center; }
.about__card-stack {
  position: relative;
  width: 360px;
  height: 360px;
}
.about__river-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 70%, rgba(26,188,156,0.25) 0%, transparent 60%),
    linear-gradient(135deg, #0D3B66 0%, #1A5F9E 50%, #1ABC9C 100%);
  animation: riverAnim 8s ease-in-out infinite alternate;
}
@keyframes riverAnim {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(15deg) brightness(1.1); }
}
.about__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
.about__card-emoji { font-size: 22px; }
.about__card--1 { top: 32px;  left: 20px;  animation-delay: 0s; }
.about__card--2 { top: 50%;   right: 16px; transform: translateY(-50%); animation-delay: 1.3s; }
.about__card--3 { bottom: 32px; left: 32px; animation-delay: 2.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.about__card--2 {
  animation: float2 4s ease-in-out infinite 1.3s;
}
@keyframes float2 {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 8px)); }
}

/* =========================================
   PRICES
   ========================================= */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.price-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}
.price-card--highlight {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff8f5 0%, #fff 100%);
}
.price-card__new-badge {
  position: absolute;
  top: -12px; left: 24px;
  padding: 4px 14px;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.price-card__icon { font-size: 32px; margin-bottom: 12px; }
.price-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.price-card__rows { display: flex; flex-direction: column; gap: 8px; }
.price-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.price-card__val {
  font-weight: 700;
  color: var(--blue-light);
}
.price-card--highlight .price-card__val { color: var(--orange); }
.price-card__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}


/* =========================================
   CONTACTS
   ========================================= */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card__icon { font-size: 40px; margin-bottom: 16px; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.contact-card p { color: var(--text-light); font-size: 16px; line-height: 1.6; }
.contact-card__btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.contact-card__weather { margin-top: 4px; }
.contact-card__temp { font-size: 32px; font-weight: 800; color: var(--blue-deep); line-height: 1; margin-bottom: 6px; }
.contact-card__weather p { font-size: 14px; margin-bottom: 10px; }
.contact-card__weather-meta { display: flex; gap: 14px; justify-content: center; font-size: 14px; color: var(--text-light); }

/* =========================================
   GALLERY
   ========================================= */
/* ── Carousel ── */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background: #000;
  user-select: none;
}
.carousel__track-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  position: relative;
  height: 540px;
  background: #000;
}
.carousel__slide img,
.carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel__slide--video img,
.carousel__slide--video video {
  object-fit: contain;
}
.carousel__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(10,46,82,0.75) 0%, transparent 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}
.carousel__btn:hover { background: rgba(255,255,255,0.3); }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.carousel__dot--active {
  background: var(--white);
  transform: scale(1.35);
}
@media (max-width: 700px) {
  .carousel__slide { height: 380px; }
  .carousel__btn { width: 40px; height: 40px; font-size: 22px; }
}
@media (max-width: 420px) {
  .carousel__slide { height: 300px; }
  .carousel__btn--prev { left: 8px; }
  .carousel__btn--next { right: 8px; }
}

.gallery__insta {
  display: flex;
  justify-content: center;
}
.gallery__insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(253,29,29,0.3);
}
.gallery__insta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(253,29,29,0.45);
}


/* =========================================
   MAP BLOCK
   ========================================= */
.map-block {
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-block__info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
}
.map-block__icon { font-size: 32px; flex-shrink: 0; }
.map-block__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.map-block__addr {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}
.map-block__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-light);
  transition: color var(--transition);
}
.map-block__link:hover { color: var(--teal); }
.map-block__frame {
  width: 100%;
  line-height: 0;
}
.map-block__frame iframe {
  display: block;
  width: 100%;
  border: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer__brand p { font-size: 14px; max-width: 260px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 15px; transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer__social {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer__social:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-2px);
}
.footer__copy { text-align: center; font-size: 13px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }

/* =========================================
   CHAT WIDGET
   ========================================= */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.chat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--blue-light), var(--teal));
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(26,92,200,0.4);
  transition: all var(--transition);
  position: relative;
}
.chat-toggle:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(26,92,200,0.5); }
.chat-toggle__icon { font-size: 18px; }
.chat-toggle__dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 10px; height: 10px;
  background: var(--teal-light);
  border: 2px solid var(--white);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

.chat-box {
  width: 360px;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10,46,82,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: chatAppear 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes chatAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-box__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: var(--white);
}
.chat-box__avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.chat-box__name { font-size: 15px; font-weight: 700; }
.chat-box__status { font-size: 12px; color: var(--teal-light); margin-top: 2px; }
.chat-box__close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition);
}
.chat-box__close:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.chat-box__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  scroll-behavior: smooth;
}
.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg__bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}
.chat-msg--bot .chat-msg__bubble {
  background: var(--gray-100);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-msg__bubble {
  background: linear-gradient(135deg, var(--blue-light), var(--teal));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chat-hint {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-light);
  cursor: pointer;
  transition: all var(--transition);
}
.chat-hint:hover { background: var(--blue-light); color: var(--white); border-color: var(--blue-light); }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

.chat-box__input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.chat-box__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  outline: none;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.chat-box__input:focus { border-color: var(--blue-light); }
.chat-box__send {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue-light), var(--teal));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-box__send:hover { transform: scale(1.1); }
.chat-box__send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { order: -1; }
  .about__card-stack { width: 100%; max-width: 400px; height: 280px; }

  .nav__links { display: none; }
  .nav > .btn { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero__content { padding-top: 80px; }
  .hero__scroll { display: none; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; justify-content: center; }
  .about__features { grid-template-columns: 1fr; }
  .services__grid,
  .prices__grid,
  .contacts__grid { grid-template-columns: 1fr; }
  .chat-box { width: calc(100vw - 32px); }
  .chat-widget { bottom: 16px; right: 16px; }
}
